/* ==========================================================================
   Raw CSS — Markazul Ansar (No Tailwind)
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties (Color Palette) ---------- */
:root {
  /* Primary (Soft Mint → Deep Emerald) */
  --p-50:  #f0f7f4;
  --p-100: #dcece3;
  --p-200: #badac8;
  --p-300: #8ec3a6;
  --p-400: #62a880;
  --p-500: #408a60;
  --p-600: #2d6e49;
  --p-700: #25583b;
  --p-800: #2d5a27;
  --p-900: #1b3a29;
  --p-950: #0e2017;

  /* Accent (Burnt Orange / Gold) */
  --a-50:  #fff8eb;
  --a-100: #fdecc8;
  --a-200: #fbdb8b;
  --a-300: #f8c346;
  --a-400: #f5a312;
  --a-500: #eb8405;
  --a-600: #d16304;
  --a-700: #ae4306;
  --a-800: #8b340d;
  --a-900: #732d0f;
  --a-950: #421403;

  --font: 'Inter', sans-serif;
  --radius-xl:  0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
[x-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--p-50);
  color: var(--p-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; border-radius: 0; }
textarea { resize: vertical; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--p-50); }
::-webkit-scrollbar-thumb { background: var(--p-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--p-500); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav.site-nav {
  background-color: var(--p-950);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

.nav-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand svg { color: var(--a-500); width: 2rem; height: 2rem; }
.nav-brand-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }

/* Desktop Links */
.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--p-200);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:first-child { color: #fff; }
.nav-links a:hover { color: var(--a-500); }

/* CTA */
.nav-cta { display: none; }
.nav-cta a {
  background-color: var(--a-500);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  transition: background-color .2s, box-shadow .2s, transform .2s;
  display: inline-block;
}
.nav-cta a:hover {
  background-color: var(--a-600);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.15);
  transform: translateY(-2px);
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
}
.nav-hamburger button {
  color: var(--p-200);
  cursor: pointer;
  transition: color .15s;
  background: none;
}
.nav-hamburger button:hover { color: #fff; }
.nav-hamburger svg { width: 2rem; height: 2rem; }

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 6rem;
  left: 0;
  right: 0;
  background-color: var(--p-950);
  border-top: 1px solid var(--p-900);
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.3);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-links a {
  color: var(--p-200);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 0.5rem 0;
  transition: color .15s;
  border-bottom: 1px solid var(--p-900);
}
.mobile-nav-links a:hover { color: var(--a-500); }
.mobile-nav-cta {
  background-color: var(--a-500);
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center;
  padding: 0.875rem 2rem !important;
  border-radius: var(--radius-full);
  margin-top: 1rem;
  transition: background-color .2s;
  border-bottom: none !important;
}
.mobile-nav-cta:hover { background-color: var(--a-600); }

@media (min-width: 768px) {
  .nav-links    { display: flex; }
  .nav-cta      { display: flex; align-items: center; }
  .nav-hamburger{ display: none; }
  .mobile-menu  { display: none !important; }
  .nav-inner    { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  .nav-inner { padding-inline: 2rem; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--p-950);
  padding-block: 5rem;
  overflow: hidden;
  border-bottom: 8px solid var(--a-500);
}

/* Background glows */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-base { position: absolute; inset: 0; background-color: var(--p-950); }
.hero-glow-1 {
  position: absolute;
  top: -20%; left: -10%;
  width: 50%; height: 50%;
  background-color: rgba(45, 90, 39, 0.4);
  border-radius: 50%;
  filter: blur(120px);
}
.hero-glow-2 {
  position: absolute;
  top: 40%; right: 10%;
  width: 40%; height: 40%;
  background-color: rgba(45, 90, 39, 0.3);
  border-radius: 50%;
  filter: blur(100px);
}

.hero-container {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  gap: 4rem;
}

/* Left column */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--p-900);
  border: 1px solid var(--p-800);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background-color: var(--a-500);
  animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
