/* ============================================
   Galkot Secondary School - Public Site Styles
   ============================================ */

:root {
    --color-primary: #e8622c;      /* tangerine/coral - main accent */
    --color-primary-dark: #c94f1f;
    --color-gold: #f2b134;         /* golden yellow - small highlights */
    --color-mint: #3fbf8f;         /* mint green - small highlights */
    --color-sky: #4aa9d6;          /* sky blue - small highlights */
    --color-text: #24272b;
    --color-text-light: #6b7178;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8f9;
    --color-border: #e6e8eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Noto Sans', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Top info bar
   ============================================ */

.topbar {
    background-color: var(--color-sky);
    color: #fff;
    font-size: 13px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 101;
}

.topbar-inner {
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-location {
    flex-shrink: 0;
    white-space: nowrap;
}

.topbar-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.topbar-marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: marqueScroll 18s linear infinite;
    width: max-content;
}

.topbar-marquee-track span {
    padding-right: 60px;
}

@keyframes marqueScroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 700px) {
    .topbar-location {
        display: none;
    }
}

/* ============================================
   Header + Navigation
   ============================================ */

.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 34px;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 14px 20px;
    flex-wrap: nowrap;
}


/* ============================================
   Modern Navigation
   ============================================ */

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    border-radius: 9px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

/* Animated underline */
.main-nav ul li a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

/* Hover */
.main-nav ul li a:hover {
    color: var(--color-primary);
    background-color: rgba(232, 98, 44, 0.08);
    transform: translateY(-2px);
}

.main-nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Click / keyboard focus */
.main-nav ul li a:active {
    transform: translateY(0);
}

.main-nav ul li a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Optional current-page style */
.main-nav ul li a.active {
    color: var(--color-primary);
    background-color: rgba(232, 98, 44, 0.10);
}

.main-nav ul li a.active::after {
    transform: scaleX(1);
}

/* Mobile menu toggle button (hidden on desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: #112c68;
    color: #c3cbe0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 20px 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 4px;
    color: #b8bcc4;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #b8bcc4;
}

.footer-col ul li a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding: 16px 20px;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #9a9ea6;
}

/* ============================================
   Homepage section placeholders
   (temporary - real styles come as we build each section)
   ============================================ */

.section {
    padding: 60px 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.section-subtitle {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.placeholder-box {
    background-color: #fff;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: var(--color-text-light);
}
/* ============================================
   Section Title Animation - Slow & Smooth
   ============================================ */

.section-title {
    position: relative;
    opacity: 0;
    transform: translateY(22px);
    animation: sectionTitleReveal 1.1s ease-out forwards;
}

/* Decorative line below heading */
.section-title::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    margin: 11px auto 0;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-gold)
    );
    transform: scaleX(0);
    transform-origin: center;
    animation: sectionTitleLine 0.9s ease-out 0.4s forwards;
}

@keyframes sectionTitleReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionTitleLine {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ============================================
   Responsive - mobile navigation
   ============================================ */

@media (max-width: 860px) {

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 24px rgba(0,0,0,0.1);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 90;
    }

    .main-nav.open {
        display: block;
    }

    

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li a {
        padding: 14px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}

/* ============================================
   Logo (image version)
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 52px;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.logo-en {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.logo-np {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   News listing grid
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    justify-content: center;
    gap: 24px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-card-image {
    height: 220px;
    background-color: var(--color-bg-alt);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.news-card-body {
    padding: 18px;
}

.news-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    background-color: rgba(232, 98, 44, 0.1);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.news-card-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.news-card-body p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.news-card-date {
    font-size: 12px;
    color: #9aa0a8;
}

/* ============================================
   Single article page
   ============================================ */

.article-container {
    max-width: 760px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

.article-title {
    font-size: 28px;
    margin: 12px 0 8px;
    color: var(--color-text);
}

.article-meta {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 24px;
}

.article-content {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
}

/* ============================================
   Events page extras
   ============================================ */

.subsection-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.news-card-past {
    opacity: 0.75;
}

/* ============================================
   Notices listing
   ============================================ */

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.notice-item-main h3 {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 6px;
}

.notice-item-main p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.notice-item-date {
    font-size: 12px;
    color: #9aa0a8;
}

.notice-download {
    flex-shrink: 0;
    background-color: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.notice-download:hover {
    background-color: var(--color-primary-dark);
}

@media (max-width: 600px) {
    .notice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-download {
        align-self: flex-start;
    }
}

/* ============================================
   Staff / Teachers page
   ============================================ */

/* ---------- Department Section ---------- */

.staff-department-section {
    margin-top: 42px;
}

.staff-department-section:first-of-type {
    margin-top: 36px;
}

.staff-department-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.staff-department-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding-left: 12px;
}

.staff-department-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background-color: var(--color-primary);
    border-radius: 4px;
}

.staff-department-header span {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-light);
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 4px 9px;
    border-radius: 12px;
}


