/* =========================
   1) ROOT & GLOBAL RESETS
   ========================= */
:root {
  --primary: #8B348D;
  --primary-ink: #ffffff;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --ring: rgba(139, 52, 141, .35);
}

html,
body {
  height: 100%;
}

body.alq-landing-light {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.center {
  margin-inline: auto;
  text-align: center;
  display: block;
}

.nowrap {
  white-space: nowrap;
}

.kbd-focus *:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================
   2) TOPBAR (STICKY HEADER)
   ========================= */
.alq-root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar-text-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* adjust this to what looks good with your logo */
  min-width: 360px;
  /* to keep it nice on wide screens */
  max-width: 460px;
  text-align: center;
}

.topbar-text-clarityenglish,
.topbar-text-since {
  width: 100%;
}

/* keep your original sizes */
.topbar-text-clarityenglish {
  font-size: 2em;
}

.topbar-text-since {
  font-size: 1em;
}

.alq-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #0a1b40 0%, #92328c 50%, #0a1b40 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: relative;
  overflow: hidden;
}

.alq-topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(146, 50, 140, .3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(10, 27, 64, .3) 0%, transparent 50%),
    linear-gradient(45deg, rgba(255, 255, 255, .1) 0%, transparent 50%, rgba(255, 255, 255, .05) 100%);
  pointer-events: none;
}

.alq-topbar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(146, 50, 140, .4) 25%, rgba(10, 27, 64, .4) 50%, rgba(146, 50, 140, .4) 75%, transparent 100%);
  border-radius: 0 0 50% 50%;
  animation: waveFlow 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes waveFlow {
  0%, 100% {
    transform: scaleX(1) translateY(0);
    opacity: .6;
  }
  50% {
    transform: scaleX(1.1) translateY(-2px);
    opacity: .8;
  }
}

.topbar-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex-wrap: wrap;
  padding: 8px 12px;
  position: relative;
  z-index: 1;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.alq-topbar--compact {
  min-height: 36px;
}

.alq-topbar--compact .topbar-inner {
  min-height: 36px;
  padding: 6px 12px;
  gap: 8px;
}

.alq-topbar--compact .topbar-logo {
  height: 80px;
  transition: height .3s cubic-bezier(.4, 0, .2, 1);
}

.alq-topbar--compact .badge {
  font-size: .8rem;
  padding: .25rem .5rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.alq-topbar--compact .topbar-text {
  font-size: .85rem;
  transition: font-size .3s cubic-bezier(.4, 0, .2, 1);
}

.alq-topbar--compact .topbar-cta {
  font-size: .85rem;
  padding: .25rem .6rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.alq-topbar--compact::after {
  height: 6px;
  border-radius: 0 0 40% 40%;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.topbar-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

.badge {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  color: #92328c;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
  box-shadow:
    0 4px 12px -4px rgba(0, 0, 0, .2),
    0 2px 6px -2px rgba(146, 50, 140, .3),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .6);
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(146, 50, 140, .1), transparent);
  transition: left .4s ease;
}

.badge:hover::before {
  left: 100%;
}

.topbar-text {
  font-size: 1.5em;
  color: #fff;
  font-weight: 700;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .3),
    0 1px 2px rgba(0, 0, 0, .5);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
}

.topbar-cta {
  margin-inline-start: 8px;
  border: 1px solid rgba(255, 255, 255, .4);
  padding: .35rem .8rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 4px 12px -4px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  position: relative;
  overflow: hidden;
}

.topbar-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .4s ease;
}

.topbar-cta:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.topbar-cta:hover::before {
  left: 100%;
}

/* Special topbar text for "ClarityEnglish" */
.topbar-text-clarityenglish {
  font-size: 2.5em;
  line-height: 1;
  color: #fff;
}

.topbar-text-clarityenglish strong {
  font-weight: 900;
}

.topbar-text-clarityenglish .ce-light {
  font-weight: 500;
}

