/* Public UI trial. Remove the stylesheet link to restore the previous appearance. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { max-width: 100%; overflow-x: clip; }
body img, body video, body iframe { max-width: 100%; }
body .container, body .container-fluid, body .row, body [class*="col-"] { min-width: 0; }
html body { background: #f8f9f4 !important; color: #183e30; }
body .section-title { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.8px; }
body .section-title::after { background: #c7a34d; height: 3px; width: 48px; }
body .section-intro, body .campus-section-intro { max-width: 720px; margin: 0 auto 36px; line-height: 1.85; color: #53695e; text-align: center; }
body .page-hero { min-height: 440px; padding: 100px 0 64px; background: radial-gradient(ellipse at top right, #e5ead8, transparent 65%), #f4f6ef; }
body .page-hero .glass-card { background: #123e30 !important; border: 1px solid #315443; border-radius: 28px; padding: clamp(32px, 6vw, 72px); margin: 0; text-align: center; box-shadow: 0 20px 50px #143b3014; }
body .page-hero .hero-title { color: #fff; -webkit-text-fill-color: #fff; background: none; font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -1.5px; }
body .page-hero .hero-title i { color: #e4c675; -webkit-text-fill-color: #e4c675; }
body .page-hero .hero-subtitle { color: #d9e6de; font-size: 1rem; line-height: 1.9; max-width: 720px; }
body .green-section, body .dark-section, body .org-section, body .campus-programs-section { padding: 72px 0; background: #f8f9f4 !important; }
body #core-values, body #organizations { background: #eef3eb !important; }
body .glass-card { border: 1px solid #dce5d8; box-shadow: 0 8px 26px #173d3008; }
body .glass-card:hover { transform: none; box-shadow: 0 8px 26px #173d3008; }
body .vision-card, body .mission-card { padding: 36px; border-top: 4px solid #b6974b; height: 100%; }
body .vision-card p, body .mission-card p { color: #496353; line-height: 1.9; }
body .mv-icon, body .value-badge { background: #eaf1e7; color: #205e41; box-shadow: none; }
body .value-card { background: #fff; border: 1px solid #dce5d8; border-radius: 18px; padding: 28px; box-shadow: none; }
body .value-card h3 { color: #183e30; font-size: 1.05rem; line-height: 1.55; }
body .value-card p { color: #53695e; line-height: 1.8; }
body .campus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body .campus-card { border: 1px solid #d8e3d6; border-top: 4px solid #b6974b; background: #fff; padding: 32px; border-radius: 18px; box-shadow: 0 8px 24px #173d3008; transition: transform .2s, box-shadow .2s; }
body .campus-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px #173d3014; }
body .campus-code { color: #225e43; font-weight: 700; letter-spacing: .6px; }
body .campus-card h3 { color: #183e30; line-height: 1.5; font-size: 1.2rem; margin-top: 18px; }
body .campus-card p { color: #53695e; line-height: 1.8; }
body .org-accordion-item { border: 1px solid #d8e3d6; border-radius: 16px; background: #fff; overflow: hidden; }
body .org-accordion-item > summary { background: #edf3e9; color: #183e30; padding: 20px 24px; }
body .accordion-item { border-color: #dce5d8; }
body .accordion-button { padding: 24px; color: #183e30; }
body .accordion-button:not(.collapsed) { color: #184b33; background: #edf3e9; box-shadow: none; }
body .accordion-body { color: #53695e; line-height: 1.9; }
body .hero-section { padding-top: var(--home-navbar-height, 87px); min-height: auto; background: #f8f9f4; }
body .hero-section .container-fluid { width: 100%; left: auto; transform: none; min-height: auto; }
body .hero-section .intro-card { min-height: 78svh; padding: 110px 24px 80px; overflow: hidden; isolation: isolate; }
body .hero-section .admin-resizable-video { top: 0 !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 0 !important; }
body .hero-section .admin-resizable-video video { width: 100%; height: 100%; object-fit: cover; }
body .hero-section .intro-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #072b24bf, #072b2480); z-index: 1; pointer-events: none; }
body .hero-section .intro-title { max-width: 900px; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.16; letter-spacing: -1.4px; }
body .hero-section .intro-text { max-width: 760px; line-height: 1.85; }
body .latest-updates-strip-wrapper { margin: 32px auto 56px; max-width: 1240px; padding: 0 28px; }
body .latest-update-card { border: 1px solid #dce5d8; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #173d300a; overflow: hidden; }
body .latest-update-card .title { color: #183e30; }
body .latest-update-card .meta { color: #526e5d; }
body .anniversary-section { padding: 48px 20px 64px; background: #f8f9f4; }
body .anniversary-card { max-width: 1140px; margin: auto; }
body .anniversary-panel { background: #123e30; border-radius: 24px; padding: 40px 28px; }
body .anniversary-video { border-radius: 14px; max-width: 960px; }
body a:focus-visible, body button:focus-visible, body summary:focus-visible { outline: 3px solid #b6974b; outline-offset: 4px; }
body .org-grid { scrollbar-width: thin; scrollbar-color: #6e9b7a #e7eee6; }
body .org-grid::-webkit-scrollbar { display: block; height: 7px; }
body .org-grid::-webkit-scrollbar-thumb { background: #6e9b7a; border-radius: 999px; }
body .org-grid::-webkit-scrollbar-track { background: #e7eee6; border-radius: 999px; }
@media (max-width: 767px) {
    body .page-hero { padding: 76px 0 36px; min-height: auto; }
    body .green-section, body .dark-section, body .org-section, body .campus-programs-section { padding: 48px 0; }
    body .campus-grid, body .mv-grid, body .value-grid { grid-template-columns: 1fr; }
    body .campus-card, body .vision-card, body .mission-card, body .glass-card { padding: 24px; }
    body .hero-section .intro-card { min-height: 70svh; }
    body .anniversary-panel { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body .campus-card { transition: none; }
    body .campus-card:hover { transform: none; }
}
body .home1-hero-top-ticker { top: 0; }

body .hero-section .container-fluid { padding-bottom: 64px; }
body .hero-section .latest-updates-strip-wrapper { bottom: 0; margin-top: 0; margin-bottom: 0; }

body #faqs .section-title { color: #183e30; -webkit-text-fill-color: #183e30; background: none; }
body #faqs .section-intro { color: #53695e; }

body .home1-hero-top-text { color: #ffffff; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65); }


/* Keep letter positions stable as they travel across the full banner. */
body .home1-hero-top-ticker { overflow: hidden; }
body .home1-hero-top-text { overflow: visible; max-width: none; letter-spacing: clamp(0.2rem, 1.5vw, 1rem); }
body .home1-hero-letter.is-waiting { visibility: hidden; }
body .home1-hero-letter.is-entering-right { animation: home1EdgeLetterIn 0.7s ease-in-out both; }
body .home1-hero-letter.is-exiting-left { animation: home1EdgeLetterOut 0.7s ease-in-out both; }
@keyframes home1EdgeLetterIn {
    from { transform: translateX(100vw); }
    to { transform: translateX(0); }
}
@keyframes home1EdgeLetterOut {
    from { transform: translateX(0); }
    to { transform: translateX(-100vw); }
}