/* ---------- Staff Grid ---------- */

/* ---------- Staff Grid (normal wrapping grid - used on staff.php) ---------- */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 24px;
}

/* ---------- Staff Card ---------- */

.staff-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    overflow: hidden;
    text-align: center;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.staff-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ---------- Staff Slider (homepage only) ---------- */

.staff-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.staff-grid.staff-grid-slider {
    display: flex;
    grid-template-columns: none;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 16px;
    flex: 1;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.staff-grid.staff-grid-slider::-webkit-scrollbar {
    display: none;
}

.staff-grid.staff-grid-slider .staff-card {
    flex: 0 0 calc((100% - 3 * 24px) / 4);
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .staff-grid.staff-grid-slider .staff-card {
        flex: 0 0 calc((100% - 2 * 24px) / 3);
    }
}

@media (max-width: 700px) {
    .staff-grid.staff-grid-slider .staff-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .staff-slider-wrapper .why-us-arrow {
        display: none;
    }
}
.staff-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: rgba(232, 98, 44, 0.35);
}


/* ---------- Staff Photo ---------- */

.staff-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-photo img {
    transform: scale(1.04);
}

.staff-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--color-text-light);
}


/* ---------- Staff Information ---------- */

.staff-info {
    padding: 11px 9px 12px;
}

.staff-info h3 {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3px;

    /* Prevent very long names from making cards uneven */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.staff-designation {
    font-size: 11px;
    line-height: 1.4;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 5px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.staff-qualification {
    font-size: 10px;
    line-height: 1.35;
    color: var(--color-text-light);
    margin-bottom: 6px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.staff-bio {
    font-size: 10px;
    line-height: 1.4;
    color: var(--color-text-light);
    margin-bottom: 7px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ---------- Staff Contact ---------- */

.staff-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 7px;
    overflow: hidden;
}

.staff-contact a {
    font-size: 10px;
    line-height: 1.3;
    color: var(--color-sky);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-contact a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}


/* ---------- Years of Service ---------- */

.staff-years {
    display: inline-block;
    max-width: 100%;
    font-size: 9px;
    line-height: 1.3;
    color: var(--color-mint);
    font-weight: 600;
    background-color: rgba(63, 191, 143, 0.1);
    padding: 3px 7px;
    border-radius: 10px;
}


/* ============================================
   Staff Responsive Layout
   ============================================ */

/* Smaller desktop / laptop */

@media (max-width: 1100px) {

    .staff-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

}


/* Tablet / small desktop */

@media (max-width: 900px) {

    .staff-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .staff-info {
        padding: 11px 8px;
    }

}


/* Large mobile / tablet */

@media (max-width: 650px) {

    .staff-department-section {
        margin-top: 34px;
    }

    .staff-department-header {
        margin-bottom: 14px;
    }

    .staff-department-header h2 {
        font-size: 18px;
    }

    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .staff-info h3 {
        font-size: 12px;
    }

    .staff-designation {
        font-size: 10px;
    }

}


/* Small mobile */

@media (max-width: 400px) {

    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .staff-info {
        padding: 9px 7px 10px;
    }

    .staff-info h3 {
        font-size: 11px;
    }

    .staff-designation {
        font-size: 9px;
    }

    .staff-qualification,
    .staff-bio,
    .staff-contact a {
        font-size: 9px;
    }

    .staff-years {
        font-size: 8px;
        padding: 3px 5px;
    }

    .staff-department-header h2 {
        font-size: 16px;
    }

    .staff-department-header span {
        font-size: 10px;
        padding: 3px 7px;
    }

}


/* ============================================
   Gallery overview page
   ============================================ */

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 24px;
}

.album-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.album-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.album-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--color-bg-alt);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.album-photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
}

