/* ============================================================
   style2.css — Site2 Theme: 3-Column Green (Deep Teal Institutional)
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --s2-primary: #003440;
    --s2-primary-dark: #002530;
    --s2-primary-light: #0b5153;
    --s2-accent: #e63946;
    --s2-teal: #064b4e;
    --s2-teal-light: #0a6b6e;
    --s2-mint-bg: #e8f5f0;
    --s2-text: #222;
    --s2-muted: #666;
    --s2-border: #ccc;
    --s2-white: #ffffff;
    --s2-card-bg: #ffffff;
    --s2-link: #0b5153;
}

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

/* ---- Body ---- */
body.s2-body {
    background-color: var(--s2-mint-bg);
    font-family: 'Hind Siliguri', 'Noto Sans', Arial, sans-serif;
    font-size: 14px;
    color: var(--s2-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */

/* School Header (Desktop) */
.s2-school-header {
    background: var(--s2-primary);
    color: #fff;
    padding: 18px 0;
}

.s2-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.s2-school-name {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.3;
}

.s2-school-name-bn {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin: 0 0 4px;
}

.s2-school-meta {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.s2-header-btn {
    display: block;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    margin-bottom: 6px;
    min-width: 130px;
    transition: opacity 0.2s;
}

.s2-header-btn:hover {
    opacity: 0.85;
}

.s2-header-btn-red {
    background: var(--s2-accent);
    color: #fff;
}

.s2-header-btn-green {
    background: #28a745;
    color: #fff;
}

.s2-header-btn-cyan {
    background: #17a2b8;
    color: #fff;
}

.s2-header-btn-orange {
    background: #e65100;
    color: #fff;
}

/* Mobile Header */
.s2-mobile-header {
    background: var(--s2-primary);
    color: #fff;
    text-align: center;
    padding: 12px 15px;
}

.s2-mobile-school-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

.s2-mobile-school-meta {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 8px;
}

.s2-mobile-cta {
    display: inline-block;
    background: var(--s2-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 4px;
    text-decoration: none;
}

/* Navbar */
.s2-navbar {
    background: var(--s2-primary-light) !important;
    padding: 0;
    border: none;
}

.s2-navbar .navbar-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 16px;
    transition: background 0.2s;
}

.s2-navbar .navbar-nav .nav-link:hover,
.s2-navbar .navbar-nav .nav-link.active {
    background: var(--s2-teal);
    color: #fff !important;
}

.s2-navbar .navbar-nav .nav-link.s2-nav-highlight {
    background: var(--s2-accent);
    color: #fff !important;
    border-radius: 3px;
    margin: 4px 2px;
    padding: 6px 12px;
}

.s2-navbar .dropdown-menu {
    background: var(--s2-primary-light);
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 200px;
}

.s2-navbar .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.s2-navbar .dropdown-menu .dropdown-item:hover {
    background: var(--s2-teal);
    color: #fff;
}

.s2-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.s2-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Notice Bar */
.s2-notice-bar {
    background: var(--s2-teal);
    padding: 10px 0;
    font-size: 0.85rem;
}

.s2-notice-label {
    background: var(--s2-accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 12px;
}

.s2-notice-bar marquee a {
    color: #fff;
    text-decoration: none;
    margin-right: 30px;
    font-size: 0.85rem;
}

.s2-notice-bar marquee a:hover {
    text-decoration: underline;
}

/* ============================================================
   SLIDER
   ============================================================ */
.s2-slider-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.s2-slider-caption {
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    text-align: center;
}

.s2-slider-caption h5 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.s2-slider-caption p {
    font-size: 0.8rem;
    margin: 4px 0 0;
    color: rgba(255,255,255,0.85);
}

/* ============================================================
   CONTENT BOXES / PANELS
   ============================================================ */
.s2-box {
    background: var(--s2-card-bg);
    border: 1px solid #ddd;
    margin-bottom: 12px;
    border-radius: 0;
}

.s2-box-head {
    background: var(--s2-teal);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s2-box-head a,
.s2-box-viewall {
    color: #fff;
    font-size: 0.72rem;
    text-decoration: none;
    opacity: 0.85;
}

.s2-box-head a:hover,
.s2-box-viewall:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Info Links List (তথ্য সমূহ) */
.s2-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-info-list li {
    border-bottom: 1px solid #eee;
}

.s2-info-list li a {
    display: block;
    padding: 8px 12px;
    color: var(--s2-text);
    text-decoration: none;
    font-size: 0.82rem;
    transition: background 0.2s, padding-left 0.2s;
}

.s2-info-list li a:hover {
    background: var(--s2-mint-bg);
    padding-left: 18px;
    color: var(--s2-teal);
}

.s2-info-list li a i {
    color: var(--s2-teal);
    margin-right: 6px;
    font-size: 0.7rem;
}

/* Notice List */
.s2-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-notice-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
}

.s2-notice-list li:last-child {
    border-bottom: none;
}

.s2-notice-date {
    text-align: center;
    flex-shrink: 0;
    width: 42px;
}

.s2-notice-date .month {
    display: block;
    background: var(--s2-accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 4px;
    line-height: 1.3;
}

.s2-notice-date .day {
    display: block;
    background: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--s2-text);
    padding: 2px 4px;
    line-height: 1.3;
}

.s2-notice-list li a {
    color: var(--s2-text);
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s2-notice-list li a:hover {
    color: var(--s2-teal);
}

.s2-notice-list li .s2-notice-icons a {
    color: var(--s2-accent);
    margin-left: 5px;
    font-size: 0.75rem;
}

/* Message Card (Chairman/Principal) */
.s2-msg-card {
    text-align: center;
    padding: 15px 12px;
}

.s2-msg-photo {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--s2-teal);
    border-radius: 4px;
    margin-bottom: 10px;
}

.s2-msg-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--s2-text);
    margin: 0 0 2px;
}

.s2-msg-designation {
    font-size: 0.72rem;
    color: var(--s2-muted);
    margin: 0 0 8px;
}

.s2-msg-btn {
    display: inline-block;
    background: var(--s2-teal);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.s2-msg-btn:hover {
    background: var(--s2-primary);
    color: #fff;
}

/* Welcome Section */
.s2-welcome-section {
    padding: 12px;
}

.s2-welcome-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--s2-primary);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--s2-teal);
    padding-bottom: 5px;
}

