/* Little Jewels School — frontend theme */
:root {
    --green-dark: #1a5f3a;
    --green-main: #2d7a3e;
    --green-light: #3d9b4f;
    --green-nav: #2e7d32;
    --red-fee: #dc3545;
    --orange-login: #e85d04;
    --teal-header: #20b2aa;
    --teal-header-light: #40e0d0;
    --white: #fff;
    --gray-light: #f5f5f5;
    --gray-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Main Header - Teal/Light Blue */
.main-header {
    background: linear-gradient(135deg, #20b2aa 0%, #40e0d0 100%);
    color: #333;
}

.main-header a:has(.school-logo) {
    display: inline-block;
    text-decoration: none;
}

.school-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.estd-text {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    font-weight: 500;
}

.school-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.school-address {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0;
}

.header-eiin {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.header-contact {
    font-size: 0.9rem;
}

.header-contact a {
    color: #0d6efd !important;
    text-decoration: none;
}

.header-contact a:hover {
    text-decoration: underline;
}

.main-header .btn-fee {
    background: var(--red-fee);
    color: var(--white) !important;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.main-header .btn-login {
    background: var(--orange-login);
    color: var(--white) !important;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.main-header .btn-fee:hover,
.main-header .btn-login:hover {
    opacity: 0.9;
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .main-header .row > div {
        text-align: center !important;
    }
    .school-title { font-size: 1.4rem; }
}

/* Navigation - Green */
.main-nav {
    background: var(--green-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0.5rem 0;
    gap: 0;
    justify-content: space-evenly;
    flex: 1;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.5);
}

.nav-menu > li > a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--white) !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 100;
    border-radius: 4px;
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333 !important;
    text-decoration: none;
}

.nav-menu .dropdown-menu a:hover {
    background: var(--gray-bg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 4px 0;
}

@media (max-width: 992px) {
    .main-nav .container { flex-wrap: wrap; justify-content: flex-end; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 99;
        background: rgba(0,0,0,0.15);
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li:not(:last-child)::after { display: none; }
    .nav-menu .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.1);
    }
    .nav-menu .dropdown.active .dropdown-menu { display: block; }
}

/* Latest Notices Ticker Bar */
.notice-ticker-bar {
    background: #f0f7e8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.notice-ticker-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 44px;
}

.notice-ticker-label {
    background: #3d5a6c;
    color: var(--white);
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.notice-ticker-content {
    flex: 1;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.notice-ticker-scroll {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    animation: ticker-scroll 30s linear infinite;
}

.notice-ticker-scroll:hover {
    animation-play-state: paused;
}

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

.notice-ticker-item {
    display: inline-flex;
    align-items: center;
    color: #0d6efd !important;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.notice-ticker-item:hover {
    text-decoration: underline;
}

.notice-ticker-item i {
    font-size: 0.8rem;
    margin-right: 0.35rem;
    color: #0d6efd;
}

.ticker-sep {
    color: #ddd;
    font-size: 0.8rem;
    padding: 0 0.25rem;
}

@media (max-width: 768px) {
    .notice-ticker-wrapper {
        flex-direction: column;
    }

    .notice-ticker-label {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
        padding: 0.65rem 1rem;
    }

    /* Colored ticker label: full-bleed gradient on narrow screens */
    .notice-ticker-bar .notice-ticker-label.home-ticker-label {
        background-size: 100% 100%;
    }
}

/* Section Box - Common */
.section-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    background: var(--green-main);
    color: var(--white);
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.section-header-light {
    background: #555;
    color: var(--white);
}

/* Home: distinct section header accents (cohesive with teal + school green) */
.section-header--home-slider {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: var(--white);
}

.section-header--home-notices {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: var(--white);
}

.section-header--home-message {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    color: var(--white);
}

.section-header--home-events {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: var(--white);
}

.section-header--home-calendar {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    color: var(--white);
}

.section-header--home-news {
    background: linear-gradient(135deg, #9d174d 0%, #be185d 100%);
    color: var(--white);
}

.section-header--home-gallery {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: var(--white);
}

.section-header--home-history {
    background: linear-gradient(135deg, #57534e 0%, #78716c 100%);
    color: var(--white);
}

.section-header--home-independence {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    color: var(--white);
}

.section-header--home-videos {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    color: var(--white);
}

.section-header--home-visitor {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: var(--white);
}

.section-header--home-teachers {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    color: var(--white);
}

.section-header--home-links {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
    color: var(--white);
}

.section-header--home-address {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--white);
}

.notice-ticker-bar .notice-ticker-label.home-ticker-label {
    background: linear-gradient(135deg, #a16207 0%, #ca8a04 100%);
}

/* Home colored headers: mobile / small screens (match desktop accents, readable layout) */
@media (max-width: 767.98px) {
    .section-header[class*="section-header--home-"] {
        font-size: 0.92rem;
        line-height: 1.35;
        padding: 0.65rem 0.85rem !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .teachers-scroll-box .section-header.section-header--home-teachers {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        gap: 0.5rem;
    }

    .teachers-scroll-box .section-header.section-header--home-teachers .btn-see-all {
        align-self: center;
        margin: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .section-header[class*="section-header--home-"] {
        font-size: 0.88rem;
        padding: 0.6rem 0.75rem !important;
    }
}

/* Latest Notices */
.notice-carousel-img {
    height: 380px;
    object-fit: cover;
}

.latest-notices .carousel {
    position: relative;
    /* allow controls above caption */
    --bs-carousel-caption-spacer: 1rem;
}

.latest-notices .carousel-control-prev,
.latest-notices .carousel-control-next {
    z-index: 4;
    width: 10%;
    opacity: 0.85;
}

.latest-notices .carousel-control-prev:hover,
.latest-notices .carousel-control-next:hover {
    opacity: 1;
}

.notice-carousel-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1rem 1rem !important;
    border-radius: 0 0 4px 4px;
}

.latest-notices .notice-carousel-indicators {
    z-index: 5;
    margin-bottom: 3.25rem;
}

.notice-list {
    padding: 1rem;
}

.notice-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.notice-item:last-of-type {
    border-bottom: none;
}

.notice-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.notice-item a {
    color: #333;
    text-decoration: none;
}

.notice-item a:hover {
    color: var(--green-main);
}

.read-more {
    font-size: 0.85rem;
    color: var(--green-main) !important;
    display: inline-block;
    margin-top: 0.2rem;
}

.btn-see-all {
    display: inline-block;
    margin: 1rem;
    padding: 0.4rem 1rem;
    background: #e3f2fd;
    color: #1976d2;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-see-all:hover {
    background: #bbdefb;
    color: #0d47a1;
}

@media (max-width: 768px) {
    .notice-carousel-img { height: 250px; }
}

/* History & Independence Corner */
.history-independence {
    background: #f0f7e8;
    border-top: 1px solid #e0e0e0;
}

.history-content {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    align-items: flex-start;
}

.history-image {
    flex: 0 0 45%;
    min-width: 0;
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
}

.history-text {
    flex: 1;
    min-width: 0;
}

.history-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: #2196f3;
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-see-more:hover {
    background: #1976d2;
    color: var(--white) !important;
}

.independence-box .section-header {
    margin: 0;
}

.independence-image {
    padding: 0;
    overflow: hidden;
}

.independence-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .history-content {
        flex-direction: column;
    }
    .history-image {
        flex: none;
        width: 100%;
    }
}

/* Message Section */
.message-section {
    background: #f0f7e8;
}

.message-section-box {
    background: #f5faf0;
    border: 1px solid #e5ecd8;
    overflow: hidden;
}

.message-section-box .section-header {
    text-align: center;
    padding: 0.75rem 1rem;
}

.message-content {
    padding: 2.5rem 2rem;
}

.message-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 0 0 1.5rem;
}

.message-card:last-child {
    padding-bottom: 0;
}

.message-card-image {
    flex-shrink: 0;
}

.message-card-content {
    flex: 1;
    min-width: 0;
}

.message-avatar {
    width: 180px;
    height: 180px;
    object-fit: cover;
    display: block;
}

.message-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    text-align: left;
}

.message-title {
    font-size: 0.85rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1rem;
    text-align: left;
}

.message-text {
    font-size: 0.9rem;
    text-align: left;
    margin: 0 0 1rem;
    line-height: 1.75;
    color: #333;
}

.link-read-message {
    display: inline-block;
    color: #0d6efd !important;
    text-decoration: underline;
    font-size: 0.9rem;
    text-align: left;
}

.link-read-message:hover {
    color: #0a58ca !important;
}

@media (max-width: 768px) {
    .message-content {
        padding: 1.5rem 1rem;
    }
    .message-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .message-card-content {
        text-align: center;
    }
    .message-name,
    .message-title,
    .message-text,
    .link-read-message {
        text-align: center !important;
    }
    .message-avatar {
        width: 150px;
        height: 150px;
    }
}

/* Events & Academic Calendar Section */
.events-calendar {
    background: #f0f7e8;
}

.events-section-box,
.calendar-section-box {
    background: var(--white);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.events-section-box .section-header,
.calendar-section-box .section-header {
    padding: 0.75rem 1rem;
}

/* Events Cards */
.events-cards {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
}

.events-cards--all {
    flex-wrap: wrap;
}

.events-cards--all .event-card {
    flex: 1 1 240px;
    max-width: 100%;
}

.event-card {
    flex: 1;
    background: var(--white);
    border: 1px solid #ddd;
    overflow: hidden;
}

a.event-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

a.event-card:hover {
    border-color: var(--green-main);
    box-shadow: 0 2px 10px rgba(45, 122, 62, 0.12);
}

.event-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.event-card-title {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

/* Academic Calendar */
.calendar-content {
    padding: 1.25rem;
}

.calendar-legend {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.legend-item {
    margin-right: 1.25rem;
    display: inline-flex;
    align-items: center;
}

.legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 0.35rem;
}

.legend-event { background: var(--green-main); }
.legend-holiday { background: var(--red-fee); }
.legend-exam { background: #0d6efd; }

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-month {
    font-weight: 600;
    font-size: 1rem;
}

.calendar-nav button {
    background: var(--gray-bg);
    border: 1px solid #ddd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
    background: var(--white);
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: center;
}

.calendar-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.calendar-table td {
    vertical-align: top;
}

.calendar-table .holiday {
    color: #333;
}

.calendar-table .holiday span {
    display: block;
}

.holiday-marker {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--red-fee);
    margin: 2px auto 0;
    border-radius: 1px;
}

@media (max-width: 991px) {
    .events-cards {
        flex-direction: column;
    }
    .event-card-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .event-card-img {
        height: 180px;
    }
}

/* Videos Section */
.videos-visitor {
    background: #f0f7e8;
}

.videos-section-box {
    background: #f5faf0;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.videos-section-box .section-header {
    text-align: center;
    padding: 0.75rem 1rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
}

.video-card {
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--white);
    border: 2px solid #333;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
}

.video-card:nth-child(3) {
    grid-column: 1;
}

.videos-grid--fluid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.videos-grid--fluid .video-card:nth-child(n) {
    grid-column: auto;
}

.videos-grid--page {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 0;
}

.videos-grid--page .video-card:nth-child(n) {
    grid-column: auto;
}

.video-card-thumb {
    position: relative;
    overflow: hidden;
}

.video-card-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #ff0000;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.video-card-title {
    padding: 0.6rem 0.75rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.video-card-subtitle {
    display: block;
    padding: 0 0.75rem 0.6rem;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .video-card:nth-child(3) {
        grid-column: 1;
    }
    .video-card-thumb img {
        height: 180px;
    }
}

/* Visitor */
.visitor-stats {
    padding: 1rem;
}

.visitor-item {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    background: var(--gray-bg);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.visitor-item:last-child {
    margin-bottom: 0;
}

.visitor-item i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: var(--green-main);
}

.visitor-item span {
    flex: 1;
}

.visitor-item strong {
    color: var(--green-dark);
}

/* Quick Links & Address */
.news-list {
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.news-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ececec;
}

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

.news-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.news-list a:hover {
    color: var(--green-main);
}

.news-list i {
    color: #0d6efd;
}

.gallery-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gallery-grid img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.quick-links-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.quick-links-list li {
    padding: 0.4rem 0;
}

.quick-links-list a {
    color: #333;
    text-decoration: none;
}

.quick-links-list a:hover {
    color: var(--green-main);
}

.map-placeholder iframe {
    width: 100%;
    min-height: 200px;
}

.google-play-btn img {
    max-height: 40px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-grid a.gallery-thumb {
    display: block;
}

.gallery-grid a.gallery-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.teachers-scroll-box .section-header .btn-see-all {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

.teachers-scroll-box .section-header .btn-see-all:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.teachers-marquee-wrap {
    overflow: hidden;
    background: #fff;
    padding: 1rem 0;
}

.teachers-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: teachers-rtl-scroll 32s linear infinite;
}

.teachers-marquee-wrap:hover .teachers-marquee-track {
    animation-play-state: paused;
}

.teacher-marquee-card {
    width: 150px;
    min-width: 150px;
    text-decoration: none;
    color: #333;
    text-align: center;
    margin: 0 0.55rem;
    padding: 0.6rem 0.55rem;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-marquee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.teacher-marquee-card img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    border: 2px solid #dfe7df;
    display: block;
    margin: 0 auto 0.5rem;
    background: #f1f4f1;
    padding: 3px;
}

.teacher-marquee-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-page-thumb-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-page-thumb-wrap img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-page-thumb:hover .gallery-page-thumb-wrap {
    outline: 2px solid var(--green-main, #2d7a3e);
}

/* Footer */
.main-footer {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
}

/* Inner pages */
.inner-page .inner-main {
    background: #f0f7e8;
}

.page-banner {
    background: var(--green-dark);
    color: var(--white);
    padding: 1rem 0 1.25rem;
}

.page-banner .breadcrumb {
    padding: 0;
    margin-bottom: 0.5rem;
    background: transparent;
}

.page-banner .breadcrumb-item,
.page-banner .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}

.page-banner .breadcrumb-item.active {
    color: var(--white);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

.notice-table td {
    font-size: 0.9rem;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.gallery-page-item {
    margin: 0;
    background: var(--white);
    border: 1px solid #ddd;
    overflow: hidden;
}

.gallery-page-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-page-item figcaption {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: #444;
    background: #fafafa;
}

@media (max-width: 768px) {
    .teacher-marquee-card {
        width: 122px;
        min-width: 122px;
        margin: 0 0.4rem;
        padding: 0.5rem 0.4rem;
    }

    .teacher-marquee-card img {
        width: 72px;
        height: 72px;
    }

    .teacher-marquee-name {
        font-size: 0.8rem;
    }

    .teachers-marquee-track {
        animation-duration: 24s;
    }
}