.hero-badge-text {
  color: var(--a-500);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.hero-heading-accent {
  color: var(--p-200);
  border-bottom: 4px dotted var(--a-500);
  padding-bottom: 0.25rem;
  display: inline-block;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--p-200);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  font-weight: 300;
  line-height: 1.625;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn-primary-white {
  text-align: center;
  background: #fff;
  color: var(--p-900);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  transition: background-color .15s;
  font-size: 1.125rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.btn-primary-white:hover { background-color: var(--p-100); }
.btn-outline-white {
  text-align: center;
  background: transparent;
  border: 2px solid var(--p-700);
  color: #fff;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  transition: border-color .15s;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-outline-white:hover { border-color: var(--p-400); }
.btn-outline-white svg {
  width: 1.25rem; height: 1.25rem;
  transition: transform .2s;
}
.btn-outline-white:hover svg { transform: translateX(4px); }

/* Right column — Schedule Card */
.hero-card-wrap {
  position: relative;
}
.hero-card-back {
  position: absolute;
  inset: 0;
  background-color: var(--p-800);
  border-radius: var(--radius-3xl);
  transform: rotate(3deg) scale(1.05);
  opacity: .5;
  filter: blur(4px);
}
.hero-card {
  position: relative;
  background-color: var(--p-900);
  border: 1px solid var(--p-800);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
  border-radius: var(--radius-3xl);
  overflow: hidden;
}
.hero-card-header {
  background-color: rgba(14,32,23,0.5);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--p-800);
}
.hero-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--a-500);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.hero-card-title svg { width: 1.5rem; height: 1.5rem; }
.hero-card-sub { color: var(--p-300); font-size: 0.875rem; }
.hero-card-meta-day { color: #fff; font-weight: 700; line-height: 1.3; }
.hero-card-meta-note { color: var(--p-400); font-size: 0.75rem; font-style: italic; }

.hero-card-body {
  padding: 1.5rem;
  background-color: var(--p-50);
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid var(--p-200);
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row-label {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--p-800);
  font-size: 0.95rem; /* smaller on mobile */
}
.schedule-row-arabic {
  margin-right: 0.5rem; /* tighter on mobile */
  color: var(--p-500);
  font-size: 1.1rem; /* smaller on mobile */
}
.schedule-row-time {
  font-weight: 700;
  color: var(--p-900);
  white-space: nowrap;
  font-size: 0.9rem; /* smaller on mobile */
}

/* Highlighted row */
.schedule-row.active {
  background-color: var(--p-100);
  border-radius: 0.75rem;
  border-left: 4px solid var(--a-500);
  border-bottom: 0;
  padding-inline: 0.75rem;
  margin-inline: -0.75rem;
}

@media (min-width: 480px) {
  .schedule-row-label { font-size: 1.125rem; }
  .schedule-row-arabic { margin-right: 1rem; font-size: 1.25rem; }
  .schedule-row-time { font-size: 1rem; }
  .schedule-row.active { padding-inline: 1rem; margin-inline: -1rem; }
}

/* Highlighted row */
.schedule-row.active {
  background-color: var(--p-100);
  border-radius: 0.75rem;
  border-left: 4px solid var(--a-500);
  border-bottom: 0;
  padding-inline: 1rem;
  margin-inline: -1rem;
}

@media (min-width: 768px) {
  .hero { padding-block: 8rem; }
  .hero-container { padding-inline: 1.5rem; }
  .hero-sub { font-size: 1.5rem; }
  .hero-card-header { padding: 2rem; }
  .hero-card-body  { padding: 2rem; }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: center;
  }
  .hero-btns { flex-direction: row; }
  .hero-container { padding-inline: 2rem; }
}

/* ==========================================================================
   SECTION PADDING UTILITY
   ========================================================================== */
.section-padding { padding-block: 80px; }
@media (min-width: 768px) { .section-padding { padding-block: 100px; } }

/* ==========================================================================
   ABOUT / INTRO SECTION
   ========================================================================== */
.about-section {
  background-color: var(--p-50);
}
.about-intro {
  max-width: 56rem;
  margin-inline: auto;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
}
.section-label {
  color: var(--a-600);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--p-950);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.section-body {
  font-size: 1.25rem;
  color: var(--p-700);
  line-height: 1.625;
  font-weight: 300;
}

/* ==========================================================================
   SERVICES / CARDS GRID
   ========================================================================== */
.services-grid {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); padding-inline: 1.5rem; }
}
@media (min-width: 1024px) { .services-grid { padding-inline: 2rem; } }

.service-card {
  background: #fff;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
  border: 1px solid #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, border-color .2s;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  border-color: var(--p-100);
}

.service-icon {
  width: 4rem; height: 4rem;
  border-radius: var(--radius-2xl);
  background-color: rgba(220, 236, 227, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--p-800);
  transition: transform .3s;
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon svg { width: 2rem; height: 2rem; }

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--p-950);
  margin-bottom: 1rem;
}
.service-body {
  color: var(--p-600);
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.625;
}
.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--p-800);
  font-weight: 700;
  gap: 0.375rem;
  transition: color .15s;
}
.service-link:hover { color: var(--a-600); }
.service-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ==========================================================================
   REGISTRATION SECTION
   ========================================================================== */
.register-section {
  background-color: #fff;
  border-top: 1px solid var(--p-100);
  border-bottom: 1px solid var(--p-100);
}

.register-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-inline: 1rem;
}
.register-header .section-label { margin-bottom: 1rem; }

.register-wrap {
  max-width: 80rem;
  margin-inline: auto;
}

/* Form card */
.form-card {
  background: #fff;
  padding: 1rem;
  border-top: 1px solid var(--p-100);
  border-bottom: 1px solid var(--p-100);
}
.form-card-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--p-950);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.025em;
}

/* Form sections */
.form-section {
  background-color: rgba(240,247,244,0.5);
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--p-100);
  margin-bottom: 1.5rem;
}
.form-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--p-800);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--p-200);
  padding-bottom: 0.5rem;
}

