@import "/assets/frappe/css/fonts/ibm-plex-sans/ibm-plex-sans.css";
@import "/assets/frappe/css/fonts/ibm-plex-sans-arabic/ibm-plex-sans-arabic.css";

html[dir="ltr"],
body[dir="ltr"],
[lang="en"] {
  font-family: "IBM Plex Sans", system-ui, sans-serif !important;
}

html[dir="rtl"],
body[dir="rtl"],
[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif !important;
}

html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* =========================
   Utility Top Bar
========================= */
.topbar {
  background: #000;
  color: #d8d8d8;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--topbar-height);
  @media (max-width: 768px) {
    height: 55px;
    .topbar-inner {
      flex-direction: column;
      padding: 6px 28px !important;
    }
  }
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-group {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #d8d8d8;
  transition: color .18s ease;
}
.topbar-link:hover { color: var(----revamp-accent, #c9a227); }
.topbar-search { padding: 0; }

/* ---- Topbar dropdowns (Student Portal / Contact Us / Account / Language) ---- */
.topbar-dropdown { position: relative; display: inline-flex; }

.topbar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  content: "";
  border-top: 4px solid #c99a3c;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-bottom: 0;
}

.topbar-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  min-width: 210px;
  margin-top: 6px;
  padding: 6px 0;
  list-style: none;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: none;
}

.topbar-dropdown-menu.dropdown-menu-right {
  left: auto;
  right: 0;
}

.topbar-dropdown-menu.show,
.topbar-dropdown.open > .topbar-dropdown-menu { display: block; }

.topbar-dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: #d8d8d8;
  background: transparent;
  border: 0;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}

.topbar-dropdown-menu .dropdown-item:hover,
.topbar-dropdown-menu .dropdown-item:focus {
  background: #c99a3c;
  color: #111111;
  text-decoration: none;
}

.topbar-dropdown-menu .dropdown-item.active {
  background: #c99a3c;
  color: #111111;
}

.topbar .user-image-wrapper img,
.topbar .user-image-wrapper .avatar { width: 22px !important; height: 22px !important; }

/* ---- Language switcher ---- */
#topbar-language-switcher .topbar-lang-current { font-weight: 600; }

/* ---- Search (collapsed: icon + "Search"; expands on click) ---- */
.topbar-search { position: relative; display: inline-flex; align-items: center; }

.topbar-search-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.topbar-search-form {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 3px 10px;
}

.topbar-search.open .topbar-search-form { display: inline-flex; width: 210px; height: 21px; }
.topbar-search.open .topbar-search-toggle { display: none; }

.topbar-search.open .topbar-search-form:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: #c99a3c;
}

.topbar-search-input {
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: #d8d8d8 !important;
  font-size: 0.78rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  height: 22px;
}

.topbar-search-input::placeholder { color: rgba(216, 216, 216, 0.6); }

.topbar-search-close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: #d8d8d8;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0 0 4px;
  opacity: 0.65;
  transition: opacity .15s ease, color .15s ease;
}
.topbar-search-close:hover { opacity: 1; color: #c99a3c; }

/* ---- RTL ---- */
[dir="rtl"] .topbar-dropdown-menu { left: auto; right: 0; text-align: right; }
[dir="rtl"] .topbar-dropdown-menu.dropdown-menu-right { right: auto; left: 0; }
[dir="rtl"] .topbar-dropdown-menu .dropdown-item { text-align: right; }
[dir="rtl"] .topbar .dropdown-toggle::after { margin-left: 0; margin-right: 4px; }

/* =========================
   Navbar Base
========================= */
.custom-navbar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: 100%;
  z-index: 999;
  /* border-bottom: 5px solid var(--revamp-navbar-border, #0F2C46); */
  background: var(--revamp-navbar-bg, #2f5f8f);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* =========================
   Logo
========================= */
.custom-navbar .navbar-brand img {
  height: 75px !important;
  max-height: none !important;
  max-width: none !important;
  width: auto;
}

/* =========================
   NAVBAR TITLE
========================= */
.custom-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.custom-navbar .navbar-brand .navbar-brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}
.custom-navbar .navbar-brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.15;
}
.custom-navbar .navbar-brand-titles .navbar-brand-title {
  font-size: 15px;
  &:first-of-type {
    font-size: 29px;
  }
}
.custom-navbar .navbar-brand-title-en {
  font-size: 12px;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-top: 5px;
  font-weight: 400 !important;
}