.topbar-text-since {
  font-size: 1.25em;
  line-height: 1;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

/* =========================
   3) HERO / TOP SECTION
   ========================= */
.alq-top {
  position: relative; /* (first time) */
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1400px 800px at 75% -15%, rgba(139, 52, 141, .25), transparent 65%),
    radial-gradient(800px 400px at 25% 20%, rgba(139, 52, 141, .12), transparent 50%),
    linear-gradient(135deg, #fff 0%, #f8fafc 30%, #fff 70%, #f1f5f9 100%);
  min-height: 78vh;
}

.alq-top .top-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .75;
  filter: saturate(1.1) contrast(1.08) brightness(.85) hue-rotate(5deg);
  pointer-events: none;
}

.alq-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .45) 25%, rgba(0, 0, 0, .25) 50%, transparent 75%),
    linear-gradient(to top, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 30%, transparent 60%),
    linear-gradient(135deg, rgba(139, 52, 141, .08) 0%, transparent 40%);
}

.alq-top > section {
  position: relative;
}

.alq-wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(16px, 3vw, 28px);
}

.alq-hero {
  padding: 88px 0 52px;
}

.alq-hero .alq-wrap > * {
  position: relative;
  z-index: 1;
}

.alq-hero__title {
  font-size: 4em;
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: .2px;
  color: #fff;
  text-shadow:
    0 3px 6px rgba(0, 0, 0, .8),
    0 6px 24px rgba(0, 0, 0, .6),
    0 1px 2px rgba(0, 0, 0, .9);
  line-height: 1.1;
}

.alq-hero__subtitle {
  font-size: 1.5em;
  margin: 0 0 22px;
  line-height: 1.7;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, .8),
    0 4px 16px rgba(0, 0, 0, .6),
    0 1px 2px rgba(0, 0, 0, .9);
  font-weight: 600;
  opacity: .95;
}

/* =========================
   4) HERO BENEFITS (PILLS)
   ========================= */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  background: linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 100%);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: saturate(150%) blur(4px);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #0f172a;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  box-shadow:
    0 4px 16px -8px rgba(0, 0, 0, .15),
    0 2px 8px -4px rgba(0, 0, 0, .1),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}

.hero-benefits li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 52, 141, .1), transparent);
  transition: left .4s ease;
}

.hero-benefits li:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .95) 100%);
  box-shadow:
    0 6px 20px -8px rgba(0, 0, 0, .2),
    0 4px 12px -6px rgba(0, 0, 0, .15),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

.hero-benefits li:hover::before {
  left: 100%;
}

/* =========================
   5) CTA BUTTONS
   ========================= */
.alq-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.alq-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  font-size: clamp(.9rem, 2vw, 1rem);
  min-height: 52px;
}

.alq-btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.alq-btn--whatsapp {
  background: linear-gradient(135deg, var(--primary) 0%, #7a2d7a 100%);
  color: var(--primary-ink);
  box-shadow:
    0 8px 32px -12px rgba(139, 52, 141, .4),
    0 4px 16px -8px rgba(139, 52, 141, .2),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

.alq-btn--whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .6s ease;
}

.alq-btn--whatsapp:hover::before {
  left: 100%;
}

.alq-btn--ghost {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--text);
  backdrop-filter: blur(8px) saturate(150%);
  box-shadow:
    0 8px 32px -12px rgba(0, 0, 0, .15),
    0 4px 16px -8px rgba(0, 0, 0, .1),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}

.alq-btn--whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 40px -12px rgba(139, 52, 141, .5),
    0 8px 24px -8px rgba(139, 52, 141, .3),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

.alq-btn--ghost:hover {
  transform: translateY(-2px) scale(1.02);
  background: #fff;
  box-shadow:
    0 12px 40px -12px rgba(0, 0, 0, .2),
    0 8px 24px -8px rgba(0, 0, 0, .15),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}