.album-info {
    padding: 14px 16px;
}

.album-info h3 {
    font-size: 16px;
    color: var(--color-text);
}

/* ============================================
   Single album photo grid
   ============================================ */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.photo-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--color-bg-alt);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 6px;
}

.lightbox-caption {
    color: #fff;
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
}

.lightbox-close {
    top: 16px;
    right: 20px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   Contact page
   ============================================ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item strong {
    display: block;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--color-text-light);
}

.contact-map {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Important Links page
   ============================================ */

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 14px;
}

.link-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--color-text);
    transition: box-shadow 0.2s;
}

.link-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    color: var(--color-primary);
}

.link-arrow {
    color: var(--color-primary);
}

/* ============================================
   Contact form (public)
   ============================================ */

.contact-form-wrapper form .form-group {
    margin-bottom: 18px;
}

.contact-form-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.contact-form-wrapper textarea {
    resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form-wrapper .btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.contact-form-wrapper .btn-primary:hover {
    background-color: var(--color-primary-dark);
}

/* ============================================
   Hero Section: Slider + Sidebar
   Modern / Refined Version
   ============================================ */

.hero-section {
    padding: 42px 0 48px;
    background:
        radial-gradient(circle at 8% 15%, rgba(74, 169, 214, 0.08), transparent 30%),
        radial-gradient(circle at 92% 85%, rgba(232, 98, 44, 0.07), transparent 30%),
        var(--color-bg-alt);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: stretch;
}


/* ============================================
   Hero Slider
   ============================================ */

.hero-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #111;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.hero-slide.active img {
    transform: scale(1.03);
}

/*
 * Very subtle zoom on the active image.
 * Keeps the slider feeling dynamic without being distracting.
 */
.hero-slide.active img {
    transform: scale(1.025);
}


/* ============================================
   Hero Image Overlay
   ============================================ */

.hero-slide-overlay {
    position: absolute;
    inset: 0;

    /*
     * Stronger near the bottom for text readability,
     * while keeping the main image visible.
     */
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.10) 35%,
            rgba(0, 0, 0, 0.28) 55%,
            rgba(0, 0, 0, 0.76) 100%
        );

    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 42px 50px 58px;
}


/* ============================================
   Hero Content
   ============================================ */

.hero-slide-content {
    color: #fff;
    width: 100%;
    max-width: 760px;
    animation: heroFadeUp 0.8s ease-out;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-content h2 {
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #fff;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.45),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-slide-content p {
    max-width: 650px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}


/* ============================================
   Hero Button
   ============================================ */

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background-color: var(--color-primary);
    color: #fff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    padding: 12px 22px;
    min-height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9px;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.18),
        0 2px 5px rgba(0, 0, 0, 0.10);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-btn:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        0 3px 7px rgba(0, 0, 0, 0.12);
}


/* ============================================
   Hero Slider Arrows
   ============================================ */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #fff;

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 50%;

    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    z-index: 3;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);

    transform: translateY(-50%) scale(1.08);

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.20);
}

.hero-arrow-prev {
    left: 18px;
}

.hero-arrow-next {
    right: 18px;
}


/* ============================================
   Hero Dot Navigation
   ============================================ */

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 8px;

    z-index: 3;

    padding: 7px 11px;
    border-radius: 20px;

    background-color: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.48);

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        width 0.2s ease;
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

.hero-dot.active {
    width: 22px;
    border-radius: 10px;

    background-color: #fff;
    transform: none;
}


/* ============================================
   Hero Sidebar
   ============================================ */

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ============================================
   Sidebar Cards
   ============================================ */

.sidebar-card {
    position: relative;

    background-color: #fff;

    border-radius: 16px;
    padding: 21px 22px;

    border: 1px solid rgba(0, 0, 0, 0.055);

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.055),
        0 2px 7px rgba(0, 0, 0, 0.025);

    flex: 1;

    overflow: hidden;

    animation: sidebarFadeIn 0.6s ease-out;

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}
/* ============================================
   Mobile Hero Slider
   Full Width on Small Screens
   ============================================ */

