/* 
 * Pragathi Career Academy — Quizlet Theme Design System 
 * Professional, modern, active-learning aesthetic.
 */

:root {
    /* Quizlet Color Palette */
    --color-primary: #4257b2;            /* Signature Quizlet Blue/Indigo */
    --color-primary-hover: #303f9f;
    --color-primary-dark: #2e3856;       /* Deep Navy for dark headings & text */
    --color-primary-light: #edeff4;      /* Light border/fill */
    
    --color-accent: #ffb100;             /* Quizlet Accent Amber */
    --color-accent-light: #ffcd1f;       /* Star Yellow */
    --color-success: #23b26d;            /* Quizlet Green */
    --color-danger: #ff7878;             /* Incorrect/Alert Red */
    
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f7fb;        /* Crisp modern off-white background */
    --color-text: #2e3856;               /* High-contrast body text */
    --color-text-muted: #586380;         /* Muted blue-grey text */
    --color-border: #dbdfeb;             /* Premium solid border */
    --color-border-hover: #4257b2;
    
    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Border Radii */
    --shadow-sm: 0 2px 4px rgba(46, 56, 86, 0.04);
    --shadow-md: 0 8px 16px rgba(46, 56, 86, 0.08);
    --shadow-lg: 0 16px 32px rgba(46, 56, 86, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;                   /* Quizlet rounded cards */
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-top: 0;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Badges & Labels */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.badge-primary {
    background: rgba(66, 87, 178, 0.1);
    color: var(--color-primary);
}

.badge-accent {
    background: rgba(255, 177, 0, 0.15);
    color: #b45309;
}

.badge-tag {
    background: var(--color-primary-light);
    color: var(--color-text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: 0 8px 20px rgba(66, 87, 178, 0.25);
    color: #fff;
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.btn-dark {
    background: var(--color-primary-dark);
    color: #fff;
    border-color: var(--color-primary-dark);
}

.btn-dark:hover {
    background: #1e2439;
    border-color: #1e2439;
    box-shadow: 0 8px 20px rgba(46, 56, 86, 0.2);
    color: #fff;
}

/* ──────────────────────────────────────────────────────────────────────────
 * HEADER
 * ────────────────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 2px solid var(--color-primary-light);
    box-shadow: 0 2px 8px rgba(46, 56, 86, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), #3ccfcf);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(66, 87, 178, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-primary-dark);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--color-primary);
    text-decoration: none;
}

.site-nav a.is-active {
    border-color: var(--color-primary);
    border-radius: 0;
    padding-bottom: 0.45rem;
}

.nav-cta {
    margin-left: 0.75rem;
    padding: 0.6rem 1.25rem !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(66, 87, 178, 0.15);
}

.nav-cta:hover {
    background: var(--color-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(66, 87, 178, 0.25);
}


/* ──────────────────────────────────────────────────────────────────────────
 * HERO SECTION
 * ────────────────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #2e3856 0%, #1a1d28 100%);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(60, 207, 207, 0.15), transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-text-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    opacity: 0.9;
    max-width: 54ch;
    margin: 0 0 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* Stacked Cards Preview Visual (CSS-only high-fidelity art) */
.hero-decoration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 340px;
    z-index: 1;
}

.visual-card-stack {
    position: relative;
    width: 260px;
    height: 310px;
}

.visual-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
}

.visual-card-3 {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: rotate(8deg) translate(20px, 10px);
    z-index: -3;
}

.visual-card-2 {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: rotate(-4deg) translate(-10px, 5px);
    z-index: -2;
}

.visual-card-1 {
    z-index: -1;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    color: var(--color-primary-dark);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.visual-card-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(66,87,178,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.visual-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.v-badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(66, 87, 178, 0.1);
    color: var(--color-primary);
    border-radius: 999px;
    text-transform: uppercase;
}

.v-star {
    color: var(--color-accent-light);
    font-size: 1.2rem;
}

.v-question {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary-dark);
    margin: 1.5rem 0 0.5rem;
}

.v-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.v-meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-primary-light);
    padding-top: 0.75rem;
    display: block;
}


/* ──────────────────────────────────────────────────────────────────────────
 * STATS SECTION
 * ────────────────────────────────────────────────────────────────────────── */
.stats-section {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 2px solid var(--color-primary-light);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    border: 2px solid var(--color-primary-light);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.stat-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background: #ffffff;
    border: 2px solid var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}


/* ──────────────────────────────────────────────────────────────────────────
 * SECTIONS & HEADERS
 * ────────────────────────────────────────────────────────────────────────── */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--color-surface-alt);
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.85rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}


/* ──────────────────────────────────────────────────────────────────────────
 * INTERACTIVE FLASHCARD WIDGET (Signature Quizlet Component)
 * ────────────────────────────────────────────────────────────────────────── */
.flashcard-widget-container {
    max-width: 740px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
}

.flashcard-deck-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.deck-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deck-icon {
    font-size: 2rem;
    line-height: 1;
}

.deck-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.deck-meta {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.deck-category {
    padding: 0.35rem 0.85rem;
    background: rgba(66, 87, 178, 0.08);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}


/* Flashcard flip mechanism */
.flashcard-wrapper {
    perspective: 1000px;
    width: 100%;
    height: 320px;
    margin: 1.5rem 0 2rem;
}

.flashcard {
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    outline: none;
}

.flashcard:focus-visible {
    box-shadow: 0 0 0 3px rgba(66, 87, 178, 0.3);
    border-radius: var(--radius-lg);
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-border);
    padding: 2.25rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(46, 56, 86, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flashcard:hover .flashcard-front,
.flashcard:hover .flashcard-back {
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(66, 87, 178, 0.1);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: #fbfbfe;
    border-color: #cbd2e6;
}

.flashcard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-subject-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.btn-star {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-border);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
}

.btn-star:hover,
.btn-star.starred {
    color: var(--color-accent-light);
    transform: scale(1.15);
}

.flashcard-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 1rem 0;
    text-align: center;
}