.wicon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff'%3E%3Cpath d='M16.003 3C9.373 3 4 8.373 4 15.003c0 2.107.553 4.085 1.517 5.8L4 29l8.39-1.47c1.66.912 3.56 1.43 5.61 1.43C24.633 29 30 23.627 30 16.997 30 10.373 24.633 5 18.003 5h-2zM11.2 10.9c.25-.55.55-.56 1.02-.38.45.17 1.07.41 1.24.96.16.54.1 1.69-.4 2.51-.5.82 1.48 3.08 2.94 3.86 1.46.78 2.3.66 2.84.16.54-.5 1.02-.74 1.61-.49.59.25 1.87.88 1.87.88.52.21.86.4.88.84.02.44-.25 1.54-1.08 2.05-.83.51-2.87.84-5.16-.2-2.29-1.04-5.08-3.66-5.9-5.03-.82-1.37-1.16-3.05-1.06-3.56.1-.51.2-.99.2-.99z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* =========================
   6) CONTACT CARDS (PINNED)
   ========================= */
.alq-contacts {
  position: absolute;
  bottom: 18px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  pointer-events: auto;
  z-index: 5;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, .7);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .4);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
  align-items: center;
  text-align: center;
  text-decoration: none;      
  color: inherit;              
}

/* أيقونة Google Maps */
.location-icon {
  background: #ffffff;
  box-shadow: 0 4px 16px -8px rgba(5, 150, 105, .4);
}

.location-icon::before {
  content: '';
  width: 22px;
  height: 22px;
  background: url('https://alqalmouninstitute.com/wp-content/uploads/2025/11/google-maps-icon-free-png.png')
              center / contain no-repeat;
}


.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(139, 52, 141, .6));
  transform: scaleX(0);
  transition: transform .3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px -8px rgba(139, 52, 141, .15);
}

.contact-item:hover::before {
  transform: scaleX(1);
}

.contact-item .label {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.contact-item .value {
  font-weight: 800;
  color: #0f172a;
  font-size: 16px;
  text-decoration: none;
  transition: all .2s ease;
  line-height: 1.3;
}

.contact-item .value:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all .3s ease;
  position: relative;
}

.phone-icon {
  /* background: linear-gradient(135deg, var(--primary) 0%, #7a2d7a 100%);
  box-shadow: 0 4px 16px -8px rgba(139, 52, 141, .4); */
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px -8px rgba(5, 150, 105, .4);
}

.phone-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.location-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px -8px rgba(5, 150, 105, .4);
}

.location-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-item:hover .phone-icon {
  box-shadow: 0 6px 20px -8px rgba(139, 52, 141, .6);
}

.contact-item:hover .location-icon {
  box-shadow: 0 6px 20px -8px rgba(5, 150, 105, .6);
}

/* overwrite / adjust to SMALL CARDS at bottom of hero (LAST WINS) */
.alq-top {
  position: relative; /* (second time) keep this – last one wins but same value */
}

.alq-contacts {
  position: absolute;
  bottom: 18px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  pointer-events: auto;
  z-index: 5;
}

.alq-contacts .contact-item {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  padding: 6px 10px;
  gap: 3px;
  min-width: 140px;
  text-align: center;
}

.alq-contacts .contact-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
}

.alq-contacts .label {
  font-size: 12px;
}

.alq-contacts .value {
  font-size: 13px;
  line-height: 1.2;
}

/* =========================
   7) TRUST STRIP
   ========================= */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  color: #f8fafc;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  font-weight: 600;
  opacity: .9;
  transition: all .2s ease;
}

.trust-strip li:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.trust-strip .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #7a2d7a 100%);
  margin: 0 0 0 8px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .3) inset, 0 2px 8px -4px rgba(139, 52, 141, .4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* =========================
   8) GENERIC SECTIONS
   ========================= */
.alq-section {
  padding: 56px 0;
}

.alq-h2 {
  font-size: clamp(18px, 2.8vw, 28px);
  margin: 0 0 12px;
  font-weight: 700;
}

.alq-h2--primary {
  color: var(--primary);
  text-align: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.alq-h3 {
  font-size: clamp(18px, 3.6vw, 36px);
  margin: 0 0 16px;
  font-weight: 700;
}

.alq-link {
  color: var(--primary);
  text-decoration: underline;
}

.alq-link:hover {
  opacity: .9;
}

/* =========================
   9) VIDEO / IFRAME BLOCKS
   ========================= */
.alq-video__frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px -16px rgba(0, 0, 0, .15);
}

.alq-video__tag {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: #0b0b0b;
}

.alq-iframe-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0b0b0b;
}

.alq-iframe-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.alq-video__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  color: #64748b;
}

