:root {
    --bg: #f7f3ee;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #5d6677;
    --primary: #e85d3a;
    --primary-strong: #cc4d2e;
    --secondary: #1e6b68;
    --accent: #f7c188;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(248, 218, 187, 0.6), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(213, 236, 233, 0.9), transparent 40%),
        var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    position: relative;
    overflow-x: hidden;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(247, 243, 238, 0.88);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--secondary);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.logo-text {
    font-size: 20px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform 0.3s var(--ease);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 500;
}

.site-nav .nav-link,
.site-nav .nav-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    color: var(--ink);
}

.nav-search:hover {
    color: var(--primary);
}

.nav-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    padding: 4px 6px 4px 14px;
    min-width: 320px;
}

.nav-search-field input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 4px;
    font-size: 14px;
    min-width: 160px;
    color: var(--ink);
}

.nav-search-btn {
    border: none;
    background: #0f5e5a;
    color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-search-btn:hover {
    background: #0b4c49;
}

.nav-search-btn svg {
    width: 16px;
    height: 16px;
}

.nav-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    z-index: 30;
}

.nav-search-results.is-open {
    display: block;
}

.nav-search-empty {
    display: none;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 4px;
}

.nav-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.nav-search-group {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 6px 4px 2px;
}

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.nav-search-item:hover {
    background: rgba(30, 107, 104, 0.08);
}

.nav-search-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    min-width: 80px;
}

.nav-search-title {
    font-size: 13px;
    color: var(--ink);
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    padding: 0;
}

.caret {
    font-size: 12px;
    opacity: 0.7;
}

.caret svg,
.chevron svg {
    width: 12px;
    height: 12px;
    display: block;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    z-index: 20;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
    display: block;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.dropdown-item {
    position: relative;
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dropdown-item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(30, 107, 104, 0.08);
}

.cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(30, 107, 104, 0.12);
    color: var(--secondary);
    font-weight: 700;
    font-size: 12px;
}

.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cat-icon.is-image {
    background: transparent;
}

.chevron {
    color: var(--muted);
}

.dropdown-item.has-children:hover .sub-menu {
    display: block;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px 12px;
    list-style: none;
    min-width: 200px;
}

.sub-menu li {
    padding: 6px 4px;
}

.sub-menu a {
    font-size: 13px;
    color: var(--muted);
}

.site-nav a {
    transition: color 0.2s var(--ease);
}

.site-nav a:hover {
    color: var(--primary);
}

.site-nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.site-nav .dropdown-toggle.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn.primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 25px rgba(232, 93, 58, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(232, 93, 58, 0.4);
}

.btn.ghost {
    border-color: rgba(17, 24, 39, 0.12);
    background: #fff;
    color: var(--ink);
}

.btn.ghost:hover {
    transform: translateY(-2px);
}

.hero {
    padding: 70px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
}

.hero-copy h1 {
    font-family: "Sora", sans-serif;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.1;
    margin: 12px 0 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
}

.hero-search {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    padding: 8px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1 1 240px;
    border: none;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
}

.hero-stats {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat {
    background: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.stat-value {
    font-family: "Sora", sans-serif;
    font-size: 22px;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

.hero-visual {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
}

.hero-card {
    background: #fff;
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    max-width: 340px;
}

.hero-card-badge {
    background: var(--accent);
    color: #7c4c1f;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
}

.hero-card-footer {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.hero-orbit {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(30, 107, 104, 0.4);
    animation: spin 18s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.section {
    padding: 70px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 42px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2 {
    font-family: "Sora", sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 10px;
}

.section-head p {
    color: var(--muted);
}

.section-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--secondary);
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 24px;
}

.page-hero {
    padding: 48px 0 24px;
}

.course-hero p {
    max-width: 720px;
}

.page-hero h1 {
    font-family: "Sora", sans-serif;
    margin: 12px 0 8px;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.meta-pill {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--muted);
}

.courses-page {
    padding: 30px 0 80px;
}

.course-detail {
    padding: 20px 0 80px;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(220px, 1fr);
    gap: 28px;
}

.preview-card {
    position: relative;
    width: 100%;
    border: none;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
    cursor: pointer;
    margin-bottom: 20px;
}

.preview-card.is-empty {
    padding: 26px;
    cursor: default;
}

.preview-card.is-empty .preview-label {
    position: static;
    background: rgba(17, 24, 39, 0.08);
    color: var(--muted);
}

.preview-thumb {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.preview-fallback {
    background: linear-gradient(135deg, rgba(30, 107, 104, 0.2), rgba(232, 93, 58, 0.2));
}

.preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.preview-label {
    position: absolute;
    left: 18px;
    bottom: 16px;
    background: rgba(17, 24, 39, 0.65);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

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

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.8);
}

.video-modal-dialog {
    position: relative;
    width: min(960px, 95%);
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.video-modal-body iframe,
.video-modal-body video {
    width: 100%;
    height: min(60vh, 520px);
    border: none;
    display: block;
}

.no-scroll {
    overflow: hidden;
}

.student-login {
    padding: 70px 0 90px;
}

.student-login__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
}

.student-login__media {
    display: grid;
    gap: 18px;
    justify-items: center;
    text-align: center;
}

.student-login__media img {
    max-width: min(420px, 90%);
}

.student-login__note {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 420px;
    text-align: left;
}

.student-login__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 107, 104, 0.12);
    color: var(--secondary);
    font-weight: 600;
    font-size: 12px;
}

.student-login__note h2 {
    margin: 12px 0 8px;
    font-family: "Sora", sans-serif;
}

.student-login__note p {
    color: var(--muted);
    margin: 0;
}

.student-login__card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.student-login__card h1 {
    margin: 0 0 6px;
    font-family: "Sora", sans-serif;
}

.student-login__subtitle {
    color: var(--muted);
    margin-bottom: 20px;
}

.student-login__field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.student-login__field label {
    font-size: 13px;
    font-weight: 600;
}

.student-login__field input {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.student-login__field textarea,
.student-login__field input[type="file"] {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
}

.student-login__field textarea:focus,
.student-login__field input[type="file"]:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(30, 107, 104, 0.15);
}

.student-login__field input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(30, 107, 104, 0.15);
}

.student-login__error {
    color: #b91c1c;
    font-size: 12px;
}

.student-login__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.student-login__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.student-login__link {
    color: var(--secondary);
    font-weight: 600;
}

.student-login__link:hover {
    color: var(--primary);
}

.student-login__alert {
    background: rgba(30, 107, 104, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.student-login__footer {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.student-signup__extras {
    display: none;
    padding: 6px 0 10px;
}

.student-signup__hint {
    font-size: 12px;
    color: var(--muted);
}

.course-main .card + .card {
    margin-top: 20px;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.detail-title {
    font-weight: 600;
    margin: 0 0 6px;
}

.course-sidebar .card {
    position: sticky;
    top: 110px;
}

.course-sidebar .price {
    font-size: 28px;
}

.btn.full {
    width: 100%;
}

.courses-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr);
    gap: 32px;
}

.filters {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
    position: sticky;
    top: 110px;
    height: fit-content;
}

.filter-block + .filter-block {
    margin-top: 22px;
}

.filter-block h4 {
    margin: 0 0 12px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary);
}

.filter-block label {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.filter-block input[type="text"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    padding: 10px 12px;
}

.filter-list {
    display: grid;
    gap: 10px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
}

.filter-option input {
    margin-right: 8px;
}

.filter-option.active {
    border-color: rgba(30, 107, 104, 0.3);
    background: rgba(30, 107, 104, 0.08);
    color: var(--secondary);
}

.filter-option .count {
    color: var(--muted);
}

.filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.courses-results h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.sort-box select {
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    padding: 8px 12px;
    background: #fff;
}

.courses-grid .card {
    min-height: 240px;
}

.empty-state {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #fff;
    font-size: 13px;
}

.page-link.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.page-content {
    display: grid;
    gap: 12px;
}

.page-content p {
    color: var(--muted);
}

.instructor-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
    gap: 28px;
}

.instructor-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    height: fit-content;
    position: sticky;
    top: 110px;
}

.instructor-avatar {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(30, 107, 104, 0.12);
    display: grid;
    place-items: center;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--secondary);
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    text-align: center;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 12px 0;
}

