/**
 * Computer Age — Minimalist Modern Design System
 * Shared tokens, utilities, and reusable components used across all pages.
 */

/* ── Google Fonts are loaded inline in each page <head>
   Inter + Calistoga + JetBrains Mono
   ── */

/* ════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════ */
:root {
    --mm-bg:            #FAFAFA;
    --mm-fg:            #0F172A;
    --mm-muted:         #F1F5F9;
    --mm-muted-fg:      #64748B;
    --mm-accent:        #0052FF;
    --mm-accent2:       #4D7CFF;
    --mm-border:        #E2E8F0;
    --mm-card:          #FFFFFF;
    --mm-success:       #10b981;
    --mm-danger:        #ef4444;

    --mm-grad:          linear-gradient(135deg, #0052FF, #4D7CFF);
    --mm-grad-r:        linear-gradient(to right, #0052FF, #4D7CFF);

    --mm-shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
    --mm-shadow-md:     0 4px 6px rgba(0,0,0,0.07);
    --mm-shadow-lg:     0 10px 15px rgba(0,0,0,0.08);
    --mm-shadow-xl:     0 20px 25px rgba(0,0,0,0.1);
    --mm-shadow-accent: 0 4px 14px rgba(0,82,255,0.25);
    --mm-shadow-accent-lg: 0 8px 24px rgba(0,82,255,0.35);
}

/* ════════════════════════════════════
   PAGE-LEVEL BASE
   ════════════════════════════════════ */
.mm-page {
    background: var(--mm-bg);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--mm-fg);
}

/* ════════════════════════════════════
   SHARED PAGE HERO HEADER
   ════════════════════════════════════ */
.mm-hero {
    background: var(--mm-fg);
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
}
.mm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.mm-hero__glow {
    position: absolute;
    top: -100px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(0,82,255,0.18) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.mm-hero__glow2 {
    position: absolute;
    bottom: -80px; left: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(77,124,255,0.12) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}
.mm-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}
.mm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 9999px;
    border: 1px solid rgba(0,82,255,0.4);
    background: rgba(0,82,255,0.08);
    padding: 7px 18px;
    margin-bottom: 24px;
}
.mm-hero__badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mm-accent);
    animation: mm-pulse 2s infinite;
    flex-shrink: 0;
}
.mm-hero__badge-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mm-accent2);
}
.mm-hero__title {
    font-family: 'Calistoga', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}
