/* ==========================================================================
   ENARAA HIGH SCHOOL — INNER PAGE COMPONENTS & MOBILE-FIRST RESPONSIVE CSS
   ========================================================================== */

/* Inner Page Detail Layouts (Articles, Events, Founders, Wings) */
.detail-layout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 42px;
    align-items: start;
}

.article-content-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.article-hero-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-maroon);
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.article-prose p {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1.32rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-maroon-soft);
}

.sidebar-list {
    display: grid;
    gap: 14px;
}

.sidebar-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.sidebar-item-link:hover {
    background: var(--color-bg-alt);
}

.sidebar-item-link img {
    width: 64px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-item-link strong {
    display: block;
    font-size: 0.88rem;
    color: var(--color-navy-dark);
    line-height: 1.3;
}

.sidebar-item-link span {
    font-size: 0.76rem;
    color: var(--color-text-muted);
}

/* Founders & Faculty Cards */
.founder-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.founder-img-wrap {
    height: 290px;
    background: var(--color-navy-soft);
    overflow: hidden;
}

.founder-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.founder-body {
    padding: 26px;
    flex: 1;
}

.founder-role {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Wing Methodology Alternating Blocks */
.wing-step-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
    align-items: start;
    transition: all var(--transition);
}

.wing-step-row:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(127, 6, 54, 0.25);
}

.wing-step-badge {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-maroon), var(--color-navy));
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enrollment Steps */
.enroll-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 44px;
}

.enroll-step-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.enroll-step-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-maroon);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Large Laptops & Desktops (<= 1200px) */
@media (max-width: 1200px) {
    .brand-name {
        font-size: 1.35rem;
    }
    .nav-link {
        padding: 9px 9px;
        font-size: 0.85rem;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card:nth-child(2) {
        border-right: none;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .hide-lg {
        display: none !important;
    }

    /* Mobile / Tablet Drawer Navigation */
    .mobile-menu-toggle {
        display: inline-flex;
        z-index: 1201;
    }

    body.nav-open .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.nav-open .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(7, 25, 56, 0.65);
        backdrop-filter: blur(4px);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    body.nav-open .mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(360px, 88vw);
        height: 100vh;
        background: #ffffff;
        z-index: 1200;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 88px 24px 36px;
        overflow-y: auto;
        box-shadow: -12px 0 36px rgba(0, 0, 0, 0.2);
        transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.nav-open .main-nav {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .nav-item {
        flex-wrap: wrap;
        justify-content: space-between;
        border-bottom: 1px solid var(--color-border-light);
    }

    .nav-link {
        flex: 1;
        padding: 13px 12px;
        font-size: 0.98rem;
    }

    .dropdown-chevron {
        display: none;
    }

    .dropdown-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        color: var(--color-navy-dark);
        border-radius: var(--radius-sm);
    }

    .nav-item.open > .dropdown-toggle-btn svg {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: var(--color-bg-alt);
        padding: 6px 10px;
        margin-bottom: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item.open > .dropdown-menu {
        display: block;
    }

    .nav-cta-group {
        margin-top: 20px;
        width: 100%;
    }

    .btn-nav-cta {
        width: 100%;
        padding: 14px;
    }

    /* Grids adjustments */
    .hero-content-grid,
    .split-grid,
    .split-grid.reverse,
    .vm-split-grid,
    .principal-highlight-card,
    .program-tab-pane.active,
    .featured-courses-split,
    .contact-layout-grid,
    .detail-layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cards-grid-3,
    .cards-grid-4,
    .rise-grid,
    .enroll-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leader-portrait-wrap {
        max-width: 360px;
        margin: 0 auto;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Devices & Portrait Tablets (<= 768px) */
@media (max-width: 768px) {
    .hide-md {
        display: none !important;
    }

    .section {
        padding: 64px 0;
    }

    .header-inner {
        min-height: 74px;
    }

    .brand-crest {
        width: 48px;
        height: 49px;
    }

    .brand-name {
        font-size: 1.22rem;
    }

    .brand-recognition {
        display: none;
    }

    .hero-section,
    .hero-slides-wrapper {
        min-height: 540px;
    }

    .hero-slide {
        padding: 56px 0 110px;
    }

    .stats-strip-section {
        margin-top: 24px;
    }

    .stats-grid,
    .cards-grid-3,
    .cards-grid-2,
    .cards-grid-4,
    .rise-grid,
    .leadership-duo-grid,
    .course-cards-stack,
    .check-feature-list,
    .meta-info-grid,
    .form-grid-2,
    .enroll-steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
        padding-right: 0;
        padding-bottom: 16px;
    }
    .stat-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-collage {
        padding-right: 0;
        padding-bottom: 0;
    }

    .media-main-img {
        height: 300px;
    }

    .media-sub-img {
        position: static;
        width: 100%;
        height: 220px;
        margin-top: 16px;
        border: none;
    }

    .experience-badge {
        left: 14px;
        top: 14px;
    }

    .principal-highlight-card,
    .program-tab-pane,
    .form-card,
    .article-content-card {
        padding: 24px 20px;
    }

    .wing-step-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
    .hide-sm {
        display: none !important;
    }

    .container {
        padding: 0 16px;
    }

    .top-utility-inner {
        justify-content: center;
    }

    .hero-actions,
    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn,
    .cta-banner-actions .btn {
        width: 100%;
    }

    .partners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }
}