.navbar-container {
  @media (min-width: 1200px) {
    max-width: 1440px;
  }
  @media (max-width: 1440px) {
    padding: 0 0.5rem;
  }
  @media (max-width: 600px) {
    .navbar-toggler {
      padding: .25rem .5rem;
      svg {
        width: 16px;
        height: 16px;
      }
    }
    .navbar-brand-titles .navbar-brand-title {
      &:first-of-type {
        font-size: 22px;
      }
      &:last-of-type {
        font-size: 11px;
      }
    }
  }
  @media (max-width: 425px) {
    .navbar-brand {
      gap: 2px;
      margin-right: 0.5em;
      img {
        height: 40px !important;
      }
    }
    .navbar-brand-titles .navbar-brand-title {
      &:first-of-type {
        font-size: 18px;
      }
      &:last-of-type {
        font-size: 9px;
      }
    }
  }
  @media (max-width: 320px) {
    .navbar-brand-titles .navbar-brand-title {
      &:first-of-type {
        font-size: 14px;
      }
      &:last-of-type {
        font-size: 7px;
      }
    }
  }
}

/* =========================
   Navigation Links
========================= */
.custom-navbar .navbar-container .navbar-nav .nav-link {
  color: #000;
  font-weight: 600 !important;
  padding: 10px 14px;
  position: relative;
  transition: all 0.25s ease;
}

.custom-navbar .nav-link:hover {
  color: var(--revamp-accent, #c9a227) !important;
}

/* Underline Effect */
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--revamp-accent, #c9a227);
  transition: 0.3s;
}

.custom-navbar .nav-link:hover::after {
  width: 70%;
}

