/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0 0 5.4rem;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 82% -10%, rgba(230, 57, 70, 0.12), transparent 35%),
    radial-gradient(circle at 10% 110%, rgba(122, 24, 36, 0.22), transparent 38%),
    #0a0c12;
  color: #fff;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --brand-red: #e63946;
  --surface-border: rgba(230, 57, 70, 0.22);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 74% -10%, rgba(230, 57, 70, 0.2), transparent 42%),
    radial-gradient(circle at 8% 115%, rgba(122, 24, 36, 0.24), transparent 40%),
    rgba(5, 8, 16, 0.98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  width: min(90vw, 420px);
  text-align: center;
  padding: 1.4rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(230, 57, 70, 0.32);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.page-loader-logo {
  display: block;
  width: min(170px, 45vw);
  max-height: 86px;
  object-fit: contain;
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: loaderLogoPulse 1.7s ease-in-out infinite;
}

.page-loader-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--brand-red);
  border-right-color: rgba(255, 123, 132, 0.85);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.28);
  animation: loaderSpin 0.85s linear infinite;
}

.page-loader-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderLogoPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.95; }
  50% { transform: translateY(-2px) scale(1.02); opacity: 1; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress > span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e63946, #ff7b84);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
  transition: width 0.12s linear;
}

/* English / Western numerals (0-9) with Latin font in RTL content */
.en-num {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  direction: ltr;
  unicode-bidi: embed;
}

/* Skip to main content - visible on focus for accessibility & SEO */
.skip-to-main {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: #e63946;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-to-main:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Sticky arrow box – bottom-right, half visible (top text shown), slides out on hover */
.sticky-arrow-box {
  position: fixed;
  right: 0;
  left: auto;
  bottom: 1.25rem;
  transform: translateX(50%); /* Half visible – peeks from right */
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  background-color: #961E2A;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(150, 30, 42, 0.4);
  transition: transform 0.3s ease-in-out, background-color 0.2s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-arrow-box.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: stickyPeek 2.5s ease-in-out infinite;
}

.sticky-arrow-box.is-visible:hover,
.sticky-arrow-box.is-visible.is-expanded {
  animation: none;
}

.sticky-arrow-box.is-expanded {
  transform: translateX(0);
}

.sticky-arrow-box:hover {
  transform: translateX(0);
  background-color: #b82432;
}

@keyframes stickyPeek {
  0%, 100% { transform: translateX(50%); }
  50% { transform: translateX(38%); }
}

.arrow-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.sticky-arrow-box:hover .arrow-icon {
  transform: translateX(5px);
}

[dir="rtl"] .sticky-arrow-box .arrow-icon {
  transform: scaleX(-1);
}

[dir="rtl"] .sticky-arrow-box:hover .arrow-icon {
  transform: scaleX(-1) translateX(-5px);
}

/* RTL: bottom-left (opposite side) */
[dir="rtl"] .sticky-arrow-box {
  right: auto;
  left: 0;
  transform: translateX(-50%); /* Half visible */
  border-radius: 0 8px 8px 0;
}

[dir="rtl"] .sticky-arrow-box.is-visible {
  animation: stickyPeekRtl 2.5s ease-in-out infinite;
}

/* When expanded in RTL, stop the peek animation so transform: translateX(0) wins */
[dir="rtl"] .sticky-arrow-box.is-visible.is-expanded {
  animation: none;
}

[dir="rtl"] .sticky-arrow-box.is-expanded {
  transform: translateX(0);
}

[dir="rtl"] .sticky-arrow-box:hover {
  transform: translateX(0);
}

@keyframes stickyPeekRtl {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(-38%); }
}

.sticky-arrow-box-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.35;
}
.sticky-register-line1 {
  display: block;
  font-size: 1em;
}
/* "كيف تاخذها " يظهر فقط عند التوسيع (بعد الضغط) */
.sticky-expand-only {
  display: none;
}
.sticky-arrow-box.is-expanded .sticky-expand-only {
  display: inline;
}
.sticky-register-line2 {
  display: none;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 1px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
}
.sticky-arrow-box:hover .sticky-register-line2,
.sticky-arrow-box.is-expanded .sticky-register-line2 {
  display: block;
}
.sticky-arrow-box:hover .sticky-expand-only {
  display: inline;
}

/* Lead modal */
.lead-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lead-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: #050712;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.lead-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.lead-modal-highlight {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e63946;
  line-height: 1.5;
}

