/* ============================================================
   Design 2 — Vibrant Playful Academy
   Override stylesheet — loaded after style-ar.css / style-en.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Caveat:wght@400;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:      #f6f6f7;
  --ink:     #0d164f;
  --ink-2:   #4b5563;
  --card:    #ffffff;
  --p1:      #2b66bf;   /* blue    — primary CTA  */
  --p2:      #3a53a4;   /* indigo  — secondary    */
  --p3:      #12c96c;   /* green   — tertiary/success */
  --p4:      #f6b93b;   /* yellow  — highlight    */
  --shadow:  0 18px 40px -14px rgba(13,22,79, .22);
  --radius-card: 28px;
  --radius-pill: 999px;
  --transition: .2s ease;
}

/* ── Global Reset / Body ──────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Scrollbar ────────────────────────────────────────────── */
html::-webkit-scrollbar        { width: 6px; height: 6px; }
html::-webkit-scrollbar-track  { background: #f3f4f6; }
html::-webkit-scrollbar-thumb  { background: var(--p1); border-radius: 99px; }
html::-webkit-scrollbar-thumb:hover { background: var(--p2); }

/* ── Headings — strip old gradient text-fill ──────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  margin: 0;
}

h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1;  }
h3 { font-size: clamp(20px, 2.5vw, 28px); line-height: 1.2; }

/* ── AOS safety net — reveal content if animation never fires */
[data-aos].aos-init {
  opacity: 1 !important;
  transform: none !important;
}
/* Fallback if AOS JS never initialises (e.g. dashboard layout without AOS.init) */
html.no-aos [data-aos],
body.no-aos [data-aos] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ── Font Awesome icons — keep their own color ────────────── */
i.fa, i.fas, i.fab, i.far, i.fal,
.fa, .fas, .fab, .far, .fal,
[class^="fa-"], [class*=" fa-"] {
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}

/* ── Paragraphs ───────────────────────────────────────────── */
p, div {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1.6;
}

p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Links ────────────────────────────────────────────────── */
a {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  transition: color var(--transition);
}
a:hover { text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border-radius: var(--radius-pill) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border: none !important;
  padding: 12px 22px !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px) !important;
  outline: none;
}

/* Primary — dark/midnight with sunshine offset shadow */
.btn-primary {
  background: var(--ink) !important;
  background-color: var(--ink) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 6px 6px 0 var(--p4) !important;
  border-color: transparent !important;
  -webkit-text-fill-color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--ink) !important;
  background-color: var(--ink) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 8px 8px 0 var(--p4) !important;
  border-color: transparent !important;
  -webkit-text-fill-color: #fff !important;
}

/* Outline Light — white card with shadow */
.btn-outline-light {
  background: var(--card) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
  border: none !important;
  -webkit-text-fill-color: var(--ink) !important;
}
.btn-outline-light:hover {
  background: #eef3fa !important;
  color: var(--p2) !important;
  -webkit-text-fill-color: var(--p2) !important;
}

/* Info — teal */
.btn-info {
  background: var(--p3) !important;
  background-color: var(--p3) !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  -webkit-text-fill-color: #fff !important;
}
.btn-info:hover,
.btn-info:active {
  background: #0ea75a !important;
  background-color: #0ea75a !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Light button (used in student header) */
.btn-light {
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
  border: none !important;
}
.btn-light:hover {
  background: var(--p4) !important;
  color: var(--ink) !important;
}

/* ============================================================
   TEXT UTILITIES — override old CSS
   ============================================================ */
.text-primary   { color: var(--p1) !important; }
.text-warning   { color: var(--p1) !important; }
.text-success   { color: var(--p3) !important; }
.text-info      { color: var(--p2) !important; }
.text-dark      { color: var(--ink) !important; }
.text-white     { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.text-bold      { font-weight: 800 !important; }

.bg-primary  { background: linear-gradient(135deg, var(--p1), var(--p2)) !important; }
.bg-warning  { background-color: var(--p1) !important; }
.bg-light    { background-color: rgba(58,83,164, .04) !important; }
.bg-warning-light { background: rgba(43,102,191, .10) !important; }

/* ============================================================
   SITE HEADER (public-facing — top-header + navbar)
   ============================================================ */
header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent !important;
}

/* Logo — display as-is (original artwork) */
header .logo-header img {
  max-height: 64px;
  width: auto;
  background: #fff;
  padding: 4px 10px;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.25);
}

/* Auth buttons in the top-header row */
header .btn-primary {
  background: var(--p1) !important;
  background-color: var(--p1) !important;
  background-image: none !important;
  box-shadow: 4px 4px 0 var(--p4) !important;
}
header .btn-outline-light {
  background: rgba(255,255,255,.15) !important;
  backdrop-filter: blur(8px);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.5) !important;
  box-shadow: none !important;
}

/* ── Pill Nav ─────────────────────────────────────────────── */
.navbar {
  justify-content: center !important;
  border: none !important;
  padding: 6px 0 !important;
  background: transparent !important;
}

.navbar-collapse {
  background: transparent !important;
  flex-grow: 0 !important;
  justify-content: center;
}

.navbar .navbar-nav,
.navbar .navbar-collapse > ul {
  background: var(--card);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
}

/* Fallback for the existing ul.navbar-nav structure */
.navbar .navbar-nav.d-flex.align-items-center {
  background: var(--card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  padding: 8px 18px;
  gap: 2px;
}

.navbar .nav-item {
  text-align: center;
  position: relative;
}
.navbar .nav-item::after { display: none !important; }

.navbar .nav-link {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-pill) !important;
  transition: background var(--transition), color var(--transition) !important;
  background: transparent;
  white-space: nowrap;
}

.navbar .nav-link:hover,
.navbar .nav-item.active .nav-link,
.navbar .nav-item > a.active {
  background: var(--p1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.navbar-toggler {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 12px;
  padding: 8px 14px;
}

/* Mobile nav collapse */
@media (max-width: 991px) {
  .navbar-collapse.collapse.show,
  .navbar-collapse.collapsing {
    background: var(--card) !important;
    border-radius: 24px;
    margin-top: 10px;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .navbar .navbar-nav.d-flex.align-items-center {
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 4px;
  }
  .navbar .nav-link { width: 100%; }
}

/* ============================================================
   HERO — Carousel / Slider
   ============================================================ */
.slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.slider .carousel,
.slider #carouselExampleFade {
  min-height: 620px;
}

.carousel-item img {
  object-fit: cover !important;
  width: 100% !important;
  height: 620px !important;
  filter: brightness(0.65) !important;
}

/* Gradient overlay for extra text legibility */
.carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,22,79,.55) 0%, transparent 100%);
  pointer-events: none;
}

.carousel-caption {
  position: absolute !important;
  bottom: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  text-align: start !important;
  width: 60% !important;
  left: 5% !important;
  right: auto !important;
  padding: 0 !important;
  z-index: 10;
}

