:root {
  --purple: #7b5ce1;
  --purple-dark: #5e44b8;
  --mint: #9edfcf;
  --mint-soft: #eefbf7;
  --rose: #b44345;
  --text: #16202a;
  --muted: #667085;
  --line: #e8edf2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(32, 41, 70, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: white; padding: 10px; z-index: 999; }
.skip-link:focus { left: 10px; }

.topbar { background: linear-gradient(90deg, var(--purple), var(--purple-dark)); color: white; font-size: 14px; }
.topbar-inner { display: flex; gap: 24px; justify-content: center; padding: 10px 0; flex-wrap: wrap; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand img { width: 92px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { background: var(--purple); color: white !important; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 24px rgba(123, 92, 225, 0.25); }
.menu-toggle { display: none; border: 0; background: var(--mint-soft); border-radius: 10px; padding: 10px 12px; font-size: 22px; }

.section { padding: 88px 0; }
.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 75% 40%, rgba(180, 67, 69, 0.38), transparent 34%),
    radial-gradient(circle at 18% 20%, rgba(158, 223, 207, 0.7), transparent 30%),
    linear-gradient(135deg, #f7fffc, #f5f0ff 55%, #fff2f2);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; background: var(--mint-soft); color: var(--purple-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; padding: 8px 14px; border-radius: 999px; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 78px); max-width: 760px; letter-spacing: -0.06em; }
h2 { font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -0.045em; }
h3 { font-size: 22px; }
.hero-content p { max-width: 660px; font-size: 18px; color: #405062; margin: 26px 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 22px; font-weight: 800; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--purple); color: white; box-shadow: 0 14px 30px rgba(123, 92, 225, 0.28); }
.btn.secondary { background: white; border-color: var(--purple); color: var(--purple-dark); }
.btn.full { width: 100%; border: 0; font-size: 16px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges span { background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.9); padding: 10px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.hero-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat-card { background: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.8); border-radius: 22px; padding: 28px; min-height: 150px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.stat-card strong { display: block; font-size: 42px; color: var(--purple); line-height: 1; margin-bottom: 12px; }
.stat-card span { font-weight: 700; color: #445; }
.stat-card.dark { background: linear-gradient(135deg, var(--rose), var(--purple-dark)); color: white; }
.stat-card.dark strong, .stat-card.dark span { color: white; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.split p { font-size: 18px; color: var(--muted); margin-top: 0; }
.section-heading { text-align: center; max-width: 760px; }
.section-heading h2 { margin-top: 16px; }
.section-heading p { color: var(--muted); font-size: 18px; }
.services-section, .trust-section { background: linear-gradient(180deg, #fff, #f8fffc); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.service-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--mint)); font-size: 28px; margin-bottom: 22px; }
.service-card p { color: var(--muted); }
.service-card a { color: var(--purple-dark); font-weight: 800; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 42px; }
.trust-item { background: white; border-radius: 22px; padding: 28px; border-top: 5px solid var(--mint); box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06); }
.trust-item strong { display: block; color: var(--purple-dark); margin-bottom: 8px; font-size: 18px; }
.trust-item span { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-info p { color: var(--muted); font-size: 18px; }
.contact-box { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 16px; box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05); }
.contact-box strong { display: block; color: var(--purple-dark); margin-bottom: 6px; }
.contact-form { background: white; padding: 32px; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-form label { display: grid; gap: 8px; font-weight: 800; margin-bottom: 16px; }
input, select, textarea { width: 100%; border: 1px solid #d9e2ec; border-radius: 14px; padding: 14px 16px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(123, 92, 225, 0.18); border-color: var(--purple); }
.site-footer { background: var(--purple); color: white; padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.9fr; gap: 60px; }
.footer-logo { width: 106px; background: white; padding: 8px; border-radius: 12px; margin-bottom: 16px; }
.site-footer h3 { font-size: 17px; margin-bottom: 16px; }
.site-footer a, .site-footer span { display: block; color: rgba(255,255,255,0.82); margin: 8px 0; }
.site-footer p { color: rgba(255,255,255,0.82); max-width: 420px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.22); margin-top: 34px; padding-top: 20px; color: rgba(255,255,255,0.75); font-size: 14px; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 999px; background: #25d366; color: white; display: grid; place-items: center; box-shadow: 0 16px 38px rgba(37, 211, 102, 0.38); z-index: 50; transition: transform 180ms ease, box-shadow 180ms ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 44px rgba(37, 211, 102, 0.46); }
.whatsapp-float img { width: 36px; height: 36px; object-fit: contain; }
.phone-number { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 132px; background: white; padding: 20px; border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; z-index: 40; }
  .nav-links.open { display: flex; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card, .cards-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 64px 0; }
  .hero-card, .cards-grid, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: flex-start; gap: 10px 16px; }
  h1 { font-size: 42px; }
}

/* Align About section text columns */
.about-section .split > div:last-child {
  padding-top: 52px;
}

@media (max-width: 920px) {
  .about-section .split > div:last-child {
    padding-top: 0;
  }
}

/* Language switcher */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint-soft);
  border: 1px solid rgba(123, 92, 225, 0.16);
  padding: 5px;
  border-radius: 999px;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--purple-dark);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 8px 18px rgba(123, 92, 225, 0.2);
}
html[dir="rtl"] body {
  font-family: Arial, Tahoma, sans-serif;
}
html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .navbar,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-badges {
  direction: rtl;
}
html[dir="rtl"] .hero-content,
html[dir="rtl"] .split,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .service-card,
html[dir="rtl"] .trust-item,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .site-footer {
  text-align: right;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2 {
  letter-spacing: -0.02em;
}
html[dir="rtl"] .service-card .icon {
  margin-left: auto;
  margin-right: 0;
}
html[dir="rtl"] .footer-logo {
  margin-left: auto;
  margin-right: 0;
}
html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 22px;
}

@media (max-width: 920px) {
  .language-switch { width: fit-content; }
}

/* CPD Events */
.events-section {
  background: linear-gradient(180deg, #ffffff, #fff8f8 45%, #f8fffc);
}
.event-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.event-copy p {
  color: var(--muted);
  font-size: 18px;
  margin: 22px 0;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}
.event-meta span {
  background: var(--mint-soft);
  color: var(--purple-dark);
  border: 1px solid rgba(123, 92, 225, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
}
.event-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(32, 41, 70, 0.14);
  background: white;
}
.event-poster img {
  width: 100%;
  height: auto;
}
.is-hidden { display: none !important; }
.event-page-hero {
  background: linear-gradient(135deg, #f7fffc, #f5f0ff 55%, #fff2f2);
}
.event-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}
.event-detail-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}
.event-detail-card h3 { color: var(--purple-dark); margin-bottom: 14px; }
.event-detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.event-detail-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
}
.event-detail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.event-detail-list strong { color: var(--text); display: block; }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.schedule-card {
  background: var(--mint-soft);
  border: 1px solid rgba(123, 92, 225, 0.14);
  border-radius: 18px;
  padding: 18px;
}
.schedule-card strong { color: var(--purple-dark); display: block; margin-bottom: 8px; }
@media (max-width: 920px) {
  .event-feature, .event-detail-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
}
