/* Custom CSS for XY Mandarin & English Academy */

/* Make sidebar text darker and more readable */
.short-about p {
    color: #222 !important;
    font-weight: 500;
    line-height: 1.6;
}

/* Style social icons in top navigation */
.navbar-nav li a i.fa,
.navbar-nav li a i.fab {
    font-size: 16px;
    margin: 0 2px;
}

/* Add hover effect for nav social icons */
.navbar-nav li a:hover i.fa,
.navbar-nav li a:hover i.fab {
    color: #0085a1;
}

/* Make sidebar text darker and more readable */
.sidebar .sidebar-about-description,
.sidebar .sidebar-about p,
.sidebar .list-inline li a,
.sidebar .sidebar-module p,
.sidebar .sidebar-module,
.sidebar .list-unstyled li,
.sidebar .list-unstyled li a,
.sidebar .sidebar-about-description p {
    color: #333 !important;
    font-weight: 500;
}

/* Darken social media links */
.sidebar .list-inline li a {
    color: #444 !important;
    font-weight: 600;
}

/* Darken sidebar headings */
.sidebar h4,
.sidebar h5,
.sidebar .sidebar-module h5 {
    color: #222 !important;
    font-weight: 700;
}

/* Make tag links more visible */
.sidebar .tag-cloud a {
    color: #555 !important;
    font-weight: 500;
}

/* Darken any remaining sidebar text */
.sidebar * {
    color: #444;
}

/* Ensure links remain clickable and visible */
.sidebar a:hover {
    color: #000 !important;
    text-decoration: underline;
}

/* Hide ONLY the site title and slogan - NOT page titles */
html body .intro-header .site-heading h1,
html body .intro-header .site-heading .subheading,
html body .intro-header .site-heading span.subheading,
html body div.intro-header div.site-heading h1,
html body div.intro-header div.site-heading span.subheading,
html body header.intro-header div.site-heading h1,
html body header.intro-header div.site-heading span.subheading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* Keep the site-heading container visible but with no padding */
html body .intro-header .site-heading,
html body div.intro-header div.site-heading,
html body header.intro-header div.site-heading {
    padding: 0 !important;
    margin: 0 !important;
}

/* Force hide any title/heading in header area - MAXIMUM SPECIFICITY */
html body .intro-header h1,
html body .intro-header h2,
html body .intro-header h3,
html body .intro-header .title,
html body .intro-header .heading,
html body div.intro-header h1,
html body header.intro-header h1,
html body div.intro-header span.subheading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Make navbar brand (site title) bigger and more prominent */
.navbar-brand {
    font-size: 26px !important;
    font-weight: 700 !important;
    padding: 15px 20px !important;
    color: #fff !important;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: #f0f0f0 !important;
    text-decoration: none !important;
}

/* Make header extremely thin for ALL pages and languages - MAXIMUM SPECIFICITY */
html body .intro-header,
html body header.intro-header,
html body .header,
html body .page-header,
html body .intro-header.style-light,
html body .intro-header.style-dark,
html body div.intro-header,
html body header.intro-header.style-light,
html body header.intro-header.style-dark {
    height: 120px !important; /* Very thin header */
    min-height: 100px !important; /* Minimum height for mobile */
    max-height: 120px !important; /* Prevent expansion */
    background-size: cover !important;
    background-position: center 45% !important; /* Move background up just a tiny bit */
    background-repeat: no-repeat !important;
    overflow: hidden !important; /* Hide any overflow content */
}

/* Adjust container positioning for all header types - MAXIMUM SPECIFICITY */
html body .intro-header .container,
html body header.intro-header .container,
html body .header .container,
html body div.intro-header div.container,
html body header.intro-header div.container {
    height: 100% !important;
    max-height: 120px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px; /* Move content up slightly from center */
    overflow: hidden !important;
}

/* Global override for any missed header elements */
* .intro-header,
body .intro-header,
html .intro-header {
    height: 120px !important;
    min-height: 100px !important;
    max-height: 120px !important;
}

* .intro-header .site-heading,
body .intro-header .site-heading,
html .intro-header .site-heading {
    display: none !important;
    visibility: hidden !important;
}

/* Language-specific overrides */
[lang="zh"] .intro-header,
[lang="zh-CN"] .intro-header,
.lang-zh .intro-header {
    height: 120px !important;
    min-height: 100px !important;
    max-height: 120px !important;
}

[lang="zh"] .intro-header .site-heading,
[lang="zh-CN"] .intro-header .site-heading,
.lang-zh .intro-header .site-heading {
    display: none !important;
    visibility: hidden !important;
}

