:root {
    --green: #088345;
    --green-dark: #065c30;
    --green-light: #0aa858;
    --gold: #e7bd11;
    --gold-light: #f5d340;
    --gold-dark: #b99009;
    --white: #ffffff;
    --off-white: #f7f6f1;
    --charcoal: #1a1a1a;
    --mid-grey: #555555;
    --light-grey: #e8e8e8;
    --section-gap: 100px;

    --font-display: var(--bs-body-font-family);
    --font-head: var(--bs-body-font-family);
    --font-body: var(--bs-body-font-family);

    --shadow-soft: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.14);
    --transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-site-secondary {
    background-color: var(--gold) !important;
}

.bg-web-primary {
    background-color: var(--green-dark) !important;
}

.text-web-primary {
    color: var(--green-dark) !important;
}

.text-web-secondary {
    color: var(--gold) !important;
}

.bg-orange-subtle {
    background-color: rgb(255, 248, 234);
}

.btn-outline-primary {
    color: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-outline-primary:hover {
    background-color: var(--green-dark);
    color: var(--green-dark) !important;
    border-color: var(--green-dark);
}

.btn-primary:hover {
    color: var(--green-dark);
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

.no-b-space>* {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    /* Added this to be safe */
}

.flex-direction-initial {
    flex-direction: initial !important;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(251, 255, 0, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    30% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.603);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Logo */
.logo-img {
    transition: width 0.3s ease;
}

.logo-shrink .logo-img {
    width: 120px;
}

.hide-header {
    transform: translateY(-100%);
}

@media (min-width: 992px) {
    .w-lg-75 {
        width: 75% !important;
    }
}

/* Hero */
.bg-hero-left {
    bottom: 18%;
    z-index: 1;
    filter: drop-shadow(-10px 10px 20px rgba(0, 129, 50, 0.2));
}

.bg-hero-right {
    right: 0;
    bottom: 18%;
    z-index: 1;
    filter: drop-shadow(-10px 10px 20px rgba(0, 129, 50, 0.2));
}

@media (max-width: 767px) {

    .bg-hero-left,
    .bg-hero-right {
        display: none !important;
    }
}

/* menu */


.dropdown-menu {
    border-radius: 1rem;
    /* Rounded corners to match pill */
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    /* Soft drop shadow */
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f3f5;
    /* Subtle hover color */
}

/* facility */
.bg-img-facility {
    background-image: url('../images/backgrounds/building.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-shadow {
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.8);
}

.hover-btn:hover i {
    color: transparent;
}

/* .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(153, 153, 153, 0.219); 
} */

/* team */
@media (max-width: 767px) {
    .position-relative {
        position: static !important;
        /* Removes the anchor */
    }

    .position-absolute {
        position: static !important;
        /* Makes button appear below H2 */
        display: block;
        width: fit-content;
        margin: 20px auto 0 auto;
        /* Centers the button below text */
    }
}

.team:hover .team-img {
    transition: all 0.4s ease-in-out;
}

.team-img-size {
    width: 192px;
    height: 238px;
    object-fit: cover;
}

.shape-arch {
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.shape-oval {
    border-radius: 100px;
}

.shape-segmented {
    /* Large radius for top and bottom corners */
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.shape-complex {
    clip-path: inset(0% 0% 0% 0% round 50px);
}

.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape-blob {
    border: 2px solid var(--gold);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* notice */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

#noticeboard {
    padding: var(--section-gap) 0;
    background: var(--off-white);
    position: relative;
}

.notice-card {
    background: var(--white);
    border-radius: 4px;
    padding: 22px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-left: 3px solid transparent;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    margin-bottom: 14px;
}

.notice-card:hover {
    border-left-color: var(--green);
    transform: translateX(6px);
    box-shadow: var(--shadow-lift);
}

.notice-date-box {
    min-width: 54px;
    background: var(--green);
    color: var(--white);
    border-radius: 3px;
    padding: 8px;
    text-align: center;
    flex-shrink: 0;
}

.notice-date-box .day {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
}

.notice-date-box .mon {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
}

.notice-title {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--charcoal);
}

.notice-title a:hover {
    color: var(--green);
}

.notice-meta {
    font-size: 0.8rem;
    color: var(--mid-grey);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.notice-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nb-new {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    /* High contrast gold */
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.nb-general {
    background: #6c757d;
    color: #ffffff;
}

.nb-notice {
    background: #0d6efd;
    color: #ffffff;
}

.nb-news {
    background: #198754;
    color: #ffffff;
}

.nb-event {
    background: #fd7e14;
    color: #ffffff;
}

.nb-important {
    background: #dc3545;
    color: #ffffff;
}

.nb-exam {
    background: #6f42c1;
    color: #ffffff;
}

.nb-admission {
    background: #20c997;
    color: #ffffff;
}

.nb-result {
    background: #ffc107;
    color: #000000;
    /* Yellow needs black text for readability */
}

.btn-primary-ghi {
    background: var(--green);
    color: var(--white);
    border: 2px solid var(--green);
    padding: 13px 32px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-ghi:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 131, 69, 0.35);
}

/* =========================================
    NEWS & EVENTS
========================================= */
#news {
    padding: var(--section-gap) 0;
    background: var(--white);
}

.news-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.news-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.07);
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--green);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 2px;
}

.news-body {
    padding: 24px;
}

.news-date {
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a:hover {
    color: var(--green);
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--mid-grey);
    line-height: 1.75;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 16px;
    transition: gap 0.2s;
}

.news-link:hover {
    gap: 12px;
    color: var(--green-dark);
}

/* =========================================
    TESTIMONIALS
========================================= */
#testimonials {
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '"';
    position: absolute;
    top: -60px;
    left: -20px;
    font-family: var(--font-head);
    font-size: 28rem;
    color: rgba(8, 131, 69, 0.04);
    line-height: 1;
    pointer-events: none;
}