.carousel-caption h2 {
  font-size: clamp(36px, 5vw, 64px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
  margin-bottom: 16px !important;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.carousel-caption p {
  font-size: 17px !important;
  color: rgba(255, 255, 255, .9) !important;
  margin-bottom: 24px !important;
  line-height: 1.6 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.carousel-caption .btn {
  margin-top: 8px;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: background var(--transition);
  bottom: auto;
}
.carousel-control-prev { left: 24px; }
.carousel-control-next { right: 24px; }
.carousel-control-prev:hover,
.carousel-control-next:hover { background: var(--p1); border-color: var(--p1); }

/* ── Animated badge in hero (if used) ───────────────────────*/
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--ink);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p3);
  display: inline-block;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.35); opacity: .5; }
}

/* ── Rotating star bg shape ──────────────────────────────── */
.bg-shape { position: absolute; z-index: -1; }
.shape-star {
  top: 80px; right: 38%;
  width: 44px;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Morphing blob (hero art) ────────────────────────────── */
.blob {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  50%       { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

/* ============================================================
   SUB-SLIDER  (tabs + description panel)
   ============================================================ */
.sub-slider {
  margin-top: 0 !important;
  position: relative;
  z-index: 99;
  padding: 60px 0;
  background: var(--bg);
}

.sub-slider > .container {
  border-radius: 0 !important;
  padding: 0 16px !important;
}

.item-swicherId > div {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  height: 100%;
  display: flex;
  align-items: center;
}

.item-swicherId > div:hover {
  transform: translateY(-3px);
}

.item-swicherId.uk-active > div {
  background: linear-gradient(135deg, var(--p1), var(--p2)) !important;
}

/* Icon paths */
.item-swicherId > div path         { fill: var(--p1) !important; }
.item-swicherId.uk-active > div path { fill: #fff !important; }

.item-swicherId .title {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.item-swicherId.uk-active .title,
.item-swicherId.uk-active .number,
.item-swicherId.uk-active .title div,
.item-swicherId.uk-active .col div {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* The content / description panel (bg-light override) */
.sub-slider .bg-light,
.sub-slider .col-lg-6 > .bg-light {
  background: var(--card) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow) !important;
  padding: 36px !important;
  color: var(--ink) !important;
}

/* ============================================================
   BEST COURSES SECTION
   ============================================================ */
.best-courses {
  padding: 80px 0;
  background: var(--bg);
}

.best-courses h2 {
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  color: var(--ink) !important;
  font-size: clamp(32px, 4vw, 54px) !important;
  margin-bottom: 16px !important;
}

.best-courses > .container > .text-center > p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* Course Cards */
.item-course {
  background: var(--card) !important;
  border-radius: var(--radius-card) !important;
  padding: 24px !important;
  box-shadow: var(--shadow) !important;
  transition: transform .25s, box-shadow .25s !important;
  display: flex !important;
  flex-direction: column !important;
}

.item-course:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 50px -14px rgba(13,22,79, .30) !important;
  background: var(--card) !important;
}

.item-course .img-course {
  border-radius: 18px !important;
  height: 220px !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.item-course .img-course img {
  border-radius: 18px !important;
  height: 220px !important;
  width: 100% !important;
  object-fit: cover !important;
}

.item-course .content-item {
  padding: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-course .fs-16.text-bold {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  margin-bottom: 8px !important;
}

.item-course p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Course date / meta row */
.item-course .row.mt-4.mb-2.mx-0.bg-light,
.item-course .row.mt-1.mx-0.bg-light {
  background: rgba(13,22,79, .06) !important;
  border-radius: 12px !important;
  border: 1px dashed rgba(13,22,79, .28) !important;
  margin: 0 !important;
  padding: 10px !important;
  font-size: 12px !important;
}

/* Price badge */
.item-course .btn.bg-warning-light {
  background: rgba(43,102,191, .1) !important;
  color: var(--p1) !important;
  -webkit-text-fill-color: var(--p1) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

.item-course .net-price {
  color: var(--p1) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

.item-course .old-price {
  color: var(--ink-2) !important;
  font-size: 16px !important;
}

/* CTA buttons inside cards */
.item-course .btn-primary.br-30 {
  background: var(--ink) !important;
  background-color: var(--ink) !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 4px 4px 0 var(--p4) !important;
  border-radius: var(--radius-pill) !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
}
.item-course .btn-primary.br-30:hover {
  background: var(--ink) !important;
  background-color: var(--ink) !important;
  background-image: none !important;
  box-shadow: 6px 6px 0 var(--p4) !important;
}

/* ============================================================
   OUR MISSION SECTION
   ============================================================ */
.our-mission {
  background: linear-gradient(135deg, var(--p2), var(--p1)) !important;
  color: #fff !important;
  padding: 100px 40px !important;
  margin: 60px auto !important;
  border-radius: 48px !important;
  max-width: 1240px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Orange glow top-right */
.our-mission::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--p1);
  border-radius: 50%;
  right: -180px;
  top: -180px;
  opacity: .35;
  filter: blur(60px);
  pointer-events: none;
}

/* Teal glow bottom-left */
.our-mission::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--p3);
  border-radius: 50%;
  left: -100px;
  bottom: -100px;
  opacity: .30;
  filter: blur(50px);
  pointer-events: none;
}

.our-mission h2,
.our-mission h3 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  font-size: clamp(28px, 3.5vw, 42px) !important;
  margin-bottom: 18px !important;
}

.our-mission p {
  color: rgba(255, 255, 255, .90) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
}

/* Vision box inside mission */
.box-mission {
  border: none !important;
  background: rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  position: relative;
  z-index: 1;
}

.box-mission h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  font-size: clamp(22px, 2.5vw, 32px) !important;
}

.box-mission p {
  color: rgba(255, 255, 255, .88) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.box-mission .right-top,
.box-mission .left-bottom {
  opacity: .4;
  filter: brightness(0) invert(1);
}

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.our-articles {
  padding: 80px 0;
  background: var(--bg);
}

.our-articles h2 {
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  color: var(--ink) !important;
  margin-bottom: 16px !important;
}

/* Article cards reuse item-course */
.our-articles .item-course .img-course {
  height: 240px !important;
}
.our-articles .item-course .img-course img {
  height: 240px !important;
}

/* Publisher badge */
.our-articles .btn.bg-warning-light.py-1.br-20 {
  background: rgba(43,102,191, .10) !important;
  color: var(--p1) !important;
  -webkit-text-fill-color: var(--p1) !important;
  border-radius: var(--radius-pill) !important;
}

/* Date label */
.our-articles .date-item {
  color: var(--ink-2) !important;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.our_testim {
  background: var(--bg);
  padding: 80px 0;
}

.testim-cover {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 48px;
  position: relative;
}

/* Big decorative quote mark */
.testim-cover::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 28px;
  font-size: 80px;
  color: var(--p4);
  line-height: 1;
  font-family: Georgia, serif;
}

#testim-content p {
  color: var(--ink-2) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

#testim-content h2 {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin-bottom: 4px !important;
}

#testim-content .img img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--p4);
}

/* Navigation dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(75,85,99, .3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.dots .dot.active {
  background: var(--p1) !important;
  transform: scale(1.3);
}

/* Arrow buttons */
.arrow {
  color: var(--p1) !important;
  font-size: 22px;
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
}
.arrow:hover { color: var(--p2) !important; transform: scale(1.15); }

/* ============================================================
   CONTACT US SECTION
   ============================================================ */
.contact-us {
  padding: 60px 0;
  background: var(--bg);
}

.contact-us h2 {
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  color: var(--ink) !important;
  margin-bottom: 28px !important;
}

/* Form controls */
.form-control {
  border-radius: 12px !important;
  border: 2px solid rgba(13,22,79, .20) !important;
  background: #fff !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.form-control::placeholder {
  color: rgba(75,85,99, .5);
}

.form-control:focus,
.form-control:hover {
  border-color: var(--p2) !important;
  box-shadow: 0 0 0 3px rgba(58,83,164, .10) !important;
  background: #fff !important;
  outline: none !important;
}

select.form-control { cursor: pointer; }

.form-group label {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.contact-us .btn-primary {
  padding: 14px 40px !important;
  width: auto !important;
}

/* Captcha styling */
.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.captcha img { border-radius: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer,
.section-footer {
  background: var(--p1) !important;
  background-image: none !important;
  border-radius: 48px 48px 0 0 !important;
  padding-top: 80px !important;
  padding-bottom: 32px !important;
  margin-top: 60px !important;
  color: #fff !important;
  position: relative;
  z-index: 1;
}

/* Footer headings — sunshine yellow */
.section-footer h3,
footer h3,
footer h5 {
  color: var(--p4) !important;
  -webkit-text-fill-color: var(--p4) !important;
  background: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
}

/* Footer links */
footer a,
.section-footer a {
  color: rgba(255,255,255,.82) !important;
  -webkit-text-fill-color: rgba(255,255,255,.82) !important;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color var(--transition) !important;
}

footer a:hover,
.section-footer a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Footer logo — display as-is on rounded chip */
.section-footer .logo-footer img {
  max-height: 64px;
  width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
}

/* Footer description text */
.section-footer > .container > .row > .col-lg-4:first-child p {
  color: rgba(255,255,255,.78) !important;
  -webkit-text-fill-color: rgba(255,255,255,.78) !important;
  font-size: 14px !important;
}

/* Social icons */
.section-footer .list-social-media,
footer .list-social-media {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.section-footer .list-social-media li a,
footer .list-social-media li a {
  display: inline-flex !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .08) !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.section-footer .list-social-media li a img,
footer .list-social-media li a img {
  width: 18px !important;
  height: 18px !important;
  filter: brightness(0) invert(1);
}

.section-footer .list-social-media li a:hover,
footer .list-social-media li a:hover {
  background: var(--p1) !important;
  transform: scale(1.12) !important;
  margin: 0 !important;
}

/* Media gallery in footer */
.media-footer img {
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  height: 70px;
  transition: transform var(--transition), filter var(--transition);
}
.media-footer a:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

/* Footer links column styling */
.footer-links a {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color var(--transition) !important;
}
.footer-links a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Sub-footer copyright bar */
.sub-footer {
  background: var(--ink) !important;
  color: #6b7280 !important;
  border-top: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 0 !important;
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

.sub-footer a {
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  display: inline !important;
  margin: 0 !important;
}
.sub-footer a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ============================================================
   SUB-HEADER — Inner page banners
   ============================================================ */
.sub-header {
  position: relative;
  height: 360px !important;
  border-radius: 0 0 48px 48px !important;
  overflow: hidden !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 56px !important;
}

.sub-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,83,164,.65) 0%, rgba(13,22,79,.7) 100%);
  z-index: 1;
  border-radius: 0 0 48px 48px;
}

.sub-header .content-header {
  z-index: 9;
  position: relative;
  padding-top: 0;
}

.sub-header .content-header h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  margin-bottom: 10px !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.sub-header .content-header p {
  color: rgba(255, 255, 255, .85) !important;
}

.sub-header .back-sub-header {
  position: absolute;
  width: 100%;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 0;
}

.sub-header .back-sub-header img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  filter: brightness(0.55) !important;
  border-radius: 0 0 48px 48px !important;
}

/* ============================================================
   STUDENT AREA — Sidebar + Dashboard
   ============================================================ */

/* Sidebar user card */
.content-user {
  background: linear-gradient(135deg, var(--p1), var(--p2)) !important;
  border-radius: 24px 24px 0 0 !important;
  padding: 20px !important;
  color: #fff !important;
}

.content-user .name {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700;
}

.content-user .title {
  color: rgba(255,255,255,.8) !important;
  -webkit-text-fill-color: rgba(255,255,255,.8) !important;
}

.content-user .list-contact-icons ul li {
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.content-user .list-contact-icons ul li .icon {
  color: rgba(255,255,255,.7);
}

/* Navigation links panel */
.list-links-pages {
  background: var(--card) !important;
  border-radius: 0 0 24px 24px !important;
  box-shadow: var(--shadow) !important;
}

.list-links-pages ul li a {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), color var(--transition) !important;
}

.list-links-pages ul li a:hover,
.list-links-pages ul li a.active {
  background: var(--p1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-radius: 12px !important;
}

.list-links-pages ul li a:hover span.icon path,
.list-links-pages ul li a:hover span.icon .a,
.list-links-pages ul li a.active span.icon path,
.list-links-pages ul li a.active span.icon .a {
  fill: #fff !important;
  transition: fill var(--transition) !important;
}

/* Student section min-height */
.min_height_700 { min-height: 700px; }

/* ============================================================
   STUDENT AUTH — Login / Signup
   ============================================================ */
.c-panel.auth-panel {
  background: var(--bg) !important;
  min-height: 100vh;
  padding: 140px 24px 80px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-panel.auth-panel > .container-fluid {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(13,22,79, .28),
              0 12px 24px -10px rgba(13,22,79, .10);
  min-height: 640px;
}

.block-login {
  background: var(--card) !important;
  display: flex;
  align-items: center;
  padding: 40px 0 !important;
}

.title-block-login {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  font-weight: 800 !important;
  font-size: 32px !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.02em;
}

/* -------- Left gradient panel -------- */
.left-background-login {
  background: linear-gradient(135deg, var(--p1) 0%, #ec4899 40%, var(--p2) 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 64px 56px !important;
  min-height: 640px;
  align-items: center;
}

.left-background-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 85%, rgba(246,185,59, .22) 0%, transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(18,201,108, .18) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.left-background-login .img-left-login { display: none !important; }

/* Decorative floating blobs */
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.auth-blob--1 { width: 240px; height: 240px; background: var(--p4); top: -60px; left: -60px; }
.auth-blob--2 { width: 300px; height: 300px; background: var(--p3); bottom: -100px; right: -80px; opacity: .4; }
.auth-blob--3 { width: 160px; height: 160px; background: #fff; top: 40%; right: 20%; opacity: .15; }

/* Left hero content */
.auth-hero {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 440px;
}

.auth-hero__eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 30px;
  font-weight: 700;
  color: var(--p4);
  margin-bottom: 14px;
  transform: rotate(-2deg);
  display: inline-block;
}

.auth-hero__title {
  font-size: clamp(30px, 3.5vw, 44px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.02em;
}

.auth-hero__lead {
  color: rgba(255, 255, 255, .88) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  margin-bottom: 28px !important;
}

.auth-hero__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-hero__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
}
.auth-hero__list li i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--p4);
  flex-shrink: 0;
}

/* -------- Right side card -------- */
.auth-card {
  padding: 56px 48px !important;
  width: 100%;
}

.auth-card__sub {
  color: var(--ink-2) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 28px !important;
}

/* Auth inputs with leading icon */
.auth-field { margin-bottom: 20px !important; }

.auth-field label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin-bottom: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-input {
  position: relative;
}

.auth-input__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--p2);
  font-size: 15px;
  opacity: .7;
  pointer-events: none;
  z-index: 1;
}

.auth-input .form-control {
  padding: 16px 20px 16px 48px !important;
  height: 54px !important;
  border-radius: 16px !important;
  border: 2px solid rgba(13,22,79, .12) !important;
  background: #fff !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100% !important;
}

.auth-input .form-control::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.auth-input .form-control:focus {
  border-color: var(--p2) !important;
  background: #f9fafb !important;
  box-shadow: 0 0 0 4px rgba(13,22,79, .12) !important;
  outline: none !important;
}

[dir="rtl"] .auth-input__icon { left: auto; right: 18px; }
[dir="rtl"] .auth-input .form-control { padding: 16px 48px 16px 20px !important; }

/* Select variant */
.auth-input--select .form-control,
.auth-input--select select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237b2cbf' d='M6 8 0 0h12z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 8px !important;
  padding-right: 42px !important;
  cursor: pointer;
}
[dir="rtl"] .auth-input--select .form-control {
  background-position: left 18px center !important;
  padding-right: 48px !important;
  padding-left: 42px !important;
}