.lead-modal-scarcity {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.lead-modal-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  color: rgba(226, 232, 240, 0.85);
}

.lead-form-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.6;
}

.lead-modal-close {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  background: transparent;
  border: none;
  color: rgba(148, 163, 184, 0.9);
  font-size: 1.4rem;
  cursor: pointer;
}

[dir="rtl"] .lead-modal-close {
  left: auto;
  right: 0.9rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lead-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.lead-required {
  color: #f97316;
  margin-right: 0.15rem;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-family: inherit;
  font-size: 0.95rem;
}

.lead-field input:focus-visible,
.lead-field textarea:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
  border-color: #e11d48;
}

.lead-field input[aria-invalid="true"] {
  border-color: rgba(249, 115, 22, 0.95);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25);
}

.lead-extra {
  border: 1px dashed rgba(230, 57, 70, 0.28);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.lead-extra summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.lead-extra[open] summary {
  margin-bottom: 0.55rem;
}

.lead-form-note {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

.lead-submit-btn {
  width: 100%;
  justify-content: center;
}

.lead-status {
  min-height: 1.2em;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.lead-status--ok {
  color: #4ade80;
}

.lead-status--error {
  color: #f97316;
}

@media (max-width: 480px) {
  .lead-modal-dialog {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.2); }
  50% { box-shadow: 0 0 32px rgba(230, 57, 70, 0.35); }
}

@keyframes lineExpand {
  from { transform: translateX(50%) scaleX(0); opacity: 0; }
  to { transform: translateX(50%) scaleX(1); opacity: 1; }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes navUnderline {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.15); }
  50% { box-shadow: 0 0 32px rgba(230, 57, 70, 0.25); }
}

@keyframes titleUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.in-view.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cert-list li.animate-on-scroll.in-view { transition-delay: 0.05s; }
.cert-list li.animate-on-scroll:nth-child(2).in-view { transition-delay: 0.1s; }
.cert-list li.animate-on-scroll:nth-child(3).in-view { transition-delay: 0.15s; }
.cert-list li.animate-on-scroll:nth-child(4).in-view { transition-delay: 0.2s; }
.cert-list li.animate-on-scroll:nth-child(5).in-view { transition-delay: 0.25s; }

.goals-list li.animate-on-scroll.in-view { transition-delay: 0.06s; }
.goals-list li.animate-on-scroll:nth-child(2).in-view { transition-delay: 0.12s; }
.goals-list li.animate-on-scroll:nth-child(3).in-view { transition-delay: 0.18s; }
.goals-list li.animate-on-scroll:nth-child(4).in-view { transition-delay: 0.24s; }
.goals-list li.animate-on-scroll:nth-child(5).in-view { transition-delay: 0.3s; }
.goals-list li.animate-on-scroll:nth-child(6).in-view { transition-delay: 0.36s; }

.benefit-card.animate-on-scroll:nth-child(1).in-view { transition-delay: 0s; }
.benefit-card.animate-on-scroll:nth-child(2).in-view { transition-delay: 0.08s; }
.benefit-card.animate-on-scroll:nth-child(3).in-view { transition-delay: 0.16s; }
.benefit-card.animate-on-scroll:nth-child(4).in-view { transition-delay: 0.24s; }

.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Full-page background - scrolls with page content */
.page-wrap {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: #0d1220 url('bg-full.png') no-repeat center top;
  background-size: cover;
  background-attachment: scroll;
  transition: opacity 0.3s ease;
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 12, 18, 0.3) 50%, rgba(10, 12, 18, 0.5) 100%);
  pointer-events: none;
}

/* Main content */
.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

/* Navigation – sticky so "احجز مقعدك" stays visible */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 57, 70, 0.26);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  animation: fadeIn 0.5s ease-out;
}