.s2-welcome-section p {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.6;
}

.s2-welcome-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 2px solid var(--s2-teal);
    border-radius: 4px;
    float: left;
    margin: 0 12px 8px 0;
}

/* Info Boxes (About, Academic, Administration, Download) */
.s2-info-box {
    background: var(--s2-card-bg);
    border: 1px solid #ddd;
    padding: 15px;
    height: 100%;
}

.s2-info-box-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--s2-teal);
}

.s2-info-box-icon {
    width: 40px;
    height: 40px;
    background: var(--s2-mint-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s2-teal);
    font-size: 1rem;
    flex-shrink: 0;
}

.s2-info-box-head h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--s2-primary);
    margin: 0;
}

.s2-info-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-info-box-list li {
    padding: 4px 0;
    font-size: 0.8rem;
}

.s2-info-box-list li a {
    color: var(--s2-text);
    text-decoration: none;
}

.s2-info-box-list li a:hover {
    color: var(--s2-teal);
}

.s2-info-box-list li a i {
    color: var(--s2-teal);
    margin-right: 6px;
    font-size: 0.7rem;
}

/* Academic Calendar */
.s2-calendar {
    padding: 12px;
}

.s2-calendar-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--s2-teal);
    margin-bottom: 10px;
}

.s2-calendar table {
    width: 100%;
    font-size: 0.8rem;
    text-align: center;
    border-collapse: separate;
    border-spacing: 2px;
}

.s2-calendar table th {
    color: var(--s2-primary);
    font-weight: 700;
    padding: 6px 4px;
    font-size: 0.75rem;
}