/* Inline field errors */
.auth-error {
  display: block;
  color: #b22e4f;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 14px;
}

/* Signup grid: slightly wider form */
.auth-grid--signup {
  max-width: 1280px;
}
.auth-grid--signup .auth-card {
  padding: 44px 40px !important;
}
.auth-grid--signup .left-background-login {
  padding: 56px 44px !important;
}
.auth-grid--signup .auth-field { margin-bottom: 14px !important; }
.auth-grid--signup .title-block-login { font-size: 30px !important; }

.auth-meta {
  color: var(--ink-2);
  font-size: 14px;
  padding: 6px 0 20px !important;
}

.auth-link {
  color: var(--p1) !important;
  -webkit-text-fill-color: var(--p1) !important;
  text-decoration: none;
  margin-left: 4px;
}
.auth-link:hover {
  color: var(--p2) !important;
  -webkit-text-fill-color: var(--p2) !important;
}

/* Auth CTA */
.auth-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  padding: 16px 28px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%) !important;
  background-image: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 0 var(--p4), 0 14px 30px -10px rgba(13,22,79, .5) !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
  margin-top: 8px;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--p4), 0 18px 36px -10px rgba(13,22,79, .55) !important;
}
.auth-submit:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--p4), 0 6px 14px -6px rgba(13,22,79, .5) !important;
}
.auth-submit i {
  font-size: 13px;
  transition: transform .2s ease;
}
.auth-submit:hover i { transform: translateX(4px); }
[dir="rtl"] .auth-submit:hover i { transform: translateX(-4px); }
[dir="rtl"] .auth-submit i { transform: scaleX(-1); }
[dir="rtl"] .auth-submit:hover i { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   CUSTOM HEADER — Student area (orange-header)
   ============================================================ */
.custom-header {
  background: linear-gradient(135deg, var(--p1), var(--p2)) !important;
  border-radius: 0 0 32px 32px !important;
  padding: 16px 0 !important;
  box-shadow: 0 8px 32px rgba(58,83,164, .25) !important;
}

.custom-header .navbar .nav-link {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
}

.custom-header .navbar .nav-link:hover,
.custom-header .navbar .nav-item.active .nav-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: var(--p1) !important;
}