/* =========================
   10) SHORTS LAYOUT
   ========================= */
.shorts-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 20px;
  align-items: start;
}

.shorts-embed {
  justify-self: start;
}

.shorts-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: #0b0b0b;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px -16px rgba(0, 0, 0, .2);
}

.shorts-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.shorts-video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* =========================
   11) MEDIA GRID / CERTIFICATES
   ========================= */
.alq-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.alq-media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.alq-media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
}

.alq-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.alq-certificates.alq-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.alq-certificates .alq-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.alq-certificates .alq-media-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .1);
  transition: none;
}

.alq-certificates .alq-media-card:hover {
  transform: none;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .1);
}

.alq-certificates .alq-zoom {
  display: block;
}

.alq-certificates .alq-img {
  display: block;
  width: 366.72px;
  height: 505.413px;
  object-fit: cover;
  background: #fff;
}

/* gallery headings */
.alq-gallery__title {
  font-size: 2em;
  font-style: normal;
  color: rgb(141, 67, 132);
  font-kerning: none;
  text-decoration-line: none;
  text-decoration-thickness: initial;
  text-decoration-style: initial;
}

.alq-gallery__subtitle {
  font-size: 2em;
  font-style: normal;
  color: rgb(141, 67, 132);
  font-kerning: none;
  text-decoration-line: none;
  text-decoration-thickness: initial;
  text-decoration-style: initial;
}

/* =========================
   12) LIGHTBOX
   ========================= */
.alq-lightbox[hidden] {
  display: none;
}

.alq-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .85);
  display: grid;
  place-items: center;
  padding: 20px;
}

.alq-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #fff;
}

.alq-lightbox .lb-close {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  background: rgba(255, 255, 255, .9);
  color: #111;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

/* =========================
   13) FEATURES SECTION (PANEL)
   ========================= */
.alq-features .features-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}

.features-list {
  margin: 0;
  padding: 0 1rem 0 0;
  list-style: disc;
  line-height: 2;
}

.features-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feat-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}

/* styled panel like provided image */
.alq-features .features-panel {
  background: #f6e6f578;
  border: 4px solid #8B348D;
  border-radius: 8px;
  padding: 22px 18px;
}

.alq-features .features-cards {
  grid-template-columns: 1fr 1fr;
}

.alq-features .feat-card {
  border-radius: 8px;
  padding: 16px 18px;
  min-height: 100%;
}

.feature-title {
  font-size: 3em;
  font-weight: 900;
  font-style: normal;
  color: rgb(141, 67, 132);
  font-kerning: none;
  text-decoration-line: none;
  text-decoration-thickness: initial;
  text-decoration-style: initial;
}

.alq-features .feat-title {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.6em;
}

.alq-features .feat-list {
  margin: 0;
  padding: 0 1rem 0 0;
  list-style: disc;
  line-height: 1.9;
}

.alq-features .feat-list li {
  margin: .2rem 0;
  color: var(--text);
}

.alq-features .feat-list li::marker {
  color: #000;
  font-weight: 900;
}
/* ===== Features ROTATOR (RTL) ===== */
.feat-rotator {
  position: relative;
  overflow: hidden;
  min-height: 3.4rem; /* enough for one line */
}

.feat-rotator .feat-title {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  /* start off-screen to the right (because dir=rtl) */
  transform: translateX(110%);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
  white-space: nowrap;
}

/* active slide: fully visible */
.feat-rotator .feat-title.is-active {
  transform: translateX(0);
  opacity: 1;
}

/* leaving slide: go to left */
.feat-rotator .feat-title.is-leaving {
  transform: translateX(-110%);
  opacity: 0;
}
/* ===== RTL text slider on .feat-title items ===== */
.alq-features .feat-card {
  position: relative;
  overflow: hidden;
  min-height: 3.4rem;
}

.alq-features .feat-card .feat-title {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  /* default: wait on the right */
  transform: translateX(110%);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
  z-index: 0;
}

