/* --- Root Variables Sync --- */
:root {
    --green: #1f7a54; 
    --green-dark: #145339;
    --green-light: #e6f4ed;
    --text: #0d2618;
    --muted: #5c7365;
    --bg: #f0f5f2;
    --card: #ffffff;
    --line: #e1ebe5;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(31, 122, 84, 0.08);
}

/* --- Global Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Initial Load Animations (Hero) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.stagger-2 { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.stagger-3 { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.stagger-4 { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(31, 122, 84, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(20, 83, 57, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.page-wrap { flex: 1; display: flex; flex-direction: column; }
.content-container { flex: 1; }

/* Animated Floating Orbs */
.bg-orb {
    position: fixed; 
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.65;
    animation: floatOrb 25s infinite alternate ease-in-out;
}
.orb-1 { width: 600px; height: 600px; background: rgba(31, 122, 84, 0.15); top: -10%; left: -10%; }
.orb-2 { width: 700px; height: 700px; background: rgba(52, 211, 153, 0.1); top: 20%; right: -15%; animation-delay: -5s; }
.orb-3 { width: 500px; height: 500px; background: rgba(20, 83, 57, 0.12); bottom: -10%; left: 20%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.1); }
}

/* --- Topbar Navigation & CTA --- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}
.topbar-inner {
    width: min(1120px, 92%); margin: 0 auto;
    padding: 12px 0; display: flex; align-items: center; justify-content: space-between;
}
.brand-area { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); transition: 0.3s ease; }
.brand-area:hover { transform: scale(1.02); }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid rgba(31,122,84,0.2); padding: 4px; object-fit: contain; box-shadow: var(--shadow-soft); }
.brand-title { font-weight: 900; letter-spacing: 0.5px; line-height: 1.1; font-size: 18px;}
.brand-subtitle { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}

.menu-area { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

.menu-item {
    color: var(--muted) !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.2s ease;
    position: relative;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.menu-item:hover { color: var(--green-dark) !important; }

/* The Active Tab Styling */
.menu-item.active { 
    color: var(--green) !important; 
    font-weight: 800; 
}

.menu-item.active::after {
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    left: 0; 
    width: 100%; 
    height: 3px; 
    background: var(--green); 
    border-radius: 4px;
}

/* Topbar Login Button styling */
.btn-login {
    background: var(--green);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(31, 122, 84, 0.25);
}
.btn-login:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(31, 122, 84, 0.35);
}

/* MOBILE MENU BUTTON */
.menu-button {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}
.menu-button span {
    display: block; height: 2px; margin: 6px 10px;
    background: var(--text); border-radius: 2px;
}

/* --- Hero Spacing (Tightened) --- */
.search-hero { padding: 40px 20px 20px; text-align: center; } 
.centered-hero { display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
.centered-text { max-width: 650px; margin: 10px auto 0; color: var(--muted); font-size: 1.05rem; }

.welcome-badge {
    margin-bottom: 12px;
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    user-select: none;
}

.welcome-title { 
    font-size: clamp(38px, 5vw, 56px);
    margin: 0; 
    font-weight: 900;
    letter-spacing: -1.5px;
}
.welcome-highlight { color: var(--green); }

/* --- Premium Glassmorphism Search Box --- */
.v-search-box-centered {
    width: 100%; 
    max-width: 720px;
    margin: 30px auto 0; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px; 
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); 
    border: 1px solid rgba(255,255,255,1);
    transition: all 0.3s ease;
}
.v-search-box-centered:focus-within {
    transform: translateY(-2px);
    border-color: rgba(31, 122, 84, 0.2);
    box-shadow: 0 20px 40px rgba(31, 122, 84, 0.15);
}

.input-wrapper { display: flex; gap: 12px; align-items: center; width: 100%; padding-left: 15px; }

.v-search-box-centered input {
    flex: 1; border: none; padding: 12px 0;
    font-size: 1.05rem; outline: none; background: transparent;
    color: var(--text); font-family: inherit;
    width: 100%;
}
.v-search-box-centered input::placeholder { color: #9ab0a3; }

/* --- Buttons --- */
.btn-main {
    background: var(--green); color: white; border: none;
    padding: 14px 32px; border-radius: 999px; font-weight: 700; font-size: 15px;
    cursor: pointer; transition: 0.3s ease; white-space: nowrap;
}
.btn-main:hover { background: var(--green-dark); }

.btn-outline { 
    background: transparent; color: var(--green-dark); 
    border: 2px solid var(--green); padding: 10px 20px; 
    border-radius: 12px; font-weight: 700; cursor: pointer; 
    transition: 0.2s; text-align: center; text-decoration: none;
    display: inline-block;
}
.btn-outline:hover { background: var(--green); color: #fff; }

.full-width { width: 100%; padding: 14px 20px; font-size: 1.05rem; border-radius: 14px; }


/* ========================================================================= */
/* --- PROGRAM DISCOVERY GRID --- */
/* ========================================================================= */
.results-area { 
    padding: 40px 20px 60px; 
    max-width: 1150px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
}

.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 2rem; color: var(--green-dark); font-weight: 900; letter-spacing: -0.5px;}
.section-heading p { color: var(--muted); font-size: 1rem; margin-top: 5px; font-weight: 500; }

.program-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    align-items: stretch; 
}

