/* === Hero: Shell === */
.hero {
    position: relative;
    z-index: 600;
    color: white;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 0 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 1;
    filter: none;
    transform: translateY(0);
    background-image:
        radial-gradient(ellipse at 50% 0%,
            rgba(247, 211, 106, 0.18) 0%,
            transparent 52%),
        linear-gradient(
            180deg,
            rgba(90, 53, 32, 0.96) 0%,
            rgba(122, 75, 45, 0.82) 35%,
            rgba(234, 84, 60, 0.28) 62%,
            rgba(90, 53, 32, 0.92) 80%,
            rgba(44, 20, 8, 0.98) 100%
        ),
        url("../images/hero-background.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    border-radius: 0;
    box-shadow: 0 10px 32px rgba(44, 20, 8, 0.35), 0 4px 14px rgba(0, 0, 0, 0.22);
}

.hero-header {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* === Hero: Header Links === */
.hero-header-links {
    width: 100%;
    max-width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px 20px;
    margin: 0 auto;
}

.hero-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: linear-gradient(140deg, rgba(73, 31, 10, 0.85), rgba(121, 52, 18, 0.8));
    color: #FFF4D6;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    flex: 1 1 180px;
    min-height: 52px;
}

.hero-header-btn:hover,
.hero-header-btn:focus {
    background: linear-gradient(140deg, rgba(255, 215, 0, 0.25), rgba(120, 54, 18, 0.9));
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.hero-header-btn:focus-visible {
    outline: 2px solid rgba(255, 236, 190, 0.9);
    outline-offset: 2px;
}

/* === Hero: Header === */
.logo-container {
    padding: 32px 0 20px;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    max-height: none;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(56, 26, 12, 0.92) 0%, rgba(92, 52, 24, 0.88) 100%);
    z-index: 2;
    width: 100%;
    gap: 10px;
    position: relative;
    text-align: center;
}

.logo-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 224, 150, 0.18), rgba(40, 18, 6, 0.42) 70%);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.logo-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(247, 211, 106, 0.3),
        rgba(247, 211, 106, 0.95) 30%,
        rgba(255, 240, 180, 1) 50%,
        rgba(247, 211, 106, 0.95) 70%,
        rgba(247, 211, 106, 0.3)
    );
    box-shadow: 0 0 14px rgba(247, 211, 106, 0.65), 0 0 28px rgba(247, 211, 106, 0.35);
    z-index: 1;
    pointer-events: none;
}

.logo-container > * {
    position: relative;
    z-index: 2;
}

.logo {
    flex-grow: 0;
    flex-basis: auto;
    max-width: 160px;
    min-width: 100px;
    width: 12vw;
    height: auto;
    padding: 8px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.55));
    transition: box-shadow 0.3s, transform 0.2s, max-width 0.2s, width 0.2s;
}

.school-tag {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: normal;
    flex-grow: 0;
    flex-basis: auto;
    margin: 0;
    padding: 0;
    text-align: center;
}

.school-name {
    font-family: 'Monotype Corsiva', cursive;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 3px;
    text-shadow: none;
    margin: 0;
    font-size: 4.8rem;
    text-align: center;
    line-height: 1.15;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.tag-line {
    font-family: 'Playfair Display', Georgia, serif;
    margin: 0;
    padding: 0 6px;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.92);
    font-style: italic;
    font-weight: 300;
    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: block;
    width: 100%;
    transform-origin: center center;
}

/* === Hero: Campus Block (full-width, below header) === */
.hero-campus-block {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    padding: 0;
    background: #ffffff;
    color: #1f2937;
}

.hero-campus-block .hero-award {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: clamp(520px, 64vh, 700px);
    gap: 14px;
    padding: 20px 24px 10px;
    position: relative;
}

.hero-campus-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
    position: relative;
    z-index: 3;
}

.hero-campus-side-image {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.hero-campus-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cinematic left-edge fade — blends from hero white gap into image */
.hero-campus-side-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.86) 10%, transparent 46%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.94) 0%, transparent 20%),
        linear-gradient(to top, rgba(255, 255, 255, 0.94) 0%, transparent 20%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
}

