@import url('https://fonts.googleapis.com/css2?family=Allison&family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Passion+One:wght@400;700;900&family=Petit+Formal+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tiny5&display=swap');

/* Prevent horizontal overflow causing background cutoffs */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.admission-intro,
.admission-about,
.admission-programs,
.admission-dean,
.admission-requirements {
    --gnc-green: #0b4228;
    --gnc-green-light: #1F5E2C;
    --gnc-green-dark: #08331e;
    --gnc-gold: #d3a63a;
    --gnc-gold-light: #e9b93c;
    --gnc-maroon: #8f1230;
    --gnc-cream: #f9f6f1;
    --gnc-text-dark: #202020;
    --gnc-text-gray: #6b6b66;
    --gnc-border: #e6e1d8;
    font-family: 'Noto Serif', serif;
}

.admission-intro,
.admission-about {
    background-color: var(--gnc-cream);
}

/* ---------- Hero ---------- */
.admission-hero {
    position: relative;
    background-color: var(--gnc-cream);
    background-image: url('/assets/images/admission-header.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-bottom: 1px solid var(--gnc-border);
}

.admission-hero-inner {
    padding: 40px 15px 44px;
    max-width: 1200px;
    margin: 0 auto;
}

.admission-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 14px;
}

.admission-breadcrumb a {
    color: white;
    text-decoration: none;
}

.admission-breadcrumb a:hover {
    text-decoration: underline;
}

.admission-breadcrumb i {
    font-size: 10px;
    color: white;
    opacity: 0.8;
}

.admission-breadcrumb .admission-current {
    color: white;
}

.admission-hero h1 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    color: var(--gnc-gold);
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
}

.admission-hero p {
    font-family: 'Inter', sans-serif;
    color: white;
    font-size: 14px;
    max-width: 900px;
    margin: 0;
}

/* ---------- Requirements ---------- */
.admission-requirements {
    background-color: var(--gnc-cream);
    padding: 64px 15px 80px;
}

.requirements-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.requirements-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.req-tab {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 24px;
    border-radius: 24px;
    border: 1px solid var(--gnc-gold);
    background-color: transparent;
    color: #396744;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.req-tab:hover {
    background-color: var(--gnc-green-light);
    border-color: var(--gnc-green-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 94, 44, 0.2);
}

.req-tab.is-active {
    background-color: var(--gnc-green-light);
    border-color: var(--gnc-green-light);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(31, 94, 44, 0.25);
}

.req-tab:focus-visible {
    outline: 3px solid var(--gnc-gold);
    outline-offset: 3px;
}

.requirements-panels {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
}

.req-panel {
    display: none;
}

.req-panel.is-active {
    display: block;
}

.req-panel h2 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    color: var(--gnc-green-light);
    font-size: 26px;
    margin: 0 0 10px;
}

.req-intro {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gnc-text-gray);
    max-width: 60ch;
    margin: 0 0 28px;
}

.req-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--gnc-border);
    border-radius: 10px;
    background-color: #fdfcfa;
}

.req-num {
    flex: 0 0 auto;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--gnc-green);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.req-text {
    flex: 1 1 auto;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--gnc-text-dark);
    line-height: 1.5;
}

.req-check {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--gnc-green-light);
}

.requirements-art {
    position: sticky;
    top: 32px;
}

.requirements-art img,
.requirements-art svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

@media (max-width: 1024px) {
    .requirements-panels {
        grid-template-columns: 1fr;
    }

    .requirements-art {
        position: static;
        max-width: 320px;
        margin: 0 auto 32px auto;
        order: -1;
    }
}

@media (max-width: 575px) {
    .requirements-tabs {
        gap: 8px;
    }

    .req-tab {
        padding: 5px 14px;
    }

    .req-list li {
        gap: 12px;
        padding: 12px 14px;
    }

    .req-text {
        font-size: 13px;
    }
}

/* =========================================================
   Animations
   ========================================================= */

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

@keyframes admFadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes admSlideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes admSlideInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes admGrowLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes admFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@keyframes admPop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes admHeroBg {
    from { background-position: 60% center; }
    to   { background-position: right center; }
}

/* ---------- Hero ---------- */
.admission-hero {
    animation: admHeroBg 1.6s ease-out both;
}

.admission-breadcrumb {
    animation: admFadeDown 0.6s ease-out 0.1s both;
}

.admission-hero h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    animation: admFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.admission-hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--gnc-gold-light);
    transform-origin: left center;
    animation: admGrowLine 0.8s ease-out 0.9s both;
}

.admission-hero p {
    animation: admFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* ---------- Tabs ---------- */
.req-tab {
    animation: admFadeDown 0.5s ease-out both;
}

.req-tab:nth-child(1) { animation-delay: 0.2s; }
.req-tab:nth-child(2) { animation-delay: 0.3s; }

.req-tab:active {
    transform: translateY(0) scale(0.97);
    box-shadow: none;
}

/* ---------- Panels (replay each time a tab is selected) ---------- */
.req-panel.is-active h2 {
    animation: admSlideInLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.req-panel.is-active .req-intro {
    animation: admFadeUp 0.5s ease-out 0.1s both;
}

.req-panel.is-active .req-list li {
    animation: admFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.15s + var(--i, 0) * 0.07s);
}

.req-list li:nth-child(1) { --i: 0; }
.req-list li:nth-child(2) { --i: 1; }
.req-list li:nth-child(3) { --i: 2; }
.req-list li:nth-child(4) { --i: 3; }
.req-list li:nth-child(5) { --i: 4; }
.req-list li:nth-child(6) { --i: 5; }
.req-list li:nth-child(7) { --i: 6; }
.req-list li:nth-child(8) { --i: 7; }

.req-panel.is-active .req-check {
    animation: admPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.45s + var(--i, 0) * 0.07s);
}

/* ---------- List item hover ---------- */
.req-list li {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.req-list li:hover {
    transform: translateX(6px);
    border-color: var(--gnc-gold);
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(11, 66, 40, 0.08);
}

.req-num {
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.req-list li:hover .req-num {
    transform: scale(1.1) rotate(-6deg);
    background-color: var(--gnc-green-light);
}

.req-check {
    transition: transform 0.25s ease, color 0.25s ease;
}

.req-list li:hover .req-check {
    transform: scale(1.2);
    color: var(--gnc-gold);
}

/* ---------- Illustration ---------- */
.requirements-art {
    animation: admSlideInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.requirements-art img,
.requirements-art svg {
    animation: admFloat 6s ease-in-out 1.2s infinite;
}

.admission-art-credit {
    margin: 24px 0 0;
    color: #637167;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-align: right;
}

.admission-art-credit a {
    color: #1f5e2c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
