/* ============================================================
   School CMS - Main Stylesheet
   Color Palette:
   --primary:   #1a3c6e  (Deep Navy)
   --secondary: #2563eb  (Bright Blue)
   --accent:    #f59e0b  (Amber)
   --dark:      #0f172a
   --light:     #f8fafc
   ============================================================ */

:root {
    --primary: #1a3c6e;
    --secondary: #2563eb;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(26, 60, 110, 0.10);
    --radius: 8px;
    --transition: .25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #fff;
    line-height: 1.65;
    font-size: 15px;
}

a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ── Topbar ── */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    font-size: 13px;
    padding: 7px 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .vr { background: rgba(255,255,255,.3); }

/* ── Header ── */
.site-header {
    background: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-icon {
    width: 56px; height: 56px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 3px solid var(--accent);
    overflow: hidden;
}

/* When admin has uploaded a real logo, swap the default filled circle
   for a plain white padded frame so any logo shape/colors look clean */
.logo-icon-custom {
    background: #fff;
    border: 2px solid var(--border);
    padding: 4px;
}
.logo-icon-custom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.school-tagline {
    font-size: 12px;
    color: var(--gray);
    font-style: italic;
}

/* ── Main Navigation ── */
.main-nav .nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav .nav-list > li { position: relative; }

.main-nav .nav-list a {
    display: block;
    padding: 8px 14px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: var(--secondary);
    background: #eff6ff;
}

.main-nav .nav-list a.active {
    border-bottom: 2px solid var(--secondary);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Dropdown */
.has-dropdown .dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-radius: var(--radius);
    padding: 8px 0;
    z-index: 999;
    border-top: 3px solid var(--secondary);
}
.has-dropdown:hover .dropdown-menu-custom { display: block; }
.has-dropdown .dropdown-menu-custom a {
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 0;
}
.has-dropdown .dropdown-menu-custom a:hover { background: var(--light); }

/* ── Hero Slider ── */
.hero-slider .carousel-item { height: 480px; overflow: hidden; }
.hero-slider .carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.55);
}
.hero-slider .carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 580px;
}
.hero-slider .carousel-caption h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-slider .carousel-caption p { font-size: 16px; opacity: .9; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.2);
    top: 50%; transform: translateY(-50%);
    border-radius: 50%;
    opacity: 1;
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.5);
}
.hero-slider .carousel-indicators .active { background: var(--accent); }

/* Placeholder slider (no images) */
.slider-placeholder {
    height: 480px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.slider-placeholder::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.04'%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");
}
.slider-placeholder .caption { position: relative; z-index: 1; }

/* ── Section Titles ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.section-header h2 i { color: var(--secondary); }
.view-all { font-size: 13px; font-weight: 500; color: var(--secondary); white-space: nowrap; }

/* ── News Cards ── */
.news-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-thumb {
    width: 80px; height: 70px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb .thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    font-size: 20px;
}
.news-meta .date { font-size: 11px; color: var(--gray); }
.news-meta h3 { font-size: 14px; font-weight: 600; margin: 2px 0 4px; line-height: 1.35; }
.news-meta h3 a { color: var(--dark); }
.news-meta h3 a:hover { color: var(--secondary); }
.news-meta p { font-size: 12px; color: var(--gray); margin: 0; }

/* ── Notice List ── */
.notice-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }
.notice-icon {
    width: 32px; height: 32px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}
