/* ==========================================================================
   GLOBAL STRUCTURE & VARIABLE ANCHORS
   ========================================================================== */
:root {
    --primary-deep: #002166;       /* Deep Navy Blue */
    --accent-gold: #e5b833;        /* Golden Yellow */
    --bg-canvas: #f7fafc;          /* Light contrast grey background */
    --bg-card: #ffffff;            /* Card backgrounds */
    --text-dark: #1a202c;          /* Main headings */
    --text-muted: #4a5568;         /* Paragraph text */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Calibri', sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-dark);
}

.section-wrapper-global {
    width: 100%;
    box-sizing: border-box;
}

.content-container-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   1. HERO EDITORIAL & SLIDER CANVAS SECTION
   ========================================================================== */
.banner-container-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 33, 102, 0.04);
    align-items: center;
}

.hero-editorial-left .premium-badge {
    background-color: rgba(0, 33, 102, 0.06);
    color: var(--primary-deep);
    font-weight: 700;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-editorial-left h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 15px 0;
    color: var(--primary-deep);
}

.hero-editorial-left h1 span {
    color: var(--accent-gold);
    text-shadow: 1px 1px 0px rgba(0, 33, 102, 0.1);
}

.card-editorial-accent {
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    margin-bottom: 25px;
    border-radius: 2px;
}

.hero-editorial-left .editorial-quote {
    font-family: 'Play Sans', 'Calibri', sans-serif;
    font-size: 1.25rem;
    color: var(--primary-deep);
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-editorial-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 30px 0;
}

/* Action CTA Buttons Framework */
.about-cta-action-holder {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-luxury-outline, .theme-btn-payment {
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 160px;
    max-width: max-content;
    box-sizing: border-box;
    transition: var(--transition);
}

.btn-luxury-outline {
    border: 2px solid var(--primary-deep);
    color: var(--primary-deep);
    background: transparent;
}

.btn-luxury-outline:hover {
    background-color: var(--primary-deep);
    color: #ffffff;
}

.theme-btn-payment {
    background-color: var(--accent-gold);
    color: var(--primary-deep);
    box-shadow: 0 4px 12px rgba(229, 184, 51, 0.25);
}

.theme-btn-payment:hover {
    background-color: var(--primary-deep);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 33, 102, 0.2);
}

/* Image Slider Frame Module */
.hero-showcase-right {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   FIXED SLIDER FRAME & TRACK CONTROLS
   ========================================================================== */
.slider-wrapper-frame {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.slider-canvas {
    display: flex;
    width: 600%; 
    height: 350px; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.slide-node {
    width: 16.6666%; 
    height: 100%;
    box-sizing: border-box;
}

.slide-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Glassmorphic Badge */
.floating-glass-stat {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0, 33, 102, 0.15);
    z-index: 10;
}

.stat-icon-box {
    width: 45px;
    height: 45px;
    background-color: var(--primary-deep);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.stat-meta h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-deep);
}

.stat-meta p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Navigation System Slider Dots */
.slider-navigation-dots {
    position: absolute;
    bottom: 15px;
    right: 25px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.dot-active, .nav-dot:hover {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

/* ==========================================================================
   2. HERITAGE VISION & ARCHITECTURE TAB SECTIONS
   ========================================================================== */
.about-editorial-section {
    padding: 60px 0;
    background-color: var(--bg-canvas);
}

.about-inner-frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.premium-mini-tag {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.about-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-deep);
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.about-content h2 span {
    color: var(--text-dark);
}

.editorial-line-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-gold), transparent);
    margin-bottom: 24px;
}

.about-lead-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Functional Content Tabs Styling */
.about-tabs-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 33, 102, 0.03);
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.about-tab-headers {
    display: flex;
    background-color: rgba(0, 33, 102, 0.02);
    border-bottom: 1px solid #edf2f7;
}

.tab-header-btn {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    font-family: 'Calibri', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-header-btn.active {
    color: var(--primary-deep);
    background-color: var(--bg-card);
    border-bottom: 3px solid var(--accent-gold);
}

.about-tab-contents {
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-pane p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Metric Display Showcase Blocks Matrix */
.about-visual-showcase-matrix {
    position: relative;
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.arch-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 35px rgba(0, 33, 102, 0.03);
    border: 1px solid #edf2f7;
    transition: var(--transition);
}

.arch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 33, 102, 0.07);
}

.arch-icon-box {
    width: 45px;
    height: 45px;
    background-color: rgba(229, 184, 51, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.arch-icon-box.active-bg {
    background-color: var(--primary-deep);
    color: #ffffff;
}

.stat-num-box h5 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-deep);
}

.arch-card h4 {
    margin: 6px 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.arch-card h5 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.arch-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.full-width-card {
    grid-column: span 2;
}

/* ==========================================================================
   3. ACADEMICS & ADMISSIONS GRID MATRIX CARDS
   ========================================================================= */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.matrix-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #edf2f7;
    transition: var(--transition);
}

.matrix-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 33, 102, 0.08);
}

.card-image-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.matrix-card:hover .card-image-box img {
    transform: scale(1.06);
}

.card-body-content {
    padding: 24px;
}

.card-body-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.card-body-content h3 a {
    text-decoration: none;
    color: var(--primary-deep);
    transition: color 0.2s ease;
}

.card-body-content h3 a:hover {
    color: var(--accent-gold);
}

.card-body-content p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Master Footer Container --- */
.premium-footer-layer {
    background-color: var(--primary-deep);
    color: #ffffff;
    padding: 15px 0 12px 0; /* Ultra-thin top/bottom padding */
    margin-top: 10px;       
}

