/* =====================================================
   HILAL PUBLIC SECONDARY SCHOOL — Main Stylesheet
   Redesigned: Better colors, offcanvas nav, mobile footer
   ===================================================== */

/* ── CSS Variables ─────────────────────────────────── */
:root {
    --primary:        #1b6b35;
    --primary-light:  #28a048;
    --primary-dark:   #0d3d1c;
    --primary-soft:   #e8f5ec;
    --secondary:      #b5281f;
    --secondary-light:#d63a30;
    --accent:         #e8980a;
    --accent-light:   #ffc53d;
    --dark:           #12202e;
    --dark-soft:      #1e3048;
    --light:          #f5f7f6;
    --white:          #ffffff;
    --text-dark:      #1a2e1e;
    --text-body:      #374540;
    --text-muted:     #6b7c72;
    --border:         #dde8e1;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.07);
    --shadow:         0 4px 20px rgba(0,0,0,0.10);
    --shadow-md:      0 6px 28px rgba(0,0,0,0.12);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.16);
    --transition:     all 0.28s ease;
    --radius:         10px;
    --radius-lg:      16px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Prevent horizontal scroll */
html { overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ── Top Bar ────────────────────────────────────────── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 6px 0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container > div {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
}
.top-bar .container > div > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px;
    overflow: hidden;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--accent-light); }

/* Top bar items — icon + optional text */
.top-bar-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255,255,255,0.8) !important;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.top-bar-item:hover {
    background: rgba(255,255,255,0.18);
    color: var(--accent-light) !important;
}
.top-bar .social-links a {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%; font-size: 11px; margin-left: 4px;
    transition: var(--transition);
}
.top-bar .social-links a:hover { background: var(--accent); color: var(--dark); }
.top-admin-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 3px 12px; border-radius: 20px;
    font-size: 11.5px; color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.top-admin-btn:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }

/* ── Main Navbar ────────────────────────────────────── */
.main-navbar {
    background: var(--white) !important;
    padding: 0;
    box-shadow: 0 2px 16px rgba(27,107,53,0.10);
    border-bottom: 3px solid var(--primary);
    z-index: 1030;
}
.school-logo { width: 52px; height: 52px; object-fit: contain; }
.school-name {
    font-size: 16px; font-weight: 800;
    color: var(--primary); line-height: 1.2; display: block;
}
.school-sub {
    font-size: 11px; color: var(--secondary);
    display: block; font-weight: 500;
}
.navbar-brand { padding: 10px 0; }

/* Desktop nav links */
.main-navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600; font-size: 15px;
    padding: 10px 11px !important;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}
.main-navbar .nav-link::after {
    content: ''; position: absolute;
    bottom: 4px; left: 50%; right: 50%;
    height: 2px; background: var(--primary);
    border-radius: 2px; transition: var(--transition);
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { left: 11px; right: 11px; }
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-soft);
}
.main-navbar .nav-contact {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 20px;
    padding: 7px 18px !important;
}
.main-navbar .nav-contact:hover { background: var(--primary-dark); }
.main-navbar .nav-contact::after { display: none; }

/* Dropdown */
.main-navbar .dropdown-menu {
    border: none; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary);
    padding: 6px;
    min-width: 180px;
}
.main-navbar .dropdown-item {
    font-size: 15px; padding: 8px 14px;
    border-radius: 6px; color: var(--text-dark);
    transition: var(--transition);
}
.main-navbar .dropdown-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ── Hamburger Button ──────────────────────────────── */
.navbar-toggler-custom {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px;
    background: var(--primary-soft);
    border: none; border-radius: 8px; cursor: pointer;
    padding: 8px; transition: var(--transition);
}
.navbar-toggler-custom:hover { background: var(--primary); }
.navbar-toggler-custom span {
    display: block; width: 22px; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: var(--transition);
}
.navbar-toggler-custom:hover span { background: var(--white); }

/* ── Offcanvas Mobile Nav ───────────────────────────── */
.mobile-nav {
    width: 300px !important;
    border: none !important;
}
.mobile-nav-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 18px 20px;
    border-bottom: none;
}
.mobile-nav-close {
    background: rgba(255,255,255,0.12); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    color: white; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); flex-shrink: 0;
}
.mobile-nav-close:hover { background: var(--secondary); }
.mobile-nav-body { padding: 0; display: flex; flex-direction: column; }

.mobile-nav-list { padding: 10px 0; flex: 1; }
.mobile-nav-divider {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted); padding: 12px 20px 4px;
}
.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: var(--text-dark);
    font-size: 14px; font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.mobile-nav-link i {
    width: 18px; text-align: center;
    color: var(--primary); font-size: 14px; flex-shrink: 0;
}
.mobile-nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-left-color: var(--primary);
}
.mobile-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    border-left-color: var(--primary);
}
.mobile-nav-footer {
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    background: var(--light);
    display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav-action {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; border-radius: 8px;
    background: white; font-size: 13px;
    color: var(--text-body); border: 1px solid var(--border);
    transition: var(--transition);
}
.mobile-nav-action i { color: var(--primary); width: 16px; text-align: center; }
.mobile-nav-action:hover { background: var(--primary-soft); color: var(--primary); }
.mobile-nav-action.admin-action {
    background: var(--primary); color: white;
    border-color: var(--primary); justify-content: center;
}
.mobile-nav-action.admin-action i { color: white; }
.mobile-nav-action.admin-action:hover { background: var(--primary-dark); }

/* Offcanvas backdrop */
.offcanvas-backdrop { background: rgba(12,30,20,0.6); }

/* ── Hero Slider ────────────────────────────────────── */
.hero-slider .carousel-item {
    height: 540px; background: var(--dark); position: relative;
}
.hero-slider .carousel-item img {
    width: 100%; height: 100%; object-fit: cover; opacity: 1;
}
.hero-slider .carousel-caption {
    bottom: 50%; transform: translateY(50%);
    text-align: left; left: 8%; right: 8%;
}
.hero-slider .carousel-caption h1 {
    font-size: 44px; font-weight: 800; color: var(--white);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5); margin-bottom: 14px;
    line-height: 1.2;
}
.hero-slider .carousel-caption p {
    font-size: 17px; color: rgba(255,255,255,0.88);
    margin-bottom: 28px; max-width: 520px;
}
.hero-slider .carousel-indicators button {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.5); border: none; margin: 0 4px;
    transition: var(--transition);
}
.hero-slider .carousel-indicators button.active {
    background: var(--accent-light); transform: scale(1.3);
}

/* ── Sections ───────────────────────────────────────── */
section { padding: 72px 0; }

.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 {
    font-size: 34px; font-weight: 800; color: var(--primary);
    margin-bottom: 12px; position: relative; display: inline-block;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -10px;
    left: 50%; transform: translateX(-50%);
    width: 52px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
}
.section-title p {
    color: var(--text-muted); font-size: 15.5px;
    margin-top: 18px; max-width: 580px;
    margin-left: auto; margin-right: auto;
}