/* Keep the video behind the navbar and fade the ticker only at viewport edges. */
body .hero-section { padding-top: 0; }
body .hero-section .intro-card { min-height: calc(78svh + var(--home-navbar-height, 87px)); background: url('school.jpg') center/cover no-repeat !important; }
body .hero-section .admin-resizable-video video { width: 100% !important; height: 100% !important; }
body .home1-hero-top-ticker {
    position: fixed;
    top: var(--home-navbar-height, 87px);
    margin-top: 0;
    z-index: 1020;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 min(6vw, 64px), #000 calc(100% - min(6vw, 64px)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 min(6vw, 64px), #000 calc(100% - min(6vw, 64px)), transparent);
}
body .home1-hero-letter { color: #fff; opacity: 1; }
@media (max-width: 767px) {
    body .hero-section .intro-card { min-height: calc(70svh + var(--home-navbar-height, 87px)); }
}

body .home1-hero-top-ticker.is-fading { transform: none; }

body #navbar-container .navbar > .home1-hero-top-ticker { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 0 1.1rem; border-top: 0; }

/* Show the animated banner only when it is flush with the loaded navbar. */
body .home1-hero-top-ticker { visibility: hidden; }
body #navbar-container .navbar > .home1-hero-top-ticker {
    visibility: visible;
    top: 100%;
    margin: 0 !important;
    transform: none !important;
}
/* Vision and Mission section. */
body #mission-vision { background: #123e30 !important; }
body #mission-vision { padding-top: 130px; }
body #mission-vision .section-title { color: #fff; -webkit-text-fill-color: #fff; background: none; }
body #mission-vision .section-intro { color: #d9e6de; }

