/* =========================
   BASE & THEME – COURSES
========================= */
:root {
    --bg-page: #f9fafb;
    --bg-surface: #ffffff;
    --bg-soft: #f3f4f6;

    --border-subtle: #e5e7eb;

    --text-main: #374151;
    --text-muted: #6b7280;
    --text-heading: #111827;

    --primary: #7c3aed;       /* purple */
    --primary-dark: #6d28d9;
    --primary-soft: #f5f3ff;

    --accent: #f97316;        /* orange */

    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;

    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 24px 45px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

@media (max-width: 640px) {
    .container {
        width: min(1120px, 100% - 1.75rem);
    }
}

/* =========================
   HEADER / NAV
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 44px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-cta {
    margin-left: 0.75rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 16px 35px rgba(109, 40, 217, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: #e5e7eb;
    color: #111827;
}

.btn-outline:hover {
    background-color: #111827;
    color: #ffffff;
}

.btn-ghost {
    background-color: #ffffff;
    color: var(--primary-dark);
    border-color: var(--border-subtle);
}

.btn-ghost:hover {
    background-color: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary-dark);
}

.btn-light:hover {
    background-color: var(--primary-soft);
}

/* =========================
   PAGE HERO – COURSES
========================= */
.page-hero {
    background: linear-gradient(135deg, #f5f3ff, #e0f2fe);
    padding-block: 2.8rem 3.2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-hero-content {
    max-width: 760px;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.page-hero h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
}

.lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

/* Search bar */
.course-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.course-search input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.course-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.5);
}

/* Chips / tags */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
    background-color: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* =========================
   COURSE LAYOUT
========================= */
.course-layout {
    padding-block: 3rem 3.2rem;
}

.course-layout-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 2rem;
}

/* Sidebar filters */
.course-filters {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filters-card,
.info-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.1rem 1.25rem;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: var(--shadow-soft);
}

.filters-card h2 {
    font-size: 1.05rem;
    color: var(--text-heading);
    margin-bottom: 0.55rem;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
}

.filter-list li {
    padding-left: 0.4rem;
    border-left: 2px solid transparent;
    cursor: default;
    color: var(--text-muted);
}

.filter-list li span::before {
    content: "• ";
    color: var(--primary);
}

.filters-note {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.info-card h3 {
    font-size: 0.98rem;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.info-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Course list */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 2.1rem;
}

.course-section-header h2 {
    font-size: 1.3rem;
    color: var(--text-heading);
}

.course-section-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Horizontal course rows */
.course-row {
    margin-top: 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 231, 235, 0.98);
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 0.95rem 1.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.7fr);
    gap: 1.1rem;
    align-items: center;
}

.course-row-main h3 {
    font-size: 1.02rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.course-row-main p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.course-meta span::before {
    content: "• ";
    color: #d1d5db;
}

/* Right side of row */
.course-row-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.badge,
.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.18rem 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.badge {
    background-color: #f97316;
    color: #fff7ed;
}

.badge-soft {
    background-color: #fef3c7;
    color: #92400e;
}

/* =========================
   CTA STRIP
========================= */
.cta-strip {
    background-color: #111827;
    color: #e5e7eb;
    padding-block: 2.25rem;
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
}

.cta-strip h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cta-strip p {
    font-size: 0.95rem;
    color: #9ca3af;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background-color: #020617;
    color: #9ca3af;
    padding-block: 2.5rem 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 54px;
    width: auto;
    margin-inline: auto;
    margin-bottom: 0.6rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    font-size: 0.9rem;
}

.footer-column h3 {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 0.6rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-column a {
    color: #c4b5fd;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-column p {
    margin-bottom: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    padding-top: 0.8rem;
    font-size: 0.85rem;
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 960px) {
    .course-layout-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .course-row-side {
        align-items: flex-start;
    }

    .cta-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-list {
        flex-wrap: wrap;
        row-gap: 0.4rem;
    }

    .nav-cta {
        margin-left: 0;
    }

    .footer-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .course-search {
        flex-direction: column;
    }

    .cta-strip-inner {
        gap: 1.1rem;
    }
}