/* ── Quick Links ────────────────────────────────────── */
.quick-links {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 28px 0;
}
.quick-link-card {
    text-align: center; padding: 20px 12px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: var(--white); transition: var(--transition); cursor: pointer;
    border: 1px solid rgba(255,255,255,0.12);
}
.quick-link-card:hover {
    background: var(--accent); color: var(--dark);
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.quick-link-card i { font-size: 30px; margin-bottom: 10px; display: block; }
.quick-link-card span { font-size: 13.5px; font-weight: 600; }

/* ── Stats ──────────────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 52px 0;
}
.stat-item { text-align: center; }
.stat-number { font-size: 50px; font-weight: 800; color: var(--accent-light); line-height: 1; }
.stat-label { font-size: 14.5px; color: rgba(255,255,255,0.82); margin-top: 8px; }

/* ── Cards ──────────────────────────────────────────── */
.card {
    border: none; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); padding: 13px 20px;
    font-weight: 600; font-size: 15px;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ── Notices ────────────────────────────────────────── */
.notice-item {
    display: flex; align-items: flex-start;
    padding: 13px 0; border-bottom: 1px dashed var(--border); gap: 12px;
}
.notice-item:last-child { border-bottom: none; }
.notice-badge {
    font-size: 10px; padding: 3px 9px; border-radius: 20px;
    white-space: nowrap; font-weight: 700; flex-shrink: 0; text-transform: uppercase;
}
.notice-badge.general { background: var(--primary); color: white; }
.notice-badge.exam    { background: var(--secondary); color: white; }
.notice-badge.holiday { background: var(--accent); color: var(--dark); }
.notice-badge.urgent  { background: #d63a30; color: white; animation: pulse 1.5s infinite; }
.notice-badge.admission { background: #7c3aed; color: white; }
.notice-badge.event   { background: #0284c7; color: white; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

.notice-title { font-size: 14px; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.notice-date  { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── Buttons ────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--primary); color: var(--white);
    border: 2px solid var(--primary); padding: 10px 28px;
    border-radius: 25px; font-weight: 600; font-size: 14px;
    transition: var(--transition); display: inline-block;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: var(--white); border-color: var(--primary-dark); }

.btn-secondary-custom {
    background: var(--secondary); color: var(--white);
    border: 2px solid var(--secondary); padding: 10px 28px;
    border-radius: 25px; font-weight: 600; font-size: 14px;
    transition: var(--transition); display: inline-block;
}
.btn-secondary-custom:hover { background: transparent; color: var(--secondary); }

.btn-accent-custom {
    background: var(--accent); color: var(--dark);
    border: 2px solid var(--accent); padding: 10px 28px;
    border-radius: 25px; font-weight: 700; font-size: 14px;
    transition: var(--transition); display: inline-block;
}
.btn-accent-custom:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* ── Teacher Cards ──────────────────────────────────── */
.teacher-card {
    text-align: center; padding: 28px 18px;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: var(--transition); background: var(--white);
    border: 1px solid var(--border);
}
.teacher-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--primary); }
.teacher-card img {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary); margin-bottom: 14px;
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.teacher-card h5 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.teacher-card .designation { font-size: 13px; color: var(--primary); font-weight: 600; }
.teacher-card .subject { font-size: 12.5px; color: var(--text-muted); }

/* ── Teachers — mobile horizontal scroll ───────────── */
@media (max-width: 767px) {
    .teachers-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
        padding-bottom: 8px;
    }
    .teachers-scroll-wrap::-webkit-scrollbar { display: none; } /* Chrome/Safari */
    .teachers-scroll-row { flex-wrap: nowrap !important; }
    .teachers-scroll-col {
        width: 160px !important;
        min-width: 160px !important;
        flex: 0 0 auto !important;
    }
    .teachers-scroll-col .teacher-card { padding: 20px 12px; }
    .teachers-scroll-col .teacher-card img { width: 76px; height: 76px; }
    .teachers-scroll-col .teacher-card h5 { font-size: 13px; }
}

/* ── Events ─────────────────────────────────────────── */
.event-card {
    display: flex; gap: 16px; padding: 16px;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    background: var(--white); margin-bottom: 14px;
    transition: var(--transition); border-left: 4px solid var(--primary);
    border: 1px solid var(--border); border-left: 4px solid var(--primary);
}
.event-card:hover { box-shadow: var(--shadow); border-left-color: var(--accent); }
.event-date-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white); text-align: center;
    padding: 10px 14px; border-radius: 8px;
    min-width: 62px; flex-shrink: 0;
}
.event-date-box .day { font-size: 26px; font-weight: 800; line-height: 1; }
.event-date-box .month { font-size: 11px; text-transform: uppercase; font-weight: 600; }
.event-info h5 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); }
.event-info p  { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ── Gallery ────────────────────────────────────────── */
.gallery-item {
    position: relative; overflow: hidden;
    border-radius: var(--radius); cursor: pointer;
}
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,rgba(13,61,28,0.75),rgba(27,107,53,0.6));
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 34px; color: var(--white); }

/* ── Gallery — mobile horizontal scroll ─────────────── */
@media (max-width: 767px) {
    .gallery-scroll-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }
    .gallery-scroll-wrap::-webkit-scrollbar { display: none; }
    .gallery-scroll-row { flex-wrap: nowrap !important; }
    .gallery-scroll-col {
        width: 200px !important;
        min-width: 200px !important;
        flex: 0 0 auto !important;
    }
    .gallery-scroll-col .gallery-item img { height: 140px !important; }
}

/* ── Result Checker ─────────────────────────────────── */
.result-checker {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 64px 0;
}
.result-form-box {
    background: var(--white); padding: 42px 38px;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 56px rgba(0,0,0,0.22);
    max-width: 660px; margin: 0 auto;
}
.result-form-box h3 { color: var(--primary); font-weight: 700; text-align: center; margin-bottom: 26px; font-size: 22px; }
.result-form-box .form-label { font-weight: 600; color: var(--text-dark); font-size: 13.5px; }
.result-form-box .form-control,
.result-form-box .form-select {
    border: 2px solid var(--border); border-radius: 8px;
    padding: 10px 14px; font-size: 13.5px; transition: var(--transition);
}
.result-form-box .form-control:focus,
.result-form-box .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,107,53,0.13);
}

.result-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.result-table th { background: var(--primary); color: var(--white); padding: 12px; text-align: center; font-size: 13.5px; }
.result-table td { padding: 10px 12px; border: 1px solid var(--border); text-align: center; font-size: 13.5px; }
.result-table tr:nth-child(even) { background: var(--light); }
.result-table tr:hover { background: var(--primary-soft); }

.grade-badge { padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; }
.grade-A-plus { background: #d4edda; color: #155724; }
.grade-A      { background: #cce5ff; color: #004085; }
.grade-B-plus { background: #d1ecf1; color: #0c5460; }
.grade-B      { background: #fff3cd; color: #856404; }
.grade-C-plus { background: #ffeeba; color: #856404; }
.grade-C      { background: #f8d7da; color: #721c24; }
.grade-D      { background: #e2e3e5; color: #383d41; }
.grade-NG     { background: #f5c6cb; color: #721c24; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.78);
    padding: 64px 0 0;
}
.site-footer h5 {
    color: var(--white); font-weight: 700;
    margin-bottom: 20px; font-size: 15.5px;
    position: relative; padding-bottom: 12px;
}
.site-footer h5::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.site-footer a {
    color: rgba(255,255,255,0.65); display: block;
    margin-bottom: 9px; font-size: 13.5px; transition: var(--transition);
}
.site-footer a:hover { color: var(--accent-light); padding-left: 4px; }
.site-footer p { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.8; }

.footer-col { text-align: left; }

.footer-contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 12px; font-size: 13.5px; color: rgba(255,255,255,0.7);
}
.footer-contact-item i {
    color: var(--accent); margin-top: 3px; width: 16px;
    text-align: center; flex-shrink: 0;
}
.footer-contact-item a { color: rgba(255,255,255,0.7); display: inline; margin: 0; padding: 0; }
.footer-contact-item a:hover { color: var(--accent-light); }

.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a {
    display: inline-flex; width: 36px; height: 36px;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    align-items: center; justify-content: center;
    font-size: 14px; color: var(--white);
    transition: var(--transition); margin: 0; padding: 0;
}
.footer-social a:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); padding: 0; }

.footer-bottom {
    background: rgba(0,0,0,0.35);
    padding: 16px 0; margin-top: 48px;
    font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ── Page Header ────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%);
    padding: 52px 0; color: var(--white); text-align: center;
}
.page-header h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.page-header .breadcrumb { justify-content: center; background: none; margin: 0; }
.page-header .breadcrumb-item a { color: var(--accent-light); }
.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.65); }

/* ── Forms ──────────────────────────────────────────── */
.form-card {
    background: var(--white); padding: 40px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.form-card .form-label { font-weight: 600; font-size: 13.5px; color: var(--text-dark); }
.form-card .form-control,
.form-card .form-select {
    border: 2px solid var(--border); padding: 10px 14px;
    border-radius: 8px; font-size: 13.5px; transition: var(--transition);
}
.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,107,53,0.12);
}

/* ── Utilities ──────────────────────────────────────── */
.text-primary-custom  { color: var(--primary) !important; }
.text-secondary-custom{ color: var(--secondary) !important; }
.text-accent          { color: var(--accent) !important; }
.bg-primary-custom    { background: var(--primary) !important; }
.bg-light-custom      { background: var(--light) !important; }

