/* ------------------------------------------------------------
   Theme Tokens
   ------------------------------------------------------------ */
:root {
    --primary-color: #1e3a8a;
    --accent-color: #f59e0b;
    --primary-border-color: #1e3a8a;
    --surface-color: #ffffff;
    --surface-muted-color: #f1f5f9;
    --surface-soft-color: #f8fafc;
    --surface-alt-color: #fff7ed;
    --panel-color: #1e40af;
    --interactive-color: #2563eb;
    --interactive-dark-color: #1e3a8a;
    --divider-color: #e2e8f0;
    --divider-strong-color: #fbbf24;
    --text-strong-color: #0f172a;
    --text-medium-color: #475569;
    --text-dark-color: #020617;
    --text-muted-color: #cbd5f5;
    --text-on-dark-color: #f8fafc;
    --button-border-color: #cbd5e1;
    --overlay-light-color: rgba(255, 255, 255, 0.15);
    --shadow-soft-color: rgba(30, 58, 138, 0.08);
    --shadow-medium-color: rgba(30, 58, 138, 0.12);
    --shadow-strong-color: rgba(30, 58, 138, 0.18);
}
/* ------------------------------------------------------------
   Base + Global Overrides
   ------------------------------------------------------------ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--surface-color);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -44px;
    background: var(--primary-color);
    color: var(--surface-color);
    padding: 10px 12px;
    z-index: 1050;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
    transition: top 0.2s ease;
}

    .skip-link:focus {
        top: 0;
    }

.bg-primary-dark {
    background-color: var(--primary-color);
}

.navbar.bg-dark {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}
/* Container to keep the small text bound to the main title width */
.title-wrapper {
    position: relative;
    display: inline-block;
}

.school-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700 !important;
    position: relative;
    display: inline-block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0; /* Remove default margins for precise alignment */
}

.hero-top .hero-small {
    position: absolute;
    top: -1.2rem; /* Pulls it above the title */
    right: 0;      /* Aligns to the right edge of the title */
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap; /* Prevents text wrapping */
}

/*.school-title::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 30%;
        height: 3px;
        background: var(--accent-color);
        border-radius: 2px;
        transform: translateX(-50%);
    }

.hero-top .hero-small {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align:right;
}*/

.hero-top .hero-lead {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    /*color: rgba(255, 255, 255, 0.82);*/
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-subtitle {
    /*color: rgba(255, 255, 255, 0.84);*/
    font-size: 1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}



.section-tag {
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   Top Bar: Social Links
   ------------------------------------------------------------ */
.social-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.social-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--panel-color);
    color: var(--surface-color) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-link-icon i {
        font-size: 0.85rem;
        color: var(--surface-color);
    }

    .social-link-icon:hover {
        background-color: var(--interactive-color);
        transform: scale(1.1);
    }

/* ------------------------------------------------------------
   Main Navigation
   ------------------------------------------------------------ */
.school-nav-list {
    width: 100%;
    justify-content: flex-start;
    column-gap: 8px;
}

    .school-nav-list .nav-item {
        flex: 0 0 auto;
        text-align: center;
    }

@media (min-width: 992px) {
    .school-nav-list {
        justify-content: center;
        column-gap: 18px;
    }
}

.school-nav-list .nav-link {
    padding: 14px 6px;
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

    .school-nav-list .nav-link,
    .school-nav-list .nav-link.active,
    .school-nav-list .show > .nav-link {
        color: var(--surface-color) !important;
        background: transparent;
    }

        .school-nav-list .nav-link:hover,
        .school-nav-list .nav-link:focus {
            color: var(--accent-color) !important;
        }

.nav-item {
    padding-left: 1em;
    padding-right: 1em;
}

.navbar .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 18px 40px var(--shadow-strong-color);
    padding: 8px;
    margin-top: 0;
    background: var(--surface-color);
}

.navbar .dropdown-item {
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 400;
    font-size: 0.86rem;
    color: var(--text-strong-color);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: var(--surface-soft-color);
        color: var(--interactive-dark-color);
        transform: translateX(2px);
    }

    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active {
        background: var(--primary-color);
        color: var(--text-on-dark-color);
    }

.navbar .dropdown-divider {
    margin: 6px 10px;
    border-top: 1px solid var(--divider-color);
    opacity: 1;
}

@media (min-width: 992px) {
    .navbar .dropdown {
        position: relative;
    }

    .navbar .dropdown-menu {
        transform: translateY(6px);
    }

        .navbar .dropdown-menu::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: -8px;
            height: 8px;
            background: transparent;
        }

    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown:hover > .dropdown-toggle {
        color: var(--accent-color) !important;
    }
}

