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

:root {
    --navy: #211b4a;
    --blue: #6554e8;
    --primary: #6554e8;
    --primary-hover: #5141d1;
    --ink: #18223b;
    --muted: #667085;
    --line: #e5eaf2;
    --soft: #f8f7ff;
    --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

/* Navigation */

.nav {
    min-height: 76px;
    padding: 0 max(5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef1f6;
    background: #fff;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Manrope, sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.7px;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.nav nav, .nav-actions {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav nav a, .text-link {
    font-size: 12px;
    font-weight: 700;
    color: #4d5870;
}

.nav nav a:hover, .text-link:hover { color: var(--blue); }
.nav-actions { gap: 18px; }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 7px 16px #6554e822;
    transition: .2s;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-small { padding: 10px 13px; font-size: 11px; border-radius: 8px; }

.btn-light {
    background: #fff;
    color: var(--ink);
    border: 1px solid #e0e5ef;
    box-shadow: none;
}

.btn-light:hover { background: #f8f7ff; }

.btn-disabled {
    background: #a6afc3;
    box-shadow: none;
    cursor: not-allowed;
}

/* Typography */

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #6476aa;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7d94ff;
}

/* Homepage hero */

.hero {
    margin: 22px auto 0;
    width: min(1200px, 92%);
    min-height: 430px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    position: relative;
}

.hero-copy { padding: 58px 0 45px 52px; position: relative; z-index: 2; }
.hero .eyebrow { color: #a9baff; }

.hero h1, .catalog-hero h1, .detail-copy h1,
.admin-heading h1, .form-heading h1 {
    font-family: Manrope, sans-serif;
    letter-spacing: -1.8px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.08;
    margin: 20px 0 16px;
    font-weight: 800;
}

.hero h1 span { color: #b5aaff; }

.hero-copy > p {
    max-width: 470px;
    color: #d2d9e7;
    line-height: 1.8;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 27px;
    flex-wrap: wrap;
}

.hero-note {
    display: flex;
    gap: 13px;
    align-items: center;
    flex-wrap: wrap;
    color: #c3cde0;
    font-size: 10px;
    margin-top: 29px;
}

.hero-note span { color: #b5aaff; }

.hero-art { position: relative; min-height: 420px; overflow: hidden; }

.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, #101d3422 40%, #101d3410 100%);
}

.hero-art img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
}

.art-glow {
    position: absolute;
    inset: 20% 10%;
    background: #6554e855;
    filter: blur(60px);
    z-index: 1;
}

.floating-card {
    position: absolute;
    z-index: 3;
    left: 14%;
    bottom: 42px;
    background: #fff;
    color: var(--ink);
    padding: 14px 17px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px #07102055;
}

.float-icon {
    display: grid;
    place-items: center;
    background: #efedff;
    color: var(--blue);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    font-size: 22px;
}

.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: 12px; }
.floating-card small { font-size: 10px; color: var(--muted); margin-top: 4px; }

.hero-tag {
    position: absolute;
    right: 28px;
    top: 28px;
    z-index: 3;
    background: #ffffffdf;
    color: var(--ink);
    padding: 9px 13px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 11px;
}

.hero-tag span { color: var(--blue); }

/* Benefits */

.trust-row {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 30px 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.trust-row > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
}

.feature-icon {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #efedff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 17px;
}

.trust-row strong { font-size: 11px; }
.trust-row small { font-size: 10px; color: var(--muted); margin-top: 5px; }

/* General sections */

.section { width: min(1120px, 90%); margin: 68px auto; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section h2, .closing-cta h2 {
    font-family: Manrope, sans-serif;
    font-size: 30px;
    letter-spacing: -1px;
    margin: 9px 0;
}

.section-heading p, .closing-cta p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* BTech and MBA pathway cards */

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.path-card {
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
    min-height: 265px;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    background: #fff;
    transition: .2s;
}

.path-card:hover { box-shadow: 0 16px 45px #1b2b4a12; transform: translateY(-2px); }
.path-content { padding: 25px 0 25px 25px; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 7px;
    background: #f0f2f7;
    color: #475467;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1px;
}

.pill-blue { background: #efedff; color: #6554e8; }
.pill-violet { background: #f1eaff; color: #7046c5; }

.path-content h3 {
    font: 800 23px Manrope, sans-serif;
    letter-spacing: -.7px;
    margin: 16px 0 10px;
}

.path-content p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 280px;
}

.arrow-link {
    display: inline-flex;
    gap: 18px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    margin-top: 16px;
}

.path-image { overflow: hidden; position: relative; }
.path-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* Featured Programs section */

.soft-section {
    background: var(--soft);
    width: 100%;
    padding: 55px max(5vw, 24px);
    margin: 0;
}

.soft-section .section-heading,
.soft-section .featured-filters,
.soft-section .program-grid {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.soft-section .section-heading { margin-bottom: 25px; }

/* Program cards */

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

.program-card {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    padding: 19px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 4px 14px #14223b04;
}

.program-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.duration { font-size: 10px; color: var(--muted); white-space: nowrap; }

.program-card h3 {
    font: 800 16px Manrope, sans-serif;
    line-height: 1.35;
    letter-spacing: -.35px;
    margin: 17px 0 8px;
}

.program-card > p {
    font-size: 11px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 17px;
    flex: 1;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef1f6;
    padding-top: 14px;
    margin-top: 10px;
    gap: 10px;
}

.card-bottom > strong { font: 800 17px Manrope, sans-serif; }

/* Audience and program-type filters */

.featured-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 22px;
}

.featured-filters .filter-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-filters .filter-tab {
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease, color .2s ease;
}

.featured-filters .audience-tabs .filter-tab {
    font-size: 12px;
    padding: 10px 17px;
    background: #efedff;
    color: #344054;
    border-radius: 9px;
    font-weight: 700;
}

.featured-filters .audience-tabs .filter-tab:hover { background: #e5e0ff; }

.featured-filters .audience-tabs .filter-tab.active {
    background: #6554e8;
    color: #fff;
}

.featured-filters .type-tabs .filter-tab {
    font-size: 10px;
    padding: 8px 11px;
    background: #fff;
    border-color: #e2e7f0;
    color: #536078;
    border-radius: 8px;
    font-weight: 700;
}

.featured-filters .type-tabs .filter-tab:hover {
    background: #f8f7ff;
    border-color: #c9c0ff;
}

.featured-filters .type-tabs .filter-tab.active {
    background: #efedff;
    border-color: #ded8ff;
    color: #6554e8;
}

.featured-item[hidden], #featuredEmpty[hidden] { display: none !important; }

#featuredEmpty:not([hidden]) {
    display: block;
    padding: 30px 15px;
    text-align: center;
    color: #667085;
    background: #fff;
    border: 1px dashed #dce2ec;
    border-radius: 12px;
}

/* CTA */

.closing-cta {
    margin: 60px auto;
    width: min(1120px, 90%);
    background: #211b4a;
    color: #fff;
    border-radius: 20px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.closing-cta .eyebrow { color: #c4bbff; }
.closing-cta h2 { margin: 12px 0; }
.closing-cta p { color: #c6cfde; max-width: 620px; }

/* Footer */

.footer {
    padding: 35px max(5vw, 24px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
}

.footer p { color: var(--muted); font-size: 11px; }

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: var(--muted);
}

.footer > small { grid-column: 1 / -1; color: #98a2b3; font-size: 10px; }

/* Catalog pages */

.catalog-hero {
    width: min(1120px, 90%);
    margin: 34px auto 25px;
    display: grid;
    grid-template-columns: 1fr .8fr;
    align-items: center;
    min-height: 205px;
    background: #f8f7ff;
    border-radius: 20px;
    overflow: hidden;
    padding: 30px 35px;
}

.catalog-hero h1 { font-size: 37px; margin: 13px 0; }
.catalog-hero p { max-width: 540px; line-height: 1.7; color: var(--muted); }

.catalog-hero-art {
    height: 205px;
    align-self: stretch;
    overflow: hidden;
    margin: -30px -35px -30px 10px;
}

.catalog-hero-art img { width: 100%; height: 100%; object-fit: cover; }

.catalog-controls {
    width: min(1120px, 90%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-tab {
    padding: 10px 13px;
    border-radius: 9px;
    background: #f3f5f9;
    color: #475467;
    font-size: 10px;
    font-weight: 700;
}

.filter-tab.active { background: var(--blue); color: #fff; }

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 12px;
    color: #98a2b3;
}

.search-box input { border: 0; outline: 0; min-width: 130px; width: 170px; font-size: 11px; }

.catalog-grid { width: min(1120px, 90%); margin: 0 auto 75px; }

.program-visual {
    height: 95px;
    margin: 15px 0 2px;
    border-radius: 11px;
    padding: 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.visual-tech { background: linear-gradient(120deg, #292052, #6554e8); }
.visual-mba { background: linear-gradient(120deg, #382f69, #a08de4); }
.program-visual b { font-size: 32px; opacity: .9; }

.program-meta { display: flex; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 10px; }

.empty-state { padding: 30px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Program details */

.detail-page { width: min(1120px, 90%); margin: 30px auto 70px; }
.back-link { font-size: 11px; color: var(--muted); font-weight: 700; }

.detail-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 35px;
    align-items: center;
    margin: 25px 0 35px;
}

.detail-copy h1 { font-size: 42px; }
.detail-copy > p { color: var(--muted); line-height: 1.8; max-width: 590px; }
.tag-row { display: flex; gap: 8px; }

.detail-facts { display: flex; gap: 22px; margin: 20px 0; color: var(--muted); font-size: 11px; }
.detail-facts b { color: var(--ink); }

.detail-art {
    height: 320px;
    border-radius: 20px;
    background: radial-gradient(circle at 70% 20%, #a18df7, #6554e8 45%, #211b4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.art-symbol { font: 800 110px Manrope, sans-serif; color: #fff; opacity: .9; }
.art-caption { position: absolute; bottom: 25px; right: 25px; color: #e0dcff; font-size: 10px; letter-spacing: 2px; }
.fine-print { font-size: 10px !important; }

.detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: start;
}

.content-panel, .enroll-card { border: 1px solid var(--line); border-radius: 16px; padding: 25px; }

.content-panel h2 { font: 800 24px Manrope, sans-serif; margin: 10px 0; }
.content-panel > p { line-height: 1.8; color: var(--muted); }
.outcome-list { margin-top: 25px; }

.outcome-list > div {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.outcome-list > div > span {
    background: #efedff;
    color: var(--blue);
    border-radius: 9px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.outcome-list strong, .outcome-list small { display: block; }
.outcome-list small { color: var(--muted); margin-top: 5px; }

.notice { margin-top: 20px; padding: 16px; background: #efedff; border-radius: 12px; }
.notice p { color: #52617a; line-height: 1.6; font-size: 11px; }

.enroll-card .price { font: 800 30px Manrope, sans-serif; margin-top: 13px; }
.enroll-card > p, .enroll-card > small { font-size: 11px; color: var(--muted); }
.enroll-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.included { font-size: 11px; margin: 14px 0; }
.included span { color: #6554e8; margin-right: 8px; }
.enroll-card .btn { width: 100%; margin: 12px 0; }

/* Admin pages */

.admin-page, .form-page { width: min(1120px, 90%); margin: 45px auto 75px; }

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-heading h1, .form-heading h1 { font-size: 34px; margin: 12px 0; }
.admin-heading p, .form-heading p { color: var(--muted); }

.admin-warning {
    padding: 13px 15px;
    background: #fff7e8;
    border: 1px solid #f7dfb1;
    border-radius: 10px;
    color: #7b5418;
    font-size: 11px;
    margin: 18px 0;
}

.success-banner { padding: 12px; background: #eaf8f0; color: #167349; border-radius: 9px; margin: 12px 0; }

.table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 760px; }

th {
    background: #f7f8fb;
    color: #667085;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

th, td { padding: 15px; border-bottom: 1px solid var(--line); }
td { font-size: 11px; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 5px; }

.table-pill { font-size: 9px; background: #f0f2f7; padding: 5px 7px; border-radius: 6px; }
.status-live { color: #14804a; background: #e8f8ef; padding: 5px 8px; border-radius: 6px; font-size: 10px; }
.status-draft { color: #7b5418; background: #fff5dc; padding: 5px 8px; border-radius: 6px; font-size: 10px; }

.table-actions { display: flex; gap: 13px; align-items: center; }
.table-actions form { margin: 0; }

.danger-link {
    border: 0;
    background: none;
    color: #c43d4b;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.form-heading { margin: 25px 0; }
.program-form { border: 1px solid var(--line); border-radius: 16px; padding: 26px; max-width: 850px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 700; }
.field.full, .checkbox-field.full { grid-column: 1 / -1; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce2ec;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-weight: 400;
}

.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #6554e815;
}

.field small { font-size: 10px; color: var(--muted); font-weight: 400; }
.field .field-error { color: #c43d4b; }

.checkbox-field { display: flex; align-items: center; gap: 9px; font-size: 11px; }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* Tablet */

@media (max-width: 850px) {
    .nav { padding: 0 20px; }
    .nav nav { gap: 13px; }
    .nav nav a:nth-child(3) { display: none; }

    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding: 42px 30px 25px; }
    .hero-art { min-height: 250px; }

    .hero-art::after {
        background: linear-gradient(0deg, var(--navy) 0%, #101d3400 70%);
    }

    .trust-row { grid-template-columns: 1fr 1fr; }
    .path-grid { grid-template-columns: 1fr; }
    .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-content { grid-template-columns: 1fr; }
    .catalog-hero { grid-template-columns: 1fr; }
    .catalog-hero-art { display: none; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-art { height: 220px; }

    .soft-section .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 560px) {
    .nav { min-height: 65px; }
    .nav nav { display: none; }
    .nav-actions .text-link { display: none; }

    .hero { width: 94%; margin-top: 12px; border-radius: 17px; }
    .hero-copy { padding: 35px 22px 22px; }
    .hero h1 { font-size: 37px; }
    .hero-copy > p { font-size: 13px; }
    .hero-note { gap: 8px; font-size: 9px; }
    .hero-art { min-height: 210px; }

    .trust-row { width: 94%; padding: 23px 0; gap: 18px 10px; }
    .trust-row > div { grid-template-columns: 30px 1fr; column-gap: 8px; }
    .feature-icon { width: 29px; height: 29px; }
    .trust-row strong { font-size: 10px; }
    .trust-row small { font-size: 9px; }

    .section { width: 92%; margin: 45px auto; }
    .section h2, .closing-cta h2 { font-size: 25px; }
    .section-heading { align-items: flex-start; flex-direction: column; }

    .path-card { grid-template-columns: 1fr .55fr; min-height: 240px; }
    .path-content { padding: 20px 0 20px 17px; }
    .path-content h3 { font-size: 19px; }
    .path-content p { font-size: 10px; }

    .soft-section { padding: 40px 4%; }
    .program-grid, .soft-section .program-grid { grid-template-columns: 1fr; }
    .program-card { padding: 16px; }

    .featured-filters { gap: 9px; }
    .featured-filters .filter-tabs { gap: 6px; }

    .featured-filters .audience-tabs .filter-tab {
        padding: 9px 13px;
        font-size: 11px;
    }

    .featured-filters .type-tabs .filter-tab {
        padding: 8px 10px;
        font-size: 9px;
    }

    .closing-cta {
        width: 92%;
        padding: 27px 23px;
        align-items: flex-start;
        flex-direction: column;
    }

    .footer { grid-template-columns: 1fr; }
    .footer-links { grid-row: 2; }
    .footer > small { grid-column: 1; }

    .catalog-hero { width: 92%; padding: 25px; margin-top: 20px; }
    .catalog-hero h1 { font-size: 32px; }
    .catalog-controls { width: 92%; align-items: stretch; flex-direction: column; }
    .search-box input { width: 100%; }
    .catalog-grid { width: 92%; margin-bottom: 50px; }

    .detail-page, .admin-page, .form-page { width: 92%; }
    .detail-copy h1 { font-size: 34px; }
    .detail-art { height: 180px; }

    .admin-heading { align-items: flex-start; flex-direction: column; }
    .admin-heading h1, .form-heading h1 { font-size: 29px; }
    .program-form { padding: 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full, .checkbox-field.full { grid-column: auto; }
    .form-actions { flex-wrap: wrap; }

    .soft-section .section-heading,
    .soft-section .featured-filters,
    .soft-section .program-grid {
        width: 100%;
    }
}

/* Friendlier homepage actions */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 27px;
}

.hero-secondary-link {
    color: #e0e6f5;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.hero-secondary-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.path-card { cursor: default; }

.path-card:hover {
    box-shadow: none;
    transform: none;
}

#featured-programs { scroll-margin-top: 24px; }

@media (max-width: 560px) {
    .hero-actions {
        gap: 16px;
        flex-wrap: wrap;
    }
}

/* Navigation v2 */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow .25s, background .25s;
}

.nav.scrolled {
    box-shadow: 0 8px 30px #6554e818;
    background: #ffffffee;
    backdrop-filter: saturate(1.4) blur(10px);
}

.nav nav a.nav-cta {
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
}

.nav nav a.nav-cta:hover {
    background: var(--primary-hover);
    color: #fff;
}

.nav nav a { font-size: 13px; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #f1efff;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: absolute;
    left: 13px;
    transition: .25s;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; }
.nav-toggle span::after { content: ""; top: 6px; left: 0; }
.nav-toggle[aria-expanded=true] span { background: transparent; }
.nav-toggle[aria-expanded=true] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded=true] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 700px) {
    .nav-toggle { display: block; }

    .nav nav {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 8px 20px 18px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px #6554e818;
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        pointer-events: none;
        transition: clip-path .3s, opacity .2s;
    }

    .nav nav.open {
        clip-path: inset(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav nav a,
    .nav nav a:nth-child(3) {
        display: block !important;
        padding: 14px 4px;
        font-size: 15px;
        border-bottom: 1px solid #eef1f6;
    }

    .nav nav a.nav-cta {
        text-align: center;
        margin-top: 12px;
        border: 0;
    }
}

/* Catalog card action alignment */

.catalog-grid .program-card {
    min-height: 378px;
    display: flex;
    flex-direction: column;
}

.catalog-grid .program-card > p { flex: 1 1 auto; }

.catalog-grid .program-card .card-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
}

.catalog-grid .program-card .card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 9px;
    margin-left: auto;
}

.catalog-grid .program-card .card-actions form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.catalog-grid .program-card .card-actions a,
.catalog-grid .program-card .card-actions button {
    min-height: 42px;
    white-space: nowrap;
    padding: 11px 14px;
}

.catalog-grid .program-card .card-bottom > strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .catalog-grid .program-card .card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-grid .program-card .card-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .catalog-grid .program-card { min-height: 0; }

    .catalog-grid .program-card .card-bottom {
        flex-direction: row;
        align-items: center;
    }

    .catalog-grid .program-card .card-actions {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .catalog-grid .program-card .card-actions a,
    .catalog-grid .program-card .card-actions button {
        min-height: 38px;
        padding: 9px 11px;
        font-size: 10px;
    }
}

/* Mobile navigation and catalog filter safeguards */

@media (max-width: 700px) {
    .nav {
        position: sticky;
        top: 0;
        z-index: 3000;
        overflow: visible;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 3002;
        touch-action: manipulation;
    }

    .nav nav {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100dvh - 76px);
        overflow-y: auto;
        overscroll-behavior: contain;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav nav.open {
        clip-path: inset(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 600px) {
    .catalog-controls { width: 92%; align-items: stretch; }

    .catalog-controls .filter-tabs {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        overflow: visible;
    }

    .catalog-controls .filter-tab {
        flex: 0 1 auto;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}

/* Program modal */

.program-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.program-modal.is-open { display: flex; }

.program-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .62);
    backdrop-filter: blur(4px);
}

.program-modal-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    border: 1px solid #e8e5fb;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(20, 20, 50, .28);
    outline: none;
}

.program-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 30px 20px;
    border-bottom: 1px solid #eeeafc;
}

.program-modal-header h2 {
    margin: 8px 0 12px;
    color: #17213b;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
}

.program-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #5c6682;
    font-size: .92rem;
}

.program-modal-meta strong { color: #6554e8; }

.program-modal-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1efff;
    color: #4235b8;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.program-modal-close:hover { background: #e5e0ff; }
.program-modal-body { padding: 8px 30px 24px; }

.program-modal-section {
    padding: 18px 0;
    border-bottom: 1px solid #f0eef8;
}

.program-modal-section[hidden] { display: none; }

.program-modal-section h3 {
    margin: 0 0 10px;
    color: #202944;
    font-size: 1.08rem;
}

.program-modal-section p {
    margin: 8px 0;
    color: #56617d;
    line-height: 1.7;
    white-space: pre-line;
}

.program-modal-section ul {
    margin: 0;
    padding-left: 22px;
    color: #56617d;
}

.program-modal-section li { padding: 4px 0; line-height: 1.6; }

.program-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 18px 30px 24px;
    background: #fbfaff;
    border-top: 1px solid #eeeafc;
}

.program-modal-footer form { margin: 0; }

@media (max-width: 600px) {
    .program-modal { padding: 10px; }
    .program-modal-panel { max-height: 94vh; border-radius: 16px; }
    .program-modal-header { padding: 22px 18px 16px; }
    .program-modal-body { padding: 4px 18px 18px; }
    .program-modal-footer { padding: 14px 18px 18px; }
}

body.modal-open { overflow: hidden; }

/* =====================================================
   CURIOSTY BRAND OVERRIDES
   Keep logo, login, admin and primary actions purple.
   ===================================================== */

:root {
    --navy: #211b4a;
    --blue: #6554e8;
    --primary: #6554e8;
    --primary-hover: #5141d1;
    --ink: #18223b;
    --soft: #f8f7ff;
}

/* Logo */

.brand-mark {
    background: #6554e8 !important;
    color: #fff;
}

/* Login, Admin and primary navigation buttons */

.nav nav a.nav-cta,
.nav-actions .btn,
.nav-actions a.btn,
.btn,
button[type="submit"] {
    background-color: #6554e8;
    color: #fff;
}

.nav nav a.nav-cta:hover,
.nav-actions .btn:hover,
.nav-actions a.btn:hover,
.btn:hover,
button[type="submit"]:hover {
    background-color: #5141d1;
    color: #fff;
}

/* Links and active navigation */

.nav nav a:hover,
.text-link:hover,
.arrow-link:hover,
a.active {
    color: #5141d1;
}

/* Primary filters */

.featured-filters .audience-tabs .filter-tab.active,
.featured-filters .type-tabs .filter-tab.active,
.filter-tab.active {
    background-color: #6554e8;
    border-color: #6554e8;
    color: #fff;
}

/* Form focus */

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #6554e8;
    box-shadow: 0 0 0 3px #6554e815;
}

/* Login and registration form primary actions */

.auth-card button,
.auth-form button,
.login-card button,
.register-card button {
    background-color: #6554e8;
    color: #fff;
}

.auth-card button:hover,
.auth-form button:hover,
.login-card button:hover,
.register-card button:hover {
    background-color: #5141d1;
}

/* Keep logo and buttons purple on all pages */

/* Logout button - exactly match Login navigation button */

.nav nav form {
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.nav nav form button.nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 10px 16px !important;
    margin: 0 !important;

    background: #6554e8 !important;
    color: #ffffff !important;

    border: 1px solid #6554e8 !important;
    border-radius: 10px !important;

    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;

    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.nav nav form button.nav-cta:hover {
    background: #5141d1 !important;
    border-color: #5141d1 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}