.custom-header .logo-header img {
  max-height: 56px !important;
  width: auto !important;
  background: #fff !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  filter: none !important;
}

/* Auth buttons inside custom-header */
.custom-header .btn-light {
  background: rgba(255,255,255,.15) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.4) !important;
  box-shadow: none !important;
}
.custom-header .btn-light:hover {
  background: rgba(255,255,255,.25) !important;
}

.custom-header .btn-outline-light {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.4) !important;
  box-shadow: none !important;
}

/* Notification bell */
.bell-after-login div {
  border-color: rgba(255,255,255,.5) !important;
  background: rgba(255,255,255,.15) !important;
}
.bell-after-login:hover div {
  background: rgba(255,255,255,.25) !important;
  color: #fff !important;
}
.bell-after-login span {
  background: var(--p4) !important;
  color: var(--ink) !important;
}

/* User avatar ring */
.img-after-login img {
  border: 2px solid var(--p4) !important;
}

/* ============================================================
   COURSE DETAIL PAGE
   ============================================================ */
.box-program {
  border: none !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow) !important;
  padding: 32px !important;
  background: var(--card) !important;
}

.box-program:hover {
  box-shadow: 0 24px 50px -14px rgba(13,22,79,.28) !important;
}

.cor-img img {
  border-radius: 24px !important;
  height: 420px !important;
  object-fit: cover !important;
  width: 100% !important;
}