/* ------------------------------------------------------------
   Hero + News Area
   ------------------------------------------------------------ */
.top-showcase {
    background: var(--accent-color);
    padding: 14px 10px;
}

    .top-showcase .carousel-wrap {
        border: 1px solid var(--primary-border-color);
        background: var(--surface-color);
        height: clamp(280px, 50vw, 440px);
    }

    .top-showcase .carousel-wrap,
    .top-showcase #heroSlider,
    .top-showcase #heroSlider .carousel-inner,
    .top-showcase #heroSlider .carousel-item {
        min-height: 450px;
        overflow: hidden;
    }

.main-slider img {
    object-fit: fill;
    background: var(--surface-soft-color);
    height: 450px;
    width: 100%;
    display: block;
    min-width: 100%;
    min-height: 450px;
}

.news-column .news-widget {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-widget {
    border: 3px solid var(--accent-color);
    background: var(--surface-muted-color);
}

.news-widget-header {
    background: var(--panel-color);
    color: var(--surface-color);
    text-align: center;
    font-weight: 700;
    padding: 10px 16px;
}

.news-list {
    background: var(--surface-soft-color);
}

.news-column .news-list {
    flex: 1;
    min-height: 330px;
}

.news-item {
    min-height: 68px;
    padding: 8px 14px;
    border-left: 2px solid var(--interactive-color);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

    .news-item::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: var(--divider-color);
    }

    .news-item .news-title {
        color: var(--text-strong-color);
        text-decoration: none;
        line-height: 1.25;
    }

        .news-item .news-title:hover {
            color: var(--interactive-color);
        }

    .news-item .news-date {
        font-weight: 700;
        color: var(--text-dark-color);
        margin-bottom: 2px;
    }

    .news-item.no-date .news-title {
        margin-top: 2px;
    }

.news-widget-footer {
    background: var(--panel-color);
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

.news-view-all,
.news-nav-btn {
    border: 1px solid var(--button-border-color);
    color: var(--surface-color);
    background: transparent;
    height: 30px;
    min-width: 38px;
    font-weight: 700;
}

.news-view-all {
    padding: 0 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .news-view-all:hover,
    .news-nav-btn:hover {
        background: var(--overlay-light-color);
        color: var(--surface-color);
    }

.news-nav-btn + .news-nav-btn {
    border-left: none;
}

/* ------------------------------------------------------------
   Shared Sliders + Cards
   ------------------------------------------------------------ */
.slick-prev:before,
.slick-next:before {
    color: var(--primary-color);
}

.core-features-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.core-title-sep {
    font-weight: 700;
    color: inherit;
}

.feature-card {
    margin: 10px;
    transition: 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.card-slider .feature-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

    .card-slider .feature-card .card-img-top {
        height: 190px;
        object-fit: fill;
        background: var(--surface-soft-color);
        width: 100%;
    }

    .card-slider .feature-card .card-body {
        min-height: 118px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-slider .feature-card h6 {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
    }

    .card-slider .feature-card .btn-link {
        font-size: 0.875rem;
        font-weight: 500;
        padding: 0;
    }

.event-card-date {
    display: inline-block;
    align-self: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--divider-color);
    background: var(--surface-soft-color);
    color: var(--text-medium-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-transform: uppercase;
    pointer-events: none;
    text-decoration: none !important;
    transition: none !important;
}

.event-card-link {
    color: var(--interactive-color) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease, letter-spacing 0.25s ease;
}

    .event-card-link:hover,
    .event-card-link:focus,
    .feature-card-link:hover .event-card-link,
    .feature-card-link:focus .event-card-link {
        color: var(--interactive-dark-color) !important;
        /*border-bottom-color: var(--accent-color);*/
        letter-spacing: 0.01em;
        text-decoration: none;
    }

.section-view-all-wrap {
    text-align: center;
    margin-top: 14px;
}

.section-view-all-btn {
    padding: 8px 22px;
    font-weight: 700;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   About + Mission/Vision/Motto
   ------------------------------------------------------------ */
.about-overview {
    padding-bottom: 32px;
    margin-bottom: 24px;
}

.about-logo-panel {
    height: 100%;
    padding: 28px 22px;
    text-align: center;
    background: var(--surface-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.school-logo-art {
    width: 250px;
    height: 250px;
    padding: 12px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: var(--surface-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    overflow: hidden;
}

.school-logo-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.about-logo-label {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-medium-color);
}

.about-copy-panel {
    padding: 34px;
    background: var(--surface-color);
}

.about-heading {
    margin: 18px 0 14px;
    font-size: 1.2rem; /*clamp(1.5rem, 2.5vw, 2.2rem);*/
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.25;
}

.about-text {
    color: var(--text-medium-color);
    font-size: 1rem;
    line-height: 1.75;
    text-align: justify;
    overflow-wrap: break-word;
}

.about-readmore-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: none;
}

.background-overview {
    background: var(--accent-color);
    padding: 32px 0;
}

.mission-cards-row {
    margin-top: 32px;
    margin-bottom: 24px;
    padding: 32px 0;
}

.value-card {
    padding: 30px 24px;
    background: var(--surface-color);
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .value-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px var(--shadow-soft-color);
    }

.value-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: var(--primary-color);
    border: 1px solid var(--divider-strong-color);
    color: var(--divider-strong-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.value-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.value-card-text {
    color: var(--text-medium-color);
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: justify;
    overflow-wrap: break-word;
}

.value-card-link,
.principal-readmore {
    color: var(--interactive-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

    .value-card-link:hover,
    .principal-readmore:hover {
        color: var(--interactive-dark-color);
    }

/* ------------------------------------------------------------
   Principal Message
   ------------------------------------------------------------ */
.principal-message-wrap {
    padding-top: 32px;
    margin-bottom: 32px;
}

.principal-quote-panel {
    padding: 38px;
    background: var(--surface-color);
    color: var(--text-strong-color);
    position: relative;
}

.principal-quote-mark {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 2rem;
    color: var(--divider-strong-color);
    opacity: 1;
}

.principal-avatar {
    width: 240px;
    height: 240px;
    object-fit: fill;
    border-radius: 14px;
    border: 4px solid var(--surface-color);
    box-shadow: 0 8px 18px var(--shadow-soft-color);
}

.principal-name {
    margin: 18px 0 14px;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary-color);
}

.principal-quote {
    font-size: 1rem;
    line-height: 1.85;
    max-width: 780px;
    color: var(--text-medium-color);
    text-align: justify;
    overflow-wrap: break-word;
}

.principal-readmore {
    display: inline-flex;
    margin-top: 10px;
}

.testimonials {
    background: var(--surface-soft-color);
}

.testimonials-title {
    color: var(--primary-color);
    font-weight: 800;
}

.testimonials-subtitle {
    color: var(--text-medium-color);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px !important;
}

.testimonial-card {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    box-shadow: 0 10px 24px var(--shadow-soft-color);
    padding: 24px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px var(--shadow-medium-color);
    }

.testimonial-body {
    padding-top: 6px;
}

.testimonial-text {
    color: var(--text-medium-color);
    line-height: 1.8;
    font-size: 0.98rem;
    text-align: justify;
    overflow-wrap: break-word;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--divider-color);
}

.testimonial-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: fill;
    border: 2px solid var(--surface-color);
    box-shadow: 0 8px 16px var(--shadow-soft-color);
}

.testimonial-name {
    color: var(--primary-color);
    font-weight: 800;
}

.testimonial-role {
    color: var(--text-medium-color);
    font-weight: 600;
}

.testimonials-slider.slick-initialized {
    margin-left: 0;
    margin-right: 0;
}

    .testimonials-slider.slick-initialized .slick-slide {
        padding: 0 10px;
    }

    .testimonials-slider.slick-initialized .slick-list {
        margin: 0 -10px;
    }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer-info-band {
    background: var(--primary-color);
    color: var(--text-on-dark-color);
    border-top: 3px solid var(--accent-color);
}

.footer-band-title {
    color: var(--surface-color) !important;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
    margin-bottom: 12px;
}

    .footer-band-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 25%;
        height: 2px;
        background: var(--accent-color);
        border-radius: 2px;
    }

.footer-info-band p {
    color: var(--surface-color) !important;
}

.footer-info-band i {
    color: var(--accent-color) !important;
}

.footer-map-wrap {
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid var(--button-border-color);
}

    .footer-map-wrap iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.footer-links-panel {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 14px 16px;
}

.footer-extra-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    text-decoration: none;
    color: var(--surface-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-extra-links li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-extra-links i {
    color: var(--accent-color) !important;
    font-size: 0.8rem;
}

.footer-extra-links span {
    color: var(--surface-color) !important;
    line-height: 1.3;
}

.footer-extra-links a:hover {
    color: var(--surface-color) !important;
}

.footer-band-bottom {
    border-top: 1px solid var(--button-border-color);
}

    .footer-band-bottom p {
        color: var(--surface-color) !important;
        font-size: 0.9rem;
    }

/* ------------------------------------------------------------
   Responsive: Tablet and Down
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .school-nav-list {
        column-gap: 0;
    }

    .top-showcase {
        padding: 12px 8px;
    }

        .top-showcase .carousel-wrap {
            height: 360px;
        }

    .news-column .news-list {
        min-height: 300px;
    }

    .school-nav-list .nav-item {
        text-align: left;
    }

    .school-nav-list .nav-link {
        padding: 10px 2px;
    }
}

/* ------------------------------------------------------------
   Responsive: Mobile
   ------------------------------------------------------------ */
@media (max-width: 767px) {
    body {
        font-size: 0.97rem;
    }

    .top-showcase {
        padding: 10px 6px;
    }

        .top-showcase .carousel-wrap {
            height: 260px;
        }

        .top-showcase #heroSlider .carousel-caption {
            left: 8px;
            right: 8px;
            bottom: 8px;
            padding: 10px;
        }

            .top-showcase #heroSlider .carousel-caption h2 {
                font-size: 1rem;
                margin-bottom: 0.25rem;
            }

            .top-showcase #heroSlider .carousel-caption p {
                font-size: 0.85rem;
                margin-bottom: 0;
            }

    .news-column .news-list {
        min-height: 240px;
    }

    .value-card {
        padding: 26px 22px;
    }

    .school-logo-art {
        width: 156px;
        height: 156px;
    }

    .school-logo-ring {
        font-size: 1.45rem;
    }

    .about-heading {
        font-size: 1.8rem;
    }

    .principal-avatar {
        width: 126px;
        height: 126px;
    }

    .principal-name {
        font-size: 1.6rem;
    }

    .principal-quote-mark {
        font-size: 2rem;
        right: 22px;
    }

    .news-item {
        min-height: 76px;
    }

    .about-copy-panel,
    .principal-quote-panel {
        padding: 22px;
    }

    .core-features-title {
        gap: 8px;
        font-size: 1.2rem;
    }

    .card-slider .feature-card .card-img-top {
        height: 210px;
    }
}

@media (max-width: 575px) {
    .school-title {
        font-size: 1.55rem;
    }

    .news-widget-header {
        font-size: 0.95rem;
    }

    .news-item {
        padding: 8px 10px;
    }

    .footer-map-wrap {
        height: 180px;
    }

    .footer-links-panel {
        padding: 12px;
    }
}
/* ------------------------------------------------------------
   Page Headers (Refined + Responsive)
   ------------------------------------------------------------ */

.page-header,
.page-header-center {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    background: linear-gradient( to right, var(--surface-soft-color), transparent );
    border-radius: 6px;
    margin-top: 2em;
}

    /* Accent bar */
    .page-header::before,
    .page-header-center::before {
        content: "";
        position: absolute;
        left: 0;
        top: 20%;
        height: 60%;
        width: 4px;
        background: var(--accent-color);
        border-radius: 4px;
    }

    /* Bottom divider */
    .page-header::after,
    .page-header-center::after {
        content: "";
        position: absolute;
        left: 14px;
        bottom: 0;
        width: 50px;
        height: 2px;
        background: var(--interactive-color);
        border-radius: 10px;
        opacity: 0.8;
    }

/* Center version */
.page-header-center {
    display: block;
    text-align: center;
}

    /* Center accent adjustment */
    .page-header-center::before {
        left: 50%;
        transform: translateX(-50%);
        top: 100%;
        height: 3px;
        width: 60px;
    }

    .page-header-center::after {
        display: none;
    }

/* ------------------------------------------------------------
   Small Headers
   ------------------------------------------------------------ */

.SmallHeaders {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium-color);
    margin-bottom: 6px;
}

/* ------------------------------------------------------------
   Content
   ------------------------------------------------------------ */

.page-content {
    text-align: justify;
    line-height: 1.7;
    color: #444;
}

/* Fix overflow on small screens */
.page-header,
.page-sub-header {
    word-break: break-word;
}

.pages-img {
    width: 350px;
    height: 100%;
    min-height: 350px;
    max-height: 350px;
    margin: 1%;
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-soft-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    /* optional hover (very subtle lift effect) */
    .pages-img:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px var(--shadow-medium-color);
    }

/* ------------------------------------------------------------
   Responsive Improvements
   ------------------------------------------------------------ */

/* Tablet */
@media (max-width: 992px) {

    .page-header,
    .page-header-center {
        font-size: 1.35rem;
        padding: 5px 12px;
    }

        .page-header::after {
            width: 40px;
        }
}

/* Mobile */
@media (max-width: 768px) {

    .page-header,
    .page-header-center {
        font-size: 1.2rem;
        padding: 5px 10px;
    }

        /* Reduce accent height */
        .page-header::before,
        .page-header-center::before {
            height: 50%;
            top: 25%;
        }

        /* Smaller underline */
        .page-header::after {
            width: 35px;
        }

    .page-content {
        text-align: left; /* better readability on mobile */
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .page-header,
    .page-header-center {
        font-size: 1.05rem;
        letter-spacing: 0.01em;
    }
}
/*
    -------------------------------------------------
            Team Card
    -------------------------------------------------
*/
.team-card {
    background: var(--surface-color);
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* IMPORTANT for image edge */
}

    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px var(--shadow-soft-color);
    }

/* Image full edge */
.team-card-img {
    width: 100%;
    height: 240px;
    object-fit: fill;
}

/* Content area (controlled padding only here) */
.team-card-body {
    padding: 16px 18px;
    text-align: center;
}

.team-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.team-card-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.team-card-text {
    font-size: 0.9rem;
    color: var(--text-medium-color);
    line-height: 1.6;
    margin-bottom: 12px;
}

.team-social a {
    color: var(--interactive-color);
    margin: 0 6px;
    font-size: 0.9rem;
}

    .team-social a:hover {
        color: var(--interactive-dark-color);
    }

/*
    -------------------------------------------------
            Gallery Card (Same as Team Card Pattern)
    -------------------------------------------------
*/

.gallery-card {
    background: var(--surface-color);
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* IMPORTANT */
    height: 100%;
}

    .gallery-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px var(--shadow-soft-color);
    }

/* Image full edge (same like team) */
.gallery-card-img {
    width: 100%;
    height: 240px;
    object-fit: fill; /* IMPORTANT: no crop like your requirement */
    background: #f5f5f5; /* light background for empty space */
}

/* Content */
.gallery-card-body {
    padding: 14px 16px;
    text-align: center;
}

/* Title */
.gallery-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

/* Description */
.gallery-card-text {
    font-size: 0.85rem;
    color: var(--text-medium-color);
    line-height: 1.5;
}

/*
    -------------------------------------------------
            Video Card (Same Design System)
    -------------------------------------------------
*/

.video-card {
    background: var(--surface-color);
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

    .video-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px var(--shadow-soft-color);
    }

/* Video frame (16:9 fixed) */
.video-card-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

    .video-card-frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Content */
.video-card-body {
    padding: 14px 16px;
    text-align: center;
}

/* Title */
.video-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

/* Description */
.video-card-text {
    font-size: 0.85rem;
    color: var(--text-medium-color);
    line-height: 1.5;
}

/*
    -------------------------------------------------
            Feature Card (Same Design System)
    -------------------------------------------------
*/

.feature-card {
    background: var(--surface-color);
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

/* ------------------------------------------------------------
   Photo Gallery Page
   ------------------------------------------------------------ */
.gallery-page {
    background: var(--surface-soft-color);
}

.gallery-page-title {
    color: var(--primary-color);
    font-weight: 800;
}

.gallery-page-subtitle {
    color: var(--text-medium-color);
}

.gallery-category-panel {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    padding: 16px;
    position: sticky;
    top: 98px;
}

.gallery-panel-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.gallery-category-panel .list-group-item {
    border: 1px solid var(--divider-color);
    border-radius: 8px !important;
    margin-bottom: 8px;
    color: var(--text-strong-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

    .gallery-category-panel .list-group-item:last-child {
        margin-bottom: 0;
    }

    .gallery-category-panel .list-group-item.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--text-on-dark-color);
    }

.gallery-photo-card {
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 14px;
    box-shadow: 0 8px 20px var(--shadow-soft-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-photo-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px var(--shadow-medium-color);
    }

.gallery-photo-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-photo-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: var(--surface-muted-color);
}

.gallery-photo-caption {
    margin: 0;
    padding: 12px 14px;
    color: var(--text-medium-color);
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.gallery-modal-content {
    border: 1px solid var(--divider-color);
    border-radius: 14px;
}

.gallery-modal-image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: var(--surface-muted-color);
    border-radius: 10px;
}

.gallery-modal-caption {
    margin-top: 10px;
    color: var(--text-medium-color);
    text-align: center;
    font-weight: 600;
}

.gallery-modal-description {
    margin-top: 8px;
    color: var(--text-medium-color);
    line-height: 1.6;
    text-align: center;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .gallery-category-panel {
        position: static;
    }
}

@media (max-width: 767px) {
    .gallery-photo-img {
        height: 200px;
    }
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px var(--shadow-soft-color);
}

/* Link reset */
.feature-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Image */
.feature-card-img {
    width: 100%;
    height: 200px;
    object-fit: fill;
}

/* Body */
.feature-card-body {
    padding: 14px 16px;
    text-align: center;
}

/* Title */
.feature-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

/* Text */
.feature-card-text {
    font-size: 0.85rem;
    color: var(--text-medium-color);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Button style */
.feature-card-btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--interactive-color);
    transition: color 0.3s ease;
}

    .feature-card-btn:hover {
        color: var(--interactive-dark-color);
    }
/* ------------------------------------------------------------
   Content Strip (Editorial Layout)
   ------------------------------------------------------------ */

.content-strip-section {
    margin-top: 20px;
}

/* Main block */
.content-strip {
    display: flex;
    gap: 22px;
    margin-bottom: 18px;
    background: var(--surface-color);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    box-shadow: 0 6px 16px var(--shadow-soft-color);
    transition: all 0.25s ease;
}

    .content-strip:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 22px var(--shadow-medium-color);
    }

/* Image */
.content-strip-media img {
    width: 260px;
    height: 180px;
    object-fit: fill;
    border-radius: 10px;
    background: var(--surface-soft-color);
}

/* Content */
.content-strip-body {
    flex: 1;
    padding: 18px;
}

/* Title */
.content-strip-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.event-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium-color);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.8rem;
}

    .event-date-chip i {
        color: var(--interactive-color);
    }

