/* ============================================================
   Site3 — Classic School Layout (Green Theme)
   Inspired by traditional Bangladeshi school website design
   ============================================================ */

:root {
    --s3-primary:       #1d5938f7;   /* dark olive green */
    --s3-primary-dark:  #1e4d14;
    --s3-primary-light: #e8f5e2;
    --s3-accent:        #4caf50;   /* bright green for CTA */
    --s3-topbar-bg:     #1a1a1a;
    --s3-header-bg:     #ffffff;
    --s3-navbar-bg:     #2d6a1f;
    --s3-notice-bg:     #f0f7ee;
    --s3-sidebar-head:  #2d6a1f;
    --s3-footer-bg:     #1e3a14;
    --s3-text:          #333333;
    --s3-text-muted:    #666666;
    --s3-border:        #d8e8d4;
    --s3-white:         #ffffff;
    --s3-light:         #f5f5f5;
    --s3-shadow:        0 2px 8px rgba(0,0,0,0.08);
    --s3-radius:        6px;
    --s3-transition:    all 0.25s ease;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Hind Siliguri', 'Noto Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--s3-text);
    background: #f5f5f5;
    overflow-x: hidden;
}

a { color: var(--s3-primary); text-decoration: none; transition: var(--s3-transition); }
a:hover { color: var(--s3-accent); }
img { max-width: 100%; height: auto; }

/* ── Top Bar ── */
.s3-topbar {
    background: var(--s3-topbar-bg);
    color: #ccc;
    font-size: 0.8rem;
    padding: 5px 0;
}
.s3-topbar-item { color: #ccc; }
.s3-topbar-item i { color: var(--s3-accent); margin-right: 4px; }

/* ── School Header ── */
.s3-school-header {
    background: var(--s3-header-bg);
    border-bottom: 3px solid var(--s3-primary);
}
.s3-logo { max-height: 80px; }
.s3-school-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 4px;
}
.s3-school-meta { color: var(--s3-text-muted); font-size: 0.9rem; font-style: italic; }
.s3-school-address { color: var(--s3-text-muted); font-size: 0.78rem; margin-top: 4px; }