.flashcard-text {
    font-size: clamp(1.15rem, 3.5vw, 1.45rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
    line-height: 1.4;
}

.flashcard-answer-text {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.35;
}

.flashcard-tap-tip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
    opacity: 0.7;
}


/* Controls & Progress bar */
.flashcard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.control-btn {
    width: 3.25rem;
    height: 3.25rem;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-alt);
    color: var(--color-primary);
    transform: scale(1.05);
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--color-primary-light);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ──────────────────────────────────────────────────────────────────────────
 * WHY CHOOSE PRAGATHI SECTION
 * ────────────────────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.study-feature-card {
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(46, 56, 86, 0.01);
}

.study-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
}

.study-feature-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.study-feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}


/* ──────────────────────────────────────────────────────────────────────────
 * STUDY SETS CARDS (UPSC, PSC, BANKING) - STACKED EFFECT
 * ────────────────────────────────────────────────────────────────────────── */
.study-set-card {
    position: relative;
    height: 100%;
}

.set-card-stacked {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    z-index: 1;
    transform: rotate(2deg) translateY(4px);
    transition: all 0.2s ease;
}

.study-set-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    z-index: 0;
    transform: rotate(-3deg) translateY(8px);
    transition: all 0.2s ease;
}

.set-card-inner {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 12px rgba(46, 56, 86, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-set-card:hover .set-card-inner {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.study-set-card:hover .set-card-stacked {
    transform: rotate(4deg) translateY(2px) translateX(2px);
    border-color: rgba(66, 87, 178, 0.4);
}

.study-set-card:hover::before {
    transform: rotate(-6deg) translateY(5px) translateX(-3px);
    border-color: rgba(66, 87, 178, 0.2);
}

.set-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.terms-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.set-card-inner h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.set-card-inner p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.set-creator {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-top: 2px solid var(--color-primary-light);
    padding-top: 1.25rem;
}

.creator-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}


/* ──────────────────────────────────────────────────────────────────────────
 * COURSES PAGE
 * ────────────────────────────────────────────────────────────────────────── */
.page-hero {
    background: #ffffff;
    border-bottom: 2px solid var(--color-primary-light);
    padding: 4.5rem 0;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 55ch;
    line-height: 1.6;
}

.course-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(46, 56, 86, 0.01);
    transition: all 0.2s ease;
}

.course-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.course-badge {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: rgba(66, 87, 178, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.course-item div {
    flex-grow: 1;
}

.course-item strong {
    display: block;
    font-size: 1.25rem;
    font-family: var(--font-display);
    color: var(--color-primary-dark);
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.course-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}


/* ──────────────────────────────────────────────────────────────────────────
 * ABOUT PAGE
 * ────────────────────────────────────────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3.5rem;
    align-items: start;
}

.content-block h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 2.25rem 0 1rem;
    letter-spacing: -0.01em;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.75;
}

.content-block ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.content-block li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.content-block li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-success);
    font-weight: 800;
    font-size: 1.1rem;
}


/* ──────────────────────────────────────────────────────────────────────────
 * CONTACT PAGE
 * ────────────────────────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-info p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-info dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-info dt {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
}

.contact-info dd {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.contact-info dd a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-form {
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-primary-dark);
    font-weight: 500;
    transition: all 0.15s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 87, 178, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    text-align: center;
}

.form-success {
    display: none;
    padding: 1rem 1.25rem;
    background: rgba(35, 178, 109, 0.1);
    color: var(--color-success);
    border: 2px solid rgba(35, 178, 109, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-success.is-visible {
    display: block;
}


/* ──────────────────────────────────────────────────────────────────────────
 * CALL TO ACTION BAND
 * ────────────────────────────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--color-primary-dark), #1e2439);
    color: #fff;
    text-align: center;
    padding: 4.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 90%, rgba(66, 87, 178, 0.25), transparent 45%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    margin: 0 auto;
}

.cta-band h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.cta-band p {
    font-size: 1.15rem;
    margin: 0 0 2.25rem;
    opacity: 0.85;
    line-height: 1.65;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ──────────────────────────────────────────────────────────────────────────
 * FOOTER
 * ────────────────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4.5rem 0 2rem;
    border-top: 4px solid var(--color-primary);
}

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

.site-footer h4 {
    color: #fff;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}


/* ──────────────────────────────────────────────────────────────────────────
 * RESPONSIVE MOBILE NAV & LAYOUT ADJUSTMENTS
 * ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero-lead {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-decoration {
        height: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

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

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--color-primary-light);
        display: none;
        box-shadow: var(--shadow-lg);
    }

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

    .site-nav ul {
        flex-direction: column;
        padding: 1.25rem;
        align-items: stretch;
        gap: 0.5rem;
    }

    .site-nav a {
        padding: 0.75rem 1rem;
        border-bottom: none;
    }
    
    .site-nav a.is-active {
        background: var(--color-surface-alt);
        border-radius: var(--radius-sm);
        padding-bottom: 0.75rem;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }

    .course-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .course-badge {
        align-self: flex-start;
    }
    
    .cta-band {
        padding: 3rem 1.5rem;
    }
}
