@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700;800&display=swap');

:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --line: #dbe5ef;
    --brand-900: #0a5b3b;
    --brand-700: #0d8a59;
    --accent: #b82d3b;
    --gold: #d7ad5a;
    --gold-soft: #f5ebcf;
    --radius: 16px;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: clamp(15px, 0.2vw + 14px, 16px); }
body {
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    background: var(--bg);
    line-height: 1.72;
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--brand-900);
    line-height: 1.2;
}
a { text-decoration: none; transition: 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
p, li { overflow-wrap: anywhere; }

.container { width: min(1320px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(70px, 8vw, 98px) 0; }
.text-center { text-align: center; }
.desktop-only { display: inline-flex; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 24px;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(184, 45, 59, 0.3);
}
.btn-primary:hover { background: #982332; transform: translateY(-2px); }
.btn-ghost {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--brand-900); }

.top-bar {
    background: linear-gradient(90deg, var(--brand-900), #083924);
    color: rgba(255,255,255,0.92);
    padding: 10px 0;
    font-size: 0.86rem;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.contact-list span { display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; }
.contact-list i { color: var(--gold); }
.auth-links a {
    color: #fff;
    background: rgba(255,255,255,0.14);
    padding: 6px 12px;
    border-radius: 8px;
    margin-left: 8px;
    font-weight: 600;
}
.auth-links a.student {
    background: var(--gold);
    color: #1f2937;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148,163,184,0.24);
}
.navbar {
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-symbol { color: var(--brand-900); font-size: 1.95rem; }
.logo-text h1 { margin: 0; font-size: 1.32rem; }
.logo-text p {
    margin: 0;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.7px;
    font-weight: 700;
    font-size: 0.62rem;
}
.nav-menu { display: flex; gap: 22px; }
.nav-menu a {
    color: var(--ink);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.hamburger {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--brand-900);
    border-radius: 2px;
    transition: 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.hero {
    min-height: 64vh;
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(13, 138, 89, 0.25), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(184, 45, 59, 0.18), transparent 35%),
        linear-gradient(135deg, #081f14, #0d3e28);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(3, 18, 11, 0.72), rgba(6, 30, 19, 0.45));
}
.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 64vh;
    display: grid;
    align-content: center;
    max-width: 920px;
}
.hero-inner h2 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 12px;
}
.hero-inner p {
    color: rgba(255,255,255,0.94);
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
    display: inline-block;
    color: #f4dfae;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 14px;
}
.eyebrow-dark {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.stats { padding-top: 36px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-card strong { display: block; color: var(--brand-900); font-size: 1.02rem; }
.stat-card span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 700;
}

.section-heading { max-width: 840px; margin: 0 auto 32px; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 8px 0; }

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.flow-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-700);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.flow-card span {
    font-family: 'Merriweather', serif;
    color: #be8f34;
    font-size: 1.35rem;
    line-height: 1;
    display: block;
    margin-bottom: 7px;
}
.flow-card h3 { font-size: 1.02rem; margin-bottom: 7px; }

.surface { background: linear-gradient(180deg, #f8fbff, #edf4fb); }
.req-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.req-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.req-card h3 {
    font-size: 1.04rem;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.req-card i { color: var(--brand-900); }
.req-card li {
    border: 1px solid #e8eef6;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #fbfdff;
}

.timeline { background: #fff; }
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 940px;
    margin: 0 auto;
}
.timeline-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: start;
}
.bullet {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf7ef;
    color: var(--brand-900);
    font-weight: 800;
}
.timeline-item h3 { font-size: 1rem; margin-bottom: 6px; }

.faq { background: linear-gradient(180deg, #f8fbff, #eef5fc); }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.faq-item h3 { font-size: 1rem; margin-bottom: 7px; }

.cta {
    background:
        linear-gradient(rgba(184, 45, 59, 0.88), rgba(184, 45, 59, 0.93)),
        url('https://source.unsplash.com/1600x680/?university,students') center/cover no-repeat;
}
.cta-inner { max-width: 900px; }
.cta-inner h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4.5vw, 2.9rem);
    margin-bottom: 8px;
}
.cta-inner p {
    color: rgba(255,255,255,0.95);
    max-width: 72ch;
    margin: 0 auto 18px;
}

footer {
    background: #0f172a;
    color: #c3cfde;
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(148,163,184,0.23);
}
.footer-grid h3,
.footer-grid h4 { color: #fff; margin-bottom: 8px; }
.footer-grid a { color: #c3cfde; }
.footer-grid a:hover { color: #f6dda8; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid i { color: var(--gold); margin-right: 8px; }
.footer-bottom {
    text-align: center;
    padding: 18px 0;
    color: #8ea0bb;
    font-size: 0.88rem;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

@media (max-width: 1200px) {
    .nav-menu { gap: 14px; }
    .nav-menu a { font-size: 0.74rem; }
}

@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .req-layout { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .desktop-only { display: none; }
}

@media (max-width: 768px) {
    .contact-list { display: grid; gap: 5px; text-align: center; }
    .contact-list span { margin-right: 0; justify-content: center; }
    .auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .auth-links a { margin-left: 0; }
    .nav-actions .btn-primary { display: none; }
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 86px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 86px);
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: 0.3s ease;
        z-index: 998;
    }
    .nav-menu.active { left: 0; }
    .hero-actions .btn { width: 100%; }
    .timeline-item { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dept-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dept-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dept-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--dept-accent) 12%, white);
    color: var(--dept-accent);
    font-size: 1.2rem;
}

.dept-count {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dept-card h3 {
    font-size: 1.18rem;
    line-height: 1.25;
}

.dept-copy {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0;
}

.dept-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dept-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.dept-link {
    margin-top: auto;
    color: var(--brand-900);
    font-weight: 700;
    font-size: 0.88rem;
}

.catalog-cta {
    margin-top: 22px;
    background: linear-gradient(135deg, #0f172a, #12364a);
    color: #e2e8f0;
    border-radius: var(--radius);
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-md);
}

.catalog-cta h3 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.catalog-cta p {
    color: rgba(226, 232, 240, 0.84);
    margin: 0;
}

.catalog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 24px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.28);
}

.btn-outline-dark:hover {
    background: #fff;
    color: var(--brand-900);
}

.flyer-grid {
    display: grid;
    gap: 18px;
}

.flyer-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flyer-grid-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flyer-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.flyer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.flyer-media-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.flyer-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flyer-meta {
    padding: 16px;
}

.flyer-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--brand-900);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.flyer-meta h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.flyer-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.flyer-home-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.flyer-page-hero {
    padding-bottom: 36px;
}

.flyer-hero-shell {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.flyer-hero-shell h2 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    margin: 10px 0 12px;
}

.flyer-hero-shell p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1rem;
}

.flyer-hero-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.flyer-stat-wrap {
    margin-top: -24px;
    position: relative;
    z-index: 4;
}

.flyer-stats-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    border-radius: 18px;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    text-align: center;
}

.flyer-stats-card strong {
    display: block;
    color: var(--brand-900);
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    margin-bottom: 4px;
}

.flyer-stats-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .flyer-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flyer-grid-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-cta {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-cta-actions,
    .flyer-hero-actions {
        width: 100%;
    }

    .catalog-cta-actions .btn,
    .flyer-hero-actions .btn,
    .btn-outline-dark {
        width: 100%;
    }

    .flyer-stats-card {
        grid-template-columns: 1fr;
    }

    .flyer-grid-home,
    .flyer-grid-gallery {
        grid-template-columns: 1fr;
    }

    .dept-card {
        padding: 18px;
    }
}