.notice-text h4 { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.notice-text h4 a { color: var(--dark); }
.notice-text h4 a:hover { color: var(--secondary); }
.notice-text small { font-size: 11px; color: var(--gray); }

/* ── Events ── */
.event-item {
    display: flex;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; }
.event-date-box {
    text-align: center;
    min-width: 54px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.event-date-box .day {
    background: var(--secondary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 4px 0;
    line-height: 1;
}
.event-date-box .month {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 0;
    text-transform: uppercase;
}
.event-info h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.event-info h4 a { color: var(--dark); }
.event-info h4 a:hover { color: var(--secondary); }
.event-info small { font-size: 11px; color: var(--gray); display: block; }
.event-info .location { color: var(--secondary); margin-top: 2px; }

/* ── Gallery Thumbnails ── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay {
    position: absolute; inset: 0;
    background: rgba(26,60,110,.5);
    opacity: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    transition: opacity .3s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-placeholder {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    display: flex; align-items: center; justify-content: center;
    color: var(--secondary); font-size: 24px;
    width: 100%; height: 100%;
}

/* ── Downloads ── */
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.download-item:last-child { border-bottom: none; }
.download-item .icon { color: #ef4444; font-size: 18px; flex-shrink: 0; }
.download-title { font-size: 14px; font-weight: 500; flex: 1; }
.download-size { font-size: 12px; color: var(--gray); }

/* ── Principal Message ── */
.principal-card { display: flex; gap: 16px; }
.principal-photo {
    width: 90px; height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--light);
}
.principal-photo img { width: 100%; height: 100%; object-fit: cover; }
.principal-photo .photo-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #dbeafe, var(--primary));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 36px;
}
.principal-msg p { font-size: 13.5px; color: #475569; font-style: italic; margin-bottom: 8px; }
.principal-msg strong { color: var(--primary); }

/* ── Home Sections ── */
.home-sections { padding: 48px 0; }
.section-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    height: 100%;
    border: 1px solid var(--border);
}

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    padding: 48px 0;
    color: #fff;
    text-align: center;
}
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 10px;
}
.breadcrumb { justify-content: center; }
.breadcrumb-item a { color: rgba(255,255,255,.8); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Buttons ── */
.btn-primary-custom {
    background: var(--secondary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: background var(--transition);
    display: inline-block;
}
.btn-primary-custom:hover { background: var(--primary); color: #fff; }

.btn-outline-custom {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    display: inline-block;
}
.btn-outline-custom:hover { background: var(--secondary); color: #fff; }

/* ── Stats Bar ── */
.stats-bar {
    background: var(--primary);
    padding: 28px 0;
    color: #fff;
}
.stat-item { text-align: center; }
.stat-item .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-item .label { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ── About Page ── */
.about-content { padding: 56px 0; }
.about-highlight {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    height: 100%;
}
.about-highlight i { font-size: 2.5rem; color: var(--accent); margin-bottom: 12px; }
.about-highlight h4 { font-size: 15px; margin-bottom: 6px; }
.about-highlight p { font-size: 13px; opacity: .85; margin: 0; }

/* ── Contact ── */
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.contact-icon {
    width: 44px; height: 44px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    flex-shrink: 0;
}
.contact-info-item h5 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.contact-info-item p { font-size: 14px; color: var(--gray); margin: 0; }

.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-label { font-size: 13px; font-weight: 600; color: #374151; }

/* ── Footer ── */
.site-footer { margin-top: 0; }
.footer-top {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 48px 0 32px;
}
.footer-logo { font-weight: 700; font-size: 17px; color: #fff; display: flex; align-items: center; }
.footer-logo-img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; flex-shrink: 0; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.65); }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    color: rgba(255,255,255,.85);
    margin-right: 8px;
    transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--secondary); color: #fff; }
.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 2px;
    background: var(--accent);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
    display: flex; gap: 12px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
}
.footer-contact i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
    background: #070e1a;
    padding: 14px 0;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}
.footer-bottom a { color: var(--accent); }

/* ── Alerts ── */
.alert { border-radius: var(--radius); font-size: 14px; }

/* ── Pagination ── */
.pagination .page-link {
    border-radius: var(--radius) !important;
    margin: 0 2px;
    color: var(--secondary);
    border-color: var(--border);
    font-size: 14px;
}
.pagination .page-item.active .page-link {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* ── Table ── */
.table-custom thead { background: var(--primary); color: #fff; }
.table-custom thead th { font-size: 13px; font-weight: 600; border: none; }
.table-custom tbody td { font-size: 14px; vertical-align: middle; }

/* ── Badge ── */
.badge-new {
    background: var(--accent);
    color: var(--dark);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
    vertical-align: middle;
}

/* ── Utilities ── */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.border-accent { border-left: 4px solid var(--accent) !important; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .main-nav .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
    .main-nav .nav-list a { padding: 10px 16px; }
    .has-dropdown .dropdown-menu-custom { position: static; box-shadow: none; border-left: 3px solid var(--secondary); margin-left: 16px; display: none; }
    .has-dropdown:hover .dropdown-menu-custom { display: none; }
    .has-dropdown.open .dropdown-menu-custom { display: block; }
    #mainNav { background: #fff; border-top: 1px solid var(--border); margin-top: 12px; }
}
@media (max-width: 767px) {
    .hero-slider .carousel-item { height: 320px; }
    .slider-placeholder { height: 320px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .principal-card { flex-direction: column; }
    .stat-item .number { font-size: 1.8rem; }
}
@media (max-width: 575px) {
    .section-card { padding: 16px; }
}

/* ── Language Switcher ── */
.lang-btn {
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all .2s;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang-btn.lang-active {
    color: var(--accent);
    font-weight: 700;
    background: rgba(245,158,11,.12);
}

/* ── Nepali Font Override ── */
:lang(ne), .np-font {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* ── Notice Image Box ── */
.notice-image-box {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f8fafc;
}

/* ── News Featured Image ── */
.news-featured-image {
    border-radius: 10px;
    overflow: hidden;
}

/* ── Slider responsive image ── */
.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.52);
}

/* ── Result Homepage Cards ── */
.result-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all .22s ease;
    gap: 8px;
}
.result-home-card:hover {
    border-color: var(--secondary);
    background: #eff6ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(37,99,235,.12);
}
.result-home-icon {
    font-size: 2.4rem;
    color: #dc2626;
    line-height: 1;
}
.result-home-info { flex: 1; }
.result-home-class {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    line-height: 1.3;
}
.result-home-exam {
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}
.result-home-btn {
    display: inline-block;
    padding: 5px 16px;
    background: var(--secondary);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
    margin-top: 4px;
}
.result-home-btn:hover { background: var(--primary); color: #fff; }
.result-home-soon {
    display: inline-block;
    padding: 5px 14px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Result page year-tabs header ── */
.result-year-tabs {
    background: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX — Shared styles (used on gallery.php & index.php)
══════════════════════════════════════════════════════════════ */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-box {
    position: relative;
    max-width: 920px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-close {
    position: absolute;
    top: -16px; right: -16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    transition: background .2s, transform .2s;
}
.lb-close:hover { background: #ef4444; color: #fff; transform: scale(1.1); }
.lb-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    z-index: 10;
}
.lb-nav:hover { background: rgba(255,255,255,.35); }
.lb-prev { left: -64px; }
.lb-next { right: -64px; }
.lb-img-wrap {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}
.lb-image {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
.lb-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.4);
}
.lb-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lb-caption {
    width: 100%; padding: 12px 16px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.lb-title   { font-size: 15px; font-weight: 700; color: #fff; }
.lb-cat     { font-size: 12px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); padding: 3px 10px; border-radius: 20px; }
.lb-counter { font-size: 12px; color: rgba(255,255,255,.5); white-space: nowrap; }
.lb-strip {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 8px 0 4px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.lb-strip-thumb {
    width: 52px; height: 52px;
    flex-shrink: 0; border-radius: 6px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent;
    opacity: .55; transition: all .2s;
    background: #1e293b;
}
.lb-strip-thumb img { width:100%; height:100%; object-fit:cover; }
.lb-strip-thumb.active { border-color: var(--secondary); opacity: 1; transform: scale(1.06); }
.lb-strip-thumb:hover  { opacity: .85; }

@media (max-width: 900px) {
    .lb-prev { left: -8px; } .lb-next { right: -8px; }
    .lb-close { top: -10px; right: -4px; }
}
@media (max-width: 600px) {
    .lb-image { max-height: 55vh; }
    .lb-nav { width: 36px; height: 36px; font-size: 14px; }
    .lb-prev { left: 0; } .lb-next { right: 0; }
    .lb-strip-thumb { width: 40px; height: 40px; }
}

/* ══════════════════════════════════════════════════════════
   HOME PAGE — Gallery Album Preview Grid
══════════════════════════════════════════════════════════════ */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.home-gal-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f1f5f9;
    border: 2px solid #fff;
    transition: all .22s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: block;
    text-decoration: none;
}
.home-gal-item:hover {
    transform: scale(1.03);
    border-color: var(--secondary);
    box-shadow: 0 4px 14px rgba(37,99,235,.2);
    z-index: 1;
}
.home-gal-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.home-gal-item:hover img { transform: scale(1.08); }
.home-gal-item .overlay {
    position: absolute; inset: 0;
    background: rgba(26,60,110,.5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    opacity: 0;
    transition: opacity .25s;
}
.home-gal-item:hover .overlay { opacity: 1; }
.home-gal-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 16px 8px 6px;
    opacity: 0;
    transition: opacity .25s;
    line-height: 1.2;
}
.home-gal-item:hover .home-gal-title { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   FOOTER — School Officials
══════════════════════════════════════════════════════════════ */
.footer-officials {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-official-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-official-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.footer-official-photo {
    width: 48px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.1);
}
.footer-official-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.footer-official-photo-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: 20px;
}
.footer-official-info { flex: 1; min-width: 0; }
.footer-official-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.footer-official-desig {
    font-size: 11.5px;
    color: var(--accent);
    font-weight: 600;
    margin: 2px 0 6px;
}
.footer-official-contact {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
}
.footer-official-contact i { color: rgba(255,255,255,.4); margin-right: 4px; width: 12px; }
.footer-officials-more {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}
.footer-officials-more:hover { color: #fff; }

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — Scrolling Notice Ticker (replaces stat slots)
══════════════════════════════════════════════════════════════ */
.notice-ticker {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
}
.notice-ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    padding: 0 14px;
    height: 100%;
    flex-shrink: 0;
    white-space: nowrap;
}
.notice-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.notice-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: noticeTickerScroll 30s linear infinite;
    padding-left: 100%;
}
.notice-ticker:hover .notice-ticker-track { animation-play-state: paused; }
.notice-ticker-item {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 0 24px;
    transition: color .2s;
}
.notice-ticker-item:hover { color: var(--accent); text-decoration: underline; }
.notice-ticker-item i { font-size: 22px; color: var(--accent); margin-right: 2px; }
@keyframes noticeTickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
    .notice-ticker { margin: 10px 0; }
    .notice-ticker-item { font-size: 12px; padding: 0 16px; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER — SMC/PTA Committee Badge
══════════════════════════════════════════════════════════════ */
.footer-committee-badge {
    display: inline-block;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}