/* ── Notice Marquee Bar ── */
.s3-notice-bar {
    background: var(--s3-notice-bg);
    border-top: 1px solid var(--s3-border);
    border-bottom: 1px solid var(--s3-border);
    padding: 5px 0;
    font-size: 0.85rem;
}
.s3-notice-label {
    background: var(--s3-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
    margin-right: 10px;
    flex-shrink: 0;
}
.s3-marquee a { color: var(--s3-primary-dark); margin-right: 20px; }
.s3-marquee a:hover { color: var(--s3-accent); }

/* ── Navbar ── */
.s3-navbar {
    background: var(--s3-navbar-bg) !important;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.s3-navbar .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: var(--s3-transition);
}
.s3-navbar .navbar-nav .nav-link:hover,
.s3-navbar .navbar-nav .nav-link:focus {
    background: var(--s3-primary-dark);
    color: #fff !important;
}
.s3-navbar .navbar-toggler { border-color: rgba(255,255,255,0.5); }
.s3-navbar .navbar-toggler-icon { filter: invert(1); }

.s3-dropdown {
    border: none;
    border-radius: var(--s3-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 6px 0;
}
.s3-dropdown .dropdown-item {
    font-size: 0.85rem;
    padding: 7px 16px;
    color: var(--s3-text);
    transition: var(--s3-transition);
}
.s3-dropdown .dropdown-item:hover {
    background: var(--s3-primary-light);
    color: var(--s3-primary);
    padding-left: 22px;
}

/* ── Buttons ── */
.s3-btn-primary {
    background: var(--s3-primary);
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--s3-transition);
}
.s3-btn-primary:hover { background: var(--s3-primary-dark); color: #fff !important; }

.s3-btn-outline-primary {
    border: 1px solid var(--s3-primary);
    color: var(--s3-primary) !important;
    background: transparent;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--s3-transition);
}
.s3-btn-outline-primary:hover { background: var(--s3-primary); color: #fff !important; }

.s3-btn-white {
    background: #fff;
    color: var(--s3-primary) !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
}
.s3-btn-white:hover { background: var(--s3-primary-light); }

.s3-read-more {
    color: var(--s3-primary);
    font-size: 0.82rem;
    font-weight: 600;
}
.s3-read-more:hover { color: var(--s3-accent); }

/* ── Highlight Buttons Bar ── */
.s3-highlight-bar {
    background: #fff;
    border-bottom: 2px solid var(--s3-border);
}
.s3-hbtn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff !important;
    transition: var(--s3-transition);
}
.s3-hbtn:hover { transform: translateY(-2px); opacity: 0.9; color: #fff !important; }
.s3-hbtn-blue   { background: #1565c0; }
.s3-hbtn-green  { background: var(--s3-primary); }
.s3-hbtn-orange { background: #e65100; }
.s3-hbtn-red    { background: #c62828; }

/* ── Main Wrapper ── */
.s3-main-wrapper { padding: 20px 0 30px; }

/* ── Section Block (used in main column) ── */
.s3-section-block {
    background: #fff;
    border-radius: var(--s3-radius);
    box-shadow: var(--s3-shadow);
    margin-bottom: 18px;
    overflow: hidden;
}

.s3-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--s3-primary);
    color: #fff;
    padding: 9px 14px;
    font-size: 0.95rem;
    font-weight: 700;
}
.s3-section-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.s3-viewall-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 2px 10px;
    border-radius: 20px;
    transition: var(--s3-transition);
}
.s3-viewall-link:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Slider ── */
.s3-slider { border-radius: 0; }
.s3-slider-img {
    height: 340px;
    object-fit: cover;
    width: 100%;
}
.s3-slider-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    padding: 20px 16px 12px;
}
.s3-slider-caption h5 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.s3-slider-caption p  { font-size: 0.82rem; color: rgba(255,255,255,0.85); margin: 0; }

/* ── About Section ── */
.s3-about-img { border-radius: var(--s3-radius); }
.s3-about-text { font-size: 0.9rem; line-height: 1.7; padding: 0 14px 14px; }
.s3-section-block .s3-about-text { padding: 14px; }

/* ── Achievement Cards ── */
.s3-achievement-card {
    border-radius: var(--s3-radius);
    overflow: hidden;
    box-shadow: var(--s3-shadow);
    background: #fff;
    transition: var(--s3-transition);
}
.s3-achievement-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.s3-achievement-img { width: 100%; height: 160px; object-fit: cover; }
.s3-achievement-body { padding: 10px 12px; }
.s3-achievement-title { font-size: 0.85rem; font-weight: 600; color: var(--s3-text); margin-bottom: 4px; }

/* ── Event Cards ── */
.s3-event-card {
    border-radius: var(--s3-radius);
    overflow: hidden;
    box-shadow: var(--s3-shadow);
    background: #fff;
    transition: var(--s3-transition);
    height: 100%;
}
.s3-event-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.s3-event-img-wrap { position: relative; height: 160px; overflow: hidden; }
.s3-event-img { width: 100%; height: 100%; object-fit: cover; transition: var(--s3-transition); }
.s3-event-card:hover .s3-event-img { transform: scale(1.05); }
.s3-event-date {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--s3-primary);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-weight: 700; line-height: 1;
}
.s3-ed-day { font-size: 1rem; }
.s3-ed-mon { font-size: 0.65rem; text-transform: uppercase; }
.s3-event-cat {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
}
.s3-event-body { padding: 10px 12px; }
.s3-event-title { font-size: 0.88rem; font-weight: 700; color: var(--s3-text); margin-bottom: 4px; line-height: 1.4; }
.s3-event-summary { font-size: 0.8rem; color: var(--s3-text-muted); margin-bottom: 6px; }

/* ── Photo Gallery ── */
.s3-gallery-item { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1; }
.s3-gallery-img { width: 100%; height: 100%; object-fit: cover; transition: var(--s3-transition); }
.s3-gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(45,106,31,0.6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
    opacity: 0; transition: var(--s3-transition);
}
.s3-gallery-item:hover .s3-gallery-img { transform: scale(1.08); }
.s3-gallery-item:hover .s3-gallery-overlay { opacity: 1; }

/* ── Video Block ── */
.s3-video-block video { border-radius: 0; max-height: 280px; object-fit: cover; }

