/*
Theme Name: Himalayan Crown Academy
Theme URI: https://himalayancrown.edu.np
Author: HCA Developer
Description: Plugin-free theme for Himalayan Crown Academy, Charikot, Dolakha.
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: hca
Tags: one-column, custom-logo, custom-menu, featured-images
*/

:root {
    --primary: #D2691E;
    --primary-dark: #B55A18;
    --secondary: #8B1A1A;
    --secondary-dark: #6B1010;
    --accent: #C8962E;
    --accent-light: #E0B44E;
    --pink: #D4728C;
    --bg: #FAFAF7;
    --bg-warm: #F5F0E8;
    --card: #FFFFFF;
    --text: #2D2A26;
    --text-light: #6B6560;
    --border: #E8E3DA;
    --shadow-sm: 0 1px 8px rgba(45, 42, 38, 0.05);
    --shadow: 0 2px 16px rgba(45, 42, 38, 0.05);
    --shadow-md: 0 4px 24px rgba(45, 42, 38, 0.05);
    --shadow-lg: 0 8px 40px rgba(45, 42, 38, 0.05);
    --radius: 15px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

p {
    margin-bottom: 2rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.top-bar {
    background: var(--secondary);
    color: #F0E8E0;
    font-size: 14px;
    padding: 7px 0;
    letter-spacing: 0.02em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.top-bar-left {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 14px;
}

.top-bar-left span i {
    color: var(--accent-light);
    font-size: 12px;
    flex-shrink: 0;
}

.top-bar-right {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.top-bar-right a {
    color: #F0E8E0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    font-size: 12px;
}

.top-bar-right a:hover {
    background: var(--primary);
}

@media (max-width: 900px) {
    .top-bar-left {
        gap: 16px;
    }

    .top-bar-left span {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        padding: 8px 16px;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 3px;
        align-items: center;
        width: 100%;
    }

    .top-bar-left span {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 2px 0;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
        padding-top: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

.navbar {
    background: var(--card);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo: handles both custom logo uploads and default fallback image */
.nav-brand img,
.nav-brand .custom-logo-link img,
.nav-brand .site-logo,
.custom-logo {
    height: 52px !important;
    width: 52px !important;
    max-width: 52px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid var(--accent) !important;
    display: block !important;
}

/* custom-logo-link wraps img — make it inline-flex so it doesn't stretch */
.nav-brand .custom-logo-link,
a.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.nav-brand-text h1 {
    font-size: 15px;
    color: var(--secondary);
    line-height: 1.2;
}

.nav-brand-text span {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 22px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1;
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--primary);
    background: rgba(210, 105, 30, 0.04);
}

.nav-menu>li>a .fa-chevron-down {
    font-size: 9px;
    transition: transform 0.2s;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.25s ease;
    z-index: 100;
}

.nav-menu>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu>li:hover>a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 11px 18px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #f3f0eb;
    transition: all 0.15s;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background: var(--bg-warm);
    color: var(--primary);
    padding-left: 22px;
}

.nav-calendar-highlight>a {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--radius);
    padding: 9px 18px !important;
    margin: 12px 4px 12px 8px;
    transition: background 0.2s, transform 0.2s;
}

.nav-calendar-highlight>a:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-calendar-highlight>a .fa-chevron-down {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--secondary);
    cursor: pointer;
    padding: 6px;
}

.hero {
    display: flex;
    height: calc(100vh - 98px);
    max-height: 370px;
    min-height: 250px;
    background: #1a1a1a;
    overflow: hidden;
}

.hero-carousel {
    flex: 0 0 80%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.72) 0%, rgba(45, 42, 38, 0.35) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 44px;
}

.carousel-overlay h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-overlay p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 500px;
    margin-bottom: 0;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 44px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--accent-light);
}

.carousel-arrows {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.carousel-arrows button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-arrows button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-notice {
    flex: 0 0 20%;
    background: var(--card);
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--primary);
}

.notice-header {
    background: var(--primary);
    color: #fff;
    padding: 11px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}