.course-dt .text-bold:not(.btn):not(button) {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Price display on course detail */
.my_price,
.net-price {
  color: var(--p1) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
}

.old-price {
  color: var(--ink-2) !important;
}

.fs-18.mt-3.text-bold.mb-2 {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq_container {
  background: var(--card) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
  transition: box-shadow var(--transition);
}

.faq_container:hover {
  box-shadow: 0 20px 44px -14px rgba(13,22,79,.28) !important;
}

.faq_question {
  background: var(--card) !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 20px 24px !important;
  cursor: pointer !important;
  transition: background var(--transition), color var(--transition) !important;
  border-radius: 20px !important;
}

.faq_question:hover {
  background: rgba(43,102,191, .06) !important;
  color: var(--p1) !important;
  -webkit-text-fill-color: var(--p1) !important;
}

.faq_answer {
  background: rgba(58,83,164, .04) !important;
  color: var(--ink-2) !important;
  -webkit-text-fill-color: var(--ink-2) !important;
  padding: 16px 24px !important;
  border-top: 1px solid rgba(58,83,164, .12) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  border-radius: 0 0 20px 20px !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  gap: 6px;
  flex-wrap: wrap;
}

.page-item .page-link {
  border-radius: var(--radius-pill) !important;
  border: none !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 14px !important;
  transition: background var(--transition), color var(--transition) !important;
}

.page-item.active .page-link {
  background: var(--p1) !important;
  color: #fff !important;
  box-shadow: 4px 4px 0 var(--p4) !important;
}

.page-item .page-link:hover {
  background: rgba(43,102,191, .10) !important;
  color: var(--p1) !important;
}

/* ============================================================
   SECTION HEADING OVERRIDES  (generic h2 in centered sections)
   ============================================================ */
.best-courses .text-center h2,
.our-articles .text-center h2,
.contact-us .text-center h2,
.content-section .text-center h2 {
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  color: var(--ink) !important;
}

/* ============================================================
   ALERTS & VALIDATION
   ============================================================ */
.alert-danger {
  background: rgba(43,102,191,.10);
  border: 1px solid rgba(43,102,191,.3);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
}

.text-danger { color: #b22e4f !important; }

/* ============================================================
   VIDEOS / PHOTO-ALBUMS PAGES
   ============================================================ */
.item-itunes {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform .25s, box-shadow .25s;
}

.item-itunes:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px -14px rgba(13,22,79,.28);
  background: var(--card);
}

.my-cor-img img {
  border-radius: 24px;
  height: 300px;
  object-fit: cover;
  width: 100%;
}

/* ============================================================
   MISC UTILITY OVERRIDES
   ============================================================ */

/* Progress bars */
.progress {
  border-radius: 20px;
  height: 0.7rem;
  background: rgba(58,83,164,.1);
  border: none;
}
.progress .bg-warning {
  background: linear-gradient(90deg, var(--p1), var(--p2)) !important;
  border-radius: 20px;
}

/* Select2 */
.select2-container--default .select2-selection--single {
  border-radius: 12px !important;
  border: 2px solid rgba(13,22,79,.2) !important;
  height: 44px !important;
  padding: 8px 12px !important;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--p2) !important;
  box-shadow: 0 0 0 3px rgba(58,83,164,.10) !important;
}
.select2-results__option--highlighted {
  background: var(--p1) !important;
}

/* Story experience block */
.story_experience {
  background: rgba(255,255,255,.85);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* Box notification */
.box-noty {
  border-radius: 20px !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}
.box-noty .item-noty { background: var(--card) !important; }
.box-noty .item-noty:hover { background: rgba(43,102,191,.06) !important; }

/* No data image */
#no_data_img { display: block; margin: 40px auto; opacity: .7; }

/* ============================================================
   WHATSAPP WIDGET — preserve existing behaviour, just theme it
   ============================================================ */
/* WhatsApp popup retains its own styles from whatsapp-*.css */

/* ============================================================
   ANIMATIONS — keyframes library
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

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

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

/* ============================================================
   RESPONSIVE — Tablet (≤ 995px)
   ============================================================ */
@media (max-width: 995px) {
  /* Full-width navbar pill on tablet */
  .navbar .navbar-nav.d-flex.align-items-center {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center !important;
    border-radius: 20px;
    padding: 10px;
  }

  /* Footer border-radius soften */
  footer,
  .section-footer {
    border-radius: 32px 32px 0 0 !important;
    padding-top: 48px !important;
  }

  /* Sub-slider stacks */
  .sub-slider {
    padding: 40px 0;
  }
  .sub-slider .col-lg-6 { margin-bottom: 16px; }

  /* Mission rounded smaller */
  .our-mission {
    border-radius: 32px !important;
    padding: 60px 24px !important;
    margin: 30px 16px !important;
  }

  /* Sub-header shorter */
  .sub-header {
    height: 300px !important;
    padding-bottom: 40px !important;
  }

  /* Section footer media imgs */
  .media-footer a img { height: 80px; }
  .section-footer { background: var(--ink) !important; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 787px)
   ============================================================ */
@media (max-width: 787px) {
  /* Hero shorter on mobile */
  .slider, .carousel-item img {
    min-height: 480px !important;
    height: 480px !important;
  }

  .carousel-caption {
    width: 90% !important;
    left: 5% !important;
  }

  .carousel-caption h2 {
    font-size: clamp(28px, 6vw, 40px) !important;
  }

  /* Heading sizes */
  h2 { font-size: clamp(24px, 5vw, 36px) !important; }

  /* Mission full width */
  .our-mission {
    border-radius: 24px !important;
    padding: 48px 20px !important;
    margin: 24px 12px !important;
  }

  .box-mission { padding: 24px !important; }

  /* Footer */
  footer,
  .section-footer {
    border-radius: 24px 24px 0 0 !important;
    padding-top: 40px !important;
  }

  /* Sub-header */
  .sub-header {
    height: 260px !important;
    border-radius: 0 0 32px 32px !important;
    padding-bottom: 32px !important;
  }
  .sub-header .back-sub-header img {
    border-radius: 0 0 32px 32px !important;
  }

  /* Testimonial padding */
  .testim-cover { padding: 28px 20px !important; }

  /* Auth layout */
  .block-login { min-height: auto; padding: 16px 0 !important; }
  .auth-card { padding: 32px 24px !important; }
  .auth-panel { padding-top: 110px; padding-bottom: 40px; }
  .auth-grid { border-radius: 24px; min-height: auto; margin: 0 12px; }

  /* Navbar */
  .navbar .nav-link { font-size: 14px !important; }
}

/* ============================================================
   RTL Adjustments (Arabic — dir="rtl")
   ============================================================ */
[dir="rtl"] .carousel-caption {
  text-align: right !important;
  left: auto !important;
  right: 5% !important;
}

[dir="rtl"] .navbar .navbar-nav.d-flex.align-items-center {
  flex-direction: row-reverse;
}

[dir="rtl"] .content-user .flex-with-img .name-title {
  margin-left: 0;
  margin-right: 8px;
}

[dir="rtl"] .list-links-pages ul li a span.icon {
  margin-left: 0;
  margin-right: 7px;
}

[dir="rtl"] .our-mission {
  direction: rtl;
}

[dir="rtl"] .our-mission::before {
  right: auto;
  left: -180px;
}

/* ============================================================
   VIDEOS PAGE — thumbnail cards
   ============================================================ */

/* The video card uses .item-course with a background-image div inside */
.item-course .video-with-icon {
  border-radius: 18px !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.item-course .video-with-icon .uk-background-cover {
  border-radius: 18px !important;
  position: relative;
  overflow: hidden;
}

/* Play icon overlay */
.item-course .video-with-icon .fa-play-circle {
  font-size: 52px !important;
  color: rgba(255,255,255,.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,.92) !important;
  text-shadow: 0 4px 20px rgba(0,0,0,.45);
  transition: transform .2s, color .2s;
  display: block;
}

.item-course .video-with-icon:hover .fa-play-circle {
  transform: scale(1.1);
  color: var(--p1) !important;
  -webkit-text-fill-color: var(--p1) !important;
}

/* Video title link */
.item-course .video-with-icon + .content-item .col-auto.text-dark > a.text-dark {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-weight: 700;
  font-size: 15px;
}

/* Duration badge */
.item-course .content-item .col-auto .fs-14 {
  color: var(--ink-2);
  font-size: 13px !important;
}

/* Section spacing for videos/photo-albums listing (below sub-header) */
#videos_section,
#photo_albums_section {
  padding-top: 48px;
  padding-bottom: 60px;
}

/* ============================================================
   PHOTO ALBUMS PAGE — card overrides
   ============================================================ */

/* Photo album cards use .card.item-course */
.item-course.card {
  border: none !important;
  overflow: hidden;
}

.item-course.card .card-img-top {
  border-radius: 18px 18px 0 0 !important;
  height: 220px !important;
  object-fit: cover !important;
  width: 100% !important;
  display: block;
}

.item-course.card .card-body.content-item {
  padding: 12px 0 4px !important;
}

.item-course.card .card-text {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* Photo album link hover lift */
a:has(.item-course.card):hover .item-course.card {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -14px rgba(13,22,79,.30) !important;
}

/* ============================================================
   BLOG / ARTICLES LISTING PAGE — extra spacing fix
   ============================================================ */

/* Remove ugly BR spacer padding */
.content-section.mt-5 {
  margin-top: 0 !important;
}

/* Articles section spacing consistent */
#articles_section {
  padding-top: 20px;
  padding-bottom: 60px;
}

/* courses_section (blog articles listing shares this) */
.courses_section {
  padding-bottom: 60px;
}

/* ============================================================
   COURSE DETAIL PAGE — content section spacing
   ============================================================ */

.courses_section .container[style*="margin-top: 100px"] {
  margin-top: 40px !important;
}

/* ============================================================
   INNER PAGES — sub-header spacing and content gap
   ============================================================ */

/* Ensure content below sub-header doesn't overlap */
.sub-header + section,
.sub-header + .section,
.sub-header ~ #videos_section,
.sub-header ~ #photo_albums_section,
.sub-header ~ #articles_section,
.sub-header ~ .courses_section,
.sub-header ~ .content-section {
  margin-top: 48px !important;
}

/* ============================================================
   STUDENT AREA — dashboard content padding
   ============================================================ */

/* The .py-3.min_height_700 main content wrapper */
.py-3.min_height_700 {
  padding-top: 80px !important;
  padding-bottom: 48px !important;
}

/* Sidebar list items */
.list-links-pages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-links-pages ul li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  margin-bottom: 4px;
}

.list-links-pages ul li a .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.list-links-pages ul li a .icon img {
  width: 24px !important;
  height: 24px !important;
  filter: none;
}

/* Fix sidebar icon fill colors on hover/active */
.list-links-pages ul li a:hover .icon svg path,
.list-links-pages ul li a:hover .icon svg .a,
.list-links-pages ul li a.active .icon svg path,
.list-links-pages ul li a.active .icon svg .a {
  fill: #fff !important;
}

.list-links-pages ul li a:hover .icon img,
.list-links-pages ul li a.active .icon img {
  filter: brightness(0) invert(1) !important;
}

/* ============================================================
   STUDENT AREA — notifications page items
   ============================================================ */
.item-noty {
  border-bottom: 1px solid rgba(13,22,79,.08) !important;
  padding: 16px 20px !important;
  transition: background var(--transition) !important;
}

/* ============================================================
   STUDENT AREA — portfolio / update-account page
   ============================================================ */
.story_experience {
  padding: 28px;
}

/* Upload zone */
.js-upload {
  border: 2px dashed rgba(13,22,79, .25) !important;
  border-radius: 16px !important;
  background: rgba(58,83,164, .03) !important;
  padding: 32px !important;
  transition: border-color var(--transition), background var(--transition) !important;
}

.js-upload:hover {
  border-color: var(--p1) !important;
  background: rgba(43,102,191, .04) !important;
}

/* ============================================================
   ARTICLE DETAIL (single blog post)
   ============================================================ */

.blog-detail-section,
.article-detail,
section.content-section.pb-5 {
  padding-top: 48px;
  padding-bottom: 80px;
}

/* Article heading in detail view */
.article-heading,
.blog-heading {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
}

/* Article body text */
.article-body p,
.blog-body p {
  color: var(--ink-2) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

/* ============================================================
   GLOBAL — section heading with Caveat eyebrow
   ============================================================ */

/* Standardise Caveat eyebrow across all sections */
.section-eyebrow {
  font-family: 'Caveat', cursive !important;
  color: var(--p1);
  font-weight: 700;
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
  transform: rotate(-2deg);
  transform-origin: left center;
}

/* ============================================================
   GLOBAL — smooth page transitions / content-section defaults
   ============================================================ */

.content-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ============================================================
   CAROUSEL CONTROLS — visibility fix
   ============================================================ */

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

/* ============================================================
   FAQ PAGE — open/active state toggle indicator
   ============================================================ */

.faq_question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--p2);
  font-weight: 300;
  transition: transform var(--transition), color var(--transition);
}

[dir="rtl"] .faq_question::after {
  right: auto;
  left: 20px;
}

.faq_container.open .faq_question::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--p1);
}

