﻿:root {
    /* palette inspired by ref but refined */
    --b1: #7f1d1d;
    --b2: #991b1b;
    --b3: #b91c1c;
    --b4: #dc2626;
    --b5: #fff1f2;
    --accent: #f99b27;
    --accent-deep: #e07d00;
    --ink: #1a0a0a;
    --text: #484848;
    --muted: #7a8599;
    --line: #f0e0e0;
    --paper: #fffafa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(127, 29, 29, 0.07);
    --shadow-md: 0 4px 20px rgba(127, 29, 29, 0.09);
    --shadow-lg: 0 12px 40px rgba(127, 29, 29, 0.13);
    --radius: 16px;
    --radius-lg: 24px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Kanit', 'Roboto', system-ui, sans-serif;
    background: var(--paper);
    color: var(--text);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ambient background blobs */
  body::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.10), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
  }
  body::after {
    content: '';
    position: fixed;
    bottom: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(249, 155, 39, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
  }
  @keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
  }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }

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

  /* ============================================ */
  /* TOP STRIP                                    */
  /* ============================================ */
  .topstrip {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    padding: 8px 0;
    letter-spacing: 0.04em;
  }
  .topstrip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .live-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse-dot 2s ease-out infinite;
  }
  @keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  }

  /* ============================================ */
  /* HEADER                                       */
  /* ============================================ */
  header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
  }
  .brand-mark {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--b1) 0%, var(--b4) 100%);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 22px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  }
  .brand-mark::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 11px;
  }
  .brand:hover .brand-mark {
    transform: rotate(-6deg) scale(1.05);
  }
  .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
  .brand-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--b4);
    font-weight: 500;
  }
  .brand-name { font-size: 17px; font-weight: 500; color: var(--ink); }

  nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
  }
  nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.2s;
  }
  nav a:hover { color: var(--b1); background: var(--b5); }
  nav a.active { color: var(--b1); font-weight: 500; }
  nav a.active::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    margin: 4px auto 0;
    border-radius: 2px;
  }

  /* ============================================ */
  /* HERO                                         */
  /* ============================================ */
  .hero {
    padding: 80px 0 100px;
    position: relative;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--b5);
    color: var(--b1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(185, 28, 28, 0.2);
  }
  .hero-eyebrow .star { color: var(--accent); }

  .hero h1 {
    font-size: clamp(36px, 5.2vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
  .hero h1 .highlight {
    background: linear-gradient(120deg, var(--b1) 0%, var(--b4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
  }
  .hero h1 .blank {
    display: inline-block;
    color: #2563EB;
    border-bottom: none;
    padding: 0 8px;
    font-weight: 500;
  }

  .hero p {
    font-size: 17px;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
  }

  .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
  }
  .btn-primary {
    background: var(--b1);
    color: white;
    box-shadow: 0 4px 14px rgba(127, 29, 29, 0.25);
  }
  .btn-primary:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.35);
  }
  .btn-ghost {
    background: white;
    color: var(--b1);
    border: 1.5px solid var(--line);
  }
  .btn-ghost:hover {
    border-color: var(--b1);
    background: var(--b5);
  }
  .btn .arrow { transition: transform 0.25s; }
  .btn:hover .arrow { transform: translateX(4px); }

  .hero-meta {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .hero-meta-item .num {
    font-size: 28px;
    font-weight: 600;
    color: var(--b1);
    line-height: 1;
  }
  .hero-meta-item .lbl {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
  }

  /* hero visual */
  .hero-visual {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 16px;
    align-self: center;
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .mosaic-scroll-wrap {
    animation: scroll-up 20s linear infinite;
  }
  .mosaic-scroll-wrap:hover { animation-play-state: paused; }
  @keyframes scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
  }

  /* photo mosaic */
  .photo-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 100px;
    grid-auto-flow: dense;
    gap: 8px;
    width: 100%;
  }
  .pm-cell {
    background: var(--b5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform .3s ease, box-shadow .3s;
    position: relative;
    z-index: 1;
  }
  .pm-cell:hover { transform: scale(1.04); box-shadow: 0 12px 32px rgba(127,29,29,.2); z-index: 10; }
  .pm-cell.pm-tall  { grid-row: span 2; }
  .pm-cell.pm-wide  { grid-column: span 2; }
  .pm-cell.pm-right { grid-column: 2; }

  /* keep old photo-cell for compatibility */
  .photo-cell {
    background-color: var(--b5);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
  }
  .visual-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(185, 28, 28, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(185, 28, 28, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    border-radius: var(--radius-lg);
  }
  .visual-card {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }
  .visual-card.c1 {
    top: 8%;
    left: 5%;
    width: 220px;
    animation: hover-1 6s ease-in-out infinite;
  }
  .visual-card.c2 {
    top: 35%;
    right: 0;
    width: 200px;
    animation: hover-2 7s ease-in-out infinite;
  }
  .visual-card.c3 {
    bottom: 8%;
    left: 18%;
    width: 240px;
    animation: hover-3 8s ease-in-out infinite;
  }
  @keyframes hover-1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
  @keyframes hover-2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
  @keyframes hover-3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

  .vc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: white;
  }
  .c1 .vc-icon { background: linear-gradient(135deg, var(--b1), var(--b4)); }
  .c2 .vc-icon { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
  .c3 .vc-icon { background: linear-gradient(135deg, #10b981, #059669); }

  .vc-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
  .vc-sub { font-size: 12px; color: var(--muted); }
  .vc-num { font-size: 24px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1; }

  /* ============================================ */
  /* DUAL CTA (กดเรียน / กดสอน)                  */
  /* ============================================ */
  .dual-cta { padding: 40px 0 80px; }

  .dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .big-cta {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    border: 1px solid var(--line);
  }
  .big-cta:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }

  .big-cta.learn {
    background: linear-gradient(135deg, var(--b1) 0%, var(--b3) 60%, var(--b4) 100%);
    color: white;
  }
  .big-cta.teach {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 60%, #BFDBFE 100%);
    color: var(--ink);
    border: 2px solid #BFDBFE;
  }
  .big-cta.teach:hover {
    border-color: #3B82F6;
  }

  .big-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  }
  .big-cta.learn::before {
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  }
  .big-cta.teach::before {
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  }
  .big-cta:hover::before {
    transform: scale(1.4);
  }

  .big-cta-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
  }

  .big-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 600;
    backdrop-filter: blur(10px);
  }
  .big-cta.learn .big-cta-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  .big-cta.teach .big-cta-icon {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    color: white;
  }

  .big-cta-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
  }
  .big-cta.learn .big-cta-tag {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .big-cta.teach .big-cta-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #1D4ED8;
    border: 1px solid rgba(59, 130, 246, 0.25);
  }

  .big-cta-body {
    margin-top: 36px;
    position: relative;
    z-index: 1;
  }

  .big-cta-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }

  .big-cta-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 90%;
  }
  .big-cta.learn .big-cta-desc { color: rgba(255, 255, 255, 0.85); }
  .big-cta.teach .big-cta-desc { color: var(--muted); }

  .big-cta-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.3s;
    width: fit-content;
  }
  .big-cta.learn .big-cta-action {
    background: white;
    color: var(--b1);
  }
  .big-cta.teach .big-cta-action {
    background: var(--ink);
    color: white;
  }

  .big-cta-action .arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    transition: transform 0.3s;
  }
  .big-cta.learn .arrow-circle {
    background: var(--b1);
    color: white;
  }
  .big-cta.teach .arrow-circle {
    background: #3B82F6;
    color: white;
  }
  .big-cta:hover .arrow-circle { transform: translateX(4px); }

  /* deco numbers in background */
  .big-cta-deco {
    position: absolute;
    bottom: -40px;
    right: 32px;
    font-family: 'Roboto Mono', monospace;
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
  }
  .big-cta.learn .big-cta-deco { color: white; opacity: 0.12; }

  @media (max-width: 720px) {
    .dual-cta-grid { grid-template-columns: 1fr; }
    .big-cta { padding: 36px 28px; min-height: 240px; }
    .big-cta-deco { font-size: 120px; bottom: -20px; }
  }

  /* ============================================ */
  /* STATS                                        */
  /* ============================================ */
  .stats { padding: 60px 0 80px; }

  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .section-head .left h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .section-head .left .sub {
    color: var(--muted);
    font-size: 15px;
  }
  .section-head .right {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid #BFDBFE;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .stat-card.featured {
    background: linear-gradient(135deg, var(--b1) 0%, var(--b3) 100%);
    color: white;
    border: none;
  }
  .stat-card.featured::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
  }

  .stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .stat-card.featured .stat-label { color: rgba(255, 255, 255, 0.7); }

  .stat-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    color: white;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
  }
  .stat-card.featured .stat-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(8px);
  }

  .stat-number {
    font-size: clamp(48px, 7vw, 72px);
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  .stat-card.featured .stat-number { color: white; }
  .stat-number .unit {
    font-size: 0.4em;
    font-weight: 400;
    color: var(--muted);
    margin-left: 8px;
  }
  .stat-card.featured .stat-number .unit { color: rgba(255, 255, 255, 0.7); }

  .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 28px;
  }
  .stat-card.featured .stat-trend {
    background: rgba(255, 255, 255, 0.15);
    color: #86efac;
  }

  .stat-table { display: flex; flex-direction: column; gap: 2px; }
  .stat-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    transition: background 0.2s;
  }
  .stat-row:hover { background: var(--paper); }
  .stat-card.featured .stat-row:hover { background: rgba(255, 255, 255, 0.08); }
  .rank {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
  }
  .stat-card.featured .rank { color: rgba(255, 255, 255, 0.5); }
  .place { color: var(--ink); }
  .stat-card.featured .place { color: white; }
  .count {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    color: var(--ink);
  }
  .stat-card.featured .count { color: white; }

  /* ============================================ */
  /* ACTIVITIES                                   */
  /* ============================================ */
  .activities {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, var(--b5) 50%, transparent 100%);
  }

  .activity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .activity {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
  }
  .activity::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--b1) 0%, var(--b4) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
  }
  .activity:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .activity:hover::before { opacity: 1; }
  .activity:hover .activity-content { color: white; }
  .activity:hover .activity-num,
  .activity:hover .activity-meta { color: rgba(255, 255, 255, 0.7); }
  .activity:hover .activity-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }
  .activity:hover .activity-arrow { background: white; color: var(--b1); transform: rotate(-45deg); }
  .activity:hover h3 { color: white; }

  .activity-content { position: relative; z-index: 1; transition: color 0.3s; }
  .activity-num {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
  }
  .activity-icon {
    width: 56px;
    height: 56px;
    background: var(--b5);
    color: var(--b1);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s;
  }
  .activity h3 {
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s;
  }
  .activity p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .activity-meta {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .activity-arrow {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 36px;
    height: 36px;
    background: var(--b5);
    color: var(--b1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 1;
  }

  /* ============================================ */
  /* PARTNERS                                     */
  /* ============================================ */
  .partners { padding: 80px 0; }

  .partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  .partner {
    background: white;
    border-radius: var(--radius);
    padding: 18px 22px;
    border: 1px solid var(--line);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .partner img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .partner:hover {
    border-color: var(--b4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  .partner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--b1), var(--accent));
    transition: width 0.3s;
  }
  .partner:hover::after { width: 100%; }

  .partner-logo {
    width: 44px;
    height: 44px;
    background: var(--b5);
    color: var(--b1);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
  }
  .partner:nth-child(3n) .partner-logo { background: rgba(249, 155, 39, 0.1); color: var(--accent-deep); }
  .partner:nth-child(5n) .partner-logo { background: rgba(16, 185, 129, 0.1); color: #059669; }
  .partner:nth-child(7n) .partner-logo { background: rgba(190, 78, 64, 0.1); color: #be4e40; }

  .partner-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.4;
  }
  .partner-type {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* ============================================ */
  /* CTA                                          */
  /* ============================================ */
  .cta-section { padding: 80px 0; }

  .cta-box {
    background: linear-gradient(135deg, var(--b1) 0%, var(--ink) 100%);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
  }
  .cta-box::before, .cta-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
  }
  .cta-box::before {
    top: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background:  "rgba(185, 28, 28, $($args[0].Groups[1].Value))" ;
  }
  .cta-box::after {
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(249, 155, 39, 0.25);
  }

  .cta-content { position: relative; z-index: 1; }
  .cta-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .cta-box h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
  }
  .cta-box p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 17px;
  }
  .cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .cta-actions .btn-primary {
    background: white;
    color: var(--b1);
  }
  .cta-actions .btn-primary:hover {
    background: var(--accent);
    color: white;
  }
  .cta-actions .btn-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
  }
  .cta-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
  }

  /* ============================================ */
  /* FOOTER                                       */
  /* ============================================ */
  footer {
    background: white;
    border-top: 1px solid var(--line);
    padding: 48px 0 24px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 40px;
    align-items: start;
  }
  .footer-brand .brand { margin-bottom: 16px; }
  .footer-brand p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
  }
  .footer-col h4 {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 16px;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--b1); }

  .footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
  }

  /* ============================================ */
  /* ANIMATIONS                                   */
  /* ============================================ */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s ease forwards;
  }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.15s; }
  .reveal-3 { animation-delay: 0.25s; }
  .reveal-4 { animation-delay: 0.35s; }

  @keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============================================ */
  /* RESPONSIVE                                   */
  /* ============================================ */
  @media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { margin: 0 auto; }
    .stats-grid { grid-template-columns: 1fr; }
    .activity-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    .container { padding: 0 18px; }
    .topstrip span:last-child { display: none; }
    nav ul { display: none; }
    .hero { padding: 60px 0 80px; }
    .hero-meta { flex-wrap: wrap; gap: 20px; }
    .stat-card { padding: 28px; }
    .cta-box { padding: 60px 28px; }
    .footer-grid { grid-template-columns: 1fr; }
  }

  /* ============================================ */
  /* OTP MODAL                                    */
  /* ============================================ */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .modal-overlay.show {
    display: flex;
    opacity: 1;
  }

  .modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px 36px 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    animation: modal-pop 0.4s cubic-bezier(.4,0,.2,1) forwards;
    max-height: 92vh;
    overflow-y: auto;
  }
  @keyframes modal-pop {
    to { transform: translateY(0) scale(1); opacity: 1; }
  }

  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--paper);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
  }
  .modal-close:hover {
    background: var(--ink);
    color: white;
    transform: rotate(90deg);
  }

  .modal-back {
    position: absolute;
    top: 18px;
    left: 18px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
  }
  .modal-back:hover {
    background: var(--paper);
    color: var(--b1);
  }

  .modal-step {
    display: none;
    text-align: center;
    animation: step-fade 0.4s ease forwards;
  }
  .modal-step.active { display: block; }
  @keyframes step-fade {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .modal-icon-wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 24px;
  }
  .modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--b5) 0%,  "rgba(185, 28, 28, $($args[0].Groups[1].Value))"  100%);
    border: 2px solid  "rgba(185, 28, 28, $($args[0].Groups[1].Value))" ;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 32px;
  }
  .modal-icon-wrap.success .modal-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: white;
    font-size: 36px;
    font-weight: 600;
    animation: success-pop 0.5s cubic-bezier(.34, 1.56, .64, 1);
  }
  @keyframes success-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
  }

  .modal-eyebrow {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--b4);
    margin-bottom: 8px;
  }

  .modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .modal-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .modal-desc strong {
    color: var(--ink);
    font-weight: 500;
  }

  .modal-field {
    text-align: left;
    margin-bottom: 20px;
  }
  .modal-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
  }

  .phone-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
  }
  .phone-input-wrap:focus-within {
    border-color: var(--b4);
    box-shadow: 0 0 0 4px  "rgba(185, 28, 28, $($args[0].Groups[1].Value))" ;
  }
  .phone-prefix {
    padding: 14px 16px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 500;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
  }

  .modal-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: white;
    height: auto;
    margin: 0;
    border-radius: 0;
    letter-spacing: 0.04em;
  }
  .modal-input::placeholder { color: #b8c1cf; }

  /* boxed input variant (for name fields) */
  .modal-input.boxed {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .modal-input.boxed:focus {
    border-color: var(--b4);
    box-shadow: 0 0 0 4px  "rgba(185, 28, 28, $($args[0].Groups[1].Value))" ;
  }

  .modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
  }
  .modal-row .modal-field { margin-bottom: 12px; }

  /* gender selector */
  .gender-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .gender-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .gender-btn:hover {
    border-color: var(--b4);
    background: var(--b5);
  }
  .gender-btn.active {
    border-color: var(--b1);
    background: linear-gradient(135deg, var(--b1) 0%, var(--b3) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(127, 29, 29, 0.25);
    transform: translateY(-2px);
  }
  .gender-icon {
    font-size: 22px;
    font-weight: 600;
  }

  .modal-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 16px;
    text-align: left;
  }

  .modal-btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s;
    margin-bottom: 16px;
  }
  .modal-btn-primary {
    background: var(--b1);
    color: white;
    box-shadow: 0 4px 14px rgba(127, 29, 29, 0.25);
  }
  .modal-btn-primary:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 29, 29, 0.35);
  }
  .modal-btn .arrow { transition: transform 0.2s; }
  .modal-btn:hover .arrow { transform: translateX(4px); }

  .modal-footnote {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
  }
  .modal-footnote a {
    color: var(--b1);
    text-decoration: none;
  }
  .modal-footnote a:hover { text-decoration: underline; }

  /* OTP digit inputs */
  .otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
  }
  .otp-digit {
    width: 48px;
    height: 56px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    background: white;
    transition: all 0.2s;
    margin: 0;
    padding: 0;
  }
  .otp-digit:focus {
    outline: none;
    border-color: var(--b4);
    box-shadow: 0 0 0 4px  "rgba(185, 28, 28, $($args[0].Groups[1].Value))" ;
    transform: translateY(-1px);
  }
  .otp-digit:not(:placeholder-shown),
  .otp-digit[value]:not([value=""]) {
    border-color: var(--b1);
    background: var(--b5);
  }

  .modal-resend {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
  }
  .modal-resend a {
    color: var(--b1);
    text-decoration: none;
    font-weight: 500;
  }
  .modal-resend a:hover { text-decoration: underline; }
  .resend-timer {
    display: inline-block;
    margin-left: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: var(--muted);
  }

  /* success loader */
  .success-loader {
    width: 100%;
    height: 3px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 24px;
  }
  .success-loader::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--b1), var(--b4));
    width: 0;
    animation: load-bar 2.5s ease-in-out forwards;
  }
  @keyframes load-bar {
    to { width: 100%; }
  }

  @media (max-width: 480px) {
    .modal-box { padding: 32px 24px 24px; }
    .otp-digit { width: 42px; height: 50px; font-size: 18px; }
    .otp-inputs { gap: 6px; }
  }

  /* ============================================ */
  /* INSTRUCTOR MODAL ADDITIONS                   */
  /* ============================================ */
  .modal-btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 155, 39, 0.3);
  }
  .modal-btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-deep) 0%, #c06900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 155, 39, 0.4);
  }

  .inst-icon {
    background: linear-gradient(135deg, rgba(249, 155, 39, 0.15) 0%, rgba(224, 125, 0, 0.1) 100%);
    border-color: rgba(249, 155, 39, 0.3);
  }

  .expertise-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .expertise-btn {
    padding: 14px 10px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .expertise-btn:hover {
    border-color: var(--accent);
    background: rgba(249, 155, 39, 0.06);
    color: var(--accent-deep);
  }
  .expertise-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 155, 39, 0.25);
    transform: translateY(-2px);
  }

  .role-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .role-btn:hover { border-color: var(--b4); background: var(--b5); }
  .role-btn.active {
    border-color: var(--b1);
    background: linear-gradient(135deg, var(--b1) 0%, var(--b3) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(127, 29, 29, 0.25);
    transform: translateY(-2px);
  }
  .role-icon { font-size: 22px; }

  .id-input {
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-align: center;
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }
  .id-input:focus {
    border-color: var(--b4);
    box-shadow: 0 0 0 4px  "rgba(185, 28, 28, $($args[0].Groups[1].Value))" ;
  }
  .id-input::placeholder { color: #b8c1cf; }