.event-date-sep {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-medium-color);
    font-weight: 600;
}

.event-date-start,
.event-date-end {
    color: var(--text-strong-color);
    font-weight: 700;
}

/* ------------------------------------------------------------
   Event Details Page
   ------------------------------------------------------------ */

.event-detail-section {
    margin-top: 20px;
}

.event-detail-card {
    background: var(--surface-color);
    /* border: 1px solid var(--divider-color);
    border-radius: 14px;
    box-shadow: 0 8px 20px var(--shadow-soft-color); */
    padding: 20px;
}

    .event-detail-card .page-header {
        margin-top: 0;
        margin-bottom: 16px;
    }

.event-hero-img {
    width: 100%;
    height: 280px;
    object-fit: fill;
    border-radius: 10px;
    border: 1px solid var(--divider-color);
    background: var(--surface-soft-color);
}

.event-image-wrap {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

    .event-image-wrap .event-hero-img {
        max-width: 520px;
    }

.event-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-medium-color);
    font-size: 0.92rem;
    line-height: 1.65;
    background: var(--surface-soft-color);
    border: 1px solid var(--divider-color);
    border-left: 3px solid var(--interactive-color);
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1.6em;
}

    .event-meta-item i {
        color: var(--interactive-color);
        min-width: 14px;
    }