.main-content {
  padding-top: 5rem;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.nav-logo {
  display: block;
  margin-left: 0;
  line-height: 0;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: #e63946;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active::after {
  transform-origin: right;
}

.nav-link:hover {
  color: #e63946;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  border-bottom: 2px solid #e63946;
}

.nav-link.active::after {
  display: none;
}

.nav-cta {
  color: #e63946;
  font-weight: 700;
}

@media (max-width: 640px) {
  .nav {
    padding: 0.75rem 1rem;
  }
  .nav-inner {
    gap: 0.75rem;
  }
  .nav-logo-img {
    height: 1.5rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
}

/* Sections – consistent vertical rhythm */
.section {
  width: 100%;
  margin: 0;
  position: relative;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
  will-change: transform, opacity, filter;
}

.section:first-of-type {
  padding-top: 0;
}

.section-title {
  font-size: clamp(1.45rem, 2.7vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin: 1.2rem 0 0.95rem;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  width: 100%;
  will-change: transform, opacity;
  text-shadow: 0 0 0 rgba(230, 57, 70, 0);
  animation: titleGlow 4.5s ease-in-out infinite;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(230, 57, 70, 0.08), transparent 44%);
  opacity: 0;
  transition: opacity 0.55s ease;
}

.section.in-focus::before {
  opacity: 1;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  width: min(360px, 70%);
  height: 1px;
  transform: translateX(50%);
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.2), transparent);
  pointer-events: none;
}

.section-title.animate-on-scroll.in-view::after {
  animation: lineExpand 0.6s ease-out forwards;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 50%;
  transform: translateX(50%) scaleX(0);
  width: 60px;
  height: 3px;
  background: #e63946;
  border-radius: 2px;
  opacity: 0;
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(230, 57, 70, 0); }
  50% { text-shadow: 0 0 16px rgba(230, 57, 70, 0.22); }
}

/* Hero – no full viewport to avoid gap under "سجل الان !" */
.section-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.section-hero::after {
  right: auto;
  left: 15%;
  top: 22%;
  border-right: 3px solid #e63946;
  border-left: none;
  animation-delay: 1.2s;
}

.section-hero .container::before {
  content: '';
  position: absolute;
  bottom: 12%;
  left: 10%;
  width: 8px;
  height: 8px;
  background: rgba(230, 57, 70, 0.6);
  border-radius: 50%;
  animation: float 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.section-hero .container {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 1rem;
}

.hero-outcome {
  font-size: 1.12rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.92);
  margin: 1rem auto 0.5rem;
  max-width: 40ch;
  text-align: center;
}

.hero-outcome-line1,
.hero-outcome-line2 {
  display: block;
  will-change: transform, opacity, filter;
}

.hero-outcome-line2 {
  margin-top: 0.15em;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  text-align: right;
}

.hero-benefits li {
  position: relative;
  padding-right: 1.25rem;
  margin: 0.25rem 0;
  color: #fff;
  font-weight: 600;
}

.hero-benefits li::before {
  content: '✔';
  position: absolute;
  right: 0;
  color: #e63946;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 auto 0.25rem;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
  text-align: center;
}

.hero-line {
  display: block;
  text-align: center;
}

.hero-line:not(:last-child) {
  margin-bottom: 0.08em;
}

.hero-title .highlight {
  color: #ffffff;
  position: relative;
  /* Underline line only - customize position below */
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  height: 8px;
  background: #AC213C;
  border-radius: 2px;
  /* Move the line: adjust bottom (e.g. -8px lower, 4px higher) */
  bottom: 10px;
  z-index: -2;
  /* Optional: extend line past text (negative = longer, or set left/right) */
  /* left: -0.2em; right: -0.2em; */
}

.hero-sub {
  font-size: 1.15rem;
  margin: 0.4rem 0 0;
  color: #fff;
  opacity: 0.95;
}

