:root {
    --berklee-ink: #171311;
    --berklee-muted: #5f6570;
    --berklee-paper: #fffaf2;
    --berklee-soft: #f2f5f2;
    --berklee-line: rgba(23, 19, 17, 0.14);
    --berklee-red: #b7372b;
    --berklee-green: #1e6f61;
    --berklee-blue: #24476f;
    --berklee-gold: #b4812d;
    --berklee-shadow: 0 18px 52px rgba(23, 19, 17, 0.12);
}

.berklee-page {
    color: var(--berklee-ink);
    background: #fbfaf7;
}

.berklee-nav {
    background: rgba(255, 250, 242, 0.92);
    backdrop-filter: blur(18px);
}

.berklee-hero {
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding: 126px 24px 68px;
    color: #fffaf2;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.78) 0%, rgba(4, 10, 20, 0.54) 48%, rgba(4, 10, 20, 0.64) 100%),
        linear-gradient(180deg, rgba(4, 10, 20, 0.10) 0%, rgba(4, 10, 20, 0.76) 100%),
        url("images/photos/music-practice.webp") center 44% / cover no-repeat;
}

.berklee-hero-inner {
    width: min(100%, 1080px);
    margin: 0 auto;
}

.berklee-kicker {
    margin: 0 0 12px;
    color: var(--berklee-green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.berklee-hero .berklee-kicker {
    color: rgba(255, 250, 242, 0.74);
}

.berklee-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: clamp(3.2rem, 8vw, 7.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.berklee-hero h1 span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 250, 242, 0.78);
    font-size: clamp(2rem, 4.8vw, 4.3rem);
}

.berklee-hero-copy {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255, 250, 242, 0.86);
    font-size: 1.08rem;
    line-height: 1.75;
}

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

.berklee-hero-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.12rem;
    border-radius: 8px;
    color: #fffaf2;
    background: var(--berklee-red);
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 14px 30px rgba(183, 55, 43, 0.28);
}

.berklee-hero-actions a + a {
    color: #fffaf2;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.berklee-snapshot,
.berklee-focus,
.berklee-course-map {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 76px 0;
}

.berklee-snapshot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
    gap: 44px;
    align-items: center;
}

.berklee-section-copy {
    max-width: 820px;
}

.berklee-section-copy h2 {
    margin: 0;
    color: var(--berklee-ink);
    font-size: clamp(2.1rem, 4vw, 3.65rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.berklee-section-copy p:not(.berklee-kicker) {
    margin: 18px 0 0;
    color: var(--berklee-muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

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

.berklee-stat-grid div,
.berklee-focus-grid article,
.course-cluster,
.course-card {
    border: 1px solid var(--berklee-line);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.84);
    box-shadow: var(--berklee-shadow);
}

.berklee-stat-grid div {
    min-height: 138px;
    padding: 20px;
}

.berklee-stat-grid strong {
    display: block;
    color: var(--berklee-red);
    font-size: 2rem;
    line-height: 1;
}

.berklee-stat-grid span {
    display: block;
    margin-top: 12px;
    color: var(--berklee-muted);
    font-weight: 760;
    line-height: 1.4;
}

.berklee-focus {
    border-top: 1px solid var(--berklee-line);
}

.berklee-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.berklee-focus-grid article {
    min-height: 250px;
    padding: 24px;
}

.berklee-focus-grid span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--berklee-green);
    font-size: 0.84rem;
    font-weight: 900;
}

.berklee-focus-grid h3 {
    margin: 28px 0 12px;
    font-size: 1.12rem;
}

.berklee-focus-grid p {
    margin: 0;
    color: var(--berklee-muted);
    line-height: 1.68;
}

.berklee-course-map {
    border-top: 1px solid var(--berklee-line);
}

.berklee-controls {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin: 28px 0 16px;
}

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

.berklee-filter-buttons button {
    min-height: 40px;
    padding: 0 0.9rem;
    border: 1px solid var(--berklee-line);
    border-radius: 8px;
    color: var(--berklee-ink);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 820;
    cursor: pointer;
}

.berklee-filter-buttons button.is-active {
    color: #fffaf2;
    background: var(--berklee-blue);
    border-color: var(--berklee-blue);
}

.berklee-search {
    display: grid;
    gap: 6px;
    width: min(100%, 320px);
    color: var(--berklee-muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.berklee-search input {
    min-height: 42px;
    border: 1px solid var(--berklee-line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--berklee-ink);
    background: #fff;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    text-transform: none;
}

.berklee-course-count {
    min-height: 24px;
    color: var(--berklee-muted);
    font-weight: 780;
}

.berklee-courses {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.course-cluster {
    padding: 22px;
}

.course-cluster.is-hidden,
.course-card.is-hidden {
    display: none;
}

.course-cluster-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.course-cluster-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.course-cluster-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--berklee-muted);
    line-height: 1.62;
}

.course-cluster-count {
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fffaf2;
    background: var(--berklee-green);
    text-align: center;
    font-weight: 900;
}

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

.course-card {
    display: block;
    min-height: 138px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.course-card:hover,
.course-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(183, 55, 43, 0.38);
    background: #fff;
    outline: none;
}

.course-card code {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 7px;
    border-radius: 6px;
    color: var(--berklee-red);
    background: rgba(183, 55, 43, 0.08);
    font-family: inherit;
    font-weight: 900;
}

.course-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.32;
}

.course-card p {
    margin: 10px 0 0;
    color: var(--berklee-muted);
    line-height: 1.45;
}

.course-term {
    display: block;
    margin-top: 12px;
    color: var(--berklee-blue);
    font-size: 0.82rem;
    font-weight: 850;
}

.berklee-course-map {
    padding-bottom: 88px;
}

.berklee-footer {
    background: var(--berklee-ink);
}

@media (max-width: 980px) {
    .berklee-snapshot {
        grid-template-columns: 1fr;
    }

    .berklee-focus-grid,
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .berklee-controls {
        display: grid;
    }
}

@media (max-width: 680px) {
    .berklee-hero {
        min-height: 72vh;
        padding: 104px 18px 48px;
    }

    .berklee-hero h1 {
        font-size: 3.15rem;
        line-height: 1;
    }

    .berklee-snapshot,
    .berklee-focus,
    .berklee-course-map {
        width: min(100% - 28px, 1180px);
        padding: 54px 0;
    }

    .berklee-course-map {
        padding-bottom: 64px;
    }

    .berklee-stat-grid,
    .berklee-focus-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-cluster {
        padding: 16px;
    }

    .course-cluster-header {
        grid-template-columns: 1fr;
    }
}