/* Form grid */
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.form-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-card { padding: 3rem; border-radius: 2rem; border: 1px solid var(--p-100); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
  .form-section { padding: 1.5rem; border-radius: var(--radius-2xl); }
  .form-card-title { margin-bottom: 2rem; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .col-span-3 { grid-column: 1 / -1; }
  .col-span-2 { grid-column: span 2; }
}

/* Form controls */
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--p-900);
  margin-bottom: 0.25rem;
}
label .sub { display: block; font-size: 0.75rem; color: var(--p-500); margin-bottom: 0.5rem; font-weight: 400; }
label .req { color: #ef4444; }

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--p-200);
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  color: var(--p-900);
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder { color: var(--p-300); }

input:focus, select:focus, textarea:focus {
  border-color: var(--p-500);
  box-shadow: 0 0 0 3px rgba(64,138,96,0.2);
}

/* Radio group */
.radio-group {
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--p-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.radio-item input[type="radio"] {
  width: 1.25rem; height: 1.25rem;
  accent-color: var(--p-600);
  flex-shrink: 0;
  width: auto;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.radio-item span {
  color: var(--p-900);
  transition: color .15s;
}
.radio-item:hover span { color: var(--p-700); }

/* Submit */
.form-submit { padding-top: 1.5rem; text-align: center; }
.btn-submit {
  background-color: var(--p-800);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background-color .15s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 15px -3px rgba(27,58,41,.2);
}
.btn-submit:hover {
  background-color: var(--p-900);
  transform: translateY(-2px);
}
@media (min-width: 768px) { .btn-submit { width: auto; } }

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(14,32,23,.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity .3s;
}
.modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
  max-width: 32rem;
  width: 100%;
  text-align: center;
  border: 1px solid var(--p-100);
  overflow: hidden;
}
.modal-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.75rem;
  background-color: var(--a-500);
}
.modal-icon {
  margin: 1.5rem auto 1.5rem;
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background-color: var(--p-50);
  color: var(--p-600);
  border: 4px solid var(--p-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon svg { width: 2.5rem; height: 2.5rem; animation: bounce 1s ease-in-out 1; }
.modal-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--p-950);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}
.modal-body {
  font-size: 1.125rem;
  color: var(--p-600);
  margin-bottom: 2rem;
  line-height: 1.625;
}
.modal-close {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: #fff;
  background-color: var(--p-800);
  cursor: pointer;
  box-shadow: 0 10px 15px rgba(27,58,41,.2);
  transition: background-color .15s, transform .2s;
}
.modal-close:hover { background-color: var(--p-900); transform: translateY(-2px); }

@media (min-width: 768px) { .modal-box { padding: 3rem; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background-color: var(--p-950);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 8px solid var(--p-900);
}
.footer-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); padding-inline: 0; } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .footer-inner { padding-inline: 2rem; }
}

/* Brand column */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.footer-brand svg { color: var(--a-500); width: 2rem; height: 2rem; }
.footer-brand-name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }
.footer-desc {
  color: var(--p-300);
  line-height: 1.625;
  font-weight: 300;
  font-size: 0.875rem;
  padding-right: 1rem;
}

/* Column headings */
.footer-col-title {
  color: var(--a-500);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* Quick links */
.footer-nav { display: flex; flex-direction: column; gap: 1rem; }
.footer-nav a {
  display: flex;
  align-items: center;
  color: var(--p-200);
  transition: color .15s;
}
.footer-nav a:hover { color: #fff; }
.footer-nav-dot {
  width: 0.375rem; height: 0.375rem;
  border-radius: 50%;
  background-color: var(--a-600);
  margin-right: 0.75rem;
  flex-shrink: 0;
  transition: transform .15s;
}
.footer-nav a:hover .footer-nav-dot { transform: scale(1.5); }

/* Services list */
.footer-services { display: flex; flex-direction: column; gap: 1rem; }
.footer-services li {
  color: var(--p-200);
  cursor: pointer;
  transition: color .15s;
}
.footer-services li:hover { color: #fff; }

/* Contact */
.footer-contacts { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-contact-row.center-row { align-items: center; }
.footer-contact-row svg {
  width: 1.25rem; height: 1.25rem;
  color: var(--a-500);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.footer-contact-row.center-row svg { margin-top: 0; }
.footer-contact-row span { color: var(--p-200); font-size: 0.875rem; }

/* Copyright */
.footer-copy {
  border-top: 1px solid var(--p-800);
  padding-top: 2rem;
  margin-top: 1rem;
  text-align: center;
}
.footer-copy p { font-size: 0.875rem; color: var(--p-400); font-weight: 300; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50%       { transform: translateY(0);   animation-timing-function: cubic-bezier(0,0,.2,1); }
}

/* ==========================================================================
   COURSES SECTION
   ========================================================================== */
.courses-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f9f4 100%);
}

.courses-grid {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: repeat(3, 1fr); padding-inline: 2rem; } }

.course-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--p-600), var(--p-400));
}

.course-card-icon {
  width: 44px;
  height: 44px;
  background: var(--p-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-700);
}
.course-card-icon svg { width: 22px; height: 22px; }

.course-card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--p-100);
  line-height: 1;
  margin-top: -0.5rem;
}

.course-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--p-950);
  line-height: 1.3;
}

.course-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
}

.course-card .service-link {
  margin-top: 0.5rem;
}