@media (max-width: 768px) {

    .hero-section {
        padding: 24px 0 32px;
    }

    /*
     * Keep the sidebar below the slider
     */
    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /*
     * Full-width mobile slider
     *
     * Negative margin removes the container's
     * left/right spacing so the image reaches
     * both edges of the phone screen.
     */
    .hero-slider {
        width: 100vw;
        max-width: 100vw;

        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        border-radius: 0;

        aspect-ratio: 16 / 9;
    }

    /*
     * Slightly smaller overlay spacing on phones
     */
    .hero-slide-overlay {
        padding: 30px 24px 48px;
    }

    /*
     * Mobile heading
     */
    .hero-slide-content h2 {
        font-size: clamp(23px, 6vw, 32px);
        line-height: 1.2;
        margin-bottom: 8px;
    }

    /*
     * Mobile description
     */
    .hero-slide-content p {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    /*
     * Smaller mobile button
     */
    .hero-btn {
        font-size: 13px;
        padding: 10px 18px;
        min-height: 38px;
    }

    /*
     * Smaller slider arrows
     */
    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .hero-arrow-prev {
        left: 12px;
    }

    .hero-arrow-next {
        right: 12px;
    }

    /*
     * Keep dots comfortably above the bottom
     */
    .hero-dots {
        bottom: 12px;
    }

    /*
     * Sidebar remains normal width
     */
    .hero-sidebar {
        width: 100%;
    }
}
/*
 * Small decorative accent at the top of each card.
 */
.sidebar-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 22px;

    width: 42px;
    height: 3px;

    background-color: var(--color-primary);
    border-radius: 0 0 4px 4px;
}

.sidebar-card:hover {
    transform: translateY(-2px);

    border-color: rgba(232, 98, 44, 0.12);

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.035);
}

@keyframes sidebarFadeIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================
   Sidebar Card Header
   ============================================ */

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    margin-bottom: 13px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--color-border);
}

.sidebar-card-header h3 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 750;

    color: var(--color-text);

    letter-spacing: 0.1px;
}

.sidebar-view-more {
    flex-shrink: 0;

    font-size: 11px;
    font-weight: 700;

    color: var(--color-primary);

    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-view-more:hover {
    color: var(--color-primary-dark);
    transform: translateX(2px);
}

.sidebar-empty {
    font-size: 13px;
    color: var(--color-text-light);
}


/* ============================================
   Sidebar Lists
   ============================================ */

ul.sidebar-notice-list,
ul.sidebar-links-list {
    list-style: none !important;

    margin: 0;
    padding: 0;
}

.sidebar-notice-list li,
.sidebar-links-list li {
    position: relative;

    list-style: none !important;

    margin: 0 -8px;
    padding: 9px 8px 9px 25px;

    border-bottom: 1px solid var(--color-border);
    border-radius: 8px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-notice-list li:last-child,
.sidebar-links-list li:last-child {
    border-bottom: none;
}

.sidebar-notice-list li:hover,
.sidebar-links-list li:hover {
    background-color: rgba(74, 169, 214, 0.055);
}


/* ============================================
   Sidebar List Arrow
   ============================================ */

.sidebar-notice-list li::before,
.sidebar-links-list li::before {
    content: "›";

    position: absolute;
    left: 6px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--color-primary);

    font-size: 17px;
    font-weight: 700;
    line-height: 1;

    transition: transform 0.2s ease;
}

.sidebar-notice-list li:hover::before,
.sidebar-links-list li:hover::before {
    transform: translate(2px, -50%);
}


/* ============================================
   Sidebar Notices
   ============================================ */

.sidebar-notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    font-size: 13px;
}

.sidebar-notice-link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    width: 100%;

    color: inherit;

    transition:
        padding-left 0.2s ease,
        color 0.2s ease;
}

.sidebar-notice-link:hover {
    padding-left: 3px;
}

.sidebar-notice-title {
    min-width: 0;

    color: var(--color-text);

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: color 0.2s ease;
}