.hero-campus-block .hero-award-image {
    width: 100%;
    height: clamp(460px, 62vh, 760px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(247, 211, 106, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 5;
}

.hero-campus-block .enrollment-container {
    flex: 1 1 100%;
    width: 100%;
    margin: 6px 0 0;
    left: 0;
}

/* Cinematic right-edge fade — blends into hero white background */
.hero-campus-block .hero-award-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 55%, rgba(255, 255, 255, 0.92) 100%);
    pointer-events: none;
    z-index: 4;
}

/* === Hero: History · Mission · Vision Section (2-column) === */
.hmv-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 32px 28px;
    box-sizing: border-box;
    align-items: start;
    position: relative;
    background: #ffffff;
    border-top: 1px solid rgba(139, 69, 19, 0.18);
    border-bottom: 1px solid rgba(139, 69, 19, 0.14);
}

.hmv-image-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
}

.hmv-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 16%, transparent 36%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.99) 0%, transparent 20%),
        linear-gradient(to top, rgba(255, 255, 255, 0.99) 0%, transparent 20%);
    pointer-events: none;
    z-index: 2;
}

.hmv-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hmv-content-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

.hmv-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 215, 0, 0.16) 0%, transparent 26%),
        radial-gradient(circle at 84% 82%, rgba(139, 69, 19, 0.12) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.hmv-section::after {
    content: "";
    position: absolute;
    left: 32px;
    right: 32px;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(247, 211, 106, 0.15),
        rgba(139, 69, 19, 0.65) 25%,
        rgba(200, 16, 46, 0.58) 50%,
        rgba(139, 69, 19, 0.65) 75%,
        rgba(247, 211, 106, 0.15));
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
    display: none;
}

.hmv-history,
.hmv-mission-vision {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.hmv-history {
    border-right: none;
    padding-right: 0;
    padding-left: 0;
}

.hmv-mission-vision {
    padding-left: 0;
    padding-right: 0;
}

/* === Hero: History === */
.hero-history {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-history-title {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 750;
    letter-spacing: 1.2px;
    color: #5a3200;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    text-rendering: optimizeLegibility;
    text-align: center;
}

.hero-history-text {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.78;
    color: rgba(51, 35, 22, 0.92);
    max-width: 100%;
    text-shadow: none;
    max-height: 220px;
    overflow: auto;
    padding-right: 6px;
    text-align: left;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-rendering: optimizeLegibility;
}

.hero-history-text.is-at-bottom {
    -webkit-mask-image: none;
    mask-image: none;
}

.hero-history-text::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.hero-history-text h3 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
    color: #8b4513;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.hero-history-text p {
    margin: 0 0 14px;
}

.hero-history-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(139, 69, 19, 0.08);
    color: #6a3b11;
    border: 1px solid rgba(139, 69, 19, 0.25);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hero-history-link:hover {
    background: rgba(255, 215, 0, 0.22);
    border-color: rgba(139, 69, 19, 0.45);
    transform: translateY(-1px);
}

/* === Hero: Vision & Mission === */
.hero-vision-mission {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero-vision-mission-title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 750;
    letter-spacing: 1.1px;
    color: #5a3200;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    text-rendering: optimizeLegibility;
    text-align: center;
}

.hero-vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.hero-vision-card,
.hero-mission-card {
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.96) 0%, rgba(252, 244, 230, 0.96) 100%);
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 16px;
    padding: 16px 18px;
    text-align: left;
    box-shadow: 0 8px 18px rgba(90, 50, 18, 0.12);
}

.hero-vision-card h3,
.hero-mission-card h3 {
    margin: 0 0 8px;
    font-size: 1.28rem;
    color: #8b4513;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.hero-vision-card p,
.hero-mission-card p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(51, 35, 22, 0.92);
    text-rendering: optimizeLegibility;
}