/* ── Stats Row ── */
.s3-stat-box {
    background: #fff;
    border-radius: var(--s3-radius);
    padding: 18px 10px;
    box-shadow: var(--s3-shadow);
    border-top: 3px solid var(--s3-primary);
}
.s3-stat-icon { font-size: 1.8rem; color: var(--s3-primary); margin-bottom: 8px; }
.s3-stat-num { font-size: 1.4rem; font-weight: 700; color: var(--s3-primary-dark); margin-bottom: 2px; }
.s3-stat-label { font-size: 0.78rem; color: var(--s3-text-muted); margin: 0; }

/* ── Sidebar ── */
.s3-sidebar-box {
    background: #fff;
    border-radius: var(--s3-radius);
    box-shadow: var(--s3-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.s3-sidebar-heading {
    background: var(--s3-primary);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.s3-sidebar-viewall {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 1px 8px;
    border-radius: 20px;
}
.s3-sidebar-viewall:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Sidebar: Messages ── */
.s3-msg-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.s3-msg-name { font-size: 0.88rem; font-weight: 700; color: var(--s3-primary-dark); }
.s3-msg-designation { font-size: 0.75rem; }
.s3-msg-text { font-size: 0.8rem; color: var(--s3-text-muted); line-height: 1.5; }

/* ── Sidebar: Notice Ticker ── */
.s3-notice-ticker {
    height: 280px;
    position: relative;
    overflow: hidden;
}
.s3-notice-list {
    position: absolute;
    width: 100%;
    top: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
}
.s3-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid var(--s3-border);
    transition: var(--s3-transition);
}
.s3-notice-item:hover { background: var(--s3-primary-light); }
.s3-notice-date {
    background: var(--s3-primary);
    color: #fff;
    min-width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-weight: 700; line-height: 1; flex-shrink: 0;
}
.s3-nd-day { font-size: 0.9rem; }
.s3-nd-mon { font-size: 0.6rem; text-transform: uppercase; }
.s3-notice-link { font-size: 0.8rem; color: var(--s3-text); line-height: 1.4; }
.s3-notice-link:hover { color: var(--s3-primary); }

/* ── Sidebar: Visitor Counter ── */
.s3-visitor-table { padding: 8px 14px; }
.s3-vt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--s3-border);
    font-size: 0.85rem;
}
.s3-vt-row:last-child { border-bottom: none; }
.s3-vt-row strong { color: var(--s3-primary-dark); font-weight: 700; }
.s3-vt-total { background: var(--s3-primary-light); margin: 0 -14px; padding: 8px 14px; }
.s3-vt-total strong { font-size: 1rem; }

/* ── Sidebar: Stars ── */
.s3-stars-list { padding: 8px 12px; }
.s3-star-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--s3-border);
}
.s3-star-item:last-child { border-bottom: none; }
.s3-star-photo { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--s3-primary); flex-shrink: 0; }
.s3-star-name { font-size: 0.85rem; font-weight: 700; color: var(--s3-primary-dark); }
.s3-star-meta { font-size: 0.75rem; color: var(--s3-text-muted); }
.s3-star-batch { font-size: 0.72rem; }

/* ── Bottom Messages ── */
.s3-bottom-messages { background: var(--s3-primary-light); }
.s3-leader-card {
    background: #fff;
    border-radius: var(--s3-radius);
    padding: 20px 16px;
    box-shadow: var(--s3-shadow);
    transition: var(--s3-transition);
}
.s3-leader-card:hover { transform: translateY(-4px); }
.s3-leader-photo { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; border: 3px solid var(--s3-primary); margin-bottom: 12px; }
.s3-leader-name { font-size: 0.95rem; font-weight: 700; color: var(--s3-primary-dark); margin-bottom: 2px; }
.s3-leader-designation { font-size: 0.78rem; color: var(--s3-text-muted); margin-bottom: 8px; }
.s3-leader-msg { color: var(--s3-text-muted); }

/* ── Quick Links ── */
.s3-quick-links { background: var(--s3-primary); }
.s3-ql-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--s3-radius);
    padding: 18px 10px;
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    transition: var(--s3-transition);
}
.s3-ql-card i { font-size: 1.5rem; }
.s3-ql-card:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); color: #fff !important; }
.s3-ql-green  { background: rgba(76,175,80,0.25); }
.s3-ql-orange { background: rgba(230,81,0,0.25); }
.s3-ql-red    { background: rgba(198,40,40,0.25); }