/* Active link: accent color + persistent underline (matches hover) */
.custom-navbar .nav-link.active {
  color: var(--revamp-accent, #c9a227) !important;
}
.custom-navbar .nav-link.active::after {
  width: 70%;
}
.custom-navbar .nav-link.pbtn {
  --glow-rest: 0 0 2px #1a2e4a75, 0 0 2px #1a2e4a75, 0 0 10px #1a2e4a75;
  --glow-peak: 0 0 4px #1a2e4acc, 0 0 4px #1a2e4acc, 0 0 22px #1a2e4abb;
  background-color: var(--revamp-cta-bg, #1a2e4a);
  color: #fff !important;
  border-radius: 8px;
  margin-inline-end: 8px;
  box-shadow: var(--glow-rest);
  text-shadow: 0 0 3px #fff;
  &::after {
    content: unset;
  }
}
.custom-navbar .nav-link.cbtn {
  --glow-rest: 0 0 2px #c99a3c75, 0 0 2px #c99a3c75, 0 0 10px #c99a3c75;
  --glow-peak: 0 0 4px #c99a3ccc, 0 0 4px #c99a3ccc, 0 0 22px #c99a3cbb;
  background-color: var(--revamp-accent, #c99a3c);
  color: #fff !important;
  border-radius: 8px;
  box-shadow: var(--glow-rest);
  text-shadow: 0 0 3px #fff;
  &::after {
    content: unset;
  }
}

/* Pulsing glow for navbar CTA buttons (pbtn = navy, cbtn = gold).
   Glow colors are driven by --glow-rest / --glow-peak set per button.
   Base static glow stays on the classes above; animation is layered on
   only for users without a reduced-motion OS preference. */
@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: var(--glow-rest);
    text-shadow: 0 0 2px #fff;
  }
  50% {
    box-shadow: var(--glow-peak);
    text-shadow: 0 0 5px #fff;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .custom-navbar .nav-link.pbtn {
    animation: cta-pulse 2s ease-in-out infinite;
  }
  .custom-navbar .nav-link.cbtn {
    animation: cta-pulse 2s ease-in-out infinite;
    animation-delay: -1s;
  }
  .custom-navbar .nav-link.pbtn:hover,
  .custom-navbar .nav-link.cbtn:hover {
    animation-play-state: paused;
    box-shadow: var(--glow-peak);
    text-shadow: 0 0 5px #fff;
  }
}

/* =========================
   Dropdown
========================= */
.custom-navbar .dropdown-menu {
  border-radius: 6px;
  border: none;
  background: var(--revamp-dropdown-bg, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-navbar .dropdown-item {
  color: #1a2e4a !important;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
  background: var(--revamp-accent, #c99a3c) !important;
  color: #ffffff !important;
}

/* =========================
   Spacing
========================= */
.custom-navbar .navbar-nav .nav-item {
  margin: 0 6px;
}

@media (min-width: 992px) {
  .custom-navbar .navbar-collapse {
    margin-inline-start: 40px;
  }
}

@media (min-width: 990px) and (max-width: 1200px) {
  .custom-navbar .navbar-collapse {
    margin-inline-start: 15px;
  }
  .custom-navbar .navbar-nav .nav-item {
    margin: 0;
  }
  .navbar-light .navbar-nav .nav-link {
    font-size: .7rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* =========================
   Login Button
========================= */
.custom-navbar .navbar-cta {
  background: var(--revamp-cta-bg, #c69668);
  color: var(--revamp-cta-text, #ffffff) !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: 10px;
}

.custom-navbar .navbar-cta:hover {
  background: var(--revamp-cta-hover-bg, #b5855a);
  color: var(--revamp-cta-text, #ffffff) !important;
}

.custom-navbar a[href="/login"] {
  background: var(--revamp-navbar-text, #ffffff);
  color: var(--revamp-navbar-bg, #2f5f8f) !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.custom-navbar a[href="/login"]:hover {
  background: var(--revamp-navbar-text, #ffffff);
  opacity: 0.85;
  color: var(--revamp-navbar-bg, #2f5f8f) !important;
}

.custom-navbar #language-switcher {
  margin-left: 10px;
  min-width: 120px;
}

.custom-navbar #language-switcher .form-control {
  background: #ffffff !important;
  color: #1a2e4a !important;
  border: 1px solid #1a2e4a !important;
  border-radius: 6px;
  font-size: 14px;
  padding: 4px 8px;
}

.custom-navbar #language-switcher .form-control option {
  background: #ffffff !important;
  color: #1a2e4a !important;
}

.custom-navbar #language-switcher .form-control option:checked,
.custom-navbar #language-switcher .form-control option:hover,
.custom-navbar #language-switcher .form-control option:focus {
  background: #1a2e4a !important;
  color: #ffffff !important;
}

/* =========================
   Body Offset
========================= */
body {
  padding-top: calc(var(--topbar-height, 40px) + var(--navbar-height, 90px));
}

/* =========================
   Anchor Fix
========================= */
[id] {
  scroll-margin-top: calc(var(--topbar-height, 40px) + var(--navbar-height, 90px) + var(--navbar-padding, 24px));
}

/* =========================
   Page Header
========================= */
.page-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--revamp-page-header-bg, #f1f5f9);

  padding: 50px 20px;
  margin-bottom: 30px;

  border-bottom: 2px solid var(--revamp-page-header-border, #e5e7eb);
}

/* Hide empty headers */
.page-header-wrapper:not(:has(h1)) {
  display: none;
}

/* Title */
.page-header-wrapper h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--revamp-page-header-text, #111827);
  margin: 0;
  text-align: center;
}

/* Gold line */
.page-header-wrapper h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--revamp-accent, #c9a227);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* =========================
   Slide show section
========================= */
.carousel { padding: 0; overflow-x: hidden; height: 75vh; overflow: hidden; }
.carousel .carousel-indicators { position: absolute; bottom: 1rem; }
.carousel .carousel-indicators li { background-color: #fff; opacity: 1; }
.carousel .carousel-indicators li.active { background-color: #c99a3c; }
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
  margin-inline: 1rem;
  background-color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 992px) {
  .carousel {
    height: auto;
  }
}

/* =========================
   Revamp Carousel (overlay + caption + buttons)
========================= */
.revamp-carousel-item { position: relative; }

.revamp-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.5) 18%,
    rgba(0, 0, 0, 0.25) 38%,
    transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.revamp-carousel-caption {
  position: absolute;
  top: 45%;
  left: 5%;
  transform: translateY(-50%);
  width: 30%;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.revamp-carousel-heading {
  color: var(--revamp-accent, #c9a227);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.revamp-carousel-subheading {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.revamp-carousel-desc {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  text-align: start;
  width: 85%;
  padding-inline-start: 20%;
}

.revamp-carousel-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.revamp-carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}
.revamp-carousel-btn svg { flex: 0 0 auto; }

.revamp-carousel-btn-primary {
  background: var(--revamp-accent, #c9a227);
  color: #fff;
  flex-direction: row-reverse;
}
.revamp-carousel-btn-primary:hover {
  background: #b58a1f;
  color: #fff;
  text-decoration: none;
}

.revamp-carousel-btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}
.revamp-carousel-btn-ghost:hover {
  border-color: var(--revamp-accent, #c9a227);
  color: var(--revamp-accent, #c9a227);
  text-decoration: none;
}

.img-with-blur-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Features section
========================= */
.features-section {
  background-color: #fff;
  border-radius: 25px;
  padding-block: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.feature {
  padding: 0 20px;
  border-inline-end: 1px solid #00000025;
}
.feature:last-child {
  border-inline-end: none;
}

/* =========================
   Stats section
========================= */
.stats-section {
  background-color: #0d0e10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 25px;
  padding-block: 20px;
  border: 1px solid var(--revamp-secondary, #c99a3c);
}
.stats-section.has-bg-image {
  position: relative;
  background-size: 75% auto;
  background-position: left center;
  background-blend-mode: difference;
}
.stats-section.has-bg-image > * { position: relative; z-index: 1; }
.stats-section.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 16, 0.7);
  border-radius: inherit;
  z-index: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat {
  padding: 0 20px;
  border-inline-end: 1px solid var(--revamp-secondary, #c99a3c);
}
.stat:last-child {
  border-inline-end: none;
}

/* =========================
   Section with image
========================= */
.hero-title {
  margin-bottom: 1rem;
  text-align: start;
  color: var(--revamp-secondary, #000);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 700;
}
.hero-sectitle {
  margin: 0;
  margin-bottom: 1rem;
  text-align: start;
  color: var(--revamp-primary, #000);
}
.hero-subtitle {
  margin: 0;
  text-align: start;
  font-size: 1.25rem;
  line-height: 1.5;
}
.hero-with-right-image .hero-image {
  max-height: 25rem
}

@media(min-width: 768px) {
  .hero-with-right-image .hero-image {
    max-width: 20rem
  }
}

@media(min-width: 992px) {
  .hero-with-right-image .hero-image {
    max-width: 25rem
  }
}

@media(min-width: 1200px) {
  .hero-with-right-image .hero-image {
    max-width: 30rem
  }
}

/* =========================
   Tutrial Section
========================= */
.section-with-features {
  text-align: start;
}
.videos-title {
  margin: 0;
  margin-bottom: 1rem;
  color: var(--revamp-secondary, #000);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 700;
}
.videos-sectitle {
  margin: 0;
  margin-bottom: 1rem;
  color: var(--revamp-primary, #000);
}
.video-wrapper {
  margin-bottom: 0.5rem;
}
.section-features[data-columns="3"] .feature-content {
  margin-top: 0.25rem;
}

/* =========================
   Mobile
========================= */
@media (max-width: 1660px) {
  .revamp-carousel-caption {
    .revamp-carousel-heading {
      font-size: 2rem;
    }
    .revamp-carousel-subheading {
      font-size: 1.5rem;
    }
    .revamp-carousel-desc {
      font-size: 0.75rem;
    }
    .revamp-carousel-actions {
      gap: 4px;
      .revamp-carousel-btn {
        gap: 4px;
        padding: 12px;
      }
    }
  }
}
@media (max-width: 1240px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .revamp-carousel-caption {
    .revamp-carousel-heading {
      font-size: 2rem;
    }
    .revamp-carousel-subheading {
      font-size: 1rem;
    }
    .revamp-carousel-desc {
      font-size: 0.6rem;
      margin-bottom: 1rem;
    }
    .revamp-carousel-actions {
      .revamp-carousel-btn {
        padding: 8px;
        font-size: 0.75rem;
      }
    }
  }
  .stats-grid, .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat, .feature {
    border-inline-end: none;
  }
}
@media (max-width: 768px) {
  .custom-navbar {
    top: 55px;
    .navbar-brand img {
      height: 40px;
    }
  }

  body {
    padding-top: 108px;
  }

  [id] {
    scroll-margin-top: 80px;
  }

  .page-header-wrapper {
    padding: 30px 15px;
  }

  .page-header-wrapper h1 {
    font-size: 28px;
  }

  .revamp-carousel-caption {
    top: auto;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 0 16px;
    text-align: center;
  }

  .revamp-carousel-overlay {
    background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 35%,
      rgba(0, 0, 0, 0.2) 65%,
      transparent 100%);
  }

  .revamp-carousel-desc {
    text-align: center;
    width: 60%;
    padding-inline-start: 0;
    margin-inline: auto;
  }

  .revamp-carousel-actions {
    gap: 8px;
  }

  .carousel-control-prev-icon, .carousel-control-next { width: 24px; height: 24px; }
  .revamp-carousel-caption .revamp-carousel-heading { font-size: 1.5rem; margin-bottom: 0.25rem; }
  .revamp-carousel-caption .revamp-carousel-subheading { font-size: 1.15rem; margin-bottom: 0.25rem; }
  .revamp-carousel-caption .revamp-carousel-desc { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.45; }
  .revamp-carousel-caption .revamp-carousel-actions .revamp-carousel-btn { padding: 8px 14px; font-size: 0.8rem; gap: 6px; }

  .features-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .revamp-carousel-caption .revamp-carousel-caption { bottom: 2.5rem; padding: 0 14px; }
  .revamp-carousel-caption .revamp-carousel-heading { font-size: 1.25rem; }
  .revamp-carousel-caption .revamp-carousel-subheading { font-size: 1rem; }
  .revamp-carousel-caption .revamp-carousel-desc { font-size: 0.8rem; margin-bottom: 0.25rem; }
  .revamp-carousel-caption .revamp-carousel-actions .revamp-carousel-btn { padding: 7px 12px; font-size: 0.75rem; }
}

@media (max-width: 425px) {
  .revamp-carousel-caption .revamp-carousel-caption { bottom: 2.25rem; padding: 0 12px; }
  .revamp-carousel-caption .revamp-carousel-heading { font-size: 1rem; }
  .revamp-carousel-caption .revamp-carousel-subheading { font-size: 0.9rem; }
  .revamp-carousel-caption .revamp-carousel-desc { font-size: 0.75rem; margin-bottom: 0.25rem; }
  .revamp-carousel-caption .revamp-carousel-actions .revamp-carousel-btn { padding: 6px 10px; font-size: 0.72rem; }
}

@media (max-width: 375px) {
  .revamp-carousel-caption .revamp-carousel-heading { font-size: 1rem; margin: 0; }
  .revamp-carousel-caption .revamp-carousel-subheading { font-size: 0.82rem; margin: 0; }
  .revamp-carousel-caption .revamp-carousel-desc { font-size: 0.7rem; margin-bottom: 0.25rem; }
  .revamp-carousel-caption .revamp-carousel-actions .revamp-carousel-btn { font-size: 0.7rem; padding: 6px 10px; }
}

@media (max-width: 425px) {
  .stats-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-block-end: 1px solid var(--revamp-secondary, #000);
  }
  .feature {
    border-block-end: 1px solid #FFFFFF50;
  }
}

/* =========================
    Footer (Custom)
========================= */

.web-footer.custom-footer {
  padding: 12px 0 0 0;
  background: var(--revamp-footer-bg, #2f5f8f) !important;
  color: var(--revamp-footer-text, #ffffff) !important;
}

.custom-footer-fix {
  min-height: auto;
}

.custom-footer-links {
  background: var(--revamp-footer-bg, #2f5f8f);
  color: var(--revamp-footer-text, #ffffff);
  padding: 0 15px;
}

/* =========================
    Links
========================= */
.custom-footer-links a,
.custom-footer-info a {
  color: var(--revamp-footer-text, #ffffff) !important;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.custom-footer-links a:hover,
.custom-footer-info a:hover {
  color: var(--revamp-accent, #c9a227) !important;
  transform: translateX(4px);
}

.custom-footer-info a:hover {
  transform: none;
}

/* =========================
    Footer Grid
========================= */
.custom-footer-links .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  justify-items: center;
}

.footer-group {
  padding: 10px 10px;
  text-align: start;
}

/* =========================
    Titles
========================= */
.custom-footer-links .footer-group-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  color: var(--revamp-secondary, #ffffff);
}

/* =========================
    List
========================= */
.footer-group-links {
  padding: 0;
  list-style: none;
}

.footer-group-links li {
  margin-bottom: 5px;
}

/* =========================
    Footer Bottom
========================= */
.custom-footer-info {
  border-top: 1px solid var(--revamp-footer-border, rgba(255,255,255,0.2));
  margin-top: 10px;
  padding: 8px 15px 0;
  font-size: 14px;
  background: var(--revamp-footer-info-bg, #1f3f5f);
  color: var(--revamp-footer-info-text, #e5e7eb);
  .footer-col-right {
    text-align: end;
  }
}

.custom-footer .row {
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
    Social Icons
========================= */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--revamp-footer-text, #ffffff);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--revamp-accent, #c9a227);
  background: rgba(255,255,255,0.1);
  transform: scale(1.15);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.provider-link {
  color: var(--revamp-footer-text, #ffffff);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.provider-link:hover {
  color: var(--revamp-accent, #c9a227) !important;
  text-decoration: none;
}

/* =========================
    Courses Info
========================= */
.section-with-collapsible-content {
  text-align: start;
  .section-title {
    text-align: start;
    display: block;
  }
}

/* =========================
    Responsive
========================= */
@media (max-width: 768px) {

  .custom-footer-links .row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    justify-items: start;
  }

  .footer-group {
    padding: 8px 5px;
  }

  .custom-footer-info {
    padding: 10px 10px 0;
  }

  .custom-footer-info .row {
    text-align: center;
  }

  .custom-footer-info .footer-col-left {
    order: 3;
    margin-top: 6px;
  }

  .custom-footer-info .footer-col-center {
    order: 1;
  }

  .custom-footer-info .footer-col-right {
    order: 2;
    text-align: center !important;
  }

  .social-links {
    justify-content: center;
  }

}



[dir="rtl"] .custom-navbar .navbar-nav .nav-item {
	margin: 0;
}
[dir="rtl"] .custom-navbar .navbar-cta,
[dir="rtl"] .custom-navbar a[href="/login"],
[dir="rtl"] .custom-navbar #language-switcher {
  margin-left: 0;
  margin-inline-start: 10px;
}
/* --- Hero (force image back to right) --- */
[dir="rtl"] .hero-with-right-image {
  flex-direction: row-reverse;	
}

/* =========================
   Scroll Animations
========================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for child elements */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.55s; }

/* =========================
   Background Image Overlay
========================= */
.section[style*="background-image"],
.section[style*="background: url"] {
  position: relative;
}

.section[style*="background-image"] > .container,
.section[style*="background: url"] > .container {
  position: relative;
  z-index: 1;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-overlay-dark {
  background: var(--revamp-overlay-dark, rgba(0, 0, 0, 0.55));
}

.bg-overlay-light {
  background: var(--revamp-overlay-light, rgba(255, 255, 255, 0.85));
}

.bg-overlay-primary {
  background: var(--revamp-overlay-primary, rgba(27, 75, 154, 0.8));
}

/* =========================
   Gradient Backgrounds
========================= */
.bg-gradient-primary {
  background: var(--revamp-gradient-primary, linear-gradient(135deg, #1B4B9A 0%, #2f5f8f 100%)) !important;
}

.bg-gradient-gold {
  background: var(--revamp-gradient-gold, linear-gradient(135deg, #c9a227 0%, #c69668 100%)) !important;
}

.bg-gradient-dark {
  background: var(--revamp-gradient-dark, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)) !important;
}

.bg-gradient-light {
  background: var(--revamp-gradient-light, linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%)) !important;
}

/* =========================
   Glassmorphism
========================= */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.glass-card-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* =========================
   Features Section Enhancements
========================= */
.feature-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0.5rem 1rem;
  align-items: center;
  gap: 4px;
}

.feature-title {
  font-size: 1rem;
  color: #000;
  line-height: 1.2;
  transition: transform 0.3s ease;
  font-weight: 600;
}

.feature-des {
  font-size: 12px;
  color: var(--revamp-text-muted, #fff);
  font-weight: 600;
  line-height: 1.5em;
}

/* Features on dark/gradient background */
.bg-gradient-primary .feature-title,
.bg-gradient-dark .feature-title,
.bg-overlay-dark + .container .feature-title {
  color: #ffffff;
}

.bg-gradient-primary .feature-des,
.bg-gradient-dark .feature-des,
.bg-overlay-dark + .container .feature-des {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   Stats Section Enhancements
========================= */
.stat-item {
  display: flex;
  text-align: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  svg {
    margin-top: 4px;
  }
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--revamp-accent, #1B4B9A);
  line-height: 1.2;
  transition: transform 0.3s ease;
}

.stat-label {
  font-size: 13px;
  color: var(--revamp-cta-text, #fff);
  margin-top: 0.5rem;
  /* font-weight: 700; */
  text-transform: uppercase;
}

.stat-item:hover .stat-value {
  transform: scale(1.1);
}

/* Stats on dark/gradient background */
.bg-gradient-primary .stat-value,
.bg-gradient-dark .stat-value,
.bg-overlay-dark + .container .stat-value {
  color: #ffffff;
}

.bg-gradient-primary .stat-label,
.bg-gradient-dark .stat-label,
.bg-overlay-dark + .container .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   Section Title Enhancements
========================= */
.section-title {
  margin-bottom: 1rem;
  text-align: center;
  color: var(--revamp-secondary, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-transform: uppercase;
}

.title-line {
  width: 40px;
  height: 1px;
  background: var(--revamp-secondary, #000);
  display: inline-block;
}

/* =========================
   Card Hover Effects
========================= */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-glow:hover {
  box-shadow: 0 0 20px rgba(27, 75, 154, 0.3) !important;
}

/* =========================
   CTA Section Enhancements
========================= */
#vision-and-mission {
  background: var(--revamp-vision-section-bg, #fff);
}

.vm-card {
  display: flex;
  gap: 1rem;
  text-align: start;
  &:first-child {
    border-inline-end: 1px solid var(--revamp-secondary, #000);
  }
  &:last-child {
    padding-inline-start: 2rem;
  }
  .vm-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--revamp-secondary, #000);
  }
  .vm-card-content .vm-card-title {
    margin: 0;
    margin-block-end: 0.5em;
    font-weight: 700;
    color: var(--revamp-secondary, #000);
    font-size: 1.25rem;
  }
  .vm-card-content .vm-card-subTitle {
    margin: 0;
    margin-block-end: 0.5em;
    font-weight: 700;
    color: var(--revamp-primary, #000);
    font-size: 1.75rem;
  }
  .vm-card-text {
    max-width: 80%
  }
  @media (max-width: 768px) {
    &:first-child {
      border-inline-end: none;
    }
    &:last-child {
      padding-inline-start: unset;
    }
    .vm-card-content .vm-card-text {
      max-width: 100%;
    }
  }
}

/* =========================
   CTA Section Enhancements
========================= */
#about-cta {
  background: var(--revamp-cta-section-bg, #f1f5f9);
}

.section-small-cta {
  background-color: unset;
  padding: 0;
}

.section-small-cta h2 {
  margin-bottom: 1rem;
  text-align: start;
  color: var(--revamp-secondary, #000);
  text-transform: uppercase;
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

.bg-gradient-primary .section-cta-container .section-small-cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.bg-gradient-primary .section-cta-container .section-small-cta h3,
.bg-gradient-primary .section-cta-container .section-small-cta p,
.bg-gradient-primary .section-cta-container .section-small-cta a {
  color: var(--revamp-footer-text, #ffffff);
}

/* =========================
   Sections Padding
========================= */
.section-padding-bottom {
  padding-bottom: 0.5rem;
}
.section-padding-top {
  padding-top: 0.5rem;
}
@media (min-width: 576px) {
  .section-padding-bottom {
    padding-bottom: 1rem;
  }
  .section-padding-top {
    padding-top: 1rem;
  }
}
@media(min-width: 1200px) {
  .section-padding-top {
    padding-top: 1.5rem;
  }
  .section-padding-bottom {
    padding-bottom: 1.5rem;
  }
}

/* =========================
   Responsive Animations
========================= */
@media (max-width: 768px) {
  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    transform: translateY(20px);
  }

  .stat-value, .feature-title {
    font-size: 0.75rem;
  }

  .section-small-cta {
    padding: 1.5rem !important;
  }
}

/* =========================
   RTL Support for Animations
========================= */
[dir="rtl"] .fade-in-left {
  transform: translateX(30px);
}

[dir="rtl"] .fade-in-right {
  transform: translateX(-30px);
}

[dir="rtl"] .fade-in-left.visible {
  transform: translateX(0);
}

[dir="rtl"] .fade-in-right.visible {
  transform: translateX(0);
}