/* --- Content Layout Grid --- */
.footer-inner-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 30px;              
    align-items: center;    /* Vertically centers all 3 columns to remove empty gap spaces */
}

/* --- Typography & Headings --- */
.footer-branding-box h3 {
    font-size: 1.3rem;      
    font-weight: 700;
    margin: 0 0 8px 0;     /* Tight space right above social buttons */
    color: #ffffff;
}

.footer-links-box h4, 
.footer-contact-box h4 {
    font-size: 1.05rem;     
    font-weight: 700;
    margin: 0 0 8px 0;      
    color: var(--accent-gold);
    position: relative;
    padding-bottom: 4px;
}

.footer-links-box h4::after, 
.footer-contact-box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
}

/* --- Social Buttons --- */
.footer-socials {
    display: flex;
    gap: 10px;
}

.social-round-btn {
    width: 32px;            /* Scaled down to match slim layout profile */
    height: 32px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;      
    transition: var(--transition);
}

.social-round-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-deep);
    transform: translateY(-2px);
}

/* --- Navigation Links --- */
.footer-links-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-box ul li {
    margin-bottom: 4px;     /* Minimal padding to compress links vertically */
}

.footer-links-box ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-box ul li a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

/* --- Contact Block --- */
.footer-contact-box p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 4px 0;      /* Compresses individual rows tightly */
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;    /* Clean horizontal alignment with icons */
    gap: 8px;
}

.footer-contact-box p i {
    color: var(--accent-gold);
}

/* --- Bottom Copyright Area --- */
.footer-divider {
    max-width: 1240px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 12px auto 8px auto; /* Tightly wraps metadata row */
}

.footer-meta-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS ENGINE (FIXED FOR MOBILE SIDE-BY-SIDE BUTTONS)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .banner-container-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .about-inner-frame {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
  /* 1. Global Layout (Applies to ALL device sizes) */
.footer-inner-wrapper {
    display: grid;
    /* Forces the exact 3-column proportions everywhere */
    grid-template-columns: 1.2fr 0.9fr 0.9fr; 
    gap: 20px; 
    padding: 0 16px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* 2. Micro-Adjustments for Small/Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    .footer-inner-wrapper {
        gap: 10px; /* Reduces space between columns so text has more room */
        padding: 0 8px;
    }

    /* Crucial safety net: Prevents long words/emails from pushing past column walls */
    .footer-branding-box, 
    .footer-links-box, 
    .footer-contact-box {
        min-width: 0; /* Allows grid items to shrink smaller than their content */
        word-break: break-word; 
        overflow-wrap: break-word;
    }

    /* Forces ultra-long strings (like the contact email) to wrap safely */
    .footer-contact-box p {
        word-break: break-all; 
    }

    /* Proportional typography scaling for narrow screens */
    .footer-branding-box h3 {
        font-size: 0.95rem;
    }

    .footer-links-box h4, 
    .footer-contact-box h4 {
        font-size: 0.85rem;
    }

    .footer-links-box ul li a,
    .footer-contact-box p {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    /* Keeps social media icons safe if they start running out of horizontal space */
    .footer-socials {
        display: flex;
        flex-wrap: wrap; 
        gap: 4px;
    }

    .social-round-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .footer-meta-bottom {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 768px) {
    .content-container-inner {
        padding: 0 16px;
    }

    .hero-editorial-left h1 {
        font-size: 2.2rem;
    }
    
    .slider-canvas {
        height: 320px; 
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width-card {
        grid-column: span 1;
    }
    
    .about-cta-action-holder {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .btn-luxury-outline, .theme-btn-payment {
        width: auto;
        flex: 1;
        min-width: 140px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 576px) {
    .banner-container-card {
        padding: 20px 16px;
        border-radius: 12px;
        gap: 24px;
    }

    /* FIXED: Changed to row so buttons layout side-by-side on small mobile frames */
    .about-cta-action-holder {
        display: flex;
        flex-direction: row;  
        flex-wrap: nowrap;     /* Prevents them from dropping down to a new line */
        align-items: center;
        justify-content: space-between;
        gap: 8px;              /* Tighter gap to cleanly fit inside mobile viewports */
        width: 100%;
    }
    

    /* FIXED: Reallocated width variables so buttons share horizontal row space evenly */
    .btn-luxury-outline, .theme-btn-payment {
        flex: 1;               /* Forces both buttons to match width exactly */
        width: 50%;
        max-width: 100%;       
        min-width: 0;          /* Removes desktop minimum constraints to stop text overflow */
        padding: 10px 8px;     /* Slight internal padding reduction to safeguard long strings */
        font-size: 0.8rem;     /* Slightly crisper text scaling for cleaner mobile layout alignment */
        gap: 4px;
    }

    .hero-editorial-left h1 {
        font-size: 1.85rem;
    }

    .hero-editorial-left p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slider-canvas {
        height: 340px; 
    }

    .floating-glass-stat {
        bottom: 12px;
        left: 12px;
        padding: 8px 14px;
        gap: 10px;
        border-radius: 8px;
    }

    .stat-icon-box {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .stat-meta h4 {
        font-size: 1.1rem;
    }

    .stat-meta p {
        font-size: 0.75rem;
    }

    .slider-navigation-dots {
        bottom: 12px;
        right: 15px;
        gap: 6px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .about-tab-headers {
        flex-direction: column;
    }

    .tab-header-btn {
        padding: 12px;
        border-bottom: 1px solid #edf2f7;
    }

    .tab-header-btn.active {
        border-bottom: none;
        border-left: 4px solid var(--accent-gold);
        background-color: rgba(0, 33, 102, 0.04);
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .footer-meta-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}