.hero-vision-mission-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(139, 69, 19, 0.08);
    color: #6a3b11;
    border: 1px solid rgba(139, 69, 19, 0.25);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hero-vision-mission-link:hover {
    background: rgba(255, 215, 0, 0.22);
    border-color: rgba(139, 69, 19, 0.45);
    transform: translateY(-1px);
}

/* === Hero: Awards (Side) — simplified for campus-block context === */
.hero-award {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    position: relative;
}

/* Hide old side-panel decorators (no longer used) */
.hero-award-rail,
.hero-award-cap {
    display: none;
}

.hero-award-card {
    display: contents;
}

.hero-award-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-award-image video,
.hero-campus-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

/* ── Facebook Page Embed Switcher ────────────────────────── */
.hero-fb-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: inherit;
    background: rgba(40, 18, 6, 0.88);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* All slides — centered, not stretched */
.hero-fb-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow: hidden;
}

/* Skeleton shimmer — visible until FB renders */
.hero-fb-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,215,0,0.04) 0%,
        rgba(255,215,0,0.10) 40%,
        rgba(255,215,0,0.04) 100%
    );
    background-size: 200% 100%;
    animation: fb-shimmer 1.6s ease-in-out infinite;
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
/* Hide shimmer once FB has finished rendering */
.hero-fb-slide.fb-rendered::before {
    opacity: 0;
}

@keyframes fb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* FB embed fades in after render; warm-tint the iframe to match page theme */
.hero-fb-slide .fb-page,
.hero-fb-slide .fb-page span,
.hero-fb-slide .fb-page iframe {
    max-width: 100% !important;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
}
.hero-fb-slide .fb-page iframe {
    /* Subtle sepia-warm tint to tie into the brown/gold page palette */
    filter: sepia(18%) hue-rotate(-5deg) brightness(0.97);
}
.hero-fb-slide.fb-rendered .fb-page,
.hero-fb-slide.fb-rendered .fb-page span,
.hero-fb-slide.fb-rendered .fb-page iframe {
    opacity: 1;
}

/* Left / right clickable wings */
.hero-fb-wing {
    position: absolute;
    top: 0;
    bottom: 36px;
    width: max(0px, calc(25% - 85px));
    z-index: 20;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    transition: background 0.2s;
}
.hero-fb-wing:hover {
    background: rgba(255,215,0,0.10);
}
.hero-fb-wing-left  { left: 0; }
.hero-fb-wing-right { right: 0; }

.hero-fb-wing-arrow {
    font-size: 1.3rem;
    color: rgba(90,50,10,0.35);
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    pointer-events: none;
}
.hero-fb-wing:hover .hero-fb-wing-arrow {
    color: rgba(90,50,10,0.75);
    transform: scale(1.25);
}

/* Dots row — sits at the bottom of the image area */
.hero-fb-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

.hero-fb-dot {
    width: auto;
    height: 22px;
    min-width: 28px;
    border-radius: 999px;
    padding: 0 7px;
    background: rgba(255, 255, 255, 0.30);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.hero-fb-dot:hover {
    background: rgba(255, 215, 0, 0.50);
    border-color: rgba(255, 215, 0, 0.85);
    transform: scale(1.1);
}

.hero-fb-dot.active {
    background: rgba(255, 215, 0, 0.90);
    border-color: #FFD700;
    color: #5a3200;
    text-shadow: none;
    box-shadow: 0 0 10px rgba(255,215,0,0.55), 0 2px 6px rgba(0,0,0,0.25);
}

/* === Hero: Select Campus === */
.select-campus {
    width: 100%;
    margin: 0;
    padding: 0 16px;
    min-height: 102px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(92, 52, 24, 0.28), rgba(60, 32, 12, 0.32)),
        url(../../media-uploads/texture-background.jpg) center/cover fixed;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    color: #FFF4D6;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    z-index: 6;
    transform: none;
    overflow: visible;
    transition: border-color 0.28s ease, background 0.28s ease,
                box-shadow 0.28s ease, transform 0.22s ease;
}