.program-card {
    background: var(--card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    height: 100%;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 122, 84, 0.12);
    border-color: rgba(31, 122, 84, 0.3);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
    background: linear-gradient(135deg, #f9fbf9 0%, #edf4f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.program-card:hover .card-img { transform: scale(1.05); }

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.card-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
    font-weight: 500;
}

/* Update: Flex gap for SVGs in card-meta */
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-meta svg {
    color: var(--green);
}

.card-footer-info {
    margin-top: auto;
    margin-bottom: 0;
}

.program-btn {
    display: block;
    text-align: center;
    font-weight: 800;
    color: var(--green-dark);
    padding: 12px 20px;
    border-radius: 12px;
    background: #f0f4f2;
    transition: .3s ease;
    width: 100%;
    border: 1px solid var(--line);
}
.program-card:hover .program-btn { background: var(--green-light); color: var(--green); border-color: transparent;}


/* --- Pagination System --- */
.pagination-container {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 15px; margin-top: 50px; width: 100%;
}
.page-numbers {
    display: flex; gap: 8px; background: var(--card); flex-wrap: wrap; justify-content: center;
    padding: 8px; border-radius: 40px; box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}
.page-btn, .page-num { text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.2s ease; }
.page-num {
    color: var(--muted); width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.page-num:hover { background: var(--green-light); color: var(--green-dark); }
.page-num.active { background: var(--green); color: white; box-shadow: 0 4px 12px rgba(31, 122, 84, 0.3); }
.page-btn {
    padding: 10px 20px; background: var(--card); color: var(--green-dark);
    border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.page-btn:hover:not(.disabled) { background: var(--green-light); transform: translateY(-2px); }
.page-btn.disabled { opacity: 0.5; cursor: not-allowed; background: transparent; box-shadow: none; border-color: transparent; }

/* --- Centered No Results Card --- */
.no-results-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 40vh; padding: 20px; }
.no-results-card {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
    text-align: center !important; padding: 60px 40px; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(230, 244, 237, 0.95), rgba(255,255,255,0.9));
    background-size: 200% 200%; animation: gradientShift 6s ease infinite, fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-radius: 28px; width: 100%; max-width: 550px;
    margin: 0 auto !important; border: 2px dashed rgba(31, 122, 84, 0.25); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}
.no-results-icon { margin: 0 auto 20px auto !important; display: block !important; opacity: 0.9; animation: floatIcon 3s ease-in-out infinite; color: var(--green); }
.no-results-card h3 { color: var(--text); font-size: 1.8rem; font-weight: 800; margin: 0 0 10px 0 !important; text-align: center !important; width: 100%; }
.no-results-card p { font-size: 1.1rem; margin: 0 !important; color: var(--muted); text-align: center !important; line-height: 1.5; width: 100%; }


/* ========================================================================= */
/* --- MODALS (Landscape & Warning) --- */
/* ========================================================================= */
.modal-overlay { 
    position: fixed; inset: 0; background: rgba(13, 38, 24, 0.7); 
    backdrop-filter: blur(8px); z-index: 2000; display: none; 
    align-items: center; justify-content: center; padding: 20px; 
    opacity: 0; transition: opacity 0.3s ease; 
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-close-btn { 
    position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; 
    border-radius: 50%; border: none; background: #f0f5f2; 
    font-size: 1.2rem; cursor: pointer; z-index: 50; transition: 0.2s; 
    display: grid; place-items: center; color: var(--text); font-weight: bold;
}
.modal-close-btn:hover { background: #ffebee; color: #d32f2f; transform: rotate(90deg); }

/* Landscape Program Modal */
.modal-landscape { 
    background: #fff; border-radius: 24px; width: 100%; max-width: 1000px; 
    max-height: 90vh; display: flex; flex-direction: column; position: relative; 
    overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15); 
    transform: scale(0.95); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
}
.modal-overlay.show .modal-landscape { transform: scale(1); }

.modal-split { display: flex; flex: 1; min-height: 0; }

/* MODAL UI FIX: Respecting Landscape Images */
.modal-left { 
    width: 40%; 
    background: linear-gradient(145deg, #f9fbf9 0%, #edf4f0 100%); 
    display: flex; 
    flex-direction: column; 
    border-right: 1px solid var(--line);
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.modal-left-img-wrapper {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-left-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; 
}

.modal-left-content { 
    width: 100%; 
    text-align: center; 
}

.modal-left-content h2 { 
    font-size: 2.2rem; 
    font-weight: 900; 
    color: var(--green-dark); 
    line-height: 1.2; 
    margin-bottom: 5px; 
    letter-spacing: -0.5px;
}

.modal-code { 
    color: var(--green); 
    font-size: 13px; 
    font-weight: 700; 
    background: rgba(31, 122, 84, 0.1); 
    display: inline-block; 
    padding: 6px 16px; 
    border-radius: 20px;
    margin-top: 10px;
}


/* Right Side */
.modal-right { width: 60%; display: flex; flex-direction: column; background: #fff; position: relative;}
.m-scroll-area { padding: 40px 40px 20px; overflow-y: auto; flex: 1; }
.m-scroll-area::-webkit-scrollbar { width: 6px; }
.m-scroll-area::-webkit-scrollbar-thumb { background: #e1ebe5; border-radius: 10px; }
.m-scroll-area::-webkit-scrollbar-track { background: transparent; }

.m-section { margin-bottom: 25px; }
.m-section h4 { 
    font-size: 16px; font-weight: 800; color: var(--green-dark); 
    margin-bottom: 10px;
}
.m-section p { 
    font-size: 14px; 
    color: var(--muted); 
    line-height: 1.6; 
    font-weight: 500;
    text-align: justify;
}

.m-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-detail-list li {
    position: relative;
    min-width: 0;
    padding: 9px 10px 9px 28px;
    border: 1px solid #e0ebe5;
    border-radius: 9px;
    background: #f8fbf9;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.m-detail-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.m-detail-list li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 122, 84, .11);
}

/* 2x2 Clean Grid */
.m-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; 
    margin: 25px 0; background: #fdfdfd; padding: 20px; 
    border-radius: 12px; border: 1px solid var(--line); 
}
.m-grid-item { display: flex; flex-direction: column; gap: 0;}
.m-grid-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.m-icon {
    color: var(--green);
}
.m-label { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.m-value { font-size: 14px; color: var(--text); font-weight: 700; }

.modal-footer { padding: 20px 40px; background: #fff; border-top: 1px solid var(--line); }

/* Login Warning Modal */
.modal-box.small-modal { 
    width: 100%; max-width: 450px; background: #fff; border-radius: 24px; 
    padding: 40px 30px; text-align: center; position: relative; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); transform: scale(0.95); transition: 0.3s; 
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-icon-warning { margin-bottom: 15px; display: inline-block; animation: floatIcon 3s infinite; }
.small-modal h3 { font-size: 1.8rem; color: var(--green-dark); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px;}
.small-modal p { font-size: 1rem; color: var(--muted); margin-bottom: 30px; line-height: 1.6; font-weight: 500;}
.modal-actions-centered { display: flex; gap: 15px; justify-content: center; }
.modal-actions-centered button { flex: 1; padding: 12px; font-size: 1rem;}


/* --- About Section --- */
.about-hero { padding: 80px 20px; text-align: center; }
.about-hero-inner { max-width: 900px; margin: 0 auto; }
.about-title { font-weight: 900; font-size: 3.5rem; color: var(--text); margin-bottom: 20px; letter-spacing: -1.5px; }

.about-description { 
    color: var(--muted); 
    font-size: 1.15rem; 
    line-height: 1.8; 
    margin-bottom: 50px; 
    text-align: justify; 
    font-weight: 500;
}

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-bottom: 50px; }
.about-card {
    background: var(--card); padding: 40px 30px; border-radius: 24px;
    box-shadow: var(--shadow-soft); border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(31,122,84,0.3); }

/* SVG Update: Premium About Icons */
.about-icon { 
    margin-bottom: 20px; 
    color: var(--green);
    display: inline-flex;
    padding: 15px;
    background: var(--green-light);
    border-radius: 16px;
}
.about-card h4 { color: var(--green-dark); font-weight: 900; font-size: 1.2rem; margin-bottom: 15px; }

.about-card p { 
    font-size: 0.95rem; 
    color: var(--muted); 
    line-height: 1.6; 
    text-align: justify; 
    font-weight: 500;
}

.btn-alt {
    background: var(--green); color: white; border: none;
    padding: 14px 35px; border-radius: 30px; font-weight: 700; font-size: 1.05rem;
    cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(31, 122, 84, 0.2);
}
.btn-alt:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(31, 122, 84, 0.3); }

/* --- FULL DARK FOOTER GRID --- */
.site-footer {
    background: #06170f;
    color: #e6f4ed;
    padding: 60px 20px 40px; 
    margin-top: auto;
    border-top: 4px solid var(--green);
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-brand { display: flex; align-items: center; gap: 15px; }

.footer-logo { 
    height: 60px; width: 60px; min-width: 60px;
    border-radius: 50%; object-fit: cover; background: white; 
    border: 2px solid rgba(255,255,255,0.1);
}

.footer-title { font-size: 1.4rem; font-weight: 800; color: white; }
.footer-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-head { font-size: 0.9rem; font-weight: 800; text-transform: uppercase; color: var(--green-light); margin-bottom: 20px; letter-spacing: 1px; }
.footer-col a, .footer-text { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); text-decoration: none; margin-bottom: 12px; transition: 0.2s ease; }
.footer-col a:hover { color: white; transform: translateX(5px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; flex-wrap: wrap; gap: 15px; }
.footer-copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); }
.footer-mini { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); text-transform: uppercase; letter-spacing: 1px; text-align: right; }

/* =========================================================================
   EXTREME RESPONSIVENESS RULES FOR ALL MOBILE DEVICES
   ========================================================================= */
@media (max-width: 900px) {
    .modal-split { flex-direction: column; overflow-y: auto;}
    .modal-left { width: 100%; border-right: none; border-bottom: 1px solid var(--line); flex-shrink: 0; padding: 30px 20px;}
    .modal-right { width: 100%; overflow: visible; }
    .m-scroll-area { padding: 25px; overflow-y: visible; }
    .modal-landscape { max-height: 95vh; }
    .modal-close-btn { top: 10px; right: 10px; }
}

@media (max-width: 850px) {
    .menu-button { display: block; }
    .menu-area {
        position: absolute; right: 4%; top: 70px;
        background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
        border: 1px solid var(--line); border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,.15); padding: 15px;
        display: none; flex-direction: column; align-items: stretch;
        width: min(320px, 92vw); transform: translateY(-10px); opacity: 0; transition: 0.3s ease;
    }
    .menu-area.open { display: flex; transform: translateY(0); opacity: 1; }
    .menu-item { width: 100%; text-align: center; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 10px;}
    .menu-item::after { display: none; }
    .btn-login { text-align: center; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-mini { text-align: center; }
    
    .welcome-title { font-size: 2.2rem; }
    .about-title { font-size: 2.5rem; }
    
    .v-search-box-centered { border-radius: 25px; background: transparent; box-shadow: none; padding: 0; border: none; }
    .v-search-box-centered:focus-within { transform: none; box-shadow: none; }
    
    .v-search-box-centered .input-wrapper { 
        flex-direction: column; align-items: stretch; background: var(--card);
        padding: 15px; border-radius: 25px; box-shadow: var(--shadow-soft); gap: 15px; padding-left: 15px;
    }
    
    .v-search-box-centered input { text-align: center; padding: 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .btn-main { border-radius: 15px; padding: 14px; }
    
    .no-results-card { padding: 40px 20px; }
    .pagination-container { flex-direction: column; gap: 20px; }
    .page-numbers { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .welcome-title { font-size: 1.8rem; }
    .m-grid { grid-template-columns: 1fr; }
    .modal-actions-centered { flex-direction: column; }
    .program-grid { grid-template-columns: 1fr; }
}

/* Public discovery page polish. Shared navigation and footer stay aligned with home.css. */
body {
    background: #f4f8f6;
    background-image: none;
}

.bg-orb {
    display: none;
}

.content-wrap,
.topbar-inner,
.welcome-inner {
    width: min(1180px, calc(100% - 40px));
}

.topbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #dce9e2;
    box-shadow: 0 4px 18px rgba(16, 41, 29, 0.05);
}

.topbar-inner {
    min-height: 72px;
    padding: 8px 0;
}

.brand-area {
    gap: 11px;
}

.brand-area:hover {
    transform: none;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border: 1px solid #dce9e2;
    box-shadow: 0 6px 16px rgba(16, 41, 29, 0.08);
}

.brand-title,
.brand-subtitle,
.welcome-badge,
.footer-sub,
.footer-head,
.footer-mini {
    letter-spacing: 0;
}

.brand-title {
    font-size: 18px;
}

.brand-subtitle {
    font-size: 11px;
}

.menu-area {
    gap: 6px;
}

.menu-item {
    min-height: 42px;
    padding: 10px 15px !important;
    border-radius: 0;
    color: #526a5c !important;
}

.menu-item:hover {
    background: transparent !important;
    color: #176b49 !important;
}

.menu-item.active {
    color: #176b49 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.menu-item.active::after {
    display: block;
    bottom: 2px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    border-radius: 0;
    background: #176b49;
}

.btn-login {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: #176b49;
    box-shadow: 0 8px 18px rgba(23, 107, 73, 0.18);
}

.menu-button {
    border-radius: 8px;
    border-color: #dce9e2;
}

.search-hero.welcome-area {
    position: relative;
    isolation: isolate;
    min-height: 0;
    padding: 44px 20px 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: url('img/pesobgs.jpg') center 43% / cover no-repeat;
    border-bottom: 1px solid #dce9e2;
}

.search-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(244, 250, 247, 0.86);
}

.search-hero .centered-hero {
    min-height: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.search-hero .welcome-badge {
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border-color: #cfe1d8;
    color: #176b49;
    box-shadow: 0 8px 24px rgba(16, 41, 29, 0.07);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-hero .badge-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    display: block;
    border-radius: 50%;
    background: #20875f;
    box-shadow: 0 0 0 4px rgba(32, 135, 95, 0.12);
}

.search-hero .welcome-badge:hover,
.search-hero .welcome-badge:focus-visible {
    transform: translateY(-2px);
    border-color: #8fc4aa;
    box-shadow: 0 10px 26px rgba(16, 41, 29, 0.11);
}

.search-hero .welcome-badge:focus-visible {
    outline: 3px solid rgba(31, 132, 92, 0.18);
    outline-offset: 3px;
}

.search-hero .welcome-title {
    max-width: 860px;
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
    letter-spacing: 0;
    color: #0d2a1b;
}

.welcome-highlight {
    color: #1f845c;
}

.search-hero .centered-text {
    max-width: 720px;
    margin: 14px auto 0;
    font-size: 17px;
    line-height: 1.7;
}

.search-hero .v-search-box-centered {
    max-width: 760px;
    margin: 22px auto 0;
    padding: 7px;
    border: 1px solid #d6e6de;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(16, 41, 29, 0.1);
}

.v-search-box-centered:focus-within {
    transform: none;
    border-color: #77ad95;
    box-shadow: 0 0 0 3px rgba(31, 122, 84, 0.12), 0 16px 38px rgba(16, 41, 29, 0.1);
}

.input-wrapper {
    min-height: 54px;
    padding-left: 14px;
}

.btn-main,
.btn-outline,
.btn-alt,
.program-btn,
.full-width {
    border-radius: 8px;
}

.btn-main {
    min-height: 46px;
    padding: 12px 26px;
    background: #1f845c;
}

.results-area {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    padding: 58px 0 72px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 720px);
    margin: 0 auto 30px;
    padding-bottom: 22px;
    text-align: center;
    border-bottom: 1px solid #dce9e2;
}

.section-heading-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-heading-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: 34px;
    letter-spacing: 0;
    color: #0d2a1b;
}

.section-heading p {
    margin-top: 5px;
    font-size: 15px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f845c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-kicker::before {
    content: '';
    width: 24px;
    height: 2px;
    flex: 0 0 24px;
    background: #1f845c;
}

.listing-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 3px 9px 3px 4px;
    border: 1px solid #d5e6dd;
    border-radius: 6px;
    background: #fff;
    color: #526a5c;
}

.listing-count strong {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #176b49;
    font-size: 12px;
}

.listing-count span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.program-grid.program-count-4 {
    max-width: 920px;
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card {
    min-height: 455px;
    border-radius: 8px;
    border-color: #d6e4dd;
    box-shadow: 0 12px 30px rgba(16, 41, 29, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    border-color: #9fc8b5;
    box-shadow: 0 18px 38px rgba(16, 41, 29, 0.12);
}

.program-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

.program-grid.program-count-4 .program-card:last-child {
    grid-column: auto;
}

.card-img-wrapper {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 22px;
    background: #f1f7f4;
    border-bottom-color: #dce9e2;
}

.program-image-badges {
    position: absolute;
    inset: 14px 14px auto 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.program-code-badge,
.program-slot-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 6px;
    color: #0d2a1b;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 14px rgba(16, 41, 29, 0.1);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.program-slot-badge {
    color: #176b49;
}

.program-slot-badge.is-full {
    color: #8a4e0a;
    background: #fff8e8;
}

.card-img {
    object-fit: contain;
}

.program-card:hover .card-img {
    transform: scale(1.025);
}

.card-content {
    padding: 24px;
    text-align: center;
}

.card-title {
    min-height: 48px;
    margin-bottom: 10px;
    font-size: 20px;
    letter-spacing: 0;
}

.card-excerpt {
    min-height: 62px;
    margin-bottom: 16px;
    line-height: 1.65;
}

.card-meta {
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 0 16px;
}

.card-meta span {
    min-width: 0;
    justify-content: center;
}

.program-btn {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-color: #d8e5de;
    background: #f3f7f5;
}

.pagination-container {
    margin-top: 36px;
}

.page-numbers,
.page-btn,
.page-num {
    border-radius: 8px;
}

.no-results-card {
    border-radius: 8px;
    background: #fff;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-hero {
    max-width: 1180px;
    padding: 64px 0 76px;
}

.about-hero-inner {
    max-width: 1040px;
    margin-inline: auto;
}

.about-kicker {
    justify-content: center;
    margin-bottom: 10px;
}

.about-title {
    font-size: 44px;
    letter-spacing: 0;
}

.about-description {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.about-card {
    min-height: 260px;
    padding: 30px 28px;
    border-top: 3px solid #1f845c;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 41, 29, 0.07);
}

.about-card:hover {
    transform: translateY(-4px);
}

.about-card p {
    text-align: center;
}

.about-card h4 {
    margin-top: 18px;
}

.about-back-btn {
    min-width: 220px;
    margin-top: 34px;
}

.about-icon {
    border-radius: 8px;
}

.modal-overlay {
    padding: 24px;
    background: rgba(7, 30, 19, 0.72);
}

.modal-landscape,
.modal-box.small-modal {
    border-radius: 8px;
}

.modal-landscape {
    max-width: 980px;
    max-height: min(760px, calc(100vh - 48px));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 28px 70px rgba(5, 27, 16, 0.28);
}

.modal-overlay.show .modal-landscape,
.modal-overlay.show .modal-box {
    animation: publicModalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-left {
    width: 42%;
    padding: 36px 28px;
    background: #eef7f2;
}

.modal-left-img-wrapper,
.m-grid {
    border-radius: 8px;
}

.modal-left-content h2 {
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: 0;
}

.modal-right {
    width: 58%;
}

.m-scroll-area {
    padding: 54px 36px 22px;
}

.m-section p {
    text-align: left;
}

.m-grid {
    gap: 18px;
    padding: 18px;
    background: #f7faf8;
}

.modal-footer {
    padding: 18px 36px;
}

.modal-close-btn {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    background: #f3f7f5;
    border: 1px solid #dce9e2;
}

.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 58px 0 24px;
    background: #0d2618;
    border-top: 4px solid #1f845c;
}

.footer-grid {
    width: min(1180px, calc(100% - 40px));
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 54px;
    padding: 0;
    border-bottom: 0;
}

.footer-brand {
    gap: 15px;
}

.footer-logo {
    width: 58px;
    height: 58px;
    min-width: 58px;
}

.footer-title {
    font-size: 22px;
    letter-spacing: 0;
}

.footer-sub {
    margin-top: 4px;
    font-size: 12px;
}

.footer-col .footer-head {
    margin-bottom: 20px;
    font-size: 14px;
    color: #fff;
}

.footer-col a,
.footer-text {
    margin: 12px 0;
    font-size: 14.5px;
    line-height: 1.7;
}

.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 44px auto 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy,
.footer-mini {
    font-size: 13px;
}

@keyframes publicModalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Public entry-page guidance and accessible discovery controls. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.public-hero-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    text-decoration: none;
}

.public-schedule-select {
    position: relative;
    z-index: 4;
    flex: 0 0 205px;
}

.public-schedule-toggle {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 9px 11px;
    align-items: center;
    color: #214b38;
    border: 1px solid #d3e4db;
    border-radius: 9px 3px 9px 3px;
    background: linear-gradient(145deg, #ffffff, #f2f8f5);
    font: 800 12px/1.25 Poppins, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.public-schedule-toggle:hover {
    border-color: #8dbba4;
    transform: translateY(-1px);
}

.public-schedule-toggle:focus-visible,
.public-schedule-select.is-open .public-schedule-toggle {
    outline: none;
    border-color: #398867;
    box-shadow: 0 0 0 3px rgba(31, 132, 92, .12);
}

.schedule-calendar-icon { width: 18px; height: 18px; color: #1f845c; }
.schedule-chevron { width: 17px; height: 17px; color: #587469; transition: transform .22s ease; }
.public-schedule-select.is-open .schedule-chevron { transform: rotate(180deg); }

.public-schedule-menu {
    position: absolute;
    top: auto;
    right: 0;
    bottom: calc(100% + 9px);
    width: min(290px, calc(100vw - 28px));
    padding: 7px;
    overflow: hidden;
    border: 1px solid #cfe1d8;
    border-radius: 4px 14px 4px 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 34px rgba(16, 65, 45, .14), 0 12px 24px rgba(16, 65, 45, .08);
    backdrop-filter: blur(14px);
    animation: publicScheduleOpen .2s cubic-bezier(.2, .8, .2, 1) both;
}

.public-schedule-menu[hidden] { display: none; }

.public-schedule-menu [role="option"] {
    width: 100%;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    align-items: center;
    color: #214737;
    border: 0;
    border-radius: 7px 3px 7px 3px;
    background: transparent;
    font-family: Poppins, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.public-schedule-menu [role="option"]:hover,
.public-schedule-menu [role="option"]:focus-visible {
    outline: none;
    color: #0f5d3e;
    background: #edf7f2;
    transform: translateX(2px);
}

.public-schedule-menu [role="option"][aria-selected="true"] {
    color: #0d5a3c;
    background: linear-gradient(100deg, #e3f3ea, #f7fbf9);
}

.schedule-option-mark {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid #cce2d6;
    border-radius: 50%;
    background: #fff;
}

[aria-selected="true"] > .schedule-option-mark {
    border-color: #1f845c;
    background: #1f845c;
    box-shadow: 0 0 0 4px rgba(31, 132, 92, .09);
}

[aria-selected="true"] > .schedule-option-mark::after {
    content: '';
    width: 7px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.public-schedule-menu strong,
.public-schedule-menu small { display: block; }
.public-schedule-menu strong { font-size: 11.5px; }
.public-schedule-menu small { margin-top: 2px; color: #71857b; font-size: 9.5px; font-weight: 600; }

@keyframes publicScheduleOpen {
    from { opacity: 0; transform: translateY(7px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.public-route {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(210px, .72fr) minmax(0, 2fr);
    gap: 20px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #d6e5dd;
    border-radius: 16px 5px 16px 5px;
    background: linear-gradient(115deg, #f4faf6, #fff 62%);
    box-shadow: 0 10px 26px rgba(16, 65, 45, .055);
}

.public-route::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 96px;
    height: 3px;
    background: linear-gradient(90deg, #d5a62e, #1f845c);
}

.public-route-heading { align-self: center; }
.public-route-heading > span { color: #1f845c; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.public-route-heading h2 { margin: 5px 0 0; color: #0d2a1b; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
.public-route-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid #dce9e2; border-radius: 10px; background: rgba(255,255,255,.84); }
.public-route-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 12px; align-items: start; }
.public-route-steps li + li { border-left: 1px solid #dce9e2; }
.public-route-steps li > span { width: 27px; height: 27px; display: grid; place-items: center; color: #176b49; border-radius: 50%; background: #e6f3ec; font-size: 10px; font-weight: 900; }
.public-route-steps strong { display: block; color: #163c2c; font-size: 11px; line-height: 1.35; }
.public-route-steps p { margin: 3px 0 0; color: #65796f; font-size: 9.5px; line-height: 1.45; }

.public-route + .results-area { padding-top: 34px; }
.public-directory-notice { display: flex; gap: 14px; margin: 0 0 22px; padding: 12px 14px; align-items: center; justify-content: space-between; border: 1px solid #d8e7df; border-left: 4px solid #1f845c; border-radius: 5px 12px 5px 12px; background: #f6faf8; }
.public-directory-notice > div { display: grid; gap: 2px; }
.public-directory-notice strong { color: #163c2c; font-size: 11px; }
.public-directory-notice span { color: #607568; font-size: 10px; line-height: 1.5; }
.public-directory-notice time { flex: 0 0 auto; color: #527064; font-size: 9.5px; font-weight: 700; white-space: nowrap; }

.card-status { display: inline-flex; margin: -2px auto 11px; padding: 4px 8px; color: #176b49; border-radius: 999px; background: #eaf5ef; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.program-card { position: relative; cursor: pointer; }
.program-card::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(112deg, transparent 28%, rgba(255,255,255,.5) 45%, transparent 62%); transform: translateX(-135%); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.program-card:hover::before { transform: translateX(135%); }
.program-btn { appearance: none; font: inherit; cursor: pointer; }
.program-card .program-btn { display: flex; align-items: center; justify-content: center; }
.program-btn::after { content: '\2192'; display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.program-btn:hover::after { transform: translateX(4px); }
.program-card:focus-within { border-color: #78ae95; box-shadow: 0 0 0 3px rgba(31,132,92,.14), 0 18px 38px rgba(16,41,29,.1); }
.program-btn:focus-visible,
.public-hero-actions a:focus-visible,
.menu-area a:focus-visible { outline: 3px solid rgba(31,132,92,.22); outline-offset: 3px; }
body.modal-open { overflow: hidden; }
#available-programs { scroll-margin-top: 88px; }

/* Match the specificity of the shared navigation rule so active text remains visible. */
.public-index-page .topbar .menu-area .menu-item.active,
.public-index-page .topbar .menu-area .menu-item.active:hover,
.public-index-page .topbar .menu-area .menu-item.active:focus-visible {
    color: #176b49 !important;
    -webkit-text-fill-color: #176b49;
    background: transparent !important;
}

.public-index-page .btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.public-login-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.search-hero.welcome-area {
    isolation: isolate;
}

.public-hero-bubbles {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.public-hero-bubbles span {
    position: absolute;
    bottom: -90px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(31, 132, 92, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 18px rgba(31, 132, 92, .045);
    animation: publicBubbleRise 13s ease-in infinite;
}

.public-hero-bubbles span:nth-child(1) { left: 8%; width: 22px; height: 22px; animation-delay: -2s; }
.public-hero-bubbles span:nth-child(2) { left: 24%; width: 46px; height: 46px; animation-delay: -8s; animation-duration: 16s; }
.public-hero-bubbles span:nth-child(3) { left: 43%; width: 18px; height: 18px; border-color: rgba(213, 166, 46, .2); animation-delay: -5s; }
.public-hero-bubbles span:nth-child(4) { left: 63%; width: 56px; height: 56px; animation-delay: -11s; animation-duration: 18s; }
.public-hero-bubbles span:nth-child(5) { left: 79%; width: 27px; height: 27px; border-color: rgba(213, 166, 46, .18); animation-delay: -4s; animation-duration: 15s; }
.public-hero-bubbles span:nth-child(6) { left: 91%; width: 38px; height: 38px; animation-delay: -9s; animation-duration: 17s; }

@keyframes publicBubbleRise {
    0% { transform: translate3d(0, 0, 0) scale(.82); opacity: 0; }
    12% { opacity: .75; }
    55% { transform: translate3d(16px, -280px, 0) scale(1); }
    100% { transform: translate3d(-10px, -620px, 0) scale(1.08); opacity: 0; }
}

.search-hero.welcome-area::after {
    content: '';
    position: absolute;
    z-index: 0;
    width: min(38vw, 520px);
    aspect-ratio: 1;
    right: -8%;
    bottom: -62%;
    border: 1px solid rgba(31,132,92,.13);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(31,132,92,.035), 0 0 0 92px rgba(213,166,46,.025);
    animation: publicCivicOrbit 11s ease-in-out infinite alternate;
    pointer-events: none;
}
.search-hero .centered-hero { position: relative; z-index: 1; }
.public-route.reveal.active .public-route-steps li { animation: publicStepIn .48s cubic-bezier(.2,.8,.2,1) both; }
.public-route.reveal.active .public-route-steps li:nth-child(2) { animation-delay: .08s; }
.public-route.reveal.active .public-route-steps li:nth-child(3) { animation-delay: .16s; }
.public-route.reveal.active .public-route-steps li:nth-child(4) { animation-delay: .24s; }

@keyframes publicCivicOrbit {
    from { transform: translate3d(0, 0, 0) scale(.96); }
    to { transform: translate3d(-28px, -16px, 0) scale(1.04); }
}

@keyframes publicStepIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dedicated public About page using the same visual language as the index. */
.public-about-hero { background-position: center 38% !important; }
.public-about-overview { width: min(1180px, calc(100% - 40px)); padding: 54px 0 62px; }
.public-about-heading { max-width: 780px; margin: 0 auto 28px; text-align: center; }
.public-about-heading > span,
.public-about-contact > div > span { color: #1f845c; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.public-about-heading h2,
.public-about-standards h2,
.public-about-contact h2 { margin: 6px 0 9px; color: #0d2a1b; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; }
.public-about-heading p,
.public-about-contact p { margin: 0; color: #607568; font-size: 14px; line-height: 1.7; }
.public-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.public-about-grid article { position: relative; min-height: 190px; padding: 24px; overflow: hidden; border: 1px solid #d7e6de; border-radius: 16px 5px 16px 5px; background: #fff; box-shadow: 0 10px 26px rgba(16,65,45,.055); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.public-about-grid article::after { content: ''; position: absolute; inset: auto -36px -52px auto; width: 130px; height: 130px; border: 22px solid rgba(31,132,92,.035); border-radius: 50%; }
.public-about-grid article:hover { transform: translateY(-5px); border-color: #a9cdbb; box-shadow: 0 16px 34px rgba(16,65,45,.09); }
.public-about-grid article > span { width: 34px; height: 34px; display: grid; place-items: center; color: #176b49; border-radius: 10px 3px 10px 3px; background: #e8f4ed; font-size: 11px; font-weight: 900; }
.public-about-grid h3 { margin: 16px 0 7px; color: #123b2a; font-size: 18px; }
.public-about-grid p { margin: 0; color: #61776c; font-size: 12px; line-height: 1.65; }

.public-about-standards { padding: 52px 0; border-block: 1px solid #dce9e2; background: #f3f8f5; }
.public-about-standards-inner { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.5fr); gap: 34px; align-items: center; }
.public-about-standards ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid #d6e5dd; border-radius: 12px 4px 12px 4px; background: #fff; }
.public-about-standards li { display: grid; gap: 4px; padding: 17px; }
.public-about-standards li:nth-child(even) { border-left: 1px solid #dce9e2; }
.public-about-standards li:nth-child(n + 3) { border-top: 1px solid #dce9e2; }
.public-about-standards strong { color: #173d2d; font-size: 12px; }
.public-about-standards li span { color: #63786e; font-size: 10.5px; line-height: 1.55; }

.public-about-contact { width: min(1180px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; margin-block: 34px; padding: 25px 28px; align-items: center; border: 1px solid #d4e4dc; border-left: 5px solid #1f845c; border-radius: 5px 16px 5px 16px; background: linear-gradient(110deg, #fff, #f1f8f4); box-shadow: 0 12px 30px rgba(16,65,45,.065); }
.public-about-contact h2 { font-size: clamp(22px, 2.5vw, 30px); }
.public-about-contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 430px; }
.public-about-contact-actions a { min-height: 40px; display: inline-flex; padding: 9px 13px; align-items: center; color: #176b49; border: 1px solid #cfe1d8; border-radius: 8px 3px 8px 3px; background: #fff; font-size: 10.5px; font-weight: 800; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.public-about-contact-actions a:hover { transform: translateY(-2px); border-color: #86b69f; background: #edf7f1; }
.public-about-overview.reveal.active .public-about-grid article { animation: publicStepIn .5s cubic-bezier(.2,.8,.2,1) both; }
.public-about-overview.reveal.active .public-about-grid article:nth-child(2) { animation-delay: .1s; }
.public-about-overview.reveal.active .public-about-grid article:nth-child(3) { animation-delay: .2s; }

@media (max-width: 850px) {
    .public-about-standards-inner,
    .public-about-contact { grid-template-columns: 1fr; }
    .public-about-standards-inner > div { text-align: center; }
    .public-about-contact { text-align: center; }
    .public-about-contact-actions { max-width: none; justify-content: center; }
}

@media (max-width: 640px) {
    .public-about-overview { width: calc(100% - 24px); padding: 38px 0 42px; }
    .public-about-grid { grid-template-columns: 1fr; }
    .public-about-grid article { min-height: 0; padding: 19px; }
    .public-about-standards { padding: 38px 0; }
    .public-about-standards ul { grid-template-columns: 1fr; }
    .public-about-standards li:nth-child(even) { border-left: 0; }
    .public-about-standards li + li { border-top: 1px solid #dce9e2; }
    .public-about-contact { width: calc(100% - 24px); margin-block: 18px; padding: 19px; }
    .public-about-contact-actions { display: grid; grid-template-columns: 1fr; }
    .public-about-contact-actions a { justify-content: center; }
}

@media (max-width: 980px) {
    .public-route { grid-template-columns: 1fr; }
    .public-route-heading { text-align: center; }
    .public-route-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-route-steps li:nth-child(3) { border-left: 0; }
    .public-route-steps li:nth-child(n + 3) { border-top: 1px solid #dce9e2; }
    .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .program-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
}

@media (max-width: 850px) {
    .topbar-inner,
    .content-wrap,
    .welcome-inner,
    .results-area,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .menu-area {
        top: 66px;
        right: 14px;
        width: min(300px, calc(100vw - 28px));
        padding: 10px;
        border-radius: 8px;
        background: #fff;
    }

    .menu-area.open {
        animation: publicModalIn 0.22s ease both;
    }

    .menu-item {
        margin: 0;
        border-bottom: 0;
        border-radius: 8px;
    }

    .menu-item:hover {
        background: #edf6f1 !important;
    }

    .menu-item.active {
        background: #e4f2eb !important;
    }

    .menu-item.active::after {
        display: none;
    }

    .search-hero.welcome-area {
        min-height: 0;
        padding: 38px 14px 42px;
    }

    .search-hero .welcome-title {
        font-size: 44px;
    }

    .v-search-box-centered {
        max-width: 620px;
        padding: 7px;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 14px 34px rgba(16, 41, 29, 0.1);
        border: 1px solid #d6e6de;
    }

    .v-search-box-centered .input-wrapper {
        padding: 8px;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
    }

    .v-search-box-centered input {
        text-align: left;
        border-bottom: 0;
    }

    .modal-split {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        width: 100%;
    }

    .modal-left {
        padding: 28px 24px;
        border-right: 0;
        border-bottom: 1px solid #dce9e2;
    }

    .modal-left-img-wrapper {
        max-width: 430px;
    }

    .modal-landscape {
        max-height: calc(100vh - 28px);
    }

    .m-scroll-area {
        padding: 28px 24px 18px;
    }

    .modal-footer {
        padding: 16px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-mini {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        min-height: 66px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .search-hero.welcome-area {
        min-height: 0;
        padding: 32px 14px 36px;
    }

    .search-hero .welcome-title {
        font-size: 34px;
    }

    .search-hero .centered-text {
        font-size: 15px;
    }

    .v-search-box-centered .input-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .search-icon {
        display: none;
    }

    .v-search-box-centered input {
        min-height: 46px;
        padding: 10px 12px;
        text-align: center;
        border-bottom: 1px solid #dce9e2;
    }

    .v-search-box-centered .btn-main {
        width: 100%;
    }

    .public-schedule-select { width: 100%; flex-basis: auto; }
    .public-schedule-toggle { min-height: 46px; }
    .public-schedule-menu { right: 0; left: 0; width: 100%; }
    .public-hero-actions { width: 100%; }
    .public-hero-actions a { flex: 1 1 180px; }
    .public-route { width: calc(100% - 24px); margin-top: 14px; padding: 14px; }
    .public-route-steps { grid-template-columns: 1fr; }
    .public-route-steps li + li { border-top: 1px solid #dce9e2; border-left: 0; }
    .public-directory-notice { align-items: flex-start; flex-direction: column; gap: 6px; }

    .results-area {
        padding: 52px 0 64px;
    }

    .section-heading {
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .listing-count {
        justify-content: center;
    }

    .program-grid,
    .program-grid.program-count-4 {
        grid-template-columns: 1fr;
    }

    .program-card {
        min-height: 0;
    }

    .program-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }

    .card-title,
    .card-excerpt {
        min-height: 0;
    }

    .card-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .about-title {
        font-size: 34px;
    }

    .about-card {
        min-height: 0;
    }

    .m-grid {
        grid-template-columns: 1fr;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-left-content h2 {
        font-size: 25px;
    }

    .modal-actions-centered {
        flex-direction: column;
    }

    .modal-box.small-modal {
        padding: 34px 20px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stagger-1,
    .stagger-2,
    .stagger-3,
    .stagger-4,
    .reveal,
    .modal-icon-warning {
        animation: none !important;
        transition: none !important;
    }
    .search-hero.welcome-area::after,
    .public-route.reveal.active .public-route-steps li,
    .program-card::before,
    .program-btn::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .public-hero-bubbles span {
        animation: none !important;
        opacity: .25;
    }

    .public-schedule-menu {
        animation: none !important;
    }
}

/* Compact program details on tablets and phones.
   Keep the identity visible while reserving most of the viewport for useful details. */
@media (max-width: 850px) {
    #programModalOverlay {
        padding: 8px;
        overscroll-behavior: contain;
    }

    #programModalOverlay .modal-landscape {
        width: min(100%, 680px);
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }

    #programModalOverlay .modal-split {
        min-height: 0;
        overflow: hidden;
    }

    #programModalOverlay .modal-left {
        display: grid;
        grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
        gap: 16px;
        align-items: center;
        justify-items: stretch;
        flex: 0 0 auto;
        min-height: 0;
        padding: 14px 58px 14px 16px;
        text-align: left;
        background:
            radial-gradient(circle at 92% 0, rgba(31, 132, 92, .13), transparent 42%),
            #eef7f2;
    }

    #programModalOverlay .modal-left-img-wrapper {
        width: 100%;
        max-width: none;
        max-height: 104px;
        aspect-ratio: 16 / 9;
        margin: 0;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(11, 74, 49, .10);
    }

    #programModalOverlay .modal-left-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #programModalOverlay .modal-left-content {
        min-width: 0;
        text-align: left;
    }

    #programModalOverlay .modal-left-content h2 {
        margin: 0;
        font-size: clamp(19px, 4vw, 25px);
        line-height: 1.15;
    }

    #programModalOverlay .modal-code {
        max-width: 100%;
        margin-top: 8px;
        padding: 5px 11px;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #programModalOverlay .modal-right {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    #programModalOverlay .m-scroll-area {
        min-height: 0;
        padding: 18px 18px 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    #programModalOverlay .m-section {
        margin-bottom: 15px;
    }

    #programModalOverlay .m-section h4 {
        margin-bottom: 6px;
        font-size: 14px;
    }

    #programModalOverlay .m-section p {
        font-size: 12.5px;
        line-height: 1.5;
        text-align: left;
    }

    #programModalOverlay .m-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #programModalOverlay .m-detail-list li {
        padding: 8px 8px 8px 24px;
        border-radius: 8px;
        font-size: 11.5px;
        line-height: 1.4;
    }

    #programModalOverlay .m-detail-list li::before {
        top: 13px;
        left: 10px;
        width: 6px;
        height: 6px;
    }

    #programModalOverlay .m-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 15px 0;
        padding: 13px;
        border-radius: 10px;
    }

    #programModalOverlay .m-grid-item {
        min-width: 0;
        padding: 2px;
    }

    #programModalOverlay .m-grid-header {
        margin-bottom: 2px;
    }

    #programModalOverlay .m-label {
        font-size: 9.5px;
    }

    #programModalOverlay .m-value {
        overflow-wrap: anywhere;
        font-size: 12px;
        line-height: 1.35;
    }

    #programModalOverlay .modal-footer {
        flex: 0 0 auto;
        padding: 10px 18px max(10px, env(safe-area-inset-bottom));
        box-shadow: 0 -8px 24px rgba(15, 72, 49, .06);
    }

    #programModalOverlay .modal-footer .btn-main {
        min-height: 44px;
        padding-block: 10px;
    }

    #programModalOverlay .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 5px 14px rgba(16, 65, 45, .12);
    }
}

@media (max-width: 520px) {
    #programModalOverlay .modal-left {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 11px 52px 11px 12px;
    }

    #programModalOverlay .modal-left-img-wrapper {
        max-height: 68px;
        border-radius: 8px;
    }

    #programModalOverlay .modal-left-content h2 {
        font-size: 18px;
    }

    #programModalOverlay .modal-code {
        margin-top: 5px;
        padding: 4px 9px;
        font-size: 9.5px;
    }

    #programModalOverlay .m-scroll-area {
        padding: 14px 13px 9px;
    }

    #programModalOverlay .m-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 12px 0;
        padding: 11px;
    }

    #programModalOverlay .m-section {
        margin-bottom: 12px;
    }

    #programModalOverlay .m-detail-list {
        gap: 6px;
    }

    #programModalOverlay .m-detail-list li {
        padding: 7px 7px 7px 21px;
        font-size: 10.5px;
    }

    #programModalOverlay .m-detail-list li::before {
        top: 11px;
        left: 8px;
    }

    #programModalOverlay .modal-footer {
        padding-inline: 13px;
    }
}

@media (max-width: 360px) {
    #programModalOverlay .modal-left {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    #programModalOverlay .modal-left-img-wrapper {
        max-height: 52px;
    }

    #programModalOverlay .m-label {
        letter-spacing: 0;
    }
}