.hero-outline {
  font-size: clamp(3.5rem, 14vw, 7rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  margin: 0.15rem 0 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-cert {
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  color: #fff;
}

.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0.75rem auto 1rem;
  display: block;
  text-align: center;
  will-change: transform;
}

.hero-people-wrap {
  position: relative;
  z-index: 2;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-people {
  display: block;
  max-width: min(420px, 85vw);
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #961E2A;
  color: #fff;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(150, 30, 42, 0.45);
  font-weight: 800;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(150, 30, 42, 0.58);
}

.btn:hover {
  opacity: 0.98;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

/* Typewriter box – on the hero image, 4 rotating texts */
.hero-typewriter-box {
  position: absolute;
  bottom: -30px;
  left:-20px;
  transform: translate(50%, 0);
  min-width: 366px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: #961E2A;
  border: 2px solid rgba(230, 57, 70, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-typewriter-box .typewriter-text {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.hero-typewriter-box.typewriter-text-size-26 .typewriter-text {
  font-size: 24px;
}

.hero-typewriter-box .typewriter-cursor {
  color: #ffffff;
}

.typewriter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  direction: rtl;
}

.typewriter-text {
  display: inline-block;
  min-height: 1.4em;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.typewriter-cursor {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
}

@keyframes blink {
  50% { opacity: 0; }
}

.btn-secondary {
  background: transparent;
  color: #e63946;
  border: 2px solid #e63946;
}

.btn-secondary:hover {
  background: rgba(230, 57, 70, 0.12);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
}

.btn-outline {
  background: transparent;
  color: #e63946;
  border: 2px solid #e63946;
}

.btn-outline:hover {
  background: rgba(230, 57, 70, 0.12);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.2);
}

/* Hero CTA – text-only when using btn-secondary */
.section-hero .btn-secondary {
  position: relative;
  top: 15px;
  display: inline-flex;
  align-items: center;
  gap: var(--hero-cta-icon-gap, 0.5rem);
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  margin-top: 0.25rem;
}

/* Hero CTA text – two stacked 3D sections */
.hero-cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  line-height: 1;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-cta-line1,
.hero-cta-line2 {
  display: block;
  padding: 0.52rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(230, 57, 70, 0.42);
  background: linear-gradient(160deg, rgba(170, 30, 44, 0.9), rgba(132, 21, 33, 0.84));
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.34),
    0 3px 0 rgba(90, 12, 20, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform-origin: center center;
  animation: heroCtaLayerFloat 2.4s ease-in-out infinite;
}

.hero-cta-line1 {
  font-size: clamp(1.08rem, 2.5vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0.012em;
  transform: translateZ(18px);
}

.hero-cta-line2 {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 700;
  color: #ffe9ec;
  transform: translateZ(10px);
  animation-delay: 0.15s;
}

.section-hero .btn-secondary:hover .hero-cta-text {
  transform: translateY(-2px);
}

.section-hero .btn-secondary:hover .hero-cta-line1,
.section-hero .btn-secondary:hover .hero-cta-line2 {
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.38),
    0 4px 0 rgba(90, 12, 20, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@keyframes heroCtaLayerFloat {
  0%, 100% { transform: translateY(0) translateZ(10px) rotateX(0deg); }
  50% { transform: translateY(-3px) translateZ(13px) rotateX(1.2deg); }
}

/* Hero CTA icon – position customization (set on .section-hero or .hero-cta) */
.section-hero {
  --hero-cta-icon-height: 1.1em;
  --hero-cta-icon-width: auto;
  --hero-cta-icon-gap: 0.5rem;
  --hero-cta-icon-opacity: 1;
  --hero-cta-icon-shadow-color: rgba(180, 25, 35, 0.8);
  --hero-cta-icon-shadow-soft: rgba(0, 0, 0, 0.25);
  /* Position: move icon (e.g. 4px, -8px) */
  --hero-cta-icon-offset-x: 0;
  --hero-cta-icon-offset-y: 0;
  /* Side: -1 = right of text (RTL), 1 = left of text (RTL) */
  --hero-cta-icon-order: -1;
  /* Vertical align: center | flex-start | flex-end */
  --hero-cta-icon-align: center;
  /* Optional: position icon absolutely for pixel-perfect placement (e.g. 0.1em 0 -0.2em 0) */
  --hero-cta-icon-position: relative;
  --hero-cta-icon-top: 0;
  --hero-cta-icon-right: auto;
  --hero-cta-icon-bottom: auto;
  --hero-cta-icon-left: auto;
}

.section-hero .hero-cta-icon {
  position: var(--hero-cta-icon-position, relative);
  top: var(--hero-cta-icon-top);
  right: var(--hero-cta-icon-right);
  bottom: var(--hero-cta-icon-bottom);
  left: var(--hero-cta-icon-left);
  height: var(--hero-cta-icon-height);
  width: var(--hero-cta-icon-width);
  display: block;
  opacity: var(--hero-cta-icon-opacity);
  object-fit: contain;
  flex-shrink: 0;
  order: var(--hero-cta-icon-order);
  align-self: var(--hero-cta-icon-align);
  transform: translate(var(--hero-cta-icon-offset-x, 0), var(--hero-cta-icon-offset-y, 0));
  filter: drop-shadow(1px 1px 0 var(--hero-cta-icon-shadow-color))
    drop-shadow(0 1px 2px var(--hero-cta-icon-shadow-soft));
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.section-hero .btn-secondary:hover .hero-cta-icon {
  transform: translate(
    calc(var(--hero-cta-icon-offset-x, 0) + 0.15em),
    var(--hero-cta-icon-offset-y, 0)
  );
}

.section-hero .btn-secondary::before {
  display: none;
}

.section-hero .btn-secondary:hover {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  opacity: 1;
  transform: translateY(0);
  text-shadow: none;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  min-width: 220px;
  text-align: center;
}

/* Mid & bottom CTA buttons: fit text better and support two lines */
.cert-cta-wrap .btn-large,
.cta-block .btn-large {
  min-width: 0;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.cert-cta-wrap .btn-primary.btn-large,
.cta-block .btn-primary.btn-large {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.btn-primary.btn-large .btn-line1,
.btn-primary.btn-large .btn-line2 {
  display: block;
}

.btn-primary.btn-large .btn-line2 {
  font-size: 0.9em;
  opacity: 0.9;
}

/* Stronger focus state for accessibility and clarity */
.btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Make main CTAs very clear on mobile */
@media (max-width: 640px) {
  .btn-primary.btn-large {
    width: 100%;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    font-size: 1.1rem;
  }
}

.hero-support {
  position: relative;
  top: 20px;
  font-size: 1.2rem;
  margin: 0.75rem 0 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.hero-trust-chips {
  margin: 0.45rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.33rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffeef0;
  background: rgba(158, 28, 41, 0.22);
  border: 1px solid rgba(230, 57, 70, 0.44);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
  will-change: transform, opacity;
}


.mobile-quick-actions {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  width: min(540px, calc(100% - 1.2rem));
  border-radius: 16px 16px 0 0;
  z-index: 1150;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem calc(0.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.3), rgba(10, 12, 18, 0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(230, 57, 70, 0.22);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
}

.mobile-quick-note {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 163, 171, 0.65);
  background: rgba(150, 30, 42, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: visible;
  animation: none;
}

.mobile-quick-note .en-num {
  color: #fff7f8;
  font-weight: 900;
  text-shadow: none;
}

.mobile-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.72rem 0.6rem;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  border: 1px solid rgba(230, 57, 70, 0.4);
  background: rgba(150, 30, 42, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.mobile-quick-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.mobile-quick-action:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.mobile-quick-action-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-quick-action-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-quick-action--wa {
  background: rgba(8, 111, 73, 0.9);
  border-color: rgba(22, 163, 74, 0.6);
}

/* Certificate section – minimal gap after hero */
.section-certificate {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.section-certificate .container {
  padding-top: 1rem;
}



.section-certificate .section-title:first-child {
  margin-top: 0;
}

.section-certificate .cert-block {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-certificate .cert-block > .diploma-img,
.section-certificate .cert-block > img.diploma-img {
  align-self: center;
  justify-self: center;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .section-certificate .cert-block {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }
}

.diploma-img {
  width: min(100%, 360px);
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4 / 5;
  transition: transform 0.35s ease;
}

.cert-block:hover .diploma-img {
  transform: translateY(-4px) scale(1.03);
}

@media (min-width: 768px) {
  .diploma-img {
    margin-inline: auto;
    width: min(100%, 420px);
    min-height: 0;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .section-certificate .cert-block {
    grid-template-columns: 320px 1fr;
  }
  .diploma-img {
    width: min(100%, 460px);
    max-height: none;
  }
}

.goals-icon-wrap {
  /* Edit icon position here (use px values) */
  --goals-icon-top: 45px;
  --goals-icon-left: 40px;
  --goals-icon-right: auto;
  --goals-icon-bottom: auto;
  position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 580px);
  min-height: auto;
  line-height: 0;
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  margin: 0 auto 0.75rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.goals-icon {
  display: block;
  width: min(100%, 430px);
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.goals-icon-wrap .goals-icon {
  margin: 0;
  position: relative;
  top: var(--goals-icon-top);
  left: var(--goals-icon-left);
  right: var(--goals-icon-right);
  bottom: var(--goals-icon-bottom);
  animation: float 4.8s ease-in-out infinite, goalsIconGlow 5.2s ease-in-out infinite;
  transform: translateZ(16px);
}

.goals-icon-wrap:hover .goals-icon {
  transform: translateZ(18px) scale(1.025);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
}

@keyframes goalsIconGlow {
  0%, 100% { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34)); }
  50% { filter: drop-shadow(0 16px 30px rgba(230, 57, 70, 0.22)); }
}

@media (min-width: 768px) {
  .goals-icon-wrap {
    min-height: auto;
    margin: 0 0 0 0;
  }
  .goals-icon {
    width: min(100%, 500px);
    min-height: 0;
    max-height: none;
  }
}

@media (min-width: 1024px) {
  .goals-icon {
    width: min(100%, 560px);
    max-height: none;
  }
}

.shrm-badge {
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  object-position: right center;
  margin: 0 0 0.75rem 0;
  transition: opacity 0.2s ease;
}

.shrm-badge:hover {
  opacity: 0.9;
}

.shrm-reminder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.75rem auto 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 15, 22, 0.62);
  border: 1px solid rgba(230, 57, 70, 0.32);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.shrm-reminder-logo {
  width: auto;
  height: 30px;
  max-width: 96px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.shrm-reminder-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.shrm-reminder-text strong {
  color: #ffffff;
}

.shrm-reminder--hero {
  margin-top: 0.35rem;
}

.shrm-reminder--facts {
  display: flex;
  width: fit-content;
  margin-bottom: 1rem;
}

.shrm-reminder--cta {
  margin-top: 0.5rem;
  margin-bottom: 1.05rem;
}

.shrm-reminder--footer {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .shrm-reminder {
    width: 100%;
    border-radius: 14px;
    padding: 0.55rem 0.65rem;
    gap: 0.55rem;
  }

  .shrm-reminder-logo {
    height: 26px;
    max-width: 84px;
  }

  .shrm-reminder-text {
    font-size: 0.84rem;
  }
}

.page-summary {
  font-size: 1.02rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-right: 4px solid var(--brand-red);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-soft);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.page-summary strong { color: #fff; }

.page-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}

.page-summary-list li {
  position: relative;
  padding-right: 1.1rem;
  will-change: transform, opacity;
  filter: none !important;
}

.cert-desc,
.success-story-text,
.faq-answer,
.testimonial-quote,
.funding-note,
.cta-trust,
.institute-desc,
.footer-text {
  will-change: transform, opacity, filter;
}

.page-summary-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.68rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e63946;
}

/* English one-liner for search & AI discoverability (e.g. "SHRM AI in HR Saudi Arabia") */
.page-summary-en {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.25rem;
}

.cert-sales-lead {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e63946;
  margin: 0 0 0.5rem;
  text-align: center;
}

.cert-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin: -0.5rem 0 1rem;
  text-align: center;
}

.success-story-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 8px;
  border-right: 3px solid #e63946;
}

.success-story-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e63946;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.success-story-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.cert-block-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-meta {
  margin: 1.25rem 0;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
}

.cert-meta .cert-list { margin: 0 0 0.75rem; }
.cert-meta .cert-scarcity { margin: 0.5rem 0; }
.cert-meta .cert-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 0;
}

.cert-angle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e63946;
  margin: 0 0 0.5rem;
}

.cert-story {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 8px;
  border-right: 3px solid #e63946;
}

.cert-story p { margin: 0; color: rgba(255, 255, 255, 0.95); font-size: 0.95rem; line-height: 1.6; }

.cert-scarcity {
  font-size: 1rem;
  color: #e63946;
  font-weight: 600;
  margin: 0.75rem 0;
  line-height: 1.5;
}

.cert-bonus {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

.cert-bonus-title { font-weight: 700; color: #fff; margin: 0 0 0.5rem; font-size: 1rem; }
.cert-bonus ul { margin: 0; padding: 0 0 0 1.25rem; color: rgba(255, 255, 255, 0.9); }
.cert-bonus li { margin: 0.25rem 0; }

.cert-guarantee {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0.75rem 0;
  line-height: 1.5;
}

.cert-exclusive {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e63946;
  margin: 0 0 0.35rem;
}

.cert-global {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem;
}

.cert-main-title {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  margin: 0 0 1.25rem;
}

.cert-title-ar {
  font-weight: 700;
  color: #fff;
}

.shrm-org {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}

.cert-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem;
}

.cert-program-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cert-details-intro {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(230, 57, 70, 0.95);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.cert-list li {
  padding: 0.4rem 0;
  padding-right: 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.cert-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: #e63946;
  border-radius: 50%;
  animation: subtlePulse 2.5s ease-in-out infinite;
}

.cert-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 8px;
  border-right: 3px solid #e63946;
}

.cert-register-intro {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}

.cert-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cert-pdf-link {
  margin-bottom: 0;
}

/* Goals list - red arrow bullet */
.section-goals {
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
}

.section-goals .container {
  padding-bottom: 0;
}


.goals-list {
  list-style: none;
  padding: 1.25rem 1rem;
  margin: 0 0 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(230, 57, 70, 0.15);
  border-right: 3px solid rgba(230, 57, 70, 0.4);
}

.goals-list li {
  padding: 0.6rem 0;
  padding-right: 2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-size: 1rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.goals-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
  background: url('exchange.png') no-repeat center;
  background-size: contain;
  transition: transform 0.25s ease;
}

.goals-list li:hover {
  transform: translateX(-4px);
  color: #fff;
}

.goals-list li:hover::before {
  transform: scale(1.08);
}

/* Certificate preview card */
.certificate-preview {
  margin: 1rem 0 1.5rem;
  display: flex;
  justify-content: center;
}

.certificate-card {
  position: relative;
  max-width: 520px;
  transition: transform 0.25s ease;
}

.certificate-card:hover {
  transform: translateY(-4px);
}

.certificate-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.certificate-card::before,
.certificate-card::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #e63946;
  z-index: 1;
  pointer-events: none;
}

.certificate-card::before {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
}

.certificate-card::after {
  bottom: 8px;
  left: 8px;
  border-right: none;
  border-top: none;
}

/* Benefits */
.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.benefit-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(230, 57, 70, 0.18);
  transform-style: preserve-3d;
  perspective: 900px;
  backface-visibility: hidden;
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transition: opacity 0.25s ease, transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.benefit-card:hover {
  opacity: 1;
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.32);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(230, 57, 70, 0.08) inset;
}

.benefit-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -120%;
  width: 60%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.65s ease;
  pointer-events: none;
}

.benefit-card:hover::after {
  left: 140%;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  object-fit: contain;
  margin: 0;
  flex-shrink: 0;
  transform: translateZ(24px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
}

.benefit-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.98);
  font-weight: 500;
  text-align: right;
  letter-spacing: 0.01em;
}

.benefit-line {
  display: block;
}

.benefit-badge {
  display: inline-block;
  height: 1.5em;
  width: auto;
  vertical-align: middle;
  margin-right: 0.25em;
  margin-top: 0.2em;
}

.benefits-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(230, 57, 70, 0.95);
  text-align: right;
}

.social-proof {
  text-align: center;
  margin: 0 0 1.5rem;
}
.social-proof-intro {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}
.social-proof-nums {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cta-block {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(230, 57, 70, 0.28);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cta-block:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.38);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(230, 57, 70, 0.09) inset;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-quick-note {
    animation: none !important;
    transform: none !important;
  }

  .goals-icon {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35)) !important;
  }

  .page-loader,
  .page-loader-logo,
  .page-loader-spinner {
    animation: none !important;
    transition: none !important;
  }

  .benefit-card,
  .cta-block,
  .goals-icon-wrap {
    transform: none !important;
    transition: none !important;
  }
}

.cta-headline {
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 1rem;
}

.cta-block .btn-primary {
  margin-bottom: 0;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 6px 28px rgba(150, 30, 42, 0.5);
}

.cta-block .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(150, 30, 42, 0.6);
}

.key-facts-section { margin: 2rem 0; }
.key-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  text-align: right;
}
.key-facts-list li {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-right: 3px solid rgba(230, 57, 70, 0.6);
  color: rgba(255, 255, 255, 0.95);
}

.testimonials-section,
.curriculum-section,
.funding-eligibility-section {
  margin: 2rem 0;
}

.testimonials-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 14px;
  padding: 1.05rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 0.2rem;
  right: 0.55rem;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255, 201, 208, 0.25);
  font-weight: 800;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.testimonial-quote {
  margin: 0 0 0.65rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.testimonial-meta {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 212, 217, 0.95);
  font-weight: 700;
}

.curriculum-timeline {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .curriculum-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

.curriculum-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-right: 4px solid #e63946;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.curriculum-item:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.34);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.curriculum-week {
  margin: 0 0 0.35rem;
  color: #ff8f98;
  font-size: 0.84rem;
  font-weight: 800;
}

.curriculum-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #fff;
}

