/**
 * Tranquil IT - Consolidated Aether UI & Isolation Stylesheet
 * Path: assets/css/aether-isolation.css
 * Version: 1.4.2 - Unified Aether Navigation, Symmetrical Isolation & CORS Font Fallback
 */

:root {
    /* Safe-spaced Aether UI Variables */
    --aether-dark-deep: #0f1218;
    --aether-dark-card: #161b22;
    --aether-dark-navy: #0b1a30;
    --aether-tech-cyan: #00ffff;
    --aether-white: #ffffff;
    --aether-slate: #8892b0;
    --aether-light-slate: #ccd6f6;
    --aether-header-height: 80px;
    --aether-glass-border: rgba(255, 255, 255, 0.08);
}

:is(.home-template,.paged:not(.tag-template):not(.author-template)).has-cover .gh-head
{
 top: 70px;
}

/* 1. STRUCTURAL ISOLATION RESETS */
body .aether-header,
body .aether-header *,
body .aether-footer,
body .aether-footer * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-family: Roboto, sans-serif !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;

}

body .aether-footer,
body .aether-footer * {
    background-color: var(--dark-navy);
    color: var(--slate);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--lightest-navy);
}

body .aether-footer h3 {
    font-family: 'Montserrat', sans-serif !important;
}

/* Strict reset overrides targeting margin leaks on list items */
body .aether-header ul,
body .aether-header li,
body .aether-footer ul,
body .aether-footer li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .aether-header li + li,
body .aether-footer li + li {
    margin-top: 0 !important;
}

body .aether-header a,
body .aether-footer a {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* 2. NAVIGATION FRAMEWORK */
body .aether-header {
    background-color: rgba(11, 26, 48, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important; /* Ensure it stays above Casper viewport components */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: 80px !important;
    display: block !important;
}

body .aether-header .container {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}

body .aether-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 80px !important;
    width: 100% !important;
}

body .aether-logo {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
}

body .aether-logo img {
    height: 40px !important;
    width: auto !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

body .aether-logo:hover img {
    opacity: 0.8 !important;
    transform: scale(1.03) !important;
}

body .aether-desktop-menu {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important; /* Mapped from 2rem spacing */
    height: 100% !important;
}

body .aether-nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important; /* Mapped from 2.5rem spacing */
    align-items: center !important;
    list-style: none !important;
    height: 100% !important;
}

body .aether-nav-links li {
    display: inline-block !important;
    height: auto !important;
}

body .aether-nav-links a {
    color: #8892b0 !important;
    font-weight: 500 !important;
    font-size: 16px !important; /* Locked sizing */
    transition: color 0.3s ease !important;
    position: relative !important;
    padding: 10px 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
    font-family:'Roboto', sans-serif;
}

body .aether-nav-links a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #00ffff !important;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

body .aether-nav-links a:hover::after,
body .aether-nav-links a.active::after {
    width: 100% !important;
}

body .aether-nav-links a:hover,
body .aether-nav-links a.active {
    color: #00ffff !important;
}

body .aether-nav-cta {
    color: #00ffff !important;
    border: 1px solid #00ffff !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    text-transform: none !important;
    line-height: 1 !important;
}

body .aether-nav-cta:hover {
    background-color: rgba(0, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* =========================================================================
   3. DROPDOWN ENGINE
   ========================================================================= */
body .nav-item-has-dropdown {
    position: relative !important;
}

body .aether-header .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 260px !important;
    padding: 8px 0 !important;
    background-color: rgba(15, 39, 62, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7) !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s !important;
    z-index: 1001 !important;
    margin: 0 !important;
}

body .nav-item-has-dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

body .aether-header .dropdown-menu li {
    display: block !important;
    width: 100% !important;
}

body .aether-header .dropdown-menu a {
    display: block !important;
    padding: 12px 24px !important;
    color: #8892b0 !important;
    font-size: 14px !important;
    text-align: left !important;
    transition: color 0.3s ease, background-color 0.3s ease !important;
}

body .aether-header .dropdown-menu a:hover {
    color: #00ffff !important;
    background-color: rgba(0, 255, 255, 0.05) !important;
}

/* =========================================================================
   4. MOBILE NAVIGATION DRAWER
   ========================================================================= */
body .aether-mobile-menu-toggle {
    display: none !important;
}

body .aether-mobile-menu-overlay {
    display: none !important;
}

@media (max-width: 992px) {
    body .aether-desktop-menu {
        display: none !important;
    }

    body .aether-mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        cursor: pointer !important;
        z-index: 2001 !important;
    }

    body .aether-mobile-menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 2px !important;
        background-color: #ccd6f6 !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    body .aether-mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: #0b1a30 !important;
        z-index: 999999 !important;
        display: none !important;
        flex-direction: column !important;
        padding: 100px 20px 40px !important;
        transform: translateY(-100%) !important;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }

    body.mobile-menu-open .aether-mobile-menu-overlay {
        transform: translateY(0) !important;
        display: flex !important;
    }

    body .aether-mobile-nav-links {
        display: block !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .aether-mobile-nav-links a {
        display: block !important;
        padding: 16px !important;
        font-size: 18px !important;
        color: #8892b0 !important;
    }

    body .mobile-menu-header {
        color: #00ffff !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        padding: 20px 10px 8px !important;
        pointer-events: none !important;
        display: block !important;
        font-weight: bold !important;
    }

    body .aether-menu-close-btn {
        position: absolute !important;
        top: 25px !important;
        right: 20px !important;
        font-size: 30px !important;
        background: transparent !important;
        color: #ffffff !important;
        cursor: pointer !important;
    }
}


/* =========================================================================
   5. SYMMETRICAL FOOTER GRID
   ========================================================================= */
body .aether-footer {
    padding: 64px 0 !important; /* 4rem spacing */
    background-color: #0b1a30 !important; /* Symmetrical var(--dark-navy) color */
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: block !important;
    color: #8892b0 !important; /* var(--slate) */
    position: relative !important;
    z-index: 10 !important;
}

body .aether-footer .container {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    display: block !important;
}

body .aether-footer .footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 32px !important; /* 2rem gap */
    width: 100% !important;
}