/* Scroll to top */
.scroll-top-btn {
    position: fixed; bottom: 28px; right: 28px;
    width: 42px; height: 42px;
    background: var(--primary); color: white;
    border: none; border-radius: 50%; font-size: 15px;
    cursor: pointer; display: none; z-index: 9999;
    box-shadow: var(--shadow); transition: var(--transition);
}
.scroll-top-btn:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

/* Animate on scroll */
[data-animate] { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-animate].animated { opacity: 1; transform: translateY(0); }

@media print {
    .main-navbar, .top-bar, footer, .scroll-top-btn, .result-checker,
    #resultCheckerForm, .page-header { display: none !important; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 991px) {
    .hero-slider .carousel-item { height: 380px; }
    .hero-slider .carousel-caption h1 { font-size: 30px; }
    .hero-slider .carousel-caption p  { font-size: 15px; }
    .stat-number { font-size: 38px; }
    section { padding: 56px 0; }
}

/* Mobile large */
@media (max-width: 767px) {
    section { padding: 48px 0; }
    .hero-slider .carousel-item { height: 300px; }
    .hero-slider .carousel-caption { left: 5%; right: 5%; }
    .hero-slider .carousel-caption h1 { font-size: 22px; }
    .hero-slider .carousel-caption p  { display: none; }
    .section-title h2 { font-size: 26px; }
    .result-form-box  { padding: 26px 20px; }
    .form-card        { padding: 26px 18px; }
    .school-name      { font-size: 13.5px; }
    .school-sub       { font-size: 10.5px; }

    /* Footer mobile — center everything */
    .site-footer { padding-top: 48px; }
    .footer-col  { text-align: center; }
    .site-footer h5::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
    .site-footer a  { padding-left: 0 !important; }
    .footer-contact-item { justify-content: center; }
    .footer-contact-item i { margin-top: 2px; }
    .site-footer .d-flex.align-items-center { justify-content: center; }
}

/* Mobile small */
@media (max-width: 575px) {
    .top-bar .d-flex { flex-direction: column; align-items: center; gap: 5px; }
    .stat-number { font-size: 32px; }
    .hero-slider .carousel-item { height: 260px; }
    .hero-slider .carousel-caption h1 { font-size: 18px; }
    .quick-link-card { padding: 16px 8px; }
    .quick-link-card i { font-size: 24px; }
    .section-title h2 { font-size: 22px; }
    .page-header h1 { font-size: 26px; }
}

/* ══════════════════════════════════════════════════════
   INDEX PAGE — EXTRA STYLES
   ══════════════════════════════════════════════════════ */