.mm-hero__title .mm-grad-text {
    background: var(--mm-grad-r);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mm-hero__sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 520px;
}
.mm-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.mm-hero__back:hover { color: #fff; }

/* ════════════════════════════════════
   INVERTED STATS STRIP
   ════════════════════════════════════ */
.mm-stats-strip {
    background: var(--mm-fg);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}
.mm-stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.mm-stats-inner {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
@media (max-width: 700px) {
    .mm-stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.mm-stat {
    padding: 16px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.mm-stat:last-child { border-right: none; }
@media (max-width: 700px) {
    .mm-stat { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .mm-stat:nth-child(2) { border-right: none; }
    .mm-stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }
    .mm-stat:nth-child(3), .mm-stat:nth-child(4) { border-bottom: none; }
}
.mm-stat__number {
    font-family: 'Calistoga', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    background: var(--mm-grad-r);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 6px;
}
.mm-stat__label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.55);
}

/* ════════════════════════════════════
   SECTION WRAPPER
   ════════════════════════════════════ */
.mm-section {
    padding: 80px 0;
}
.mm-section--muted {
    background: var(--mm-muted);
}
.mm-section--dark {
    background: var(--mm-fg);
    position: relative;
    overflow: hidden;
}
.mm-section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.mm-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ════════════════════════════════════
   SECTION BADGE + HEADING
   ════════════════════════════════════ */
.mm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 9999px;
    border: 1px solid rgba(0,82,255,0.25);
    background: rgba(0,82,255,0.05);
    padding: 6px 16px;
    margin-bottom: 20px;
}
.mm-section-badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mm-accent);
    flex-shrink: 0;
}
.mm-section-badge__text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mm-accent);
}
.mm-section-heading {
    font-family: 'Calistoga', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--mm-fg);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.mm-section-heading .mm-grad-text {
    background: var(--mm-grad-r);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mm-section-heading--light { color: #fff; }
.mm-section-sub {
    font-size: 1rem;
    color: var(--mm-muted-fg);
    line-height: 1.7;
    max-width: 580px;
}
.mm-section-sub--light { color: rgba(255,255,255,0.6); }
.mm-section-center { text-align: center; }
.mm-section-center .mm-section-sub { margin: 0 auto; }

/* ════════════════════════════════════
   CARDS
   ════════════════════════════════════ */
.mm-card {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--mm-shadow-md);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mm-card:hover {
    box-shadow: var(--mm-shadow-xl);
    transform: translateY(-3px);
}
.mm-card--featured {
    border-color: var(--mm-accent);
    box-shadow: var(--mm-shadow-accent);
}
.mm-card--featured:hover {
    box-shadow: var(--mm-shadow-accent-lg);
}

/* gradient-border featured card wrapper */
.mm-card-grad-border {
    border-radius: 18px;
    background: var(--mm-grad);
    padding: 2px;
    transition: box-shadow 0.25s ease;
}
.mm-card-grad-border:hover {
    box-shadow: var(--mm-shadow-accent-lg);
}
.mm-card-grad-border > .mm-card {
    border: none;
    border-radius: 16px;
    margin: 0;
}

/* ════════════════════════════════════
   ICON CONTAINERS
   ════════════════════════════════════ */
.mm-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--mm-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: var(--mm-shadow-accent);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.mm-icon--sm {
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 17px;
}
.mm-icon--lg {
    width: 64px; height: 64px;
    border-radius: 18px;
    font-size: 26px;
    margin-bottom: 20px;
}
.mm-card:hover .mm-icon { transform: scale(1.08); }

/* ════════════════════════════════════
   FEATURE GRID CARDS
   ════════════════════════════════════ */
.mm-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.mm-feature-card {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--mm-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}
.mm-feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,82,255,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mm-feature-card:hover {
    box-shadow: var(--mm-shadow-lg);
    transform: translateY(-3px);
}
.mm-feature-card:hover::after { opacity: 1; }
.mm-feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mm-fg);
    margin: 14px 0 8px;
}
.mm-feature-card__body {
    font-size: 0.9rem;
    color: var(--mm-muted-fg);
    line-height: 1.65;
}

/* ════════════════════════════════════
   CHECK LIST
   ════════════════════════════════════ */
.mm-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mm-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mm-border);
    font-size: 0.9375rem;
    color: var(--mm-fg);
    line-height: 1.6;
}
.mm-checklist li:last-child { border-bottom: none; }
.mm-checklist__icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,82,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mm-accent);
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */
.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0 22px;
    height: 48px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    letter-spacing: 0.01em;
}
.mm-btn--primary {
    background: var(--mm-grad);
    color: #fff;
    box-shadow: var(--mm-shadow-accent);
}
.mm-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--mm-shadow-accent-lg);
    filter: brightness(1.08);
    color: #fff;
}
.mm-btn--primary:active { transform: scale(0.98); }
.mm-btn--outline {
    background: transparent;
    color: var(--mm-accent);
    border: 1px solid rgba(0,82,255,0.35);
}
.mm-btn--outline:hover {
    background: rgba(0,82,255,0.05);
    border-color: var(--mm-accent);
    transform: translateY(-1px);
}
.mm-btn--full { width: 100%; }
.mm-btn__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.mm-btn:hover .mm-btn__arrow { transform: translateX(4px); }

/* ════════════════════════════════════
   FORM ELEMENTS
   ════════════════════════════════════ */
.mm-field {
    margin-bottom: 20px;
}
.mm-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mm-fg);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}
.mm-field label .req { color: var(--mm-accent); margin-left: 2px; }
.mm-field input,
.mm-field textarea,
.mm-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--mm-fg);
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.mm-field textarea {
    height: auto;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.6;
}
.mm-field input::placeholder,
.mm-field textarea::placeholder {
    color: rgba(100,116,139,0.5);
}
.mm-field input:focus,
.mm-field textarea:focus,
.mm-field select:focus {
    border-color: var(--mm-accent);
    box-shadow: 0 0 0 3px rgba(0,82,255,0.12);
}

/* form row */
.mm-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) { .mm-form-row-2 { grid-template-columns: 1fr; } }

/* alerts */
.mm-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.mm-alert--success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    color: #065f46;
}
.mm-alert--error {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    color: #7f1d1d;
}
.mm-alert__icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.mm-alert--success .mm-alert__icon { color: var(--mm-success); }
.mm-alert--error   .mm-alert__icon { color: var(--mm-danger); }