.curriculum-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  font-size: 0.95rem;
}

.funding-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .funding-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.funding-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(230, 57, 70, 0.22);
  border-radius: 14px;
  padding: 1.05rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.funding-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.36);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.funding-card-title {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1.02rem;
}

.funding-list,
.funding-steps {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.funding-list li,
.funding-steps li {
  margin-bottom: 0.35rem;
}

.funding-note {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 227, 230, 0.95);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.1);
  border-right: 3px solid rgba(230, 57, 70, 0.65);
}

.faq-section { margin: 2rem 0; }
.faq-list {
  margin: 0;
  padding: 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: right;
}
.faq-list dt {
  font-weight: 700;
  color: #e63946;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.faq-list dt:first-child { margin-top: 0; }
.faq-list dd {
  margin: 0 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* FAQ accordion – collapsible per question */
.faq-accordion { max-width: 40rem; margin: 0 auto; text-align: right; }
.faq-item {
  margin: 0.5rem 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-radius: 8px;
  border-right: 3px solid rgba(230, 57, 70, 0.56);
  border: 1px solid rgba(230, 57, 70, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.faq-question {
  cursor: pointer;
  font-weight: 700;
  color: #e63946;
  padding: 0.75rem 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-right: 0.5rem;
  transform: rotate(-45deg);
  transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { transform: rotate(135deg); }
.faq-answer {
  margin: 0;
  padding: 0 1rem 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* SEO full content – hidden from view, kept in DOM for crawlers (no width impact) */
.seo-full-content {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.seo-full-content-summary {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.seo-full-content-inner {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}
.seo-full-content-inner h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: rgba(255, 255, 255, 0.95);
}
.seo-full-content-inner h3:first-child { margin-top: 0; }
.seo-full-content-inner p,
.seo-full-content-inner ul,
.seo-full-content-inner ol,
.seo-full-content-inner dl { margin: 0.5rem 0; }
.seo-full-content-inner dt { font-weight: 700; color: #e63946; margin-top: 0.75rem; }
.seo-full-content-inner dd { margin: 0 0 0 1rem; }
.seo-full-content-inner a { color: #e63946; text-decoration: underline; }

.cta-trust {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.75rem;
}

.section-cta {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.section-cta .section-title {
  margin-top: 0.75rem;
}

/* Reduce gap under "سجل الان" button before "عن مقدم الدورة" */
.section-cta .btn-large + .section-title {
  margin-top: 0.75rem;
}

.section-cta .btn-primary.btn-large {
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  body { padding-bottom: 4.8rem; }

  .mobile-quick-actions {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
  }

  .container {
    padding: 2rem 1rem;
  }
  .section-title {
    margin-top: 1.1rem;
    margin-bottom: 0.75rem;
  }
  .page-summary {
    padding: 0.9rem 1rem;
    font-size: 0.96rem;
    line-height: 1.72;
  }
  .benefit-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
  .benefits-grid { gap: 2rem; }
  .benefit-card { gap: 1.25rem; }
  .benefit-text { font-size: 1rem; }
  .mobile-quick-actions { display: grid; }

  /* Mobile-only typewriter box */
  .hero-typewriter-box {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    min-width: min(92vw, 320px);
    min-height: 54px;
    padding: 0.45rem 0.75rem;
    border-radius: 9px;
  }

  .hero-typewriter-box .typewriter-text {
    font-size: 20px;
  }

  .hero-typewriter-box.typewriter-text-size-26 .typewriter-text {
    font-size: 18px;
  }

  /* Mobile centering fix for goals icon inside its box */
  .goals-icon-wrap {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .goals-icon-wrap .goals-icon {
    position: relative;
    top: var(--goals-icon-top);
    left: var(--goals-icon-left);
    right: var(--goals-icon-right);
    bottom: var(--goals-icon-bottom);
    margin-left: auto;
    margin-right: auto;
    transform: translateZ(16px);
    transform-origin: center center;
  }
}

.institute-logo {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.institute-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.institute-name-accent {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.95;
}

.institute-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e63946;
  margin: 0.35rem 0 0;
  letter-spacing: 0.01em;
}

.institute-exclusivity {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(230, 57, 70, 0.2);
}

.institute-exclusivity strong {
  color: #e63946;
  font-weight: 700;
}

.about-provider-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(230, 57, 70, 0.24);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin-top: 0.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-provider-card:hover {
  border-color: rgba(230, 57, 70, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.institute-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 1rem 0 0;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(10, 12, 18, 0.9) 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.5), transparent) 1;
  text-align: center;
  will-change: transform, opacity;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.site-footer:hover .footer-text {
  color: rgba(255, 255, 255, 0.88);
}

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

  .section-hero {
    padding-top: 2rem;
  }

  .section-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-visual .hero-people {
    margin-inline: auto;
  }

  .hero-outline {
    margin: 0.5rem 0 1rem;
  }
}