@media (max-width: 767px) {
    body #mission-vision { padding-top: 110px; }
}

/* Keep the Campus programs dark while both FAQ sections use a light surface. */
body #campus.campus-programs-section { background: #123e30 !important; }
body #campus.campus-programs-section { padding-top: 100px; }
body #campus .section-title { color: #fff; -webkit-text-fill-color: #fff; background: none; }
body #campus .campus-section-intro { color: #fff; }

@media (max-width: 767px) {
    body #campus.campus-programs-section { padding-top: 96px; }
}

body #faqs.green-section,
body #faqs.faq-programs-section { background: #fff !important; }
body #faqs .section-title { color: #183e30; -webkit-text-fill-color: #183e30; background: none; }
body #faqs .section-intro,
body #faqs .campus-section-intro { color: #405a4c; }
body #faqs .faq-wrap { background: #fff !important; border-color: #d8e3d6; }
body #faqs .faq-item,
body #aboutFaqs .accordion-item { background: #fff; border-color: #d8e3d6; color: #183e30; }
body #faqs .faq-question,
body #aboutFaqs .accordion-button,
body #aboutFaqs .accordion-button:not(.collapsed) { background: #edf3e9; color: #183e30; }
body #faqs .faq-question:hover,
body #aboutFaqs .accordion-button:hover { background: #e2eddf; color: #123e30; }
body #faqs .faq-answer,
body #faqs .faq-answer p,
body #aboutFaqs .accordion-body { background: #fff; color: #355243; }
body #faqs .search-input { background: #fff; color: #183e30; border-color: #b8cdbc; }
body #faqs .search-input::placeholder { color: #53695e; }
body #aboutFaqs .accordion-button::after { filter: none; }