.s2-calendar table th:first-child {
    color: var(--s2-accent);
}

.s2-calendar table td {
    padding: 6px 4px;
    color: var(--s2-text);
    border-radius: 4px;
}

.s2-calendar table td:hover {
    background: var(--s2-mint-bg);
}

.s2-calendar table td.today {
    background: var(--s2-teal);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    width: 28px;
    height: 28px;
}

/* Video Section */
.s2-video-embed {
    width: 100%;
    height: 180px;
    border: none;
    display: block;
}

/* Help Line */
.s2-helpline {
    padding: 10px 12px;
}

.s2-helpline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.82rem;
}

.s2-helpline-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.s2-helpline-item span {
    font-weight: 600;
    color: var(--s2-text);
}

/* Events / News Cards */
.s2-event-card {
    background: var(--s2-card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.s2-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.s2-event-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.s2-event-card:hover img {
    transform: scale(1.05);
}

.s2-event-card-body {
    padding: 10px;
}

.s2-event-card-body h6 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--s2-text);
    margin: 0 0 4px;
}

.s2-event-card-body .date {
    font-size: 0.7rem;
    color: var(--s2-muted);
    margin-bottom: 6px;
}

.s2-event-card-body .s2-read-more {
    display: inline-block;
    background: var(--s2-teal);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
}

.s2-event-card-body .s2-read-more:hover {
    background: var(--s2-primary);
}

/* Section Header */
.s2-section-head {
    background: var(--s2-teal);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s2-section-head a {
    color: #fff;
    font-size: 0.72rem;
    text-decoration: none;
    background: var(--s2-accent);
    padding: 2px 8px;
    border-radius: 3px;
}

/* Google Map */
.s2-map-section {
    background: var(--s2-teal);
    padding: 8px 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.s2-map-iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Visitor Counter */
.s2-visitor-wrap {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px;
    text-align: center;
}

.s2-visitor-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s2-visitor-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--s2-primary);
}

.s2-visitor-label {
    font-size: 0.68rem;
    color: var(--s2-muted);
    text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.s2-footer {
    background: var(--s2-primary);
    color: rgba(255,255,255,0.85);
    padding: 30px 0 0;
    margin-top: 20px;
}

.s2-footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--s2-teal-light);
}

.s2-footer-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.s2-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-footer-links li {
    padding: 3px 0;
}

.s2-footer-links li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.s2-footer-links li a:hover {
    color: #fff;
}

.s2-footer-links li a i {
    margin-right: 6px;
    font-size: 0.7rem;
}

.s2-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

.s2-footer-contact li i {
    color: var(--s2-teal-light);
    margin-top: 3px;
    flex-shrink: 0;
}

.s2-social-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.s2-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.s2-social-icons a:hover {
    background: var(--s2-teal-light);
}

.s2-footer-hr {
    border-color: rgba(255,255,255,0.15);
    margin: 20px 0 0;
}

.s2-footer-bottom {
    padding: 12px 0;
    background: var(--s2-primary-dark);
}

.s2-footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.s2-footer-copy a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.s2-footer-copy a:hover {
    color: #fff;
}

/* Facebook Embed */
.s2-fb-embed {
    padding: 10px;
    text-align: center;
}

/* ============================================================
   PAGE HEADER (Inner Pages)
   ============================================================ */
.s2-page-header {
    background: linear-gradient(135deg, var(--s2-primary), var(--s2-teal));
    padding: 25px 15px;
    color: #fff;
    position: relative;
}

.s2-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.s2-page-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.s2-page-header svg {
    display: block;
    width: 100%;
    margin-top: -1px;
}

/* ============================================================
   INNER PAGE STYLES
   ============================================================ */
.s2-inner-page {
    padding: 25px 0;
    min-height: 400px;
}