/* captcha override (matches field style) */
.captcha-group { margin-bottom: 20px; }
.captcha-group label {
    display: block !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: var(--mm-fg) !important;
    margin-bottom: 7px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}
.captcha-group input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid var(--mm-border) !important;
    border-radius: 12px !important;
    font-size: 0.9375rem !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    color: var(--mm-fg) !important;
    background: transparent !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
}
.captcha-group input:focus {
    border-color: var(--mm-accent) !important;
    box-shadow: 0 0 0 3px rgba(0,82,255,0.12) !important;
}

/* ════════════════════════════════════
   COMPANY / PARTNER PILL BADGES
   ════════════════════════════════════ */
.mm-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 44px;
}
.mm-company-pill {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: var(--mm-shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.mm-company-pill:hover {
    border-color: rgba(0,82,255,0.3);
    box-shadow: var(--mm-shadow-accent);
    transform: translateY(-2px);
}
.mm-company-pill__name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--mm-fg);
    margin-bottom: 4px;
}
.mm-company-pill__sub {
    font-size: 0.75rem;
    color: var(--mm-muted-fg);
}

/* ════════════════════════════════════
   TRANSPORT/ACCESSIBILITY CARDS
   ════════════════════════════════════ */
.mm-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 44px;
}
.mm-access-card {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--mm-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mm-access-card:hover {
    box-shadow: var(--mm-shadow-lg);
    transform: translateY(-3px);
}
.mm-access-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mm-fg);
    margin: 14px 0 8px;
}
.mm-access-card__body {
    font-size: 0.875rem;
    color: var(--mm-muted-fg);
    line-height: 1.6;
}

/* ════════════════════════════════════
   PAGINATION
   ════════════════════════════════════ */
.mm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 48px;
}
.mm-pagination a,
.mm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--mm-border);
    background: var(--mm-card);
    color: var(--mm-fg);
    transition: all 0.2s ease;
}
.mm-pagination a:hover {
    border-color: var(--mm-accent);
    color: var(--mm-accent);
    background: rgba(0,82,255,0.05);
}
.mm-pagination a.active,
.mm-pagination span.active {
    background: var(--mm-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--mm-shadow-accent);
}

/* ════════════════════════════════════
   FILTER BAR (courses/gallery)
   ════════════════════════════════════ */
.mm-filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}
.mm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    border-radius: 10px;
    border: 1px solid var(--mm-border);
    background: var(--mm-card);
    color: var(--mm-muted-fg);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--mm-shadow-sm);
    text-decoration: none;
}
.mm-filter-btn:hover,
.mm-filter-btn.active {
    background: var(--mm-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--mm-shadow-accent);
    transform: translateY(-2px);
}
.mm-filter-count {
    background: rgba(0,0,0,0.08);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
    color: inherit;
}
.mm-filter-btn.active .mm-filter-count,
.mm-filter-btn:hover .mm-filter-count {
    background: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════
   ENTRANCE ANIMATIONS
   ════════════════════════════════════ */
@keyframes mm-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.65; }
}
@keyframes mm-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mm-anim { animation: mm-fadeUp 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.mm-anim-d1 { animation-delay: 0.08s; }
.mm-anim-d2 { animation-delay: 0.16s; }
.mm-anim-d3 { animation-delay: 0.24s; }
.mm-anim-d4 { animation-delay: 0.32s; }

/* ════════════════════════════════════
   GRADIENT TEXT UTILITY
   ════════════════════════════════════ */
.mm-grad-text {
    background: var(--mm-grad-r);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ════════════════════════════════════
   SIDEBAR CARD (course details, etc.)
   ════════════════════════════════════ */
.mm-sidebar-card {
    background: var(--mm-card);
    border: 1px solid var(--mm-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--mm-shadow-md);
    position: sticky;
    top: 100px;
}
.mm-sidebar-card__top {
    background: var(--mm-grad);
    padding: 28px 28px 24px;
}
.mm-sidebar-card__price {
    font-family: 'Calistoga', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.mm-sidebar-card__price-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
}
.mm-sidebar-card__body {
    padding: 24px 28px;
}
.mm-sidebar-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--mm-border);
    font-size: 0.875rem;
}
.mm-sidebar-detail-row:last-child { border-bottom: none; }
.mm-sidebar-detail-row__label {
    color: var(--mm-muted-fg);
    display: flex;
    align-items: center;
    gap: 7px;
}
.mm-sidebar-detail-row__value {
    font-weight: 600;
    color: var(--mm-fg);
}