.notice-list {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.notice-scroll {
    animation: noticeScroll 22s linear infinite;
}

.notice-scroll:hover {
    animation-play-state: paused;
}

@keyframes noticeScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.notice-item {
    padding: 10px 14px;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    line-height: 1.5;
    cursor: default;
    transition: background 0.2s;
}

.notice-item:hover {
    background: var(--bg-warm);
}

.notice-item .notice-date {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-warm);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 0;
}

.section-header .header-line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 14px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 26px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.intro-section {
    padding: 100px 0;
}

.intro-grid {
    display: flex;
    gap: 48px;
    align-items: center;
}

.intro-photo {
    flex: 0 0 44%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.intro-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.intro-photo .photo-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--secondary);
    color: #fff;
    padding: 7px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
}

.intro-content {
    flex: 1;
}

.intro-content h2 {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 6px;
}

.intro-content .subtitle {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
}

.intro-content p {
    color: var(--text-light);
    font-size: 16px;
    text-align: justify;
}

.voices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.voice-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 44px 36px 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.voice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.voice-card .voice-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 22px;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 18px rgba(210, 105, 30, 0.18);
}

.voice-card .voice-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.voice-card .voice-quote-icon {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 30px;
    color: var(--primary);
    opacity: 0.18;
}

.voice-card h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.voice-card .voice-role {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 20px;
}

.voice-card .voice-text {
    font-size: 15.5px;
    color: var(--text-light);
    line-height: 1.75;
    font-style: italic;
    position: relative;
}

.voice-card .voice-text::before {
    content: '\201C';
    font-family: 'Montserrat', serif;
    font-size: 52px;
    color: var(--primary);
    opacity: 0.13;
    position: absolute;
    top: -20px;
    left: -8px;
    line-height: 1;
}

@media (max-width: 640px) {
    .voices-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .voice-card {
        padding: 36px 26px 30px;
    }

    .voice-card .voice-photo {
        width: 120px;
        height: 120px;
    }
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.facility-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.facility-card .card-img-wrap {
    overflow: hidden;
}

.facility-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s;
    border-radius: 0;
}

.facility-card:hover img {
    transform: scale(1.05);
}

.facility-card .card-body {
    padding: 16px 18px;
}

.facility-card .card-body h3 {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.facility-card .card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 0;
}

.facility-card .card-body .read-more {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.hca-system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hca-panel {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hca-panel h3 {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hca-panel h3 i {
    color: var(--primary);
    font-size: 18px;
}

.hca-panel ul li {
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid #f3f0eb;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hca-panel ul li:last-child {
    border-bottom: none;
}

.hca-panel ul li i {
    color: var(--accent);
    margin-top: 5px;
    flex-shrink: 0;
    font-size: 11px;
}

.cocurricular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.cocurricular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-warm);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.25s;
}

.cocurricular-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.cocurricular-item i {
    color: var(--primary);
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.cocurricular-item:hover i {
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 0;
}

.news-card .news-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card .news-body h3 {
    font-size: 17px;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-card .news-body p {
    font-size: 14px;
    color: var(--text-light);
    flex: 1;
    line-height: 1.6;
}

.news-card .news-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}

.news-card:hover .news-link {
    gap: 9px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 135px;
    gap: 11px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(139, 26, 26, 0);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(139, 26, 26, 0.25);
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(5) {
    grid-column: span 2;
}

.footer {
    background: var(--secondary-dark);
    color: #D5CFC8;
}

.footer-main {
    padding: 60px 0 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-about .footer-logo img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.footer-about .footer-logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links li a {
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-links li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-links li a i {
    font-size: 8px;
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--accent-light);
    margin-top: 4px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #8A827A;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--card);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-box .modal-body {
    padding: 30px;
}

.modal-box .modal-body h2 {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.modal-box .modal-body p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--secondary);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--card);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px 0;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
}

.mobile-nav-backdrop.open {
    display: block;
}

.mobile-nav .mob-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.mobile-nav .mob-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.mobile-nav .mob-brand span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.mobile-nav>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #f3f0eb;
}

.mobile-nav>a:hover {
    color: var(--primary);
    background: var(--bg-warm);
}

.mobile-nav .mob-sub {
    display: none;
}

.mobile-nav .mob-sub.open {
    display: block;
}

.mobile-nav .mob-sub a {
    padding-left: 36px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mob-calendar-highlight {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 8px;
    margin: 8px 16px !important;
    padding: 12px 18px !important;
    text-align: center;
    justify-content: center !important;
}

.mobile-nav .mob-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
}

.single-content {
    padding: 100px 0;
}

.single-content .container {
    max-width: 880px;
}

.single-content .section-header {
    margin-bottom: 36px;
}

.single-content .featured-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}