.faq_question {
  position: relative !important;
  padding-right: 48px !important;
}

[dir="rtl"] .faq_question {
  padding-right: 24px !important;
  padding-left: 48px !important;
}

/* ============================================================
   PAGINATION — section wrapper
   ============================================================ */

.pagination_section {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 24px 0;
}

/* ============================================================
   CUSTOM HEADER (student area) — pill nav centering fix
   ============================================================ */

/* orange-header navbar: centre the pill */
.custom-header .navbar .navbar-nav {
  background: rgba(255,255,255,.15) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: none !important;
  padding: 6px 16px !important;
}

.custom-header .navbar .nav-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 600 !important;
}

.custom-header .navbar .nav-link:hover,
.custom-header .navbar .nav-item.active .nav-link {
  background: rgba(255,255,255,.22) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ============================================================
   RTL ADDITIONS
   ============================================================ */

[dir="rtl"] .auth-hero__eyebrow {
  transform: rotate(2deg);
}

[dir="rtl"] .section-eyebrow {
  transform: rotate(2deg);
  transform-origin: right center;
}

[dir="rtl"] .faq_container {
  text-align: right;
}

/* ============================================================
   MOBILE RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 787px) {
  #videos_section,
  #photo_albums_section,
  #articles_section {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .content-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .py-3.min_height_700 {
    padding-top: 60px !important;
  }

  /* Video thumbnail height on mobile */
  .item-course .video-with-icon .uk-background-cover {
    height: 200px !important;
  }

  /* Photo album card */
  .item-course.card .card-img-top {
    height: 180px !important;
  }

  /* FAQ */
  .faq_question {
    font-size: 14px !important;
    padding: 16px 42px 16px 18px !important;
  }
}