.testi-card {
    background: var(--white);
    border-radius: 4px;
    padding: 40px 36px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.testi-quote-icon {
    color: var(--gold);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 16px;
}

.testi-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--mid-grey);
    line-height: 1.85;
    margin-bottom: 28px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testi-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.testi-name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
}

.testi-role {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 500;
}

.testi-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: var(--green-light) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--gold) !important;
    width: 28px !important;
    border-radius: 5px !important;
}

/* =========================================
    VIDEO SECTION
========================================= */
.video-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--charcoal);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
}

.play-btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(231, 189, 17, 0.4);
    animation: pulsePlay 2s ease-in-out infinite;
}

.play-btn::after {
    content: '';
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    border: 2px solid rgba(231, 189, 17, 0.2);
    animation: pulsePlay 2s ease-in-out infinite 0.5s;
}

@keyframes pulsePlay {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.5;
    }
}

.play-btn:hover {
    background: var(--green);
    transform: scale(1.1);
    color: var(--white);
}

/* Video Modal */
#videoModal .modal-content {
    background: #000;
    border: none;
    border-radius: 4px;
}

#videoModal .modal-header {
    border: none;
    padding: 12px 18px 0;
}

#videoModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#videoModal .ratio {
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* contact time table */


/* Program */
.tracking-widest {
    letter-spacing: 0.15em;
}

.rounded-4 {
    border-radius: 1.25rem !important;
}

.nav-pills .nav-link {
    color: var(--charcoal);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-pills .nav-link.active {
    background-color: #ffffff !important;
    color: var(--green-dark) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Base Card Enhancement */
.hover-lift {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.63);
}

.hover-lift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--bs-primary);
    transition: all 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(13, 110, 253, 0.2) !important;
    border-color: rgba(13, 110, 253, 0.3);
}

.hover-lift:hover::before {
    left: 0;
    width: 100%;
}

.hover-lift:hover .bg-opacity-10 {
    background-color: var(--bs-primary) !important;
    color: white !important;
    transition: all 0.3s ease;
}

/* gallery */
.main-gallery {
    height: 212px;
    object-fit: cover;
    object-position: center center;
}

.folder-stack {
    cursor: pointer;
    transition: transform 0.3s;
}

.folder-stack:hover {
    transform: translateY(-5px) scale(1.03);
}

/* career */
.career-card {
    border-radius: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Related Image */
.related-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card img {
    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

/* message from */
.msg-from-img {
    height: 350px;
    object-fit: cover;
    object-position: top center;
}

/* message slide */
#messageFrom {
    position: relative;
    overflow: hidden;
}

#messageFrom::before {
    content: '"';
    position: absolute;
    top: -60px;
    left: -20px;
    font-family: var(--font-head);
    font-size: 28rem;
    color: rgba(8, 131, 69, 0.04);
    line-height: 1;
    pointer-events: none;
}

.swiper-pagination-msg {
    right: 0;
    text-align: right;
}

/* search */
.position-area {
    top: 75%;
    right: 17%;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateX(5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}