.select-campus:hover,
.select-campus:focus-within {
    border-color: rgba(255, 215, 0, 0.85);
    background:
        linear-gradient(145deg, rgba(92, 52, 24, 0.28), rgba(60, 32, 12, 0.32)),
        url(../../media-uploads/texture-background.jpg) center/cover fixed;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28),
                0 0 0 1px rgba(255, 215, 0, 0.35),
                0 0 22px rgba(255, 195, 60, 0.28);
    transform: none;
}

.select-campus > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.18rem;
    transform: none;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.22s ease, text-shadow 0.22s ease;
    text-shadow: 0 1px 0 rgba(255, 245, 214, 0.38);
}

.select-campus > span::after {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.68rem;
    opacity: 0.8;
}

.select-campus-overlay {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    pointer-events: none;
    z-index: 7;
    border-radius: 18px;
    overflow: hidden;
}

.select-campus-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    display: none;
}

.select-campus:hover .select-campus-overlay,
.select-campus:focus-within .select-campus-overlay {
    pointer-events: auto;
    background: none;
}

.select-campus:hover > span,
.select-campus:focus-within > span {
    opacity: 0;
}

.select-campus-overlay-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    min-height: 100%;
    padding: 24px 12px;
    border-radius: 0;
    border: 1px solid rgba(255, 215, 0, 0.38);
    background:
        linear-gradient(145deg, rgba(92, 52, 24, 0.28), rgba(60, 32, 12, 0.32)),
        url(../../media-uploads/texture-background.jpg) center/cover fixed;
    color: #FFF4D6;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    transform: skewX(0deg);
    position: absolute;
    top: 0;
    z-index: 2;
    transition: transform 0.24s ease-out, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, outline-color 0.22s ease;
}

.select-campus-overlay-option::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.select-campus-overlay-option.las-pinas {
    left: 0;
    border-right: none;
    transform: skewX(0deg) translateX(-100%);
}

.select-campus-overlay-option.bacoor {
    right: 0;
    border-left: none;
    transform: skewX(0deg) translateX(100%);
}

.select-campus:hover .select-campus-overlay-option.las-pinas,
.select-campus:focus-within .select-campus-overlay-option.las-pinas,
.select-campus:hover .select-campus-overlay-option.bacoor,
.select-campus:focus-within .select-campus-overlay-option.bacoor {
    transform: skewX(0deg) translateX(0);
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.25);
}

.select-campus-overlay-option > span {
    position: relative;
    z-index: 4;
    transform: skewX(0deg);
    transition: text-shadow 0.26s ease;
}

.select-campus-overlay-option:hover,
.select-campus-overlay-option:focus-visible {
    border-color: rgba(255, 231, 150, 0.98);
    background:
        linear-gradient(145deg, rgba(110, 62, 28, 0.38), rgba(78, 42, 18, 0.42)),
        url(../../media-uploads/texture-background.jpg) center/cover fixed;
    outline: 2px solid rgba(255, 240, 190, 0.92);
    outline-offset: -3px;
    box-shadow: 
        inset 0 1px 8px rgba(255, 215, 0, 0.18),
        0 0 0 1px rgba(255, 220, 120, 0.65), 
        0 0 16px rgba(255, 200, 90, 0.75), 
        0 0 32px rgba(255, 185, 70, 0.55);
}

.select-campus-overlay-option:hover > span,
.select-campus-overlay-option:focus-visible > span {
    text-shadow: 0 2px 0 rgba(255, 248, 225, 0.65), 0 0 14px rgba(255, 215, 0, 0.58), 0 0 24px rgba(255, 200, 80, 0.35);
}


/* === Hero: Enrollment CTA === */
.enrollment-container {
    width: calc(100% - 24px);
    left: 0;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 14px 18px;
    border: 2px solid rgba(255, 170, 60, 0.95);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(11, 42, 90, 0.98), rgba(10, 78, 154, 0.96));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), 0 0 22px rgba(255, 255, 255, 0.45);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    animation: enrollment-float 4.6s ease-in-out infinite;
}