.event-meta-label {
    font-weight: 700;
    color: var(--text-strong-color);
    min-width: 72px;
}

.seminar-image-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.seminar-hero-img {
    width: 100%;
    height: 280px;
    object-fit: fill;
    border-radius: 10px;
    border: 1px solid var(--divider-color);
    background: var(--surface-soft-color);
}

.seminar-image-row .seminar-hero-img:only-child {
    grid-column: 1 / -1;
    width: min(100%, 430px);
    justify-self: center;
}

.content-strip-title a {
    text-decoration: none;
    color: inherit;
}

    .content-strip-title a:hover {
        color: var(--interactive-color);
    }

/* Text */
.content-strip-text {
    font-size: 0.92rem;
    color: var(--text-medium-color);
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: justify;
}

/* Link */
.content-strip-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--interactive-color);
    text-decoration: none;
}

    .content-strip-link:hover {
        color: var(--interactive-dark-color);
    }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 768px) {
    .content-strip {
        flex-direction: column;
    }

    .content-strip-media img {
        width: 100%;
        height: 200px;
    }

    .event-detail-card {
        padding: 14px;
    }

    .event-hero-img {
        height: 220px;
    }

    .event-image-wrap {
        margin-top: 12px;
    }

        .event-image-wrap .event-hero-img {
            max-width: 100%;
        }

    .event-meta-label {
        min-width: 64px;
    }

    .seminar-image-row {
        margin-top: 12px;
        gap: 10px;
    }

    .seminar-hero-img {
        height: 210px;
    }

    .seminar-image-row .seminar-hero-img:only-child {
        width: min(100%, 320px);
    }
}