/* ── Testimonials ── */
.s3-testimonials { background: var(--s3-light); }
.s3-testimonial-card {
    background: #fff;
    border-radius: var(--s3-radius);
    padding: 18px;
    box-shadow: var(--s3-shadow);
    border-left: 4px solid var(--s3-primary);
}
.s3-testimonial-avatar { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 2px solid var(--s3-primary); flex-shrink: 0; }
.s3-testimonial-text { font-size: 0.88rem; color: var(--s3-text-muted); line-height: 1.6; font-style: italic; }

/* ── Page Header ── */
.s3-page-header {
    background: linear-gradient(135deg, var(--s3-primary) 0%, var(--s3-primary-dark) 100%);
    color: #fff;
    padding: 28px 0 0;
    position: relative;
    overflow: hidden;
}
.s3-page-header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.s3-page-header-subtitle { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.s3-page-header-icon { font-size: 4rem; color: rgba(255,255,255,0.3); }
.s3-page-header-wave { display: block; width: 100%; height: 50px; }

/* ── Footer ── */
.s3-footer {
    background: var(--s3-footer-bg);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 0;
}
.s3-footer-heading {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--s3-accent);
    display: inline-block;
}
.s3-footer-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.s3-footer-links { margin: 0; padding: 0; }
.s3-footer-links li { margin-bottom: 7px; }
.s3-footer-links a { color: rgba(255,255,255,0.75); font-size: 0.85rem; transition: var(--s3-transition); }
.s3-footer-links a:hover { color: var(--s3-accent); padding-left: 4px; }
.s3-footer-contact { margin: 0; padding: 0; }
.s3-footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.s3-footer-contact i { color: var(--s3-accent); margin-top: 3px; flex-shrink: 0; }
.s3-social-icons { display: flex; gap: 8px; }
.s3-social-icons a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: var(--s3-transition);
}
.s3-social-icons a:hover { background: var(--s3-accent); transform: translateY(-2px); }
.s3-visitor-box { padding: 0 4px; }
.s3-visitor-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}
.s3-visitor-row:last-child { border-bottom: none; }
.s3-visitor-row strong { color: var(--s3-accent); }
.s3-visitor-total strong { font-size: 1.1rem; }
.s3-footer-hr { border-color: rgba(255,255,255,0.1); margin: 24px 0 16px; }
.s3-footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.55); padding-bottom: 16px; }
.s3-footer-copy a { color: var(--s3-accent); }
.s3-footer-copy a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .s3-slider-img { height: 240px; }
    .s3-school-name { font-size: 1.1rem; }
}
@media (max-width: 767.98px) {
    .s3-slider-img { height: 200px; }
    .s3-main-wrapper { padding: 12px 0 20px; }
    .s3-section-block { margin-bottom: 12px; }
}

/* ── Bottom Bar (Quick Links + Address) ── */
.s3-bottom-bar {
    background: var(--s3-primary-light);
    border-top: 3px solid var(--s3-primary);
    padding: 28px 0;
}
.s3-bottom-bar-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--s3-primary-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--s3-primary);
    display: inline-block;
}
.s3-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.s3-bottom-links li {
    margin-bottom: 7px;
}
.s3-bottom-links a {
    font-size: 0.85rem;
    color: var(--s3-text);
    transition: var(--s3-transition);
}
.s3-bottom-links a:hover {
    color: var(--s3-primary);
    padding-left: 4px;
}
.s3-bottom-links i {
    color: var(--s3-primary);
    font-size: 0.75rem;
}
.s3-bottom-address {
    list-style: none;
    padding: 0;
    margin: 0;
}
.s3-bottom-address li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--s3-text);
    align-items: flex-start;
}
.s3-bottom-address i {
    color: var(--s3-primary);
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
}

/* ── Bottom Messages fix ── */
.s3-bottom-messages {
    background: var(--s3-primary-light);
    border-top: 3px solid var(--s3-primary);
}
.s3-bottom-messages .s3-section-header {
    border-radius: var(--s3-radius) var(--s3-radius) 0 0;
    margin-bottom: 20px;
}