.enrollment-container::before {
    content: "";
    position: absolute;
    inset: -25% -10%;
    background: linear-gradient(120deg, rgba(255, 190, 110, 0.55), rgba(255, 255, 255, 0) 60%);
    opacity: 0.65;
    pointer-events: none;
}

.enrollment-cta-track {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    overflow: hidden;
    --marquee-duration: 18s;
    --marquee-font-size: clamp(0.78rem, 0.5vw + 0.65rem, 0.9rem);
    font-size: var(--marquee-font-size);
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.enrollment-cta-motion {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 200%;
    transform: translate3d(0, 0, 0);
    animation: enrollment-marquee var(--marquee-duration) linear infinite;
    will-change: transform;
}

.enrollment-cta-content {
    display: block;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-right: 0;
    white-space: nowrap;
    text-align: left;
    font-size: var(--marquee-font-size);
}

.enrollment-cta-spacer {
    display: none;
}

.enrollment-container:hover .enrollment-cta-motion,
.enrollment-container:focus-within .enrollment-cta-motion {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .enrollment-cta-motion {
        animation: none;
        transform: none !important;
    }

    .enrollment-cta-content[aria-hidden="true"],
    .enrollment-cta-spacer {
        display: none;
    }
}


/* === Hero: Overlay Controls === */
.hero-overlay-controls {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9500;
}

.hero-scroll-btn,
.hero-enroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    background: rgba(73, 31, 10, 0.85);
    color: #FFF4D6;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    text-transform: none;
}

.hero-scroll-btn i,
.hero-enroll-btn i {
    font-size: 1rem;
}

.hero-scroll-btn:hover,
.hero-enroll-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-2px);
}

/* === Hero: Campus Modal (Enroll Now) === */
.campus-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 8, 6, 0.46);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.campus-modal-content {
    background: linear-gradient(180deg, rgba(255, 250, 238, 0.92) 0%, rgba(252, 240, 212, 0.9) 100%);
    border-radius: 22px;
    padding: 30px 30px 24px;
    max-width: 520px;
    width: 92%;
    border: 1px solid rgba(139, 69, 19, 0.28);
    box-shadow: 0 14px 34px rgba(20, 10, 5, 0.22), 0 1px 0 rgba(255, 255, 255, 0.55) inset;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.campus-modal-content h3 {
    margin: 0;
    color: #7b3d14;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.campus-modal-content p {
    margin: 0;
    color: #5f371d;
    font-size: 1.02rem;
    line-height: 1.5;
}

.campus-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 2px 0 4px;
}

.campus-modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #8B4513 0%, #C8102E 100%);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    min-height: 52px;
}

.campus-modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.06);
}

.campus-modal-link:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.75);
    outline-offset: 2px;
}

.campus-modal-close {
    padding: 10px 26px;
    background: rgba(248, 238, 220, 0.9);
    border: 1px solid rgba(139, 69, 19, 0.18);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #5d3419;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    align-self: center;
}

.campus-modal-close:hover {
    background: rgba(231, 220, 198, 0.95);
    color: #4f2a13;
    border-color: rgba(139, 69, 19, 0.3);
}

.campus-subpage-modal {
    max-width: 760px;
    padding: 26px 24px 22px;
}

.campus-modal[data-target="programs"] .campus-subpage-modal {
    max-width: 980px;
}

.campus-subpage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    max-height: min(56vh, 560px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 69, 19, 0.5) transparent;
}

.campus-modal[data-target="programs"] .campus-subpage-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.campus-subpage-option {
    width: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    justify-content: flex-start;
    text-align: left;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.92) 0%, rgba(200, 16, 46, 0.92) 100%);
}

.campus-subpage-empty {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(139, 69, 19, 0.1);
    color: #6b3e1f;
    font-weight: 600;
}

.campus-subpage-group {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(139, 69, 19, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campus-subpage-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.campus-subpage-title {
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.campus-subpage-title::after {
    content: '';
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.6), transparent);
}

.campus-subpage-list {
    display: grid;
    gap: 10px;
}

/* === Hero: Animations === */
@keyframes fadeFlyIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes enrollment-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes enrollment-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}