/* Hero enhancements */
.hero-slide-1 { background: linear-gradient(135deg, #0a2e14 0%, #1b6b35 60%, #28a048 100%) !important; }
.hero-slide-2 { background: linear-gradient(135deg, #0d1e2e 0%, #1e3048 60%, #1b6b35 100%) !important; }
.hero-slide-3 { background: linear-gradient(135deg, #2a0d0a 0%, #7c1a14 60%, #b5281f 100%) !important; }

/* Image overlay — image dekhiyos + text readable hos */
.hero-slider .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 30, 15, 0.82) 0%,
        rgba(10, 30, 15, 0.55) 50%,
        rgba(10, 30, 15, 0.25) 100%
    );
    z-index: 1;
}
.hero-slide-2::after {
    background: linear-gradient(
        90deg,
        rgba(13, 30, 46, 0.82) 0%,
        rgba(13, 30, 46, 0.55) 50%,
        rgba(13, 30, 46, 0.25) 100%
    ) !important;
}
.hero-slide-3::after {
    background: linear-gradient(
        90deg,
        rgba(42, 13, 10, 0.85) 0%,
        rgba(42, 13, 10, 0.60) 50%,
        rgba(42, 13, 10, 0.25) 100%
    ) !important;
}
.hero-slider .carousel-caption { z-index: 2; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { z-index: 3; }
.hero-slider .carousel-indicators { z-index: 3; }

.hero-badge {
    display: inline-block;
    background: rgba(232,152,10,0.9);
    color: #1a1a1a;
    font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}
.hero-highlight {
    color: var(--accent-light);
    display: block;
}
.hero-location {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-size: 13px; padding: 6px 14px;
    border-radius: 20px; margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btn-primary {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.7);
    color: white; padding: 11px 26px;
    border-radius: 25px; font-weight: 600;
    font-size: 14px; transition: var(--transition);
    backdrop-filter: blur(4px);
}
.hero-btn-primary:hover { background: white; color: var(--primary); }
.hero-btn-accent {
    background: var(--accent); color: #1a1a1a;
    border: 2px solid var(--accent); padding: 11px 26px;
    border-radius: 25px; font-weight: 700; font-size: 14px;
    transition: var(--transition);
}
.hero-btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* Stats icons */
.stat-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--accent-light);
    margin: 0 auto 12px;
}

/* About Home Section */
.about-home-section { padding: 72px 0; background: var(--white); }
.info-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 12.5px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(27,107,53,0.15);
}
.info-chip i { font-size: 11px; }
.btn-fb {
    display: inline-flex; align-items: center;
    background: #1877f2; color: white;
    padding: 10px 22px; border-radius: 25px;
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.btn-fb:hover { background: #0d65d9; color: white; }

/* Feature cards */
.feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 16px;
    transition: var(--transition); height: 100%;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 12px;
}
.feature-card h6 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.feature-card p  { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Update cards (notices/events) */
.update-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border); }
.update-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; font-weight: 700; font-size: 14.5px; color: white;
}
.update-card-header.green { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.update-card-header.red   { background: linear-gradient(135deg, #7c1a14, var(--secondary)); }
.update-card-header a { color: rgba(255,255,255,0.85); font-size: 12.5px; font-weight: 500; transition: var(--transition); }
.update-card-header a:hover { color: var(--accent-light); }
.update-card-body { padding: 8px 16px; }
.empty-state { text-align: center; padding: 30px 0; color: var(--text-muted); }
.empty-state i { font-size: 32px; display: block; margin-bottom: 10px; opacity: 0.4; }
.empty-state p { font-size: 14px; margin: 0; }

/* Result Checker enhancements */
.result-info-badge {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    font-size: 12.5px; font-weight: 600;
    padding: 6px 16px; border-radius: 20px;
}
.result-steps { display: flex; flex-direction: column; gap: 10px; }
.result-step {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.85); font-size: 14px;
}
.result-step span {
    width: 26px; height: 26px; flex-shrink: 0;
    background: var(--accent); color: var(--dark);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.result-submit-btn {
    width: 100%; background: var(--primary); color: white;
    border: none; padding: 13px; border-radius: 8px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: var(--transition); display: flex;
    align-items: center; justify-content: center;
}
.result-submit-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Academic Programs */
.program-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 22px;
    text-align: center; transition: var(--transition); height: 100%;
}
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.program-icon {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 16px;
}
.program-grade { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.program-card h5 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.program-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.program-link { font-size: 13px; font-weight: 700; transition: var(--transition); }
.program-link:hover { gap: 6px; }

/* Why Choose Us */
.why-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 20px;
    transition: var(--transition);
}
.why-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.why-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 18px;
}
.why-card h6 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); }
.why-card p  { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Contact Strip */
.contact-strip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 36px 0;
}
.contact-strip-item {
    display: flex; align-items: center; gap: 16px;
    color: rgba(255,255,255,0.9);
    padding: 10px 0;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.contact-strip-item:last-child { border-right: none; }
.contact-strip-item > i {
    width: 46px; height: 46px; flex-shrink: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; color: var(--accent-light);
}
.contact-strip-label {
    font-size: 11.5px; text-transform: uppercase;
    letter-spacing: 0.8px; color: rgba(255,255,255,0.55);
    font-weight: 600; margin-bottom: 3px;
}
.contact-strip-value {
    font-size: 14.5px; font-weight: 600; color: white;
    transition: var(--transition);
}
a.contact-strip-value:hover { color: var(--accent-light); }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #2a0d0a 0%, #7c1a14 50%, #b5281f 100%);
    padding: 64px 0; color: white;
}
.cta-tag {
    display: inline-block; background: rgba(232,152,10,0.9);
    color: #1a1a1a; font-size: 11.5px; font-weight: 800;
    padding: 4px 14px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.cta-banner h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.cta-banner p  { font-size: 15px; opacity: 0.88; line-height: 1.75; margin-bottom: 0; }
.cta-banner .fas.fa-check-circle { color: var(--accent-light); }
.cta-btn-main {
    display: inline-block;
    background: var(--accent); color: #1a1a1a;
    padding: 14px 32px; border-radius: 30px;
    font-size: 15px; font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(232,152,10,0.35);
}
.cta-btn-main:hover { background: var(--accent-light); transform: translateY(-2px); color: #1a1a1a; }
.cta-btn-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.85);
    padding: 10px 28px; border-radius: 30px;
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.cta-btn-outline:hover { border-color: white; color: white; background: rgba(255,255,255,0.08); }

/* ── Index page responsive ──────────────────────────── */
@media (max-width: 991px) {
    .contact-strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 14px 0; }
    .contact-strip-item:last-child { border-bottom: none; }
    .cta-banner h2 { font-size: 24px; }
    .hero-highlight { display: inline; }
}
@media (max-width: 767px) {
    .hero-actions { justify-content: center; }
    .hero-badge { display: none; }
    .hero-location { display: none; }
    .about-home-section .section-title { text-align: center; }
    .about-home-section .section-title h2::after { left: 50%; transform: translateX(-50%); }
    .about-home-section .d-flex.gap-3 { justify-content: center; }
    .info-chip { font-size: 11.5px; }
    .cta-banner { text-align: center; padding: 48px 0; }
    .cta-banner h2 { font-size: 22px; }
    .cta-banner .d-flex { justify-content: center; }
    .contact-strip { padding: 28px 0; }
    .contact-strip-item { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
    .program-card { padding: 22px 16px; }
    .why-card { padding: 18px 16px; }
    .result-steps { display: none; }
}
@media (max-width: 575px) {
    .hero-btn-primary, .hero-btn-accent { padding: 9px 18px; font-size: 13px; }
    .program-icon { width: 52px; height: 52px; font-size: 22px; }
    .cta-btn-main { padding: 12px 24px; font-size: 14px; }
    .feature-card { padding: 16px 14px; }
}

/* ══════════════════════════════════════════════════════
   ADMISSION WINDOW STYLES
   ══════════════════════════════════════════════════════ */

/* Status Banner */
.admission-status-banner {
    padding: 13px 0;
    font-size: 14px;
    font-weight: 500;
}
.admission-status-banner.open {
    background: linear-gradient(135deg, #1b6b35, #28a048);
    color: white;
}
.admission-status-banner.closed {
    background: linear-gradient(135deg, #7c1a14, #b5281f);
    color: white;
}
.adm-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.adm-status-dot.open  { background: #a8ffb8; box-shadow: 0 0 0 3px rgba(168,255,184,0.3); animation: pulse-dot 1.8s infinite; }
.adm-status-dot.closed { background: #ffb3b3; box-shadow: 0 0 0 3px rgba(255,179,179,0.3); }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.5} }

.adm-deadline {
    background: rgba(255,255,255,0.18);
    padding: 4px 12px; border-radius: 20px;
    font-size: 13px;
}

/* Closed State Box */
.admission-closed-box {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 52px 40px;
    box-shadow: var(--shadow);
}
.closed-icon {
    width: 90px; height: 90px;
    background: #fdf0ef;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; color: var(--secondary);
    margin: 0 auto 24px;
}
.admission-closed-box h2 {
    font-size: 26px; font-weight: 800;
    color: var(--text-dark); margin-bottom: 12px;
}

/* Coming soon countdown */
.coming-soon-box {
    background: var(--primary-soft);
    border: 2px solid rgba(27,107,53,0.2);
    border-radius: var(--radius-lg);
    padding: 20px; display: inline-block;
    min-width: 220px;
}
.coming-soon-label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--primary); margin-bottom: 6px;
}
.coming-soon-date {
    font-size: 22px; font-weight: 800;
    color: var(--primary); line-height: 1.2;
}
.coming-soon-days {
    font-size: 14px; color: var(--text-muted); margin-top: 4px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
    .admission-status-banner .d-flex { flex-direction: column; align-items: flex-start !important; gap: 6px; }
    .admission-closed-box { padding: 36px 20px; }
    .admission-closed-box h2 { font-size: 22px; }
    .coming-soon-box { min-width: 0; width: 100%; }
}

/* +2 Featured Program Card */
.program-card-featured {
    border: 2px solid #7c3aed !important;
    background: linear-gradient(135deg, #faf8ff, #f3eeff) !important;
    position: relative;
    overflow: hidden;
}
.program-card-featured::before {
    content: '+2 Program';
    position: absolute;
    top: 14px; right: -24px;
    background: #7c3aed;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 32px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.program-card-featured:hover {
    border-color: #6d28d9 !important;
    box-shadow: 0 8px 32px rgba(124,58,237,0.2) !important;
}

/* ══════════════════════════════════════════════════════
   ABOUT PAGE — Vision Mission Objectives
   ══════════════════════════════════════════════════════ */

/* Tagline */
.about-tagline {
    display: inline-block;
    font-size: 16px;
    font-style: italic;
    color: var(--text-body);
    background: white;
    border: 2px solid var(--primary-soft);
    border-left: 5px solid var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    max-width: 700px;
}

/* Vision / Mission Cards */
.vm-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}
.vm-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.vm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    color: white;
}
.vision-card .vm-header  { background: linear-gradient(135deg, #0a2e14, var(--primary)); }
.mission-card .vm-header { background: linear-gradient(135deg, #7c1a14, var(--secondary)); }

.vm-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.vm-header h3 {
    font-size: 18px; font-weight: 900;
    letter-spacing: 2px; margin: 0;
    text-transform: uppercase;
}

.vm-body {
    background: white;
    padding: 20px 24px;
}
.vm-body p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 14px;
}

/* Mission bullet list */
.vm-mission-list {
    list-style: none;
    padding: 0; margin: 0 0 14px;
}
.vm-mission-list li {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.75;
    padding: 4px 0 4px 20px;
    position: relative;
}
.vm-mission-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--secondary);
    font-weight: 900;
    font-size: 16px;
}

/* Urdu text */
.vm-urdu {
    background: #fffbf0;
    border: 1px solid #f0d080;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: #5a4000;
    line-height: 2;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
}

/* Objectives Header */
.objectives-header {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    padding: 14px 24px;
    border-radius: var(--radius);
    margin-bottom: 4px;
}

/* Objective items */
.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
    height: 100%;
}
.objective-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.objective-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.objective-title {
    font-size: 14px; font-weight: 700;
    color: var(--text-dark); margin-bottom: 4px;
}
.objective-desc {
    font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
}

/* ── Leadership Messages Carousel ───────────────────── */
.leadership-carousel {
    max-width: 820px;
    margin: 0 auto;
}

.leadership-card {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 44px 48px;
    margin: 0 48px 48px;   /* side margin leaves room for prev/next buttons */
}

.leadership-photo-wrap {
    flex-shrink: 0;
    text-align: center;
}
.leadership-photo-wrap img {
    width: 120px; height: 120px;
    border-radius: 50%; object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 6px var(--primary-soft);
    display: block;
    margin: 0 auto 10px;
}
.leadership-role-badge {
    display: inline-block;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.leadership-message { flex: 1; }
.leadership-message .quote-icon {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 10px;
    line-height: 1;
}
.leadership-message p {
    font-size: 15px;
    font-style: italic;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 18px;
}
.leadership-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}
.leadership-school {
    font-size: 13px;
    color: var(--text-muted);
}

/* Indicators — dots below the card */
.leadership-indicators {
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    gap: 6px;
}
.leadership-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: var(--border) !important;
    border: none !important;
    opacity: 1 !important;
    transition: background 0.3s;
}
.leadership-indicators .active {
    background-color: var(--primary) !important;
    transform: scale(1.3);
}

/* Prev/Next arrow buttons */
.leadership-prev,
.leadership-next {
    width: 40px; height: 40px;
    background: var(--white) !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-sm);
    top: 50%; transform: translateY(-50%);
    color: var(--primary) !important;
    border: 1px solid var(--border) !important;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.leadership-prev:hover, .leadership-next:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-md);
}
.leadership-prev i, .leadership-next i { font-size: 14px; }
.leadership-prev { left: 0; }
.leadership-next { right: 0; }