/* currently visible item */
.alq-features .feat-card .feat-title.is-current {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

/* item that is leaving to the left */
.alq-features .feat-card .feat-title.is-prev {
  transform: translateX(-110%);
  opacity: 0;
  z-index: 1;
}


/* =========================
   14) COURSES SECTION
   ========================= */
.alq-courses .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.course-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.course-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.course-card figcaption {
  padding: 12px 14px;
  font-weight: 800;
  text-align: center;
}

.alq-courses__title {
  font-size: 3em;
  font-weight: 700;
  font-style: normal;
  color: rgb(141, 67, 132);
  font-kerning: none;
  text-decoration-line: none;
  text-decoration-thickness: initial;
  text-decoration-style: initial;
}

.alq-courses__subtitle {
  font-size: 1.6em;
  font-weight: 400;
  font-style: normal;
  color: rgb(0, 0, 0);
  font-kerning: none;
  text-decoration-line: none;
  text-decoration-thickness: initial;
  text-decoration-style: initial;
}

/* =========================
   15) REVEAL ANIMATIONS
   ========================= */
.js-reveal {
  opacity: 0;
  transform: translateY(32px) scale(.95);
  transition: all .8s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}

.js-reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.alq-hero .js-reveal:nth-child(1) { transition-delay: .1s; }
.alq-hero .js-reveal:nth-child(2) { transition-delay: .2s; }
.alq-hero .js-reveal:nth-child(3) { transition-delay: .3s; }
.alq-hero .js-reveal:nth-child(4) { transition-delay: .4s; }
.alq-hero .js-reveal:nth-child(5) { transition-delay: .5s; }

/* =========================
   16) STICKY WHATSAPP BTN
   ========================= */
.sticky-whatsapp {
  position: fixed;
  inset-inline: 12px;
  bottom: 90px;
  z-index: 9997;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 30px -10px var(--ring);
  transition: transform .15s ease, opacity .15s ease;
  max-width: calc(100% - 24px);
}

.sticky-whatsapp:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .sticky-whatsapp {
    display: none;
  }
}

body .sc-chat-window {
  bottom: 80px !important;
}

body .sc-launcher {
  bottom: 12px !important;
}

/* =========================
   17) FORM FRAME
   ========================= */
.alq-form__frame {
  margin-top: 16px;
}

.alq-form__frame .classcard-embed {
  border-radius: 16px;
  overflow: hidden;
}

.alq-form__alt {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
}

/* =========================
   18) SLIDER VARIABLES
   (second :root – LAST WINS for these vars)
   ========================= */
:root {
  --slide-w: 386.72px;
  --slide-h: 515.413px;
  --frame-w: var(--slide-w);
  --slide-radius: 14px;
  --img-radius: 12px;
  --gap: 24px;
  --edge-fade: 42px;
}

/* =========================
   19) SLIDER / GALLERY STRIP
   ========================= */
.alq-slider {
  height: 610px;
  direction: ltr;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 42px 8px 18px;
  margin-inline: -8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-inline: calc(50% - var(--frame-w) / 2);
  -webkit-mask: linear-gradient(90deg, transparent 0px, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
  mask: linear-gradient(90deg, transparent 0px, #000 var(--edge-fade), #000 calc(100% - var(--edge-fade)), transparent 100%);
}

.alq-slider::-webkit-scrollbar {
  display: none;
}

.alq-slider::before,
.alq-slider::after {
  content: "";
  flex: 0 0 calc(50% - var(--frame-w) / 2);
}

.alq-slide {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--frame-w);
  height: calc(var(--frame-w) * (var(--slide-h) / var(--slide-w)));
  border-radius: var(--slide-radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: visible;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  text-decoration: none;
  outline: 0;
  isolation: isolate;
}

.alq-slide-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--img-radius);
  object-fit: cover;
  transform-origin: center center;
  transform: scale(.92);
  filter: saturate(.9) contrast(.98) brightness(.98);
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .35);
  transition:
    transform .35s cubic-bezier(.25, .7, .2, 1),
    filter .35s ease,
    box-shadow .35s ease,
    outline-color .2s ease;
  will-change: transform, filter, box-shadow;
}

.alq-slide.is-center .alq-slide-img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.04) brightness(1);
  box-shadow: 0 22px 60px -22px rgba(0, 0, 0, .40), 0 0 0 1px rgba(0, 0, 0, .03);
}