.s2-card {
    background: var(--s2-card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.s2-card-header {
    background: var(--s2-teal);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.s2-card-body {
    padding: 15px;
}

.s2-card-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Inner Page Components */
.s2-page-section-header {
    background: var(--s2-teal);
    color: #fff;
    padding: 8px 15px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.s2-content-body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #333;
}

.s2-content-body img {
    max-width: 100%;
    height: auto;
}

.s2-content-body table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.s2-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 3px;
    background: var(--s2-teal);
    color: #fff;
}

/* Notice Inner Page */
.s2-notice-item-row {
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    background: #fff;
    border-left: 4px solid var(--s2-teal);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.s2-notice-item-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    background: var(--s2-mint-bg);
}

.s2-notice-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--s2-primary);
    transition: color 0.2s;
}

.s2-notice-item-row:hover .s2-notice-title {
    color: var(--s2-teal);
}

.s2-notice-meta {
    font-size: 0.75rem;
    color: var(--s2-muted);
}

/* Event Inner Page */
.s2-event-list-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--s2-teal);
    transition: transform 0.2s, box-shadow 0.2s;
}

.s2-event-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.s2-event-list-date {
    text-align: center;
    flex-shrink: 0;
    width: 55px;
    background: var(--s2-teal);
    color: #fff;
    padding: 8px;
    border-radius: 6px;
}

.s2-event-list-day {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.s2-event-list-mon {
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block;
}

/* Faculty */
.s2-faculty-card {
    background: var(--s2-card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    padding: 20px 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.s2-faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.s2-faculty-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--s2-teal);
    margin-bottom: 12px;
}

.s2-faculty-body {
    text-align: center;
}

.s2-faculty-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--s2-primary);
    margin: 0 0 3px;
}

.s2-faculty-designation {
    font-size: 0.72rem;
    color: var(--s2-muted);
}

/* Department Card */
.s2-dept-card {
    background: var(--s2-card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 3px solid transparent;
}

.s2-dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-top-color: var(--s2-teal);
}