/* ULTRA HIGH SPECIFICITY - Mobile/Tablet fixes - up to 992px */
@media screen and (max-width: 992px) {
    html body div.intro-header.intro-header.intro-header,
    html body header.intro-header.intro-header.intro-header,
    html body .intro-header.intro-header.intro-header {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
    
    html body div.intro-header.intro-header .container,
    html body header.intro-header.intro-header .container,
    html body .intro-header.intro-header .container {
        height: 80px !important;
        max-height: 80px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    html body div.intro-header.intro-header div.site-heading,
    html body div.intro-header.intro-header .site-heading,
    html body header.intro-header.intro-header .site-heading,
    html body .intro-header.intro-header .site-heading,
    html body .intro-header.intro-header .site-heading h1,
    html body .intro-header.intro-header .site-heading .subheading,
    html body .intro-header.intro-header .site-heading span,
    html body .intro-header.intro-header .page-heading,
    html body .intro-header.intro-header .page-heading h1,
    html body .intro-header.intro-header .page-heading .subheading,
    html body .intro-header.intro-header .post-heading,
    html body .intro-header.intro-header .post-heading h1,
    html body .intro-header.intro-header .post-heading .subheading {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -1 !important;
    }
}

/* BACKUP - Force hide all header text elements on mobile/tablet */
@media screen and (max-width: 992px) {
    .intro-header h1,
    .intro-header h2, 
    .intro-header h3,
    .intro-header .subheading,
    .site-heading,
    .site-heading h1,
    .site-heading .subheading,
    .intro-header .page-heading h1,
    .intro-header .page-heading .subheading,
    .intro-header .post-heading h1,
    .intro-header .post-heading .subheading {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .intro-header,
    .intro-header.style-text,
    header.intro-header {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .intro-header .container,
    .intro-header .row {
        height: 80px !important;
        max-height: 80px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* NUCLEAR OPTION - Apply to ALL screen sizes temporarily for testing */
.intro-header.intro-header.intro-header {
    height: 120px !important;
    min-height: 100px !important;
    max-height: 120px !important;
    padding: 0 !important; /* Override theme padding */
}

.site-heading.site-heading.site-heading,
.site-heading.site-heading h1,
.site-heading.site-heading .subheading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important; /* Override theme padding */
    margin: 0 !important; /* Override theme margins */
    position: absolute !important;
    left: -9999px !important;
}

/* TARGET THE THEME'S SPECIFIC PADDING RULES */
@media only screen and (min-width: 768px) {
    .intro-header.intro-header .site-heading {
        padding: 0 !important; /* Override theme's padding: 150px 0 */
        height: 120px !important;
        max-height: 120px !important;
    }
}

/* OVERRIDE BASE THEME PADDING FOR ALL SIZES */
.intro-header.intro-header .site-heading,
.intro-header.intro-header .post-heading,
.intro-header.intro-header .page-heading {
    padding: 0 !important; /* Override theme's padding: 85px 0 55px and 95px 0 70px */
}

/* Mobile language toggle - outside hamburger menu */
.mobile-lang-toggle {
    display: none;
}

.desktop-lang-toggle {
    display: block;
}

@media screen and (max-width: 992px) {
    /* Keep navbar brand visible on mobile - allow wrapping */
    .navbar-brand {
        display: block !important;
        font-size: 14px !important;
        max-width: 220px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        padding: 10px 15px !important;
        height: auto !important;
    }
    
    /* Show mobile language toggle (outside hamburger) */
    .mobile-lang-toggle {
        display: block !important;
        position: absolute;
        right: 60px;
        top: 10px;
        z-index: 1000;
    }
    
    .mobile-lang-link {
        display: inline-block;
        padding: 8px 15px !important;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.3s ease;
    }
    
    .mobile-lang-link:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
    
    /* Hide desktop language toggle on mobile */
    .desktop-lang-toggle {
        display: none !important;
    }
    
    /* Make other nav items bigger */
    .navbar-nav > li > a {
        font-size: 16px !important;
        padding: 12px 15px !important;
    }
}

/* Desktop - hide mobile toggle */
@media screen and (min-width: 769px) {
    .mobile-lang-toggle {
        display: none !important;
    }
    
    .desktop-lang-toggle {
        display: block !important;
    }
}

/* NUCLEAR OPTION - Target exact HTML structure from rendered page */
@media screen and (max-width: 992px) {
    /* Force header container structure to be thin */
    header.intro-header[style] {
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    header.intro-header .container,
    header.intro-header .container .row,
    header.intro-header .container .row > div {
        height: 80px !important;
        max-height: 80px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide the exact div structure */
    header.intro-header .container .row .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1 .site-heading,
    header.intro-header div.site-heading,
    div.site-heading h1,
    div.site-heading span.subheading {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        left: -99999px !important;
    }
}

/* Override zoom-in cursor for clickable images */
a img:hover {
    cursor: pointer !important;
}