/* ── Hero ── */
.hero {
    position: relative;
    min-height: 92vh;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 40%, #C45E00 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,179,71,0.2);
    color: #FFB347;
    border: 1px solid rgba(255,179,71,0.4);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 36px;
}
.hero-buttons .btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.6);
    color: white;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
}

/* ── Stats Bar ── */
.stats-bar {
    background: var(--primary);
    padding: 0;
}
.stat-item {
    padding: 24px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Section Padding ── */
.section-pad { padding: 80px 0; }
.bg-alt { background: #F5EDE3; }

/* ── About ── */
.about-img-wrap {
    border-radius: 16px;
    overflow: visible;
}
.about-img-placeholder {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    height: 380px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255,255,255,0.2);
}

/* ── About collage ── */
.about-collage {
    position: relative;
    display: flex;
    gap: 12px;
    height: 400px;
}
.collage-main {
    flex: 1.5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.collage-main:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}
.collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.collage-main:hover img { transform: scale(1.06); }

.collage-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.collage-side-item {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.collage-side-full { flex: 1 !important; }
.collage-side-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}
.collage-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.collage-side-item:hover img { transform: scale(1.07); }

.collage-solo {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.collage-solo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.collage-solo:hover img { transform: scale(1.04); }

.collage-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(255,255,255,0.95);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

@media (max-width: 576px) {
    .about-collage { height: 260px; gap: 8px; }
    .collage-main, .collage-side-item { border-radius: 10px; }
}
.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 0;
}
.body-text {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.about-list {
    list-style: none;
    padding: 0;
}
.about-list li {
    font-size: 15px;
    color: #444;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-list li i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Class Cards ── */
.class-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    padding: 32px 20px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.class-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
}
.class-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.class-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.class-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 8px;
}
.class-arrow {
    margin-top: 12px;
    color: var(--primary);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s;
}
.class-card:hover .class-arrow { opacity: 1; }

/* ── News Cards ── */
.news-card {
    border-radius: 12px !important;
    overflow: hidden;
}
.news-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}
.news-badge {
    display: inline-block;
    background: #FFF0E6;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-top: 8px;
}
.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 8px;
}
.news-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    transition: gap 0.2s;
}
.news-link:hover { gap: 10px; color: var(--primary-dark); }

/* ── Club Pills ── */
.club-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px 12px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    gap: 8px;
}
.club-pill i {
    font-size: 24px;
    color: var(--primary);
}
.club-pill span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}
.club-pill:hover {
    background: var(--primary);
    transform: translateY(-4px);
}
.club-pill:hover i,
.club-pill:hover span { color: white; }

/* ── Notice Board ── */
.notice-board {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}
.notice-item:last-child { border-bottom: none; }
.notice-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.notice-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}
.notice-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Quick Links ── */
.quick-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    border-left: 4px solid var(--primary);
}
.quick-link-card i {
    font-size: 22px;
    color: var(--primary);
}
.quick-link-card span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}
.quick-link-card:hover {
    background: var(--primary);
    transform: translateX(4px);
}
.quick-link-card:hover i,
.quick-link-card:hover span { color: white; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { min-height: 100vh; }
    .section-pad { padding: 50px 0; }
    .hero-buttons .btn { 
        display: block; 
        width: 100%; 
        margin-bottom: 12px;
    }
    .hero-buttons .me-3 { margin-right: 0 !important; }
}
/* ── School at a Glance ── */
.school-glance-section {
    background: var(--bg-light);
    overflow: hidden;
}

/* Auto-scrolling strip */
.photo-strip-outer {
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    background: rgba(0,0,0,0.03);
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}
.photo-strip-inner {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: strip-scroll 40s linear infinite;
}
.photo-strip-inner:hover { animation-play-state: paused; }
.strip-photo {
    width: 260px;
    height: 165px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.strip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.strip-photo:hover img { transform: scale(1.07); }

@keyframes strip-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Masonry photo grid */
.photo-grid {
    columns: 4;
    column-gap: 14px;
}
.photo-grid-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease calc(var(--i) * 0.07s),
                transform 0.6s ease calc(var(--i) * 0.07s),
                box-shadow 0.3s ease;
}
.photo-grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.photo-grid-item:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.20);
    transform: translateY(-4px) scale(1.01);
}
.photo-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.photo-grid-item:hover img { transform: scale(1.06); }
.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(196, 94, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}
.photo-overlay i {
    color: white;
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.photo-grid-item:hover .photo-overlay { opacity: 1; }

/* Lightbox overlay */
.photo-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: lb-fade 0.25s ease;
}
.photo-lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-img-wrap {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
}
.lb-img-wrap img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
}
.lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: none;
}
.lb-close:hover { background: var(--primary); }
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.lb-nav:hover { background: var(--primary); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

@media (max-width: 768px) {
    .photo-grid { columns: 2; }
    .strip-photo { width: 180px; height: 115px; }
}
@media (max-width: 480px) {
    .photo-grid { columns: 2; }
}