.sidebar-notice-date {
    flex-shrink: 0;

    color: var(--color-text-light);

    white-space: nowrap;

    font-size: 10px;
    font-weight: 600;

    background-color: var(--color-bg-alt);

    padding: 3px 7px;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.sidebar-notice-link:hover .sidebar-notice-title {
    color: var(--color-primary);
}

.sidebar-notice-link:hover .sidebar-notice-date {
    color: var(--color-primary);
    background-color: rgba(232, 98, 44, 0.07);
}


/* ============================================
   Sidebar Important Links
   ============================================ */

.sidebar-links-list li a {
    display: block;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;

    color: var(--color-text);

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.sidebar-links-list li a:hover {
    color: var(--color-primary);
    padding-left: 3px;
}


/* ============================================
   Responsive: Tablet / Small Desktop
   ============================================ */

@media (max-width: 1100px) {

    .hero-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
        gap: 20px;
    }

    .hero-slide-overlay {
        padding: 35px 38px 50px;
    }

    .hero-slide-content h2 {
        font-size: clamp(26px, 3vw, 36px);
    }

    .sidebar-card {
        padding: 19px;
    }

    .sidebar-card::before {
        left: 19px;
    }
}


/* ============================================
   Responsive: Tablet / Mobile
   ============================================ */

@media (max-width: 900px) {

    .hero-section {
        padding: 24px 0 28px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* ============================================
   Mobile Hero Slider
   Full Width + Square Corners
   ============================================ */

@media (max-width: 768px) {

    .hero-slider {
        width: 100vw;
        max-width: 100vw;

        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        /* Completely remove rounded corners */
        border-radius: 0 !important;

        aspect-ratio: 16 / 9;
    }
}

    .hero-slide-overlay {
        align-items: flex-end;
        padding: 28px 35px 52px;
    }

    .hero-slide-content {
        max-width: 650px;
    }

    .hero-slide-content h2 {
        font-size: 27px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .hero-slide-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .hero-btn {
        min-height: 39px;
        padding: 10px 18px;
        font-size: 13px;
    }

    .hero-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar-card {
        padding: 18px;
    }

    .sidebar-card::before {
        left: 18px;
    }

    .sidebar-card-header {
        margin-bottom: 11px;
        padding-bottom: 10px;
    }

    .sidebar-card-header h3 {
        font-size: 14px;
    }

    .sidebar-notice-list li,
    .sidebar-links-list li {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}


/* ============================================
   Responsive: Large Mobile
   ============================================ */

@media (max-width: 650px) {

    .hero-section {
        padding: 16px 0 22px;
    }

    .hero-layout {
        gap: 14px;
    }

    .hero-slider {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .hero-slide-overlay {
        padding: 22px 22px 46px;
    }

    .hero-slide-content h2 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .hero-slide-content p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 10px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-btn {
        min-height: 36px;
        padding: 9px 16px;
        border-radius: 8px;
        font-size: 12px;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .hero-arrow-prev {
        left: 10px;
    }

    .hero-arrow-next {
        right: 10px;
    }

    .hero-dots {
        bottom: 12px;
        gap: 6px;
        padding: 6px 9px;
    }

    .hero-dot {
        width: 7px;
        height: 7px;
    }

    .hero-dot.active {
        width: 18px;
    }

    .hero-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sidebar-card {
        border-radius: 13px;
        padding: 17px;
    }

    .sidebar-card::before {
        left: 17px;
    }

    .sidebar-card-header h3 {
        font-size: 14px;
    }

    .sidebar-view-more {
        font-size: 11px;
    }

    .sidebar-notice-title,
    .sidebar-links-list li a {
        font-size: 12px;
    }

    .sidebar-notice-date {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* ============================================
   iPhone / Safari Hero Fix
   ============================================ */

@supports (-webkit-touch-callout: none) {

    .hero-slider {
        height: auto;
        aspect-ratio: auto;
        min-height: 300px;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .hero-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}


/* Small iPhones */
@media screen and (max-width: 650px) and (-webkit-min-device-pixel-ratio: 2) {

    .hero-slider {
        min-height: 280px;
        aspect-ratio: auto;
    }

}
/* ============================================
   Responsive: Small Mobile
   ============================================ */

@media (max-width: 400px) {

    .hero-slider {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .hero-slide-overlay {
        padding: 18px 18px 43px;
    }

    .hero-slide-content h2 {
        font-size: 19px;
    }

    .hero-slide-content p {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .hero-btn {
        min-height: 34px;
        padding: 8px 14px;
        font-size: 11px;
    }

    .hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 19px;
    }

    .hero-arrow-prev {
        left: 8px;
    }

    .hero-arrow-next {
        right: 8px;
    }

    .sidebar-card {
        padding: 15px;
    }

    .sidebar-card::before {
        left: 15px;
    }
}
/* ============================================
   Section header with "View All" link
   ============================================ */

.section-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    gap: 8px;
}

.section-header-row .section-title,
.section-header-row .section-subtitle {
    margin-bottom: 0;
}

.section-header-row .section-view-all {
    margin-top: 4px;
}

.section-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.section-view-all:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Academics preview
   ============================================ */

.academics-preview p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 14px;
    max-width: 700px;
}

/* ============================================
   School Stats - Modern
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 28px 20px 24px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Soft decorative background */
.stat-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    top: -55px;
    right: -45px;
    border-radius: 50%;
    background: rgba(74, 169, 214, 0.08);
    pointer-events: none;
}

.stat-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-gold),
        var(--color-mint),
        var(--color-sky)
    );
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.10);
    border-color: rgba(74, 169, 214, 0.35);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

/* Icon */
.stat-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(74, 169, 214, 0.12),
        rgba(63, 191, 143, 0.10)
    );
    border: 1px solid rgba(74, 169, 214, 0.15);
    font-size: 27px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(-2deg);
}

/* Number */
.stat-number {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Label */
.stat-label {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.stat-number:not(.stat-static)::after {
    content: "+";
    margin-left: 2px;
    font-size: 0.65em;
    font-weight: 700;
}
/* Established year */
.stat-number.stat-static {
    font-size: clamp(25px, 2.5vw, 34px);
    letter-spacing: -0.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 700px;
    }

    .stat-card {
        padding: 24px 16px 21px;
        border-radius: 16px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 13px;
        font-size: 24px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 20px 10px 18px;
        border-radius: 14px;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 11px;
        font-size: 21px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 27px;
    }

    .stat-number.stat-static {
        font-size: 22px;
    }

    .stat-label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

/* ============================================
   Academic Program cards
   ============================================ */

.program-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 5px 2px 15px;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.program-grid::-webkit-scrollbar {
    display: none;
}

.program-card {
    flex: 0 0 300px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    scroll-snap-align: start;
}

.program-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.program-card-image {
    height: 160px;
    background-color: var(--color-bg-alt);
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.program-card-body {
    padding: 18px;
}

.program-card-body h3 {
    font-size: 17px;
    color: var(--color-text);
    margin-bottom: 6px;
}

.program-medium {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-mint);
    background-color: rgba(63, 191, 143, 0.1);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.program-card-body p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.program-view-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.program-view-more:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Gallery preview grid
   ============================================ */

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gallery-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-preview-item:hover img {
    transform: scale(1.08);
}

.gallery-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-overlay span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   Homepage contact section
   ============================================ */

.home-contact-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 30px;
    align-items: start;
}

@media (max-width: 800px) {
    .home-contact-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   Notice item - view button + actions row
   ============================================ */

.notice-item {
    flex-wrap: wrap;
}

.notice-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.notice-view-btn {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.notice-view-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ============================================
   Notice preview modal
   ============================================ */

.notice-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-modal.open {
    display: flex;
}

.notice-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.notice-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-light);
}

.notice-modal-close:hover {
    color: var(--color-text);
}

#noticeModalTitle {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 6px;
    padding-right: 30px;
}

.notice-modal-date {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.notice-modal-description {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.notice-modal-pdf-wrapper {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.notice-modal-pdf-wrapper iframe {
    width: 100%;
    height: 60vh;
    border: none;
    display: block;
}

.notice-modal-no-pdf {
    display: none;
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    padding: 30px;
    background-color: var(--color-bg-alt);
    border-radius: 8px;
}

@media (max-width: 600px) {
    .notice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-item-actions {
        align-self: flex-start;
    }

    .notice-modal-pdf-wrapper iframe {
        height: 45vh;
    }
}

.sidebar-notice-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: inherit;
    transition: padding-left 0.2s, color 0.2s;
}

.sidebar-notice-link:hover {
    padding-left: 4px;
}

.sidebar-notice-link:hover .sidebar-notice-title,
.sidebar-notice-link:hover .sidebar-notice-date {
    color: var(--color-primary);
}

/* ============================================
   Center page heading + subtitle (standalone page headers only)
   ============================================ */

.container > .section-title,
.container > .section-subtitle {
    text-align: center;
}

.container > .section-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   Homepage Headmaster's Message - modern editorial style
   ============================================ */

.headmaster-section {
    position: relative;
    overflow: hidden;
}

.headmaster-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.headmaster-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}

.headmaster-photo-wrap {
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.headmaster-photo-wrap::before {
    content: "";
    position: absolute;
    top: -14px;
    left: -14px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 16px;
    z-index: 0;
}

.headmaster-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0,0,0,0.16);
    z-index: 1;
}

.headmaster-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headmaster-text {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.headmaster-quote-mark {
    display: block;
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.25;
    margin-bottom: -20px;
}

.headmaster-text p {
    font-size: 17px;
    color: var(--color-text);
    line-height: 2;
    font-style: italic;
}

/* Triggered by JS when section scrolls into view */
.headmaster-layout.in-view .headmaster-photo-wrap,
.headmaster-layout.in-view .headmaster-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 800px) {
    .headmaster-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .headmaster-photo-wrap {
        max-width: 220px;
        margin: 0 auto;
    }

    .headmaster-quote-mark {
        font-size: 60px;
    }

    .headmaster-text p {
        font-size: 15px;
        text-align: center;
    }
}

/* ============================================
   Why Choose Us / Facilities feature grid
   ============================================ */

.why-us-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.staff-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.why-us-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 16px;
    flex: 1;
    /* Hide scrollbar across browsers while keeping it scrollable */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.why-us-grid::-webkit-scrollbar {
    display: none;
}

.why-us-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.why-us-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-arrow:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

@media (max-width: 700px) {
    .why-us-arrow {
        display: none;
    }
}

.why-us-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s, translate 0.25s;
}

.why-us-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.why-us-card:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.why-us-card.in-view:hover {
    transform: translateY(-4px);
}

.why-us-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.why-us-card h3 {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 8px;
}

.why-us-card p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.staff-qualification {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.staff-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.staff-contact a {
    font-size: 12px;
    color: var(--color-sky);
}

.staff-contact a:hover {
    text-decoration: underline;
}

.download-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.download-filter-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.download-filter-btn:hover,
.download-filter-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo img {
    max-height: 48px;
    width: auto;
}

.footer-logo h3 {
    margin-bottom: 0;
}

.topbar-social {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.topbar-social a {
    color: #fff;
    opacity: 0.85;
    display: flex;
    transition: opacity 0.2s;
}

.topbar-social a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.footer-social a {
    color: #d8dade;
    display: flex;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--color-sky);
}

@media (max-width: 700px) {
    .topbar-social {
        display: none;
    }
}

/* ============================================
   Gallery overview - main + sidebar layout
   ============================================ */

.gallery-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.gallery-sidebar .sidebar-card {
    position: sticky;
    top: 90px;
}

@media (max-width: 900px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .gallery-sidebar .sidebar-card {
        position: static;
    }
}

.sidebar-links-list li a.active-filter {
    color: var(--color-primary);
    font-weight: 700;
}


/* ============================================
   News slider (homepage)
   ============================================ */

.news-grid.news-grid-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 16px;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-grid.news-grid-slider .news-card {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .news-grid.news-grid-slider .news-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 700px) {
    .news-grid.news-grid-slider .news-card {
        flex: 0 0 85%;
    }
}

/* ============================================
   Academic Programs slider (homepage)
   ============================================ */

.program-grid.program-grid-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 16px;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.program-grid.program-grid-slider::-webkit-scrollbar {
    display: none;
}

.program-grid.program-grid-slider .program-card {
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    scroll-snap-align: start;
}

@media (max-width: 1100px) {
    .program-grid.program-grid-slider .program-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 700px) {
    .program-grid.program-grid-slider .program-card {
        flex: 0 0 85%;
    }
}

/* Quill editor container - match other form field styling */
#editor-container {
    background: #fff;
    border-radius: 0 0 6px 6px;
    min-height: 250px;
}

.ql-toolbar.ql-snow {
    border-radius: 6px 6px 0 0;
    border-color: #ccc !important;
}

.ql-container.ql-snow {
    border-color: #ccc !important;
}