/* ── Mobile School Header ── */
.s3-mobile-header {
    background: var(--s3-primary);
    color: #fff;
}
.s3-mobile-school-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.s3-mobile-school-meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.5;
}

/* ── Notice bar full-width on mobile ── */
@media (max-width: 991.98px) {
    .s3-notice-bar .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    .s3-notice-label {
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 0;
    }
    .s3-navbar .navbar-brand img {
        height: 38px;
    }
}

/* ── Photo Gallery Grid (CSS Grid for even layout) ── */
.s3-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.s3-gallery-grid .s3-gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}
.s3-gallery-grid .s3-gallery-item .s3-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.s3-gallery-grid .s3-gallery-item .s3-gallery-overlay {
    position: absolute;
    inset: 0;
}
@media (max-width: 575.98px) {
    .s3-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Bottom messages: ensure cards fill row properly ── */
.s3-bottom-messages .row {
    align-items: stretch;
}
.s3-leader-card {
    height: 100%;
}

/* ── Notice Board (main column) ── */
.s3-nb-container {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: var(--s3-light);
    border-radius: 4px;
}
.s3-nb-list {
    position: absolute;
    width: 100%;
    top: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
}
.s3-nb-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 6px;
    border-bottom: 1px solid var(--s3-border);
    transition: var(--s3-transition);
}
.s3-nb-item:hover { background: var(--s3-primary-light); }
.s3-nb-date {
    background: var(--s3-primary);
    color: #fff;
    min-width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-weight: 700; line-height: 1; flex-shrink: 0;
}
.s3-nb-day { font-size: 0.85rem; }
.s3-nb-mon { font-size: 0.58rem; text-transform: uppercase; }
.s3-nb-link { font-size: 0.8rem; color: var(--s3-text); line-height: 1.4; }
.s3-nb-link:hover { color: var(--s3-primary); }

/* ── Hero Video (main column) ── */
.s3-hero-video-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}
.s3-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.s3-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 60, 20, 0.6);
}
.s3-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1;
}
.s3-hero-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.s3-hero-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 14px;
}

/* ── Sidebar: Result Chart tabs ── */
.s3-chart-tabs .nav-link {
    font-size: 0.75rem;
    padding: 4px 8px;
    color: var(--s3-text-muted);
    border-color: var(--s3-border);
}
.s3-chart-tabs .nav-link.active {
    color: var(--s3-primary);
    font-weight: 700;
    border-bottom-color: #fff;
}

