/*
Theme Name: Hello Elementor Child
Author: 
Description: Your description goes here
Version: 1.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* EternaSafe Inspired Clean UI Styles */
:root {
    --es-text-main: #1e293b;
    --es-text-muted: #64748b;
    --es-border: #e2e8f0;
    --es-bg-hover: #f8fafc;
    --es-bg-card: #ffffff;
    --es-accent: #0f172a;
    /* Deep trustworthy slate/black */
}

.page-header {
    display: none;
}

footer#site-footer {
    max-width: 100%;
    padding: 56px 0 28px;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    padding: 0 40px;
}

header#site-header {
    max-width: 100%;
    padding: 0px;
    position: sticky;
    top: 0;
    z-index: 9;
}

/* Reset & Layout Styles */
.eterna-header {
    width: 100%;
    background-color: #f4f6fc;
    padding: 18px 64px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

.eterna-navbar {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 40px;
}

/* Logo Styles */
.Nav_logo__HeBvV {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1001;
}

.Nav_logoImg__USAVf {
    height: 36px;
    width: auto;
    object-fit: contain;
}

#site-header .Nav_logoText__mgJJX {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #2b62f6;
}

.Nav_logoHighlight__RfEWJ {
    color: #e5a900;
}

/* Navigation Links */
.eterna-nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.eterna-nav-links a {
    text-decoration: none;
    color: #384252;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.eterna-nav-links a:hover {
    color: #2b62f6;
}

/* CTA Button */
.eterna-btn-cta {
    display: inline-block;
    background-color: #2b62f6;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0px 4px 14px rgba(43, 98, 246, 0.35);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.eterna-btn-cta:hover {
    background-color: #1e50d8 !important;
    transform: translateY(-1px);
}

/* Hidden Mobile Checkbox Toggle */
.menu-toggle {
    display: none;
}

/* Hamburger Icon (3 Bars) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #384252;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .eterna-header {
        padding: 10px 16px;
    }

    .eterna-navbar {
        padding: 8px 12px;
    }

    .hamburger {
        display: flex;
    }

    .header-right-wrapper {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    /* Slide-down Mobile Menu Container */
    .eterna-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f4f6fc;
        flex-direction: column;
        gap: 20px;
        padding: 24px 0;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0, 0, 0, 0.05);

        /* Off-screen hidden states */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }

    /* Open Menu State */
    .menu-toggle:checked~.eterna-nav-links {
        max-height: 400px;
        opacity: 1;
    }

    /* Animate Hamburger Bars to 'X' on Open */
    .menu-toggle:checked~.header-right-wrapper .hamburger span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
        background-color: #2b62f6;
    }

    .menu-toggle:checked~.header-right-wrapper .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked~.header-right-wrapper .hamburger span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
        background-color: #2b62f6;
    }
}

/* Layout Wrapper */
.es-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--es-text-main);
}

/* --- FULL WIDTH HERO SECTION (Above the Grid) --- */
.es-hero-section {
    margin-bottom: 50px;
    width: 100%;
}

.es-post-header {
    margin-bottom: 30px;
    text-align: center;
}

.es-post-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--es-accent);
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.es-post-meta {
    font-size: 1rem;
    color: var(--es-text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.es-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.es-post-thumbnail {
    width: 100%;
}

/* Full Width Image Styling */
.es-post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: block;
}

/* --- 2-PART GRID (Content & Sidebar) --- */
.es-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    gap: 60px;
}

/* Left Column: Content */
.es-post-main {
    width: 100%;
}

.es-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.es-post-content h2,
.es-post-content h3 {
    color: var(--es-accent);
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
}

.es-post-content p {
    margin-bottom: 1.5em;
}

/* Right Column: Sticky Sidebar */
.es-sidebar-wrapper {
    position: sticky;
    top: 100px;
    align-self: start;
}

.es-sidebar-widget {
    background: var(--es-bg-card);
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.es-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--es-accent);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--es-bg-hover);
}

.es-cat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.es-cat-item {
    border-bottom: 1px solid var(--es-border);
    padding-bottom: 16px;
}

.es-cat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.es-cat-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--es-accent);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.es-cat-name:hover {
    color: #2563eb;
}

.es-cat-desc {
    font-size: 0.85rem;
    color: var(--es-text-muted);
    line-height: 1.5;
}

/* --- RELATED POSTS --- */
.es-related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--es-border);
}

.es-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--es-accent);
}

.es-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 24px;
}

.es-related-card {
    border: 1px solid var(--es-border);
    border-radius: 12px;
    padding: 0px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    background: var(--es-bg-card);
}

.es-related-content{
    padding: 20px;
}

.es-related-card:hover {
    background-color: var(--es-bg-hover);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.es-related-card h4 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--es-accent);
    font-weight: 600;
    line-height: 1.4;
}

.es-related-card p {
    font-size: 0.9rem;
    color: var(--es-text-muted);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .es-grid-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .es-sidebar-wrapper {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .es-post-title {
        font-size: 2rem;
    }

    .es-post-content {
        font-size: 1.05rem;
    }

    .es-page-wrapper {
        padding: 40px 20px;
    }

    .es-post-thumbnail img {
        max-height: 350px;
    }
}

.es-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.es-archive-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

/* Hover Animation */
.es-archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.es-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.es-card-content {
    padding: 20px;
}

.es-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #0f172a;
}

.es-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Responsive fallback for smaller screens */
@media (max-width: 992px) {
    .es-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .es-archive-grid {
        grid-template-columns: 1fr;
    }
}


.eterna-footer {
    width: 100%;
    background-color: #0b227e;
    padding: 64px 24px 32px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Top Grid Layout */
.footer-top {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

/* Column 1: Brand Info */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.Nav_logo__HeBvV {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.Nav_logoImg__USAVf {
    height: 36px;
    width: auto;
    object-fit: contain;
}

footer .Nav_logoText__mgJJX {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.Nav_logoHighlight__RfEWJ {
    color: #e5a900;
}

.brand-description {
    color: #c3d0f5;
    font-size: 15px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0;
}

.brand-meta {
    color: #8da4e8;
    font-size: 13px;
    margin-top: 4px;
}

/* Columns 2-4: Links */
.footer-col-title {
    color: #e5a900;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: #c3d0f5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Dividers */
.footer-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 0 0 32px 0;
}

/* Middle Section: Backed & Recognised */
.footer-middle {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 40px;
}

.recognised-label {
    color: #e5a900;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badges-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.badge-card img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8da4e8;
    font-size: 14px;
}

.heart-icon {
    color: #e63946;
    display: inline-block;
    margin: 0 2px;
}

/* Mobile Layout */
@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .eterna-footer {
        padding: 40px 16px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .badges-wrapper {
        flex-wrap: wrap;
    }
}