@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --green-900: #0f3f2e;
    --green-800: #145237;
    --green-700: #1b5f3f;
    --yellow-500: #f0c419;
    --cream: #f7f4ef;
    --sand: #f0ece4;
    --ink: #1d1c1a;
    --muted: #6b655b;
    --white: #ffffff;
    --border: #e0d9cd;
    --shadow: 0 18px 38px rgba(17, 33, 24, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(240, 236, 228, 0.8), transparent 55%),
        linear-gradient(180deg, var(--cream) 0%, #fffaf3 40%, #ffffff 100%);
}

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

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

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

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.logo-mark {
    display: grid;
    grid-template-columns: repeat(4, 10px);
    gap: 6px;
}

.logo-mark span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green-900);
}

.logo-text {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
    font-weight: 600;
}

.nav a:hover {
    color: var(--green-900);
}

.nav .cta {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-900);
    color: var(--white);
    font-weight: 700;
}

.main {
    min-height: 70vh;
}

.hero {
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 63, 46, 0.95), rgba(17, 84, 56, 0.88));
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
    background-size: 80px 80px;
    background-position: 0 0, 0 40px, 40px -40px, -40px 0px;
    opacity: 0.4;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 40px;
    color: var(--white);
}

.hero-kicker {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.hero-kicker::before,
.hero-kicker::after {
    content: "";
    height: 1px;
    width: 32px;
    background: rgba(255, 255, 255, 0.5);
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    margin: 16px 0 14px;
    line-height: 1.1;
}

.hero p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid transparent;
    font-family: "Source Sans 3", sans-serif;
}

.btn-primary {
    background: var(--yellow-500);
    color: var(--green-900);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.hero-image {
    position: relative;
    height: 360px;
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    margin: 0 0 12px;
}

.section-subtitle {
    color: var(--muted);
    margin: 0 0 32px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    min-height: 420px;
}

.course-media {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    padding: 26px;
    color: var(--white);
    position: relative;
    min-height: 170px;
}

.course-media .label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--yellow-500);
    color: var(--green-900);
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.75rem;
}

.course-media h3 {
    font-family: "Playfair Display", serif;
    margin: 16px 0 0;
    font-size: 1.6rem;
}

.course-body {
    padding: 20px 22px 22px;
    display: grid;
    gap: 12px;
}

.course-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--muted);
}

.badge {
    background: var(--sand);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
}

.course-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.course-desc {
    color: var(--muted);
    margin: 0;
}

.course-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--green-900);
}

.course-price s {
    color: var(--muted);
    font-weight: 500;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.course-footer .btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--green-900);
    color: var(--white);
    border: none;
}

.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    max-width: 460px;
    box-shadow: var(--shadow);
}

.form {
    display: grid;
    gap: 14px;
}

.form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
}

.site-footer {
    padding: 30px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: var(--white);
}

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

    .nav {
        display: none;
    }
}