/* ── Sidebar: Stars Ticker ── */
.s3-stars-ticker-wrap {
    overflow: hidden;
    padding: 10px 8px;
    cursor: default;
    width: 100%;
}
.s3-stars-track {
    gap: 10px;
    will-change: transform;
}
.s3-star-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffd700, #f6c936);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #e6b800;
    vertical-align: top;
}
.s3-star-card-photo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-bottom: 5px;
}
.s3-star-card-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4a3502;
    margin: 0 0 2px;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
}
.s3-star-card-uni, .s3-star-card-batch {
    font-size: 0.62rem;
    color: #5a4010;
    margin: 0;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

/* ── Footer mobile centering ── */
@media (max-width: 767.98px) {
    .s3-footer .col-lg-4,
    .s3-footer .col-lg-2,
    .s3-footer .col-lg-3 {
        text-align: center;
    }
    .s3-footer-contact li {
        justify-content: center;
    }
    .s3-social-icons {
        justify-content: center;
    }
    .s3-footer-heading {
        display: block;
        text-align: center;
    }
    .s3-visitor-row {
        justify-content: center;
        gap: 12px;
    }
    .s3-footer .row > div {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 16px;
    }
    .s3-footer .row > div:last-child {
        border-bottom: none;
    }
}

/* ── Bottom bar (Quick Links + Address) mobile centering ── */
@media (max-width: 767.98px) {
    .s3-bottom-bar-heading {
        display: block;
        text-align: center;
    }
    .s3-bottom-links {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }
    .s3-bottom-address li {
        justify-content: center;
    }
}


/* ── Inner Pages ── */
.s3-inner-page { background: #f5f5f5; min-height: 60vh; }
.s3-card { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 16px; overflow: hidden; }
.s3-card-header { background: var(--s3-primary); color: #fff; padding: 10px 16px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: space-between; }
.s3-card-body { padding: 16px; }
.s3-card-footer { padding: 12px 16px; border-top: 1px solid var(--s3-border); background: #fafafa; }
.s3-page-section-header { border-left: 4px solid var(--s3-primary); padding: 6px 12px; background: var(--s3-primary-light); margin-bottom: 16px; border-radius: 0 4px 4px 0; }
.s3-page-section-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--s3-primary-dark); }
.s3-content-body { font-size: 0.95rem; line-height: 1.7; }
.s3-content-body img { max-width: 100%; height: auto; }
.s3-content-body table { width: 100%; overflow-x: auto; display: block; }
.s3-content-body iframe { max-width: 100%; }
.s3-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; background: var(--s3-primary-light); color: var(--s3-primary); }
.s3-item-list li { padding: 8px 0; border-bottom: 1px solid var(--s3-border); display: flex; align-items: flex-start; gap: 10px; }
.s3-item-list li:last-child { border-bottom: none; }
.s3-notice-item-row { background: #fff; border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-left: 3px solid var(--s3-primary); transition: all 0.2s ease; }
.s3-notice-item-row:hover { transform: translateX(4px); box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.s3-notice-title { font-weight: 600; color: var(--s3-primary-dark); font-size: 0.95rem; margin-bottom: 4px; }
.s3-notice-meta { font-size: 0.78rem; color: var(--s3-text-muted); }
.s3-event-list-item { background: #fff; border-radius: 6px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); display: flex; gap: 14px; align-items: flex-start; transition: all 0.2s ease; }
.s3-event-list-item:hover { transform: translateX(4px); }
.s3-event-list-date { background: var(--s3-primary); color: #fff; min-width: 48px; height: 48px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; line-height: 1; flex-shrink: 0; }
.s3-event-list-day { font-size: 1.1rem; }
.s3-event-list-mon { font-size: 0.65rem; text-transform: uppercase; }
.s3-faculty-card { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.25s ease; margin-bottom: 16px; }
.s3-faculty-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.s3-faculty-img { width: 100%; height: 220px; object-fit: cover; }
.s3-faculty-body { padding: 12px; }
.s3-faculty-name { font-size: 0.95rem; font-weight: 700; color: var(--s3-primary-dark); margin-bottom: 2px; }
.s3-faculty-designation { font-size: 0.78rem; color: var(--s3-text-muted); margin-bottom: 6px; }
.s3-dept-card { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 20px; text-align: center; cursor: pointer; transition: all 0.25s ease; border-top: 3px solid var(--s3-primary); }
.s3-dept-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.s3-dept-card:hover .s3-dept-name { color: var(--s3-accent); }
.s3-dept-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--s3-text-muted); margin-bottom: 6px; }
.s3-dept-name { font-size: 1rem; font-weight: 700; color: var(--s3-primary-dark); margin: 0; }
.s3-gallery-album-card { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.25s ease; margin-bottom: 16px; }
.s3-gallery-album-card:hover { transform: translateY(-4px); }
.s3-gallery-album-img { width: 100%; height: 180px; object-fit: cover; }
.s3-gallery-album-body { padding: 12px; }
.s3-search-filter-box { background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 16px; margin-bottom: 20px; }
.s3-profile-img { max-width: 200px; width: 100%; border-radius: 6px; border: 3px solid var(--s3-primary); }
.s3-contact-info-box { background: var(--s3-primary-light); border-radius: 6px; padding: 20px; border-left: 4px solid var(--s3-primary); }
.s3-contact-info-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.s3-contact-info-icon { width: 36px; height: 36px; background: var(--s3-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem; }

/* ── Topbar mobile centering ── */
@media (max-width: 767.98px) {
    .s3-topbar .row { justify-content: center; text-align: center; }
    .s3-topbar .col-6, .s3-topbar .col-md-4 { text-align: center !important; }
}

/* Sidebar Video */
.s3-sidebar-video {
    width: 100%;
    height: 180px;
    border: none;
    display: block;
}

/* Google Map */
.s3-map-iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}