/* ============================================================
   DESIGN 2 — EXACT-MATCH OVERRIDES (preview.html parity)
   ============================================================ */

/* Header — single centered row: logo + pill nav + auth btns */
header.d2-header {
  position: relative !important;
  background: transparent !important;
  padding: 0 !important;
}
header.d2-header .d2-nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header.d2-header .d2-logo {
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
header.d2-header .d2-logo .d2-logo-img {
  max-height: 64px;
  width: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
header.d2-header .d2-logo .d2-logo-dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Caveat', cursive;
  font-size: 26px;
  transform: rotate(-6deg);
}

header.d2-header .d2-menu {
  display: flex;
  gap: 4px;
  background: var(--card);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
}
header.d2-header .d2-menu a {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  display: inline-block;
}
header.d2-header .d2-menu a:hover,
header.d2-header .d2-menu a.active {
  background: var(--p1) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
header.d2-header .d2-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
header.d2-header .d2-cta .btn-primary {
  background: var(--ink) !important;
  background-color: var(--ink) !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 6px 6px 0 var(--p4) !important;
}
header.d2-header .d2-cta .btn-primary:hover {
  box-shadow: 8px 8px 0 var(--p4) !important;
}
header.d2-header .d2-cta .btn-outline {
  background: var(--card) !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
}
header.d2-header .d2-mobile-toggle {
  display: none;
  background: var(--card);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
header.d2-header .d2-mobile-toggle i { font-size: 18px; }
header.d2-header .d2-user-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--p4);
  box-shadow: var(--shadow);
  display: inline-flex;
}
header.d2-header .d2-user-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  header.d2-header .d2-menu { display: none; }
  header.d2-header .d2-mobile-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  header.d2-header .d2-nav { padding: 16px 18px; flex-wrap: wrap; gap: 10px; }
  header.d2-header .d2-cta .btn { padding: 10px 16px !important; font-size: 13px !important; }
}
header.d2-header .d2-mobile-menu {
  display: none;
  position: absolute;
  top: 78px;
  left: 18px;
  right: 18px;
  background: var(--card);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  z-index: 200;
  flex-direction: column;
  gap: 4px;
}
header.d2-header .d2-mobile-menu.open { display: flex; }
header.d2-header .d2-mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
}
header.d2-header .d2-mobile-menu a:hover,
header.d2-header .d2-mobile-menu a.active {
  background: var(--p1);
  color: #fff;
}

/* Hero (preview parity) */
.d2-hero {
  position: relative;
  padding: 40px 40px 100px;
  max-width: 1320px;
  margin: 0 auto;
}
.d2-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.d2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--ink);
}
.d2-hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
}
.d2-hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--p2) !important;
  -webkit-text-fill-color: var(--p2) !important;
}
.d2-hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 4px;
  height: 14px;
  background: var(--p4);
  z-index: -1;
  border-radius: 3px;
  transform: skew(-4deg);
}
.d2-hero h1 .accent { color: var(--p1) !important; -webkit-text-fill-color: var(--p1) !important; }
.d2-hero .lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.d2-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.d2-social-proof {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.d2-avatars { display: flex; }
.d2-avatars div {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  margin-left: -10px;
}
.d2-avatars div:first-child { margin-left: 0; }
.d2-social-proof p { font-size: 13px; color: var(--ink-2); margin: 0; }
.d2-social-proof p strong { color: var(--ink); font-weight: 700; }

.d2-hero-art { position: relative; aspect-ratio: 1/1; min-height: 460px; }
.d2-blob {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  animation: morph 12s ease-in-out infinite;
}
.d2-hero-art .d2-hero-photo {
  position: absolute;
  inset: 8% 8% 8% 8%;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  object-fit: cover;
  width: 84%;
  height: 84%;
  z-index: 2;
  animation: morph 12s ease-in-out infinite;
}
.d2-float-card {
  position: absolute;
  background: #fff;
  padding: 14px 20px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}
.d2-float-1 { top: 6%; left: -4%; }
.d2-float-2 { bottom: 12%; right: -2%; }
.d2-float-3 { top: 42%; right: -10%; }
.d2-float-card .d2-fc-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.d2-float-card strong { display: block; font-size: 14px; color: var(--ink); }
.d2-float-card span { font-size: 12px; color: var(--ink-2); }

.d2-hero .d2-bg-shape { position: absolute; z-index: 0; }
.d2-shape-star { top: 80px; right: 38%; width: 44px; animation: spin 14s linear infinite; }

@media (max-width: 991px) {
  .d2-hero { padding: 24px 24px 60px; }
  .d2-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .d2-hero-art { max-width: 460px; margin: 0 auto; min-height: 380px; }
  .d2-float-1 { left: 0; }
  .d2-float-2 { right: 0; }
  .d2-float-3 { right: 0; }
}
@media (max-width: 600px) {
  .d2-hero { padding: 18px 16px 40px; }
  .d2-hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .d2-hero-art { min-height: 320px; }
  .d2-float-card { padding: 10px 14px; border-radius: 16px; }
  .d2-float-card .d2-fc-icon { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
  .d2-float-card strong { font-size: 12px; }
  .d2-float-card span { font-size: 10px; }
}

/* Section heading (preview parity) */
.d2-section { max-width: 1320px; margin: 0 auto; padding: 80px 40px; }
.d2-sec-head { text-align: center; margin-bottom: 56px; }
.d2-sec-head .d2-scribble {
  display: block;
  margin-bottom: 10px;
  font-family: 'Caveat', cursive;
  color: var(--p1);
  font-weight: 700;
  font-size: 30px;
  transform: rotate(-2deg);
}
.d2-sec-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
}
.d2-sec-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p1), var(--p2)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.d2-sec-head p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Course cards (preview parity) */
.d2-courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 991px) { .d2-courses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .d2-courses { grid-template-columns: 1fr; } }