.instructor-stats strong {
    display: block;
    font-size: 18px;
}

.instructor-stats span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.instructor-body {
    display: grid;
    gap: 22px;
}

.instructor-course-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-thumb {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(17, 24, 39, 0.06);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(30, 107, 104, 0.2), rgba(232, 93, 58, 0.2));
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    font-weight: 700;
}

.card.compact {
    min-height: 190px;
}

.card-tag {
    align-self: flex-start;
    padding: 6px 12px;
    background: rgba(30, 107, 104, 0.12);
    color: var(--secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price {
    font-weight: 700;
    color: var(--primary-strong);
}

.chips {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.chip {
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
}

.chip-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chip-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.12);
}

.chip-media {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(30, 107, 104, 0.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

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

.chip-body {
    display: grid;
    gap: 4px;
}

.chip-title {
    font-weight: 600;
}

.chip-meta {
    color: var(--muted);
    font-size: 13px;
}

.instructors {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.instructor {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
    display: grid;
    gap: 12px;
    text-align: center;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--secondary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: "Sora", sans-serif;
    margin: 0 auto;
}

.testimonials {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonial {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.08);
    font-style: italic;
}

.testimonial span {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-weight: 600;
    color: var(--secondary);
}

.cta {
    padding: 60px 0 80px;
}

.cta-grid {
    background: linear-gradient(120deg, rgba(232, 93, 58, 0.16), rgba(30, 107, 104, 0.18));
    border-radius: 32px;
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-grid h2 {
    font-family: "Sora", sans-serif;
    margin: 0 0 8px;
}

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

.site-footer {
    padding: 60px 0 40px;
    background: #111827;
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-grid h4 {
    font-family: "Sora", sans-serif;
    margin-bottom: 14px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-logo .logo-mark {
    background: var(--primary);
}

.subscribe-form {
    display: grid;
    gap: 10px;
}

.subscribe-form input {
    border-radius: 999px;
    border: none;
    padding: 10px 16px;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-subtext {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 12px;
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-muted {
    color: #9ca3af;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .site-nav {
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 16px;
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .dropdown-panel,
    .sub-menu {
        position: static;
        box-shadow: none;
        margin: 8px 0 0;
        display: none;
    }

    .nav-dropdown.open .dropdown-panel {
        display: block;
    }

    .dropdown-item.has-children .sub-menu {
        display: block;
        background: transparent;
        padding: 0 0 0 24px;
    }

    .nav-search {
        width: auto;
        height: auto;
        border-radius: 999px;
        padding: 6px 12px;
    }

    .nav-search-form,
    .nav-search-field {
        width: 100%;
    }

    .nav-search-field {
        flex-wrap: wrap;
        justify-content: space-between;
        min-width: 0;
    }

    .nav-search-results {
        position: static;
        margin-top: 10px;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .cta-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .courses-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

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

    .course-sidebar .card {
        position: static;
    }

    .student-login__grid {
        grid-template-columns: 1fr;
    }

    .student-login__media {
        order: 2;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
    }

    .instructor-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero-search {
        border-radius: 18px;
    }

    .hero-search button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