body .aether-footer .footer-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

body .aether-footer .footer-logo {
    width: 150px !important; /* Matched to production layout width */
    height: auto !important;
    margin-bottom: 16px !important;
    display: block !important;
}

body .aether-footer .footer-tagline {
    font-size: 14.4px !important; /* Matched 0.9rem */
    line-height: 1.6 !important;
    color: #8892b0 !important; /* var(--slate) */
    max-width: 250px !important;
    margin: 0 !important;
}

body .aether-footer .footer-title {
    color: #ccd6f6 !important; /* Matched var(--light-slate) */
    font-size: 17.6px !important; /* Matched 1.1rem */
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: block !important;
}

body .aether-footer .footer-column ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; /* Symmetrical link line spacing */
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

body .aether-footer .footer-column li {
    display: block !important;
}

body .aether-footer .footer-column.links a {
    color: #8892b0 !important; /* var(--slate) */
    font-size: 16px !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
}

body .aether-footer .footer-column.links a:hover {
    color: #00ffff !important; /* var(--tech-cyan) */
}

body .aether-footer .footer-column.contact a {
    color: #ccd6f6 !important; /* Matched var(--light-slate) */
    font-size: 14px !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
}

body .aether-footer .footer-column.contact a:hover {
    color: #00ffff !important; /* var(--tech-cyan) */
}

/* Social Media Icons Box */
body .aether-footer .footer-socials {
    display: flex !important;
    gap: 24px !important; /* 1.5rem spacing */
    margin-top: 24px !important;
    padding: 0 !important;
}

body .aether-footer .footer-socials a {
    color: #8892b0 !important; /* var(--slate) */
    font-size: 19.2px !important; /* 1.2rem */
    transition: color 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .aether-footer .footer-socials a:hover {
    color: #00ffff !important; /* var(--tech-cyan) */
}

/* Symmetrical Bottom Meta Box */
body .aether-footer .footer-bottom {
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 64px !important;
    padding: 32px 0 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 100% !important;
    font-size: 13.6px !important; /* 0.85rem */
}

body .aether-footer .footer-bottom p {
    margin: 0 !important;
    color: #8892b0 !important;
}

body .aether-footer .footer-bottom .powered-by-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body .aether-footer .footer-bottom img {
    height: 40px !important;
    width: auto !important;
    display: block !important;
}



/* =========================================================================
   6. CORE TRANSITION ANIMATIONS
   ========================================================================= */
@keyframes aetherSlideDown {
    to { transform: translateY(0); }
}
@keyframes aetherFadeIn {
    to { opacity: 1; }
}
@keyframes aetherFadeInDown {
    to { opacity: 1; transform: translateY(0); }
}