/* Gallery */
.s2-gallery-album-card {
    background: var(--s2-card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.s2-gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.s2-gallery-album-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.s2-gallery-album-body {
    padding: 10px;
}

.s2-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.s2-gallery-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.s2-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s2-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.s2-gallery-item:hover .s2-gallery-overlay {
    opacity: 1;
}

/* Search / Filter */
.s2-search-filter-box {
    background: var(--s2-card-bg);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Profile */
.s2-profile-img {
    max-width: 200px;
    border-radius: 4px;
    border: 3px solid var(--s2-teal);
}

/* Contact */
.s2-contact-info-box {
    background: var(--s2-card-bg);
    border: 1px solid #ddd;
    padding: 20px;
}

.s2-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.s2-contact-info-item:last-child {
    border-bottom: none;
}

.s2-contact-info-icon {
    width: 36px;
    height: 36px;
    background: var(--s2-mint-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--s2-teal);
    flex-shrink: 0;
}

/* Buttons */
.s2-btn-primary {
    background: var(--s2-teal);
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.s2-btn-primary:hover {
    background: var(--s2-primary);
    color: #fff;
}

.s2-btn-outline {
    background: transparent;
    color: var(--s2-teal);
    border: 1px solid var(--s2-teal);
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.s2-btn-outline:hover {
    background: var(--s2-teal);
    color: #fff;
}

/* Stars of Institution */
.s2-stars-ticker-wrap {
    overflow: hidden;
    padding: 8px 0;
}

.s2-stars-track {
    display: inline-flex;
    white-space: nowrap;
}

.s2-star-card {
    width: 140px;
    text-align: center;
    padding: 8px;
    flex-shrink: 0;
}

.s2-star-card-photo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--s2-teal);
    margin-bottom: 5px;
}

.s2-star-card-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--s2-text);
    margin: 0;
    white-space: normal;
}

.s2-star-card-uni {
    font-size: 0.65rem;
    color: var(--s2-muted);
    margin: 2px 0 0;
    white-space: normal;
}

.s2-star-card-batch {
    font-size: 0.65rem;
    color: var(--s2-muted);
    margin: 0;
}

/* Sidebar Notice Ticker */
.s2-sb-ticker {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.s2-sb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.s2-sb-list li {
    padding: 6px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.78rem;
}

.s2-sb-list li a {
    color: var(--s2-text);
    text-decoration: none;
}

.s2-sb-list li a:hover {
    color: var(--s2-teal);
}

/* Highlight Buttons */
.s2-hbtn {
    display: block;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
}

.s2-hbtn:hover {
    opacity: 0.85;
    color: #fff;
}

/* About Text */
.s2-about-text {
    font-size: 0.8rem;
    color: #444;
    line-height: 1.6;
    padding: 8px 12px;
    margin: 0;
}

/* Important Links */
.s2-imp-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.s2-imp-links li {
    border-bottom: 1px solid #eee;
}

.s2-imp-links li a {
    display: block;
    padding: 7px 12px;
    color: var(--s2-text);
    text-decoration: none;
    font-size: 0.78rem;
    transition: background 0.2s;
}

.s2-imp-links li a:hover {
    background: var(--s2-mint-bg);
    color: var(--s2-teal);
}

/* Read More Link */
.s2-read-more {
    color: var(--s2-teal);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
}

.s2-read-more:hover {
    color: var(--s2-primary);
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .s2-slider-img {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .s2-slider-img {
        height: 200px;
    }
    .s2-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .s2-page-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 575px) {
    .s2-slider-img {
        height: 160px;
    }
    .s2-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Top Bar */
.s2-topbar {
    background: var(--s2-primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    padding: 5px 0;
}

.s2-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.s2-topbar-item i {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* School Address in header */
.s2-school-address {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* Footer Visitor Box */
.s2-visitor-box {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 10px;
}

.s2-visitor-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

.s2-visitor-row:last-child {
    border-bottom: none;
}

.s2-visitor-row span {
    color: rgba(255,255,255,0.7);
}

.s2-visitor-row strong {
    color: #fff;
}

.s2-visitor-total {
    background: rgba(255,255,255,0.05);
    padding: 6px 8px;
    border-radius: 3px;
    margin-top: 4px;
}

/* Home Page Sections */
.s2-home-section {
    margin-top: 15px;
}

.s2-home-section-top {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Highlight Button Colors */
.s2-hbtn-green { background: #1a4012; }
.s2-hbtn-blue { background: #1565c0; }
.s2-hbtn-orange { background: #e65100; }
.s2-hbtn-red { background: #c62828; }
.s2-hbtn-teal { background: #0b5153; }

/* Achievements */
.s2-achievements-grid {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
}

.s2-achievement-cell {
    flex: 1 1 25%;
    padding: 14px 8px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.s2-achievement-cell:nth-child(4n) {
    border-right: none;
}

.s2-achievement-cell:nth-last-child(-n+4) {
    border-bottom: none;
}

.s2-achievement-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.s2-achievement-icon-warning { color: #f59e0b; }
.s2-achievement-icon-teal { color: var(--s2-teal); }
.s2-achievement-icon-danger { color: #ef4444; }

.s2-achievement-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--s2-primary);
}

.s2-achievement-label {
    font-size: 0.7rem;
    color: var(--s2-muted);
}

/* Bottom Messages / Leadership */
.s2-leadership-card {
    text-align: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.s2-leadership-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--s2-teal);
    margin-bottom: 6px;
}

.s2-leadership-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--s2-primary);
}

.s2-leadership-designation {
    font-size: 0.7rem;
    color: var(--s2-muted);
    margin-bottom: 4px;
}

.s2-leadership-text {
    font-size: 0.72rem;
    color: #444;
    margin-bottom: 6px;
}

/* Gallery grid padding */
.s2-gallery-grid-padded {
    padding: 4px;
}

/* Clearfix */
.s2-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 767px) {
    .s2-achievement-cell {
        flex: 1 1 50%;
    }
    .s2-achievement-cell:nth-child(2n) {
        border-right: none;
    }
    .s2-achievement-cell:nth-child(2n+1) {
        border-right: 1px solid #ddd;
    }
}

/* Chart Container */
.s2-chart-container {
    min-height: 200px;
}