/* ------------------------------------------------------------
   Quote/Testimonial Detail Page
   ------------------------------------------------------------ */

.quote-detail-page {
    background: var(--surface-color);
}

.quote-detail-wrap {
    background: transparent;
}

.quote-detail-card {
    max-width: 900px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 28px;
}

.quote-detail-header {
    margin-bottom: 18px;
}

.quote-detail-title {
    margin: 10px 0 6px;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
}

.quote-detail-ref {
    color: var(--text-medium-color);
    font-size: 0.96rem;
    font-weight: 600;
}

.quote-detail-image-wrap {
    margin: 0 0 20px;
}

.quote-detail-image {
    width: min(100%, 320px);
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--divider-color);
    background: var(--surface-muted-color);
    box-shadow: 0 8px 20px var(--shadow-soft-color);
}

.quote-detail-body {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid var(--accent-color);
    background: var(--surface-alt-color);
    border-radius: 10px;
    position: relative;
}

.quote-detail-mark {
    position: absolute;
    top: -8px;
    left: 12px;
    color: var(--accent-color);
    font-size: 2rem;
    line-height: 1;
    opacity: 0.9;
}

.quote-detail-text {
    color: var(--text-strong-color);
    line-height: 1.9;
    font-size: 1.02rem;
    text-align: justify;
    overflow-wrap: break-word;
}

.quote-detail-footer {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-medium-color);
    font-size: 0.92rem;
}

.quote-detail-author {
    color: var(--primary-color);
    font-weight: 800;
}

.quote-detail-source {
    font-weight: 600;
}

.quote-detail-footer-sep {
    color: var(--divider-strong-color);
    font-weight: 700;
}

@media (max-width: 767px) {
    .quote-detail-card {
        border-radius: 0;
        padding: 18px 14px;
    }

    .quote-detail-body {
        padding: 16px 14px;
    }

    .quote-detail-text {
        text-align: left;
        line-height: 1.8;
        font-size: 0.98rem;
    }

    .quote-detail-footer {
        justify-content: flex-start;
    }
}