/* Mobile */
@media (max-width: 767px) {
    .leadership-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
        margin: 0 8px 40px;
        gap: 20px;
    }
    .leadership-message p { font-size: 14px; }
    .leadership-prev { left: 0; }
    .leadership-next { right: 0; }
}

/* Responsive */
@media (max-width: 767px) {
    .vm-header h3 { font-size: 15px; letter-spacing: 1px; }
    .about-tagline { font-size: 14px; }
    .objectives-header { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════
   MOBILE SPACING FIX — Remove extra side space
   ══════════════════════════════════════════════════════ */

/* Override Bootstrap container padding on mobile */
@media (max-width: 575px) {
    /* Container — tighter padding */
    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Sections — less vertical padding */
    section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Row — remove negative margins that cause overflow */
    .row {
        --bs-gutter-x: 0.75rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Col — tighter gutters */
    [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Cards — no horizontal overflow */
    .card, .admin-card, .form-card,
    .result-card-wrapper, .rc-outer-border {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 8px !important;
    }

    /* Page header — full width */
    .page-header {
        padding: 36px 12px !important;
    }

    /* Result form box */
    .result-form-box {
        padding: 20px 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 10px !important;
    }

    /* Hero caption */
    .hero-slider .carousel-caption {
        left: 12px !important;
        right: 12px !important;
    }

    /* Quick links */
    .quick-links .container { padding-left: 12px !important; padding-right: 12px !important; }

    /* Stats section */
    .stats-section .container { padding-left: 12px !important; padding-right: 12px !important; }

    /* Contact strip */
    .contact-strip .container { padding-left: 12px !important; padding-right: 12px !important; }

    /* CTA banner */
    .cta-banner { padding: 40px 12px !important; }

    /* Footer */
    .site-footer .container { padding-left: 12px !important; padding-right: 12px !important; }
    .footer-bottom .container { padding-left: 12px !important; padding-right: 12px !important; }

    /* VM cards (about page) */
    .vm-card { margin-bottom: 4px; }
    .vm-body { padding: 16px 16px !important; }
    .vm-header { padding: 14px 16px !important; }

    /* Navbar brand — tighter */
    .navbar-brand { padding: 8px 0 !important; }
    .school-name { font-size: 13px !important; }

    /* Top bar */
    .top-bar .container { padding-left: 12px !important; padding-right: 12px !important; }

    /* Tables — scroll on mobile */
    .rc-marks-table, .rc-summary-table,
    .rc-attendance-table, .rc-grading-table {
        font-size: 10px !important;
    }
    .rc-marks-table th, .rc-marks-table td {
        padding: 3px 3px !important;
    }

    /* Student info table */
    .rc-info-table td { padding: 3px 6px !important; font-size: 11px !important; }

    /* Admission closed box */
    .admission-closed-box { padding: 28px 14px !important; }

    /* Gallery items */
    .gallery-item img { height: 160px !important; }

    /* About tagline */
    .about-tagline { padding: 10px 14px !important; font-size: 13px !important; }

    /* Objective items */
    .objective-item { padding: 12px !important; }

    /* Teacher cards */
    .teacher-card { padding: 20px 12px !important; }

    /* Event cards */
    .event-card { padding: 12px !important; }

    /* Form cards */
    .form-card { padding: 20px 14px !important; }
}

/* Small phones (below 400px) */
@media (max-width: 400px) {
    .container,
    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .school-name { font-size: 12px !important; }
    .school-sub  { font-size: 10px !important; }
    .school-logo { width: 40px !important; height: 40px !important; }
    .rc-info-table { font-size: 10px !important; }
    .rc-school-name { font-size: 14px !important; }
}

/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix any element that causes overflow */
@media (max-width: 767px) {
    /* Prevent wide elements from overflowing */
    img, table, pre, iframe, video {
        max-width: 100%;
    }

    /* Hero slider — no overflow */
    .hero-slider,
    .hero-slider .carousel-item {
        overflow: hidden;
    }

    /* Offcanvas — proper z-index */
    .mobile-nav {
        max-width: 85vw !important;
    }

    /* Scrollable tables */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    /* Fix vm-urdu overflow */
    .vm-urdu {
        font-size: 13px !important;
        word-break: break-word;
    }

    /* Stats number smaller */
    .stat-number { font-size: 32px !important; }

    /* Program cards */
    .program-card { padding: 18px 14px !important; }

    /* Why cards */
    .why-card { padding: 14px 12px !important; gap: 12px !important; }

    /* CTA banner text */
    .cta-banner h2 { font-size: 20px !important; }
    .cta-banner p  { font-size: 13.5px !important; }
}

/* ══════════════════════════════════════════════════════
   NOTICES PAGE — Modern Table
   ══════════════════════════════════════════════════════ */

.notices-section { padding: 56px 0 72px; }

/* Stats bar */
.notices-stats-bar {
    display: flex;
    gap: 28px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}
.notices-stat { display: flex; align-items: baseline; gap: 6px; }
.notices-stat-num  { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.notices-stat-label{ font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Filter pills */
.notices-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.notice-pill {
    padding: 5px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}
.notice-pill:hover  { border-color: var(--primary); color: var(--primary); }
.notice-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Table card */
.notices-table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Toolbar */
.notices-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
    flex-wrap: wrap;
}
.notices-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    flex: 1;
    max-width: 340px;
    transition: var(--transition);
}
.notices-search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.notices-search-wrap i { color: var(--text-muted); font-size: 13px; }
.notices-search-input {
    border: none; outline: none; background: transparent;
    font-size: 14px; color: var(--text-dark); width: 100%;
}
.notices-perpage-wrap {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.notices-perpage-select {
    border: 1.5px solid var(--border); border-radius: 6px;
    padding: 6px 10px; font-size: 13px; font-weight: 600;
    color: var(--text-dark); background: var(--white); cursor: pointer;
    outline: none; transition: var(--transition);
}
.notices-perpage-select:focus { border-color: var(--primary); }

/* Table */
.notices-table { border-collapse: collapse; }
.notices-table thead th {
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.notices-table thead th.sorting:after,
.notices-table thead th.sorting_asc:after,
.notices-table thead th.sorting_desc:after { display: none; }
.notices-table thead th.sorting:before,
.notices-table thead th.sorting_asc:before,
.notices-table thead th.sorting_desc:before { display: none; }
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc,
table.dataTable thead th.sorting_asc_disabled,
table.dataTable thead th.sorting_desc_disabled {
    background-image: none !important;
    padding-right: 16px !important;
}

.notices-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.18s;
}
.notices-table tbody tr:last-child { border-bottom: none; }
.notices-table tbody tr:hover { background: var(--primary-soft); }
.notices-table tbody td { padding: 14px 16px; font-size: 14px; color: var(--text-body); vertical-align: middle; }

/* Column widths */
.col-sn     { width: 44px; text-align: center; color: var(--text-muted); font-size: 13px; }
.col-type   { width: 120px; }
.col-title  { min-width: 180px; font-weight: 600; color: var(--text-dark); }
.col-content{ min-width: 220px; }
.col-date   { width: 150px; }
.col-attach { width: 110px; text-align: center; }

/* Type badge */
.notice-type-badge {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.type-general   { background:#edf7f0; color:#1b6b35; }
.type-exam      { background:#e8f4fb; color:#0284c7; }
.type-holiday   { background:#fef9ec; color:#e8980a; }
.type-admission { background:#f3eeff; color:#7c3aed; }
.type-event     { background:#e6f7f4; color:#16a085; }
.type-urgent    { background:#fdf0ef; color:#b5281f; }

/* Title cell */
.notice-title-cell { display: flex; align-items: center; gap: 6px; }
.urgent-dot {
    display: inline-block; width: 8px; height: 8px;
    background: #b5281f; border-radius: 50%; flex-shrink: 0;
    animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* Content preview */
.notice-content-preview {
    color: var(--text-muted); font-size: 13px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Date cell */
.notice-date-cell { display: flex; flex-direction: column; gap: 2px; }
.nd-bs { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.nd-ad { font-size: 11.5px; color: var(--text-muted); }

/* Download button */
.notice-dl-btn {
    display: inline-flex; align-items: center;
    padding: 5px 12px; border-radius: 6px;
    background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 600;
    text-decoration: none; transition: var(--transition);
    white-space: nowrap;
}
.notice-dl-btn:hover { background: var(--primary-dark); color: #fff; }
.no-attach { color: var(--text-muted); font-size: 16px; }

/* Footer bar */
.notices-footer-bar {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 12px; padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--light);
}
.notices-info-text { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Pagination */
.notices-pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-btn {
    min-width: 34px; height: 34px; padding: 0 10px;
    border: 1.5px solid var(--border); border-radius: 6px;
    background: var(--white); color: var(--text-body);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--transition); display: inline-flex;
    align-items: center; justify-content: center;
}
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn:disabled { opacity: 0.4; cursor: default; }
.pg-btn.pg-ellipsis { border: none; background: transparent; cursor: default; }

/* Mobile */
@media (max-width: 767px) {
    .notices-stats-bar { gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
    .notices-stat-num  { font-size: 20px; }
    .notices-toolbar   { padding: 14px 16px; }
    .notices-search-wrap { max-width: 100%; }
    .notices-footer-bar { padding: 12px 16px; flex-direction: column; align-items: flex-start; }

    /* Keep all columns visible — horizontal scroll */
    .notices-table-card .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .notices-table {
        min-width: 700px;   /* force full table width so scroll kicks in */
    }
    .notices-table tbody td { padding: 10px 12px; font-size: 12.5px; }
    .notices-table thead th { padding: 11px 12px; font-size: 12px; }
    .col-content { display: table-cell; }  /* always show content col */
    .notice-content-preview { font-size: 12px; }
    .nd-bs { font-size: 12px; }
    .nd-ad { font-size: 11px; }
}

/* ══════════════════════════════════════════════════════
   TEACHERS PAGE
   ══════════════════════════════════════════════════════ */

.teachers-page-section { padding: 56px 0 80px; }

/* Toolbar */
.tp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.tp-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    flex: 1;
    max-width: 380px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.tp-search-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.tp-search-wrap i  { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.tp-search-wrap input {
    border: none; outline: none; background: transparent;
    font-size: 14px; color: var(--text-dark); width: 100%;
}
.tp-count {
    font-size: 14px; font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Grid — 4 cols desktop, 3 cols tablet, 2 cols mobile */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1199px) { .tp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Card — original horizontal design */
.tp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tp-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Card body — horizontal: photo left, info right */
.tp-card-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    flex: 1;
}
.tp-photo {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.tp-body { flex: 1; min-width: 0; overflow: hidden; }
.tp-name {
    font-size: 14px; font-weight: 700;
    color: var(--text-dark); margin-bottom: 3px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}
.tp-spec {
    font-size: 12.5px; font-weight: 600;
    color: var(--primary); margin-bottom: 3px;
    text-transform: capitalize;
    white-space: normal;
    word-break: break-word;
}
.tp-qual {
    font-size: 12px; color: var(--text-muted);
    white-space: normal;
    word-break: break-word;
}
.tp-qual i { color: var(--primary); }

/* Mobile — stack vertically on very small screens */
@media (max-width: 480px) {
    .tp-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .tp-photo { width: 80px; height: 80px; }
    .tp-name { font-size: 14px; }
}

/* Divider */
.tp-divider {
    border: none; border-top: 1px solid var(--border);
    margin: 0;
}

/* Details section */
.tp-details {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tp-detail-row i { color: var(--primary); width: 16px; margin-right: 6px; }
.tp-detail-row strong { color: var(--text-dark); }

/* Bio */
.tp-bio {
    padding: 0 20px 12px;
    font-size: 12.5px; color: var(--text-muted);
    line-height: 1.7; margin: 0;
}

/* Footer — social links */
.tp-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: var(--light);
}
.tp-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 13px; text-decoration: none;
    transition: var(--transition);
}
.tp-social.fb { background: #e8f0fe; color: #1877f2; }
.tp-social.fb:hover { background: #1877f2; color: #fff; }
.tp-social.wa { background: #e7f9ee; color: #25d366; }
.tp-social.wa:hover { background: #25d366; color: #fff; }

/* Empty search state */
.tp-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 64px 0; color: var(--text-muted); gap: 14px;
}
.tp-empty i  { font-size: 48px; opacity: 0.3; }
.tp-empty p  { font-size: 16px; font-weight: 500; margin: 0; }

/* Mobile */
@media (max-width: 767px) {
    .tp-search-wrap { max-width: 100%; }
    .tp-card-body   { padding: 14px; gap: 12px; }
    .tp-photo       { width: 64px; height: 64px; }
    .tp-name        { font-size: 13.5px; }
    .tp-spec        { font-size: 12px; }
    .tp-details     { padding: 10px 14px; font-size: 12px; }
    .tp-bio         { padding: 0 14px 10px; font-size: 12px; }
    .tp-footer      { padding: 8px 14px; }
}

/* ══════════════════════════════════════════════════════
   ADMISSIONS PAGE — Modern Multi-Step Form
   ══════════════════════════════════════════════════════ */

.adm-section { padding: 56px 0 80px; }

/* ── Sidebar steps ───────────────────────────────────── */
.adm-steps-sidebar { display: flex; flex-direction: column; gap: 0; }
.adm-step-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--white); transition: var(--transition);
}
.adm-step-item.active { border-color: var(--primary); background: var(--primary-soft); }
.adm-step-item.done   { border-color: #28a048; background: #f0faf3; }
.adm-step-num {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
    background: var(--border); color: var(--text-muted);
    transition: var(--transition);
}
.adm-step-item.active .adm-step-num { background: var(--primary); color: #fff; }
.adm-step-item.done   .adm-step-num { background: #28a048; color: #fff; }
.adm-step-item.done   .adm-step-num::before { content: '✓'; }
.adm-step-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.adm-step-sub   { font-size: 12px; color: var(--text-muted); }
.adm-step-connector {
    width: 2px; height: 20px; background: var(--border);
    margin: 0 16px; flex-shrink: 0; align-self: flex-start;
    margin-left: 32px;
}

/* ── Sidebar info cards ──────────────────────────────── */
.adm-info-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin-top: 12px;
    box-shadow: var(--shadow-sm);
}
.adm-info-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.adm-info-val   { font-size: 15px; font-weight: 800; color: var(--text-dark); }
.adm-cls-badge  {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    background: var(--primary-soft); color: var(--primary-dark);
    border-radius: 20px;
}
.adm-doc-list {
    padding-left: 18px; margin: 6px 0 0;
    font-size: 12.5px; color: var(--text-muted); line-height: 1.9;
}

/* ── Main form card ──────────────────────────────────── */
.adm-form-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); overflow: hidden;
}

/* Progress bar */
.adm-progress-wrap { padding: 24px 32px 0; }
.adm-progress-bar  {
    height: 6px; background: var(--border);
    border-radius: 6px; overflow: hidden; margin-bottom: 16px;
}
.adm-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 6px; transition: width 0.4s ease;
}
.adm-progress-steps {
    display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;
}
.adm-prog-step {
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    padding: 6px 16px; border-radius: 20px;
    border: 1.5px solid var(--border); background: var(--white);
    transition: var(--transition);
}
.adm-prog-step.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.adm-prog-step.done   { background: #f0faf3; color: #28a048; border-color: #28a048; }

/* Step panes */
.adm-step-pane { display: none; padding: 28px 32px 24px; }
.adm-step-pane.active { display: block; }

/* Pane header */
.adm-pane-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-soft);
}
.adm-pane-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary); color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.adm-pane-header h5 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin: 0 0 4px; }
.adm-pane-header p  { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Field wrap */
.adm-field-wrap { display: flex; flex-direction: column; gap: 6px; }
.adm-field-wrap label {
    font-size: 13px; font-weight: 700; color: var(--text-dark);
}
.req { color: var(--secondary); }
.adm-hint-inline { font-size: 11.5px; font-weight: 400; color: var(--text-muted); }

/* Input with icon */
.adm-input-icon {
    position: relative; display: flex; align-items: center;
}
.adm-input-icon > i {
    position: absolute; left: 13px;
    color: var(--text-muted); font-size: 13px; pointer-events: none;
    top: 50%; transform: translateY(-50%);
}
.adm-textarea-icon > i { top: 14px; transform: none; }
.adm-input {
    width: 100%; padding: 11px 14px 11px 36px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 13.5px; color: var(--text-dark);
    background: var(--white); transition: var(--transition);
    outline: none; appearance: none;
}
.adm-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.adm-input.adm-invalid { border-color: var(--secondary); box-shadow: 0 0 0 3px #fde8e7; }
.adm-hint { font-size: 11.5px; color: var(--text-muted); }

/* Upload box */
.adm-upload-box {
    border: 2px dashed var(--border); border-radius: 10px;
    padding: 24px 16px; text-align: center; cursor: pointer;
    transition: var(--transition); background: var(--light);
}
.adm-upload-box:hover { border-color: var(--primary); background: var(--primary-soft); }
.adm-upload-preview {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 13px;
}
.adm-upload-preview i { font-size: 32px; color: var(--primary); opacity: 0.6; }

/* Review box */
.adm-review-box {
    background: var(--light); border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 20px; font-size: 13.5px;
}
.adm-review-title {
    font-weight: 700; color: var(--primary); margin-bottom: 14px;
    font-size: 14px;
}
.adm-review-grid {
    display: grid; grid-template-columns: 160px 1fr;
    gap: 6px 12px;
}
.adm-rv-label { font-weight: 600; color: var(--text-muted); padding: 3px 0; }
.adm-rv-val   { color: var(--text-dark); font-weight: 500; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.adm-review-divider { border-bottom: 1px solid var(--border); padding: 4px 0; }

/* Nav row */
.adm-nav-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.adm-btn-next, .adm-btn-submit {
    padding: 12px 28px; border-radius: 8px; border: none;
    background: var(--primary); color: #fff; font-size: 14px;
    font-weight: 700; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center;
}
.adm-btn-next:hover, .adm-btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.adm-btn-submit { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.adm-btn-back {
    padding: 11px 22px; border-radius: 8px;
    border: 1.5px solid var(--border); background: var(--white);
    color: var(--text-body); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center;
}
.adm-btn-back:hover { border-color: var(--primary); color: var(--primary); }

/* Success box */
.adm-success-box {
    text-align: center; padding: 60px 32px;
}
.adm-success-icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: #d4edda; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 20px;
    font-size: 44px; color: #155724;
}
.adm-success-box h3 { font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.adm-ref-no {
    font-size: 26px; font-weight: 900; color: var(--primary);
    background: var(--primary-soft); padding: 10px 32px;
    border-radius: 10px; display: inline-block;
    margin: 8px 0 20px; letter-spacing: 2px;
}

/* Mobile */
@media (max-width: 767px) {
    .adm-steps-sidebar { display: none; }
    .adm-step-pane { padding: 20px 16px; }
    .adm-progress-wrap { padding: 16px 16px 0; }
    .adm-prog-step { font-size: 11.5px; padding: 5px 10px; }
    .adm-nav-row { flex-wrap: wrap; gap: 10px; }
    .adm-btn-next, .adm-btn-submit, .adm-btn-back { width: 100%; justify-content: center; }
    .adm-review-grid { grid-template-columns: 120px 1fr; }
}




/* ══════════════════════════════════════════════════════
   EVENTS PAGE
   ══════════════════════════════════════════════════════ */

.ev-page-section { padding: 48px 0 80px; }

/* ── Toolbar ─────────────────────────────────────────── */
.ev-toolbar {
    display: flex; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.ev-search-wrap {
    display: flex; align-items: center; gap: 9px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 8px; padding: 8px 14px;
    box-shadow: var(--shadow-sm); min-width: 200px; flex: 1; max-width: 300px;
    transition: var(--transition);
}
.ev-search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ev-search-wrap i     { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.ev-search-wrap input { border: none; outline: none; background: transparent; font-size: 13.5px; width: 100%; color: var(--text-dark); }

.ev-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.ev-filter-pill {
    padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
    border: 1.5px solid var(--border); background: var(--white);
    color: var(--text-body); cursor: pointer; transition: var(--transition);
}
.ev-filter-pill:hover  { border-color: var(--primary); color: var(--primary); }
.ev-filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.ev-toolbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ev-perpage-wrap {
    display: flex; align-items: center; gap: 6px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}
.ev-perpage-wrap select {
    border: none; outline: none; background: transparent;
    font-size: 13px; font-weight: 600; color: var(--text-dark); cursor: pointer;
}
.ev-count-bar  { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 18px; }

/* ── Upcoming grid: 4 col desktop, 2 col mobile ──────── */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}
@media (max-width: 1199px) { .ev-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Card */
.ev-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: var(--transition);
    height: 100%; display: flex; flex-direction: column;
}
.ev-card.ev-has-file { cursor: pointer; }
.ev-card.ev-has-file:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.ev-img-wrap { position: relative; overflow: hidden; height: 155px; }
.ev-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ev-card:hover .ev-img-wrap img { transform: scale(1.07); }
.ev-img-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
    opacity: 0; transition: var(--transition); gap: 6px;
}
.ev-card:hover .ev-img-overlay { opacity: 1; }

.ev-color-bar { height: 4px; }
.ev-bar-academic { background: var(--primary); }
.ev-bar-cultural { background: var(--secondary); }
.ev-bar-sports   { background: #e67e22; }
.ev-bar-holiday  { background: #8e44ad; }
.ev-bar-other    { background: var(--dark); }

.ev-body  { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.ev-desc  { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin: 7px 0 6px; flex: 1; }
.ev-meta  { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); }
.ev-click-hint { margin-top: 8px; font-size: 11.5px; color: var(--primary); font-weight: 600; opacity: 0.8; }

/* Date box */
.ev-date-box { color: #fff; text-align: center; padding: 7px 10px; border-radius: 7px; min-width: 50px; flex-shrink: 0; }
.ev-date-day   { font-size: 22px; font-weight: 900; line-height: 1; }
.ev-date-month { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.ev-date-year  { font-size: 9.5px; opacity: 0.85; margin-top: 1px; }
.ev-box-academic { background: var(--primary); }
.ev-box-cultural { background: var(--secondary); }
.ev-box-sports   { background: #e67e22; }
.ev-box-holiday  { background: #8e44ad; }
.ev-box-other    { background: var(--dark); }

.ev-type-badge { display: inline-block; color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.ev-badge-academic { background: var(--primary); }
.ev-badge-cultural { background: var(--secondary); }
.ev-badge-sports   { background: #e67e22; }
.ev-badge-holiday  { background: #8e44ad; }
.ev-badge-other    { background: var(--dark); }

.ev-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.35; }

/* Empty state */
.ev-empty, .ev-empty-box {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 52px 0; color: var(--text-muted); gap: 12px; text-align: center;
}
.ev-empty i, .ev-empty-box i { font-size: 44px; opacity: 0.28; }
.ev-empty p, .ev-empty-box p { font-size: 15px; font-weight: 500; margin: 0; }

/* Pagination */
.ev-pagination-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-top: 24px;
    padding-top: 18px; border-top: 1px solid var(--border);
}
.ev-pag-info { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.ev-pag-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ── Past Events Section ─────────────────────────────── */
.ev-past-section {
    margin-top: 64px;
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.ev-past-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.ev-past-header-left {
    display: flex; align-items: center; gap: 16px;
}
.ev-past-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: #6c757d; color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ev-past-header h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin: 0 0 3px; }
.ev-past-header p  { font-size: 13px; color: var(--text-muted); margin: 0; }
.ev-past-toolbar   { background: transparent; }

/* Past list rows */
.ev-past-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ev-past-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px;
    transition: var(--transition);
}
.ev-past-item:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); border-color: #aaa; }
.ev-past-date-box {
    color: #fff; text-align: center; padding: 6px 10px;
    border-radius: 7px; min-width: 50px; flex-shrink: 0;
    opacity: 0.85;
}
.ev-past-item-info { flex: 1; min-width: 0; }
.ev-past-title {
    font-size: 14px; font-weight: 700; color: var(--text-dark);
    margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-past-view-btn {
    flex-shrink: 0; padding: 6px 14px; border-radius: 6px;
    background: var(--primary-soft); color: var(--primary);
    border: 1px solid var(--border); font-size: 12.5px; font-weight: 700;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.ev-past-view-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Event Modal ─────────────────────────────────────── */
.ev-modal-content { border: none; border-radius: var(--radius-lg); overflow: hidden; }
.ev-modal-header  {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 22px 28px; color: #fff;
}
.ev-modal-date    { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.ev-modal-title   { font-size: 20px; font-weight: 800; margin: 0; color: #fff; }
.ev-modal-close   {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: var(--transition); font-size: 14px;
}
.ev-modal-close:hover { background: rgba(255,255,255,0.4); }
.ev-modal-img-wrap { background: #111; max-height: 460px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ev-modal-img-wrap img { max-width: 100%; max-height: 460px; object-fit: contain; display: block; }
.ev-modal-body    { padding: 20px 28px; }
.ev-modal-desc    { font-size: 14px; color: var(--text-body); line-height: 1.8; margin-bottom: 12px; }
.ev-modal-meta    { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--text-muted); }
.ev-modal-meta i  { color: var(--primary); }
.ev-modal-footer  {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 28px; border-top: 1px solid var(--border);
    background: var(--light); flex-wrap: wrap;
}
.ev-download-btn {
    display: inline-flex; align-items: center; padding: 10px 24px;
    border-radius: 8px; background: var(--primary); color: #fff;
    font-size: 14px; font-weight: 700; text-decoration: none; transition: var(--transition);
}
.ev-download-btn:hover { background: var(--primary-dark); color: #fff; }
.ev-close-btn {
    display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 8px;
    border: 1.5px solid var(--border); background: var(--white);
    font-size: 14px; font-weight: 600; color: var(--text-body); cursor: pointer; transition: var(--transition);
}
.ev-close-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Mobile */
@media (max-width: 767px) {
    .ev-past-section { padding: 20px 14px; }
    .ev-toolbar { flex-direction: column; align-items: stretch; }
    .ev-search-wrap { max-width: 100%; }
    .ev-past-title { font-size: 13px; }
    .ev-modal-header, .ev-modal-body { padding: 16px 18px; }
    .ev-modal-footer { padding: 12px 18px; flex-direction: column; }
    .ev-download-btn, .ev-close-btn { width: 100%; justify-content: center; }
    .ev-body { padding: 12px; }
}


/* ══════════════════════════════════════════════════════
   GALLERY PAGE — Google-style CSS Columns Masonry
   ══════════════════════════════════════════════════════ */

.gal-section { padding: 48px 0 80px; }

/* ── Toolbar ─────────────────────────────────────────── */
.gal-toolbar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 12px; margin-bottom: 14px;
}
.gal-search-wrap {
    display: flex; align-items: center; gap: 9px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 8px; padding: 8px 14px;
    box-shadow: var(--shadow-sm); min-width: 200px;
    transition: var(--transition);
}
.gal-search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.gal-search-wrap i     { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.gal-search-wrap input { border: none; outline: none; background: transparent; font-size: 13.5px; width: 160px; color: var(--text-dark); }

.gal-toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.gal-sort-wrap, .gal-perpage-wrap {
    display: flex; align-items: center; gap: 6px;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: 8px; padding: 7px 12px;
    font-size: 13px; color: var(--text-muted); box-shadow: var(--shadow-sm);
}
.gal-sort-wrap i { color: var(--primary); font-size: 12px; }
.gal-sort-wrap select, .gal-perpage-wrap select {
    border: none; outline: none; background: transparent;
    font-size: 13px; font-weight: 600; color: var(--text-dark); cursor: pointer;
}

/* Filter bar */
.gal-filter-bar {
    display: flex; flex-wrap: wrap; gap: 7px;
}
.gal-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 18px; border-radius: 25px; font-size: 13px; font-weight: 600;
    border: 2px solid var(--border); background: var(--white);
    color: var(--text-body); cursor: pointer; transition: var(--transition);
}
.gal-pill:hover  { border-color: var(--primary); color: var(--primary); }
.gal-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gal-pill-count {
    font-size: 11px; font-weight: 700; padding: 1px 7px;
    border-radius: 20px; min-width: 22px; text-align: center;
    background: var(--primary-soft); color: var(--primary);
}
.gal-pill.active .gal-pill-count { background: rgba(255,255,255,0.3); color: #fff; }

.gal-count-bar {
    text-align: center; font-size: 13px;
    color: var(--text-muted); font-weight: 500; margin-bottom: 24px;
}

/* ── CSS Columns Masonry ─────────────────────────────── */
.gal-masonry {
    columns: 6;
    column-gap: 10px;
}

/* Each item breaks inside itself never */
.gal-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    display: block;
    background: var(--light);
}

.gal-item img {
    width: 100%;
    height: auto;          /* natural height — key for masonry */
    display: block;
    transition: transform 0.4s ease;
    border-radius: 10px;
}
.gal-item:hover img { transform: scale(1.04); }

/* Overlay */
.gal-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    border-radius: 10px;
    opacity: 0; transition: var(--transition);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 14px;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-overlay-inner {
    display: flex; flex-direction: column; gap: 4px; color: #fff;
}
.gal-overlay-inner i    { font-size: 18px; }
.gal-overlay-inner span {
    font-size: 12.5px; font-weight: 600; line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Category badge */
.gal-cat-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,0.5); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* Empty state */
.gal-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 0; color: var(--text-muted); gap: 12px;
}
.gal-empty i { font-size: 48px; opacity: 0.28; }
.gal-empty p { font-size: 15px; font-weight: 500; margin: 0; }

/* Pagination */
.gal-pag-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-top: 28px;
    padding-top: 20px; border-top: 1px solid var(--border);
}
.gal-pag-info { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.gal-pag-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ── Lightbox Modal ──────────────────────────────────── */
.gal-modal-dialog  { max-width: 960px; }
.gal-modal-content {
    background: #0d0d0d; border: none;
    border-radius: var(--radius-lg); overflow: hidden;
    position: relative;
}

.gal-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 20;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); font-size: 15px;
    backdrop-filter: blur(6px);
}
.gal-modal-close:hover { background: rgba(255,255,255,0.32); }

.gal-modal-img-wrap {
    position: relative; background: #000;
    min-height: 340px; max-height: 70vh;
    display: flex; align-items: center; justify-content: center;
}
.gal-modal-img-wrap img {
    max-width: 100%; max-height: 70vh;
    object-fit: contain; display: block;
    transition: opacity 0.18s;
}

.gal-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.13); border: none; color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; z-index: 5;
    backdrop-filter: blur(4px); transition: var(--transition);
}
.gal-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.3); }
.gal-nav-btn:disabled { opacity: 0.2; cursor: default; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }

.gal-modal-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 22px; gap: 12px; flex-wrap: wrap; background: #111;
}
.gal-modal-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.gal-modal-meta  { font-size: 12.5px; color: #999; }
.gal-modal-actions { display: flex; align-items: center; gap: 14px; }
.gal-dl-btn {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border-radius: 7px;
    background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 700;
    text-decoration: none; transition: var(--transition);
}
.gal-dl-btn:hover { background: var(--primary-light); color: #fff; }
.gal-counter { font-size: 13px; color: #888; font-weight: 600; white-space: nowrap; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1199px) { .gal-masonry { columns: 4; } }
@media (max-width: 767px)  {
    .gal-masonry { columns: 3; column-gap: 7px; }
    .gal-item    { margin-bottom: 7px; border-radius: 7px; }
    .gal-item img{ border-radius: 7px; }
    .gal-toolbar { flex-direction: column; align-items: stretch; }
    .gal-toolbar-right { margin-left: 0; }
    .gal-search-wrap input { width: 100%; }
    .gal-modal-img-wrap { min-height: 220px; max-height: 52vh; }
    .gal-modal-footer   { padding: 12px 14px; flex-direction: column; align-items: flex-start; }
    .gal-pag-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px)  { .gal-masonry { columns: 2; } }