@media (max-width: 767px) {
    /* Saved Home1 content contains desktop font sizes inside nested spans. */
    body .hero-section .container-fluid { height: auto; padding-bottom: 0; }
    body .hero-section .intro-card {
        min-height: min(75svh, 680px) !important;
        height: auto;
        padding: 125px 20px 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    body .hero-section .intro-card h1 {
        max-width: 100%;
        margin: 0 0 12px !important;
        font-size: clamp(1.75rem, 7vw, 2.35rem) !important;
        font-family: 'Poppins', Arial, sans-serif !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: normal !important;
        overflow-wrap: anywhere;
    }
    body .hero-section .intro-card h1[style*="font-size: 20px"] {
        font-size: clamp(1rem, 4.2vw, 1.25rem) !important;
    }
    body .hero-section .intro-card h1 span,
    body .hero-section .intro-card h1 strong {
        font-size: inherit !important;
        font-family: inherit !important;
        line-height: inherit !important;
        letter-spacing: inherit !important;
        white-space: normal !important;
    }
    body .hero-section .intro-card .intro-text,
    body .hero-section .intro-card .intro-text span {
        font-size: clamp(.95rem, 3.6vw, 1.08rem) !important;
        font-family: 'Poppins', Arial, sans-serif !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
    }
    body .hero-section .intro-card .intro-text { margin: 0 0 12px !important; }
    body .hero-section .latest-updates-strip-wrapper {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 0 auto;
        padding: 12px 12px 24px;
        gap: 6px;
    }
    body .hero-section .latest-updates-strip { min-width: 0; scroll-snap-type: x mandatory; }
    body .hero-section .latest-update-card {
        flex: 0 0 min(100%, 280px);
        min-width: min(100%, 280px);
        max-width: min(100%, 280px);
        scroll-snap-align: center;
    }
    body .hero-section .latest-updates-nav { width: 34px; height: 34px; }

    body #faqs .faq-answer.show { max-height: none; overflow: visible; }
    body .org-panel { overflow-x: auto; }
    body .org-panel .org-image { width: 100%; max-width: 100%; height: auto; }
    body .org-panel .org-caption { text-align: center; }
    body .org-container { max-width: 100%; overflow-x: auto; }
    body .org-container .admin-resizable-image {
        display: block !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        resize: none !important;
    }
    body .org-container .admin-resizable-image img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }
    body .footer-section a,
    body .footer-section p { overflow-wrap: anywhere; }
}

/* Keep the public pages readable without horizontal page scrolling on small phones. */
@media (max-width: 575px) {
    html { scroll-padding-top: 76px; }
    body .page-hero { padding: 96px 0 28px; }
    body .page-hero .glass-card { padding: 28px 20px; border-radius: 20px; }
    body .page-hero .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); overflow-wrap: anywhere; }
    body .page-hero .hero-subtitle { font-size: 1rem; line-height: 1.6; }
    body .faq-programs-section, body .org-section { padding: 48px 0; }
    body #faqs .search-input { font-size: 1rem; padding: 14px 18px; }
    body #faqs .faq-question { gap: 12px; padding: 18px; font-size: 1rem; line-height: 1.45; }
    body #faqs .faq-question span { min-width: 0; overflow-wrap: anywhere; }
    body #faqs .faq-icon { flex: 0 0 auto; }
    body #faqs .faq-answer.show { padding: 18px; }
    body .org-panel { padding: 16px; }
    body .contact-card { padding: 24px 18px; }
    body .contact-details a { overflow-wrap: anywhere; }
    body .updates-section .admin-resizable-image,
    body .org-card .admin-resizable-image {
        max-width: 100% !important;
        height: auto !important;
        resize: none !important;
        overflow: visible !important;
    }
    body .updates-section .admin-resizable-image img,
    body .org-card .admin-resizable-image img { max-width: 100%; height: auto !important; }
    body .hero-section .intro-card { min-height: 0 !important; padding-top: calc(var(--home-navbar-height, 72px) + 64px); }
    body .hero-section .latest-updates-strip-wrapper { padding-inline: 8px; }
    body .hero-section .latest-updates-nav { width: 32px; height: 32px; }
    body .section-title { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.2; }
    body .org-accordion-item > summary { padding: 16px; gap: 10px; }
    body .org-grid { gap: 12px; padding-bottom: 12px; }
    body .org-card { min-height: 0; }
    body .login-modal { overflow-y: auto; padding: 16px 0; }
    body .login-modal .modal-content {
        position: relative;
        top: auto;
        left: auto;
        transform: scale(.96);
        width: calc(100% - 28px);
        max-height: calc(100dvh - 32px);
        margin: 16px auto;
        padding: 28px 20px 20px;
        overflow-y: auto;
    }
    body .login-modal.show .modal-content { transform: scale(1); }
    body .admin-editor-bar { max-width: calc(100vw - 20px); }
}