.alq-slide:focus-visible .alq-slide-img,
.alq-slide:hover .alq-slide-img {
  outline: 3px solid var(--ring);
}

.alq-slide.is-center::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -18px;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .8;
  pointer-events: none;
}

/* pagination dots */
.alq-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0;
  user-select: none;
  max-width: 100%;
  overflow: clip;
}

.alq-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d1d5db;
  opacity: .8;
  transform: scale(.9);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.alq-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 1;
  transform: scale(1);
}

/* subtle one-time swipe hint on mobile */
@media (max-width: 640px) {
  .alq-slider {
    --frame-w: 74vw;
    --gap: 16px;
    --edge-fade: 22px;
    height: auto;
    padding: 22px 8px 12px;
    scroll-padding-inline: calc(50% - var(--frame-w) / 2);
  }

  .alq-slide-img {
    transform: scale(.95);
  }

  .alq-slider[data-show-hint="1"] {
    position: relative;
  }

  .alq-slider[data-show-hint="1"]::after {
    content: "اسحب للتصفح →";
    position: absolute;
    inset: auto 10px -2px auto;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
    animation: alqHintFade 2.6s ease 0s 1 forwards;
  }

  @keyframes alqHintFade {
    0% {
      opacity: 0;
      transform: translateY(4px);
    }
    8% {
      opacity: 1;
      transform: translateY(0);
    }
    70% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}

/* =========================
   20) RESPONSIVE ADJUSTMENTS
   ========================= */
@media (max-width: 960px) {
  .alq-features .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-images {
    grid-template-columns: 1fr;
  }
  .shorts-ratio {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .alq-certificates .alq-media-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shorts-layout {
    grid-template-columns: 1fr;
  }
  .shorts-embed {
    justify-self: stretch;
  }
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }
  .topbar-text {
    font-size: 2rem;
  }
  .alq-contacts {
    bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .alq-contacts .contact-item {
    width: calc(50% - 6px);
  }
}

@media (max-width: 640px) {
  .alq-cta {
    flex-direction: column;
  }
  .alq-hero {
    padding: 40px 0 32px;
  }
  .alq-section {
    padding: 40px 0;
  }
  .alq-media-grid {
    grid-template-columns: 1fr;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .sticky-whatsapp {
    bottom: 80px;
    padding: 12px;
  }
  .shorts-ratio {
    max-width: 100%;
  }
  body .sc-chat-window {
    bottom: 70px !important;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    flex-direction: column;
    min-height: auto;
    padding: 12px;
  }
  .badge {
    font-size: .8rem;
    padding: .3rem .5rem;
  }
  .topbar-text {
    font-size: .8rem;
    text-align: center;
  }
  .topbar-cta {
    margin-inline-start: 0;
    font-size: .85rem;
    padding: .3rem .6rem;
  }
  .alq-topbar::after {
    height: 6px;
    border-radius: 0 0 40% 40%;
  }
  .alq-topbar::before {
    background:
      radial-gradient(circle at 30% 50%, rgba(146, 50, 140, .25) 0%, transparent 40%),
      radial-gradient(circle at 70% 50%, rgba(10, 27, 64, .25) 0%, transparent 40%),
      linear-gradient(45deg, rgba(255, 255, 255, .08) 0%, transparent 50%, rgba(255, 255, 255, .04) 100%);
  }
  .alq-topbar--compact .topbar-inner {
    padding: 8px 12px;
    min-height: 32px;
  }
  .alq-topbar--compact .topbar-logo {
    height: 60px;
  }
  .alq-topbar--compact .badge {
    font-size: .75rem;
    padding: .2rem .4rem;
  }
  .alq-topbar--compact .topbar-text {
    font-size: .75rem;
  }
  .alq-topbar--compact .topbar-cta {
    font-size: .75rem;
    padding: .2rem .5rem;
  }
  .alq-btn {
    padding: 12px 18px;
    font-size: .9rem;
  }
  .wicon {
    width: 1em;
    height: 1em;
  }
  .sticky-whatsapp {
    bottom: 80px;
    font-size: .9rem;
    padding: 10px;
  }
}