.single-content .entry {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

.single-content .entry p {
    margin-bottom: 2rem;
}

.single-content .entry h2 {
    font-size: 24px;
    margin: 2.5rem 0 1rem;
    color: var(--secondary);
}

.single-content .entry h3 {
    font-size: 20px;
    margin: 2rem 0 0.8rem;
    color: var(--secondary);
}

.single-content .back-link {
    margin-top: 40px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.staff-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.staff-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 0;
}

.staff-card .staff-info {
    padding: 16px;
}

.staff-card .staff-info h3 {
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 3px;
}

.staff-card .staff-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.club-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}

.club-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.club-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 0;
}

.club-card .club-info {
    padding: 18px;
}

.club-card .club-info h3 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.club-card .club-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .hero {
        flex-direction: column;
        height: auto;
        max-height: none;
        min-height: auto;
    }

    .hero-carousel {
        flex: none;
        height: 250px;
    }

    .hero-notice {
        flex: none;
        max-height: 190px;
    }

    .carousel-overlay {
        padding: 20px 24px;
    }

    .carousel-overlay h2 {
        font-size: 22px;
    }

    .carousel-overlay p {
        font-size: 14px;
    }

    .intro-grid {
        flex-direction: column;
    }

    .intro-photo {
        flex: none;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hca-system-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 115px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item:nth-child(5) {
        grid-column: span 1;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .club-grid {
        grid-template-columns: 1fr;
    }

    .single-content {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 100px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

    .cocurricular-grid {
        grid-template-columns: 1fr;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   STAFF HIERARCHY — Cards & Grids
   ============================================================ */

/* Group header */
.staff-group {
    margin-bottom: 60px;
}

.staff-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.staff-group-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.staff-group-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    border-radius: 2px;
}

.staff-group-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

/* Grid layouts */
.staff-leaders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.staff-vp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.staff-teachers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.staff-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Universal staff card v2 */
.hca-staff-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 18px 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.hca-staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hca-staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Photo with frame — rectangular portrait */
.hca-staff-photo {
    width: 120px;
    height: 150px;
    border-radius: 10px;
    margin: 0 auto 16px;
    position: relative;
}

.hca-staff-photo::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: 0;
}

.hca-staff-photo::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: var(--card);
    z-index: 1;
}

.hca-staff-photo img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    border: none;
    display: block;
}

/* Name — uniform size for all card types */
.hca-staff-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
    line-height: 1.3;
}

/* Designation badge */
.hca-staff-designation {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hca-staff-card.teacher .hca-staff-designation,
.hca-staff-card.admin .hca-staff-designation {
    font-size: 10px;
    padding: 3px 10px;
}

/* Contact row */
.hca-staff-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.4;
}

.hca-staff-contact i {
    color: var(--primary);
    font-size: 10px;
    flex-shrink: 0;
}

.hca-staff-contact a {
    color: var(--text-light);
    transition: color 0.2s;
    word-break: break-all;
}

.hca-staff-contact a:hover {
    color: var(--primary);
}

/* Empty staff state */
.staff-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.staff-empty i {
    font-size: 48px;
    color: var(--border);
    display: block;
    margin-bottom: 16px;
}

/* Responsive staff grids */
@media (max-width: 1100px) {
    .staff-teachers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .staff-leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .staff-vp-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    .staff-teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .staff-admin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .staff-leaders-grid,
    .staff-vp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .staff-teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .staff-admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hca-staff-card.leader .hca-staff-photo {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 400px) {
    .staff-leaders-grid,
    .staff-vp-grid,
    .staff-teachers-grid,
    .staff-admin-grid {
        grid-template-columns: 1fr;
    }
}