.d2-course {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.d2-course:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -14px rgba(13,22,79, .30);
  text-decoration: none;
  color: var(--ink);
}
.d2-course-cover {
  aspect-ratio: 16/10;
  border-radius: 18px;
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}
.d2-course-cover .d2-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.d2-course-cover .d2-price {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}
.d2-course h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
}
.d2-course p {
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 86px;
}
.d2-course h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 56px;
}
.d2-course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
  color: var(--ink-2);
}
.d2-course-meta strong { color: var(--ink); font-weight: 700; }
.d2-course-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Mission split (preview parity) */
.d2-mission {
  background: linear-gradient(135deg, var(--p2), var(--p1));
  color: #fff;
  padding: 100px 40px;
  margin: 40px auto;
  border-radius: 48px;
  max-width: 1240px;
  position: relative;
  overflow: hidden;
}
.d2-mission::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--p1);
  border-radius: 50%;
  right: -180px;
  top: -180px;
  opacity: .35;
  filter: blur(60px);
}
.d2-mission::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--p3);
  border-radius: 50%;
  left: -100px;
  bottom: -100px;
  opacity: .3;
  filter: blur(50px);
}
.d2-mission-in {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.d2-mission h2 {
  font-size: clamp(32px, 3.5vw, 48px) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}
.d2-mission h2 em {
  font-style: normal;
  color: var(--p4);
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 1.2em;
  -webkit-text-fill-color: var(--p4) !important;
  background: none !important;
}
.d2-mission p {
  font-size: 17px;
  opacity: .92;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.d2-mission .btn-light-cta {
  background: #fff !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  box-shadow: 6px 6px 0 var(--p4) !important;
  padding: 12px 24px !important;
  border-radius: var(--radius-pill) !important;
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border: none;
}
.d2-mission .btn-light-cta:hover { box-shadow: 8px 8px 0 var(--p4) !important; transform: translateY(-2px); }
.d2-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.d2-stat {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 20px;
}
.d2-stat strong {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  color: #fff;
}
.d2-stat span { font-size: 14px; opacity: .88; color: #fff; }
@media (max-width: 900px) {
  .d2-mission { padding: 60px 24px; border-radius: 32px; margin: 24px 16px; }
  .d2-mission-in { grid-template-columns: 1fr; gap: 40px; }
}

/* Testimonials row (preview parity) */
.d2-testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .d2-testi-row { grid-template-columns: 1fr; } }
.d2-testi {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.d2-testi::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 70px;
  color: var(--p4);
  line-height: 1;
  font-family: Georgia, serif;
}
.d2-testi p {
  color: var(--ink-2);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}
.d2-testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.d2-testi-who .d2-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.d2-testi-who strong { display: block; font-size: 14px; color: var(--ink); }
.d2-testi-who span { font-size: 12px; color: var(--ink-2); }
.d2-testi-stars { color: var(--p4); font-size: 13px; margin-top: 4px; }

/* Footer (preview parity) */
footer.d2-footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 40px 32px;
  margin-top: 60px;
  border-radius: 48px 48px 0 0;
  border: none !important;
}
footer.d2-footer .d2-foot-in {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  footer.d2-footer .d2-foot-in { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  footer.d2-footer { padding: 56px 20px 24px; border-radius: 32px 32px 0 0; }
  footer.d2-footer .d2-foot-in { grid-template-columns: 1fr; gap: 28px; }
}
footer.d2-footer h5 {
  font-size: 15px !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
  color: var(--p4) !important;
  -webkit-text-fill-color: var(--p4) !important;
  background: none !important;
}
footer.d2-footer a {
  display: block;
  color: #9ca3af;
  -webkit-text-fill-color: #9ca3af;
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 14px;
  transition: color .2s;
}
footer.d2-footer a:hover { color: #fff; -webkit-text-fill-color: #fff; }
footer.d2-footer .d2-foot-logo-img {
  max-height: 72px;
  width: auto;
  background: rgba(255,255,255,.95);
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.4);
}
footer.d2-footer .d2-foot-desc {
  color: #9ca3af;
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}
footer.d2-footer .d2-foot-socials {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
}
footer.d2-footer .d2-foot-socials a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  margin: 0;
  transition: background .2s, transform .2s;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
footer.d2-footer .d2-foot-socials a:hover {
  background: var(--p1);
  transform: scale(1.1);
}
footer.d2-footer .d2-foot-socials a img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
footer.d2-footer .d2-foot-bottom {
  max-width: 1240px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
footer.d2-footer .d2-foot-bottom a {
  display: inline;
  margin: 0 4px;
  color: #9ca3af;
}

/* WhatsApp FAB (preview parity) */
.d2-whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  z-index: 100;
  transition: transform .2s;
}
.d2-whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
[dir="rtl"] .d2-whatsapp-fab { right: auto; left: 28px; }

/* RTL flips for new elements */
[dir="rtl"] header.d2-header .d2-mobile-menu { left: 18px; right: 18px; }
[dir="rtl"] .d2-hero h1 .hl::after { transform: skew(4deg); }
[dir="rtl"] .d2-course-cover .d2-tag { left: auto; right: 14px; }
[dir="rtl"] .d2-course-cover .d2-price { right: auto; left: 14px; }
[dir="rtl"] .d2-testi::before { right: auto; left: 18px; }
[dir="rtl"] .d2-float-1 { left: auto; right: -4%; }
[dir="rtl"] .d2-float-2 { right: auto; left: -2%; }
[dir="rtl"] .d2-float-3 { right: auto; left: -10%; }
[dir="rtl"] .d2-avatars div { margin-left: 0; margin-right: -10px; }
[dir="rtl"] .d2-avatars div:first-child { margin-right: 0; }

/* Contact form (preview-card style) */
.d2-contact-card {
  background: var(--card);
  border-radius: 32px;
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) { .d2-contact-card { padding: 28px 22px; border-radius: 24px; } }

/* Sub-header preview-style */
.d2-sub-header {
  position: relative;
  max-width: 1240px;
  margin: 16px auto 0;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p2), var(--p1));
  padding: 80px 40px;
  color: #fff;
  text-align: center;
}
.d2-sub-header::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: var(--p1);
  border-radius: 50%;
  right: -140px;
  top: -140px;
  opacity: .3;
  filter: blur(60px);
}
.d2-sub-header h1 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.d2-sub-header p {
  color: rgba(255,255,255,.85) !important;
  font-size: 16px;
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
}
.d2-sub-header h1, .d2-sub-header p { text-align: center !important; }
@media (max-width: 700px) {
  .d2-sub-header { padding: 56px 24px; border-radius: 28px; margin: 12px 16px 0; }
}

/* ============================================================
   Fixed-size course cards (student dashboard etc.)
   ============================================================ */
.d2-courses-2col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 991px) { .d2-courses-2col { grid-template-columns: 1fr; } }

.d2-course-fixed {
  height: 100%;
  min-height: 520px;
}
.d2-course-fixed .d2-course-cover {
  aspect-ratio: 16/10;
  height: 200px;
  flex-shrink: 0;
}
.d2-course-fixed h3 {
  min-height: 56px;
}
.d2-course-fixed p {
  min-height: 84px;
  max-height: 84px;
  overflow: hidden;
}

/* Line-clamp utilities */
.d2-clamp-1, .d2-clamp-2, .d2-clamp-3, .d2-clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d2-clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.d2-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.d2-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.d2-clamp-4 { -webkit-line-clamp: 4; line-clamp: 4; }
