:root {
  --primary: #2454ff;
  --primary-dark: #1135be;
  --primary-soft: #dbe7ff;
  --dark: #0f172a;
  --muted: #64748b;
  --bg-soft: #f8fafc;
  --header-solid: #1c43c9;
  --footer-grad: linear-gradient(120deg, #0b1430 0%, #112c73 55%, #1e4ec4 100%);
  --header-height: 145px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--dark);
  background-color: #f8fbff;
  overflow-x: hidden;
}

main {
  overflow: visible;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.section-gap {
  padding: 90px 0;
}

.section-gap-sm {
  padding: 60px 0 30px;
}

.header-area {
  background: var(--header-solid);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
  transition: all 0.3s ease;
}

.official-strip {
  background: var(--header-solid);
  border-bottom: 1px solid rgba(226, 232, 240, 0.28);
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.9rem;
  padding: 8px 0;
}

.official-strip i {
  color: #dbeafe;
}

.header-area .navbar-brand {
  letter-spacing: 0.2px;
  color: #fff;
  white-space: nowrap;
}

.header-area .navbar > .container {
  max-width: 1760px;
}

.header-area .navbar-nav {
  align-items: center;
  flex-wrap: nowrap;
}

@media (min-width: 992px) {
  .header-area .navbar-nav > .nav-item {
    position: relative;
  }

  .header-area .navbar-nav > .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
  }
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}

.brand-bar,
.brand-dot {
  fill: #ffffff;
}

.brand-axis,
.brand-trend,
.brand-arrow {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-axis {
  stroke-width: 3;
  opacity: 0.9;
}

.brand-trend,
.brand-arrow {
  stroke-width: 4;
}

.brand-dot {
  opacity: 0.95;
}

.brand-icon text {
  fill: #ffffff;
  font-family: "Cairo", sans-serif;
  font-size: 8px;
  font-weight: 800;
  text-anchor: middle;
}

.header-area .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  white-space: nowrap;
}

.header-area .nav-link .bi:not(.download-menu-chevron) {
  color: #dbeafe;
  font-size: 0.95rem;
}

.header-area .nav-link:hover,
.header-area .nav-link:focus {
  color: #fff;
}

.header-download-toggle {
  white-space: nowrap;
}

.header-download-toggle .bi-cloud-arrow-down-fill {
  color: #dbeafe;
  font-size: 0.95rem;
}

.download-menu-chevron {
  font-size: 0.72rem;
  transition: transform 0.22s ease;
}

.download-nav-item .show .download-menu-chevron,
.download-nav-item .header-download-toggle[aria-expanded="true"] .download-menu-chevron,
.video-nav-item .header-video-toggle[aria-expanded="true"] .download-menu-chevron,
.hero-download-dropdown [aria-expanded="true"] .download-menu-chevron,
.hero-video-dropdown [aria-expanded="true"] .download-menu-chevron {
  transform: rotate(180deg);
}

.download-dropdown-menu {
  min-width: min(390px, calc(100vw - 32px));
  padding: 0.55rem;
  margin-top: 0.65rem;
  border: 1px solid rgba(219, 231, 255, 0.55);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  text-align: right;
}

.download-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.75rem;
  border-radius: 0.6rem;
  color: #0f172a;
  white-space: normal;
}

.download-dropdown-item:hover,
.download-dropdown-item:focus {
  background: #eef5ff;
  color: var(--primary-dark);
}

.download-dropdown-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: #dbe7ff;
  color: var(--primary-dark);
}

.download-dropdown-content {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.download-dropdown-title {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.55;
}

.download-dropdown-requirement {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.download-dropdown-requirement .access-highlight {
  padding: 0 5px;
  font-size: 0.72rem;
}

.download-dropdown-status {
  width: fit-content;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-actions {
  align-items: center;
  position: relative;
  z-index: 20;
}

.hero-actions .btn {
  white-space: nowrap;
  max-width: 100%;
}

.hero-video-dropdown > .btn {
  color: #ffffff;
  background: #0ea5e9;
  border-color: #0ea5e9;
  box-shadow: 0 14px 24px rgba(14, 165, 233, 0.24);
}

.hero-video-dropdown > .btn:hover,
.hero-video-dropdown > .btn:focus {
  color: #ffffff;
  background: #0284c7;
  border-color: #0284c7;
}

.hero-download-dropdown {
  flex: 0 0 auto;
  position: relative;
  z-index: 80;
}

.hero-video-dropdown {
  flex: 0 0 auto;
  position: relative;
  z-index: 79;
}

.hero-download-dropdown .download-dropdown-menu {
  z-index: 100 !important;
}

.hero-video-dropdown .download-dropdown-menu {
  z-index: 99 !important;
}

@media (min-width: 992px) {
  .hero-actions {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  .hero-actions .btn {
    padding-inline: 0.72rem !important;
    font-size: 0.88rem;
  }
}

@media (min-width: 1200px) {
  .hero-actions .btn {
    padding-inline: 0.86rem !important;
    font-size: 0.94rem;
  }
}

.header-area .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.header-area .navbar-toggler-icon {
  filter: invert(1);
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .header-area .navbar-brand {
    font-size: 1.12rem !important;
    gap: 0.45rem !important;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .brand-icon {
    width: 25px;
    height: 25px;
  }

  .header-area .nav-link {
    padding-inline: 0.32rem;
    font-size: 0.84rem;
  }

  .header-area .nav-link .bi:not(.download-menu-chevron) {
    font-size: 0.82rem;
  }
}

.header-wave {
  width: 100%;
  line-height: 0;
}

.header-wave svg {
  display: block;
  width: 100%;
  height: 38px;
}

.header-wave path {
  fill: #ffffff;
}

.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 50px);
  overflow: visible;
  background:
    radial-gradient(circle at 100% 0%, rgba(36, 84, 255, 0.14), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.12), transparent 35%),
    #ffffff;
}

.hero-section .container,
.hero-section .row {
  position: relative;
  overflow: visible;
}

.hero-section .row > .col-lg-7 {
  position: relative;
  z-index: 2;
}

.hero-card-column {
  position: relative;
  z-index: 1;
}

.official-note {
  border-right: 4px solid var(--primary);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  color: #334155;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.official-note i {
  color: var(--primary);
}

.hero-card {
  min-height: 355px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.hero-card-column {
  align-self: flex-start;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 22px;
  align-items: center;
}

.hero-logo-wrap {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.hero-logo-img {
  display: block;
  width: min(100%, 235px);
  height: auto;
  object-fit: contain;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.institution-tag {
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-card li {
  margin-bottom: 12px;
  color: var(--muted);
}

.hero-card li:last-child {
  margin-bottom: 0;
}

.stats-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

.hero-stats-grid {
  margin-top: 2px;
}

.stat-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 108px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  text-align: center;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item h3 {
  color: var(--primary);
  font-weight: 800;
}

.module-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  border: 1px solid #d7e2f4;
  border-radius: 0.9rem;
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: #a9beff;
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.module-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eef4ff;
  color: var(--primary);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.module-brand {
  direction: ltr;
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.module-logo-frame {
  width: 72px;
  height: 72px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #d7e2f4;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow:
    0 7px 15px rgba(36, 84, 255, 0.1),
    inset 0 0 0 3px #f8fbff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.module-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-device-badge {
  width: 34px;
  height: 34px;
  border: 1px solid #d7e2f4;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--primary);
  font-size: 1.05rem;
  box-shadow:
    0 6px 13px rgba(36, 84, 255, 0.1),
    inset 0 0 0 2px #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.module-card:hover .module-logo-frame,
.module-card:focus-visible .module-logo-frame {
  transform: translateY(-2px);
  border-color: #a9beff;
}

.module-card:hover .module-device-badge,
.module-card:focus-visible .module-device-badge {
  transform: translateY(-2px);
}

.module-tab-card.active .module-logo-frame {
  border-color: #9eb6ff;
  box-shadow:
    0 10px 20px rgba(36, 84, 255, 0.16),
    inset 0 0 0 3px #f8fbff;
}

.module-tab-card.active .module-device-badge {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.module-card h5 {
  color: #111827;
  line-height: 1.65;
  margin-bottom: 12px;
}

.module-card-title {
  display: grid;
  gap: 6px;
}

.module-card-note {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.7;
}

.access-highlight {
  display: inline-block;
  color: #0f4fff;
  background: #eaf2ff;
  border: 1px solid #bfd0ff;
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 700;
}

.module-card p {
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 0;
}

.module-tab-card {
  position: relative;
  width: 100%;
  min-height: 300px;
  text-align: right;
  overflow: hidden;
  display: grid;
  grid-template-rows: 80px auto 1fr;
  row-gap: 14px;
  align-items: start;
}

.module-tab-card .module-brand {
  align-self: start;
  margin-bottom: 0;
}

.module-tab-card h5 {
  align-self: start;
  margin: 0;
}

.module-tab-card > p {
  align-self: start;
  margin: 0;
}

.module-tab-card::after {
  content: "✓";
  position: absolute;
  inset-inline-start: 22px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.module-tab-card.active {
  border-color: #9eb6ff;
  background:
    linear-gradient(180deg, #f6f9ff 0%, #eaf2ff 100%);
  box-shadow: 0 18px 36px rgba(36, 84, 255, 0.16);
}

.module-tab-card.active::after {
  opacity: 1;
  transform: scale(1);
}

.module-tab-card.active .module-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(36, 84, 255, 0.22);
}

.modules-tab-content .tab-pane {
  outline: 0;
}

.modules-panel {
  min-height: 320px;
  background: #fff;
  border: 1px solid #d9e3f8;
  border-radius: 1rem;
  padding: 26px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.program-summary-panel {
  position: relative;
  padding-left: min(48%, 590px);
}

.program-summary-actions {
  position: absolute;
  left: clamp(70px, 8vw, 150px);
  top: 50%;
  width: min(460px, calc(48% - 96px));
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(-50%);
}

.program-summary-btn {
  min-height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.program-summary-btn i {
  flex: 0 0 auto;
  font-size: 1.25rem;
}

.program-summary-btn:hover,
.program-summary-btn:focus {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.program-summary-download {
  background: var(--primary);
}

.program-summary-download:hover,
.program-summary-download:focus {
  background: var(--primary-dark);
}

.program-summary-gallery {
  background: #0f766e;
}

.program-summary-gallery:hover,
.program-summary-gallery:focus {
  background: #115e59;
}

.program-summary-guide {
  border: 0;
  background: #7c3aed;
}

.program-summary-guide:hover,
.program-summary-guide:focus {
  background: #6d28d9;
}

#budget-images,
#budget-download,
#texts-images,
#texts-download,
#app-images,
#app-download {
  scroll-margin-top: 150px;
}

.program-gallery {
  position: relative;
}

.program-images-swiper {
  padding: 2px 2px 12px;
}

.program-image-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e4ff;
  border-radius: 0.9rem;
  background: #eef4ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  cursor: zoom-in;
}

.program-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fbff;
  transition: transform 0.3s ease;
}

.program-image-card span {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
}

.program-image-card:hover img,
.program-image-card:focus-visible img {
  transform: scale(1.025);
}

.program-image-card:focus-visible {
  outline: 3px solid rgba(36, 84, 255, 0.35);
  outline-offset: 3px;
}

.app-image-card {
  padding: 14px;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin-inline: auto;
  border: 10px solid #111827;
  border-radius: 2.2rem;
  background:
    linear-gradient(180deg, #1f2937 0%, #030712 100%);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-image-card::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 50%;
  width: 86px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: #030712;
  transform: translateX(50%);
  z-index: 2;
}

.app-image-card img {
  border-radius: 1.35rem;
  background: #fff;
}

.app-image-card span {
  inset-inline-start: 22px;
  bottom: 22px;
  z-index: 3;
}

.program-swiper-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.program-swiper-button {
  width: 42px;
  height: 42px;
  border: 1px solid #c9d8ff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--primary-dark);
  transition: 0.2s ease;
}

.program-swiper-button:hover,
.program-swiper-button:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.program-swiper-pagination {
  position: static;
  width: auto !important;
  min-width: 110px;
  text-align: center;
}

.program-swiper-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #94a3b8;
  opacity: 0.55;
}

.program-swiper-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 1;
}

.download-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.download-box {
  min-height: 210px;
  border: 1px solid #d8e4ff;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  animation: panelItemReveal 0.7s ease both;
}

.download-box-primary {
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(36, 84, 255, 0.11), rgba(14, 165, 233, 0.08)),
    #ffffff;
}

.download-box-primary::after {
  content: "";
  position: absolute;
  inset-inline-start: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(36, 84, 255, 0.08);
}

.download-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 0.86rem;
}

.download-box-primary h5 {
  position: relative;
  z-index: 1;
  color: #10203f;
  line-height: 1.8;
}

.program-download-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(36, 84, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.program-download-btn i {
  font-size: 1.35rem;
}

.download-actions-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.winrar-download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.winrar-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.download-code-note {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(124, 45, 18, 0.2);
  border-radius: 999px;
  color: #7c2d12;
  background: #fff7ed;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.12);
}

.download-code-note strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: #7c2d12;
  font-size: 1.05rem;
}

.winrar-download-btn {
  background: #7c2d12;
  box-shadow: 0 14px 24px rgba(124, 45, 18, 0.22);
}

.program-download-btn.winrar-download-btn:hover,
.program-download-btn.winrar-download-btn:focus {
  background: #9a3412;
}

.program-download-btn:hover,
.program-download-btn:focus {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(17, 53, 190, 0.28);
}

.install-video-card {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  animation-delay: 0.12s;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.install-video-card:hover,
.install-video-card:focus {
  transform: translateY(-4px);
  border-color: #a8bfff;
  box-shadow: 0 18px 32px rgba(36, 84, 255, 0.14);
}

.install-video-card:focus-visible {
  outline: 3px solid rgba(36, 84, 255, 0.35);
  outline-offset: 3px;
}

.install-video-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #ffffff;
  border: 2px solid #dbe7ff;
  color: var(--primary);
  font-size: 2.35rem;
  box-shadow: 0 12px 24px rgba(36, 84, 255, 0.18);
  animation: videoIconBeat 2s ease-in-out infinite;
}

.install-video-card h6 {
  color: #10203f;
  line-height: 1.8;
}

.install-video-card.install-video-card-hint {
  z-index: 4;
  border-color: #2454ff;
  box-shadow:
    0 20px 42px rgba(36, 84, 255, 0.2),
    0 0 0 5px rgba(36, 84, 255, 0.12);
  animation: installVideoHintPulse 1.2s ease-in-out 5;
}

.install-video-card.install-video-card-hint::before {
  content: "شاهد فيديو شرح التثبيت هنا";
  position: absolute;
  right: 50%;
  top: -58px;
  z-index: 5;
  min-width: 220px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: #0f172a;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  transform: translateX(50%);
  pointer-events: none;
}

.install-video-card.install-video-card-hint::after {
  content: "";
  position: absolute;
  right: 50%;
  top: -15px;
  z-index: 5;
  width: 0;
  height: 0;
  border-inline: 10px solid transparent;
  border-top: 14px solid #0f172a;
  transform: translateX(50%);
  pointer-events: none;
}

.install-video-card.install-video-card-hint .install-video-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.install-video-prompt {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.install-video-prompt.show {
  opacity: 1;
  transform: translateY(0);
}

.install-video-prompt-card {
  position: relative;
  width: min(430px, 100%);
  padding: 28px 24px 22px;
  border: 1px solid rgba(191, 208, 255, 0.9);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.22),
    inset 0 0 0 4px rgba(248, 250, 252, 0.9);
  text-align: center;
  pointer-events: auto;
}

.install-video-prompt-close {
  position: absolute;
  top: 11px;
  inset-inline-start: 11px;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3f1;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  background: #ffffff;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.install-video-prompt-close:hover,
.install-video-prompt-close:focus {
  color: #ffffff;
  background: #ef4444;
  border-color: #ef4444;
}

.install-video-prompt-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: #eef4ff;
  font-size: 2rem;
}

.install-video-prompt-card h5 {
  margin-bottom: 10px;
  color: #10203f;
  font-weight: 800;
  line-height: 1.7;
}

.install-video-prompt-card p {
  margin-bottom: 18px;
  color: #475569;
  font-weight: 700;
  line-height: 1.8;
}

.install-video-prompt-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.install-video-prompt-actions .btn {
  min-width: 104px;
  border-radius: 0.55rem;
  font-weight: 800;
}

@keyframes installVideoHintPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.install-video-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

.google-play-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.04), rgba(36, 84, 255, 0.08)),
    #ffffff;
  animation-delay: 0.12s;
}

.google-play-icon {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #dbe3f1;
  font-size: 2.6rem;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.google-play-text {
  font-weight: 900;
  color: #10203f;
  font-size: 1.15rem;
}

@keyframes panelItemReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.82rem;
}

.panel-list li {
  margin-bottom: 10px;
  color: #334155;
}

.panel-list i {
  color: var(--primary);
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 0;
  width: 62px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.feature-item p {
  color: var(--muted);
}

.features-logo-box {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.features-logo-img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

#suggestions {
  scroll-margin-top: 150px;
}

.suggestions-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.suggestions-box {
  overflow: hidden;
  border: 1px solid #d8e4ff;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.suggestions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  background:
    linear-gradient(135deg, rgba(36, 84, 255, 0.09), rgba(14, 165, 233, 0.07)),
    #ffffff;
}

.suggestions-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.suggestions-action {
  flex: 0 0 auto;
}

.suggestions-frame-wrap {
  height: min(82vh, 820px);
  min-height: 560px;
  background: #f8fafc;
}

.suggestions-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonials-swiper {
  padding-bottom: 28px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 24px;
  height: 100%;
}

.testimonial-card p {
  color: var(--muted);
  min-height: 72px;
  line-height: 1.9;
}

.video-card {
  background: #fff;
  border: 1px solid #dbe3f1;
  border-radius: 1rem;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

article.video-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.video-thumb {
  height: 110px;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #f4f8ff 0%, #e6efff 100%);
  border: 1px solid #d8e4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.video-thumb i {
  color: var(--primary);
  font-size: 2.1rem;
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #dbe7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: videoIconBeat 2s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(36, 84, 255, 0.2);
}

.video-thumb {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.video-thumb::before,
.video-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(36, 84, 255, 0.35);
  transform: translate(-50%, -50%);
  animation: videoPulseRing 2.2s ease-out infinite;
  z-index: 1;
}

.video-thumb::after {
  animation-delay: 1.1s;
  border-color: rgba(36, 84, 255, 0.22);
}

.video-open-btn {
  align-self: center;
  margin-top: auto;
  font-weight: 700;
}

@media (min-width: 1200px) {
  .video-budget-grid > .col:nth-last-child(-n + 3) {
    width: 33.333333%;
  }
}

@keyframes videoIconBeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes videoPulseRing {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

.video-tab-btn {
  border: 1px solid #d7e2fb;
  background: #fff;
  border-radius: 0.8rem;
  padding: 12px 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  transition: 0.2s ease;
}

.video-tab-btn.active {
  border-color: #a8bfff;
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%);
  color: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(36, 84, 255, 0.12);
}

.video-tab-content .tab-pane {
  outline: 0;
}

.video-card iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.video-modal-content {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.video-modal-content .modal-header {
  gap: 12px;
}

.video-preview-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.video-tool-btn,
.video-mini-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(13, 110, 253, 0.22);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  background: #ffffff;
  transition: 0.2s ease;
}

.video-tool-btn:hover,
.video-tool-btn:focus,
.video-mini-btn:hover,
.video-mini-btn:focus {
  color: #ffffff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

#videoPreviewFrame {
  border: 0;
}

#videoPreviewModal {
  z-index: 2000;
}

#videoPreviewModal.video-modal-fullscreen .modal-dialog {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

#videoPreviewModal.video-modal-fullscreen .video-modal-content {
  height: 100%;
  border-radius: 0;
}

#videoPreviewModal.video-modal-fullscreen .modal-body,
#videoPreviewModal.video-modal-fullscreen .ratio {
  height: calc(100vh - 71px);
}

#videoPreviewModal.video-modal-fullscreen .ratio::before {
  display: none;
}

.video-mini-player {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: min(420px, calc(100vw - 36px));
  min-width: 260px;
  max-width: calc(100vw - 24px);
  min-height: 190px;
  max-height: calc(100vh - 24px);
  overflow: hidden;
  resize: both;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  z-index: 2060;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.22s ease;
}

.video-mini-player.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.video-mini-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--header-solid);
  color: #ffffff;
  cursor: grab;
  user-select: none;
}

.video-mini-player.dragging .video-mini-header {
  cursor: grabbing;
}

.video-mini-header span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.88rem;
}

.video-mini-actions {
  display: inline-flex;
  gap: 6px;
}

.video-mini-btn {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.video-mini-player iframe {
  border: 0;
}

.modal-backdrop.show {
  z-index: 1990;
}

.image-modal-content {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #f8fbff;
}

.image-modal-content .modal-header {
  gap: 12px;
}

.image-preview-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.image-tool-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(13, 110, 253, 0.22);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  background: #ffffff;
  transition: 0.2s ease;
}

.image-tool-btn:hover,
.image-tool-btn:focus {
  color: #ffffff;
  background: var(--bs-primary);
  border-color: var(--bs-primary);
}

.image-modal-content .modal-body {
  min-height: 60vh;
  max-height: calc(100vh - 120px);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background:
    linear-gradient(45deg, rgba(219, 231, 255, 0.4) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(219, 231, 255, 0.4) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(219, 231, 255, 0.4) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(219, 231, 255, 0.4) 75%),
    #ffffff;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

#imagePreviewFrame {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

#imagePreviewModal {
  z-index: 2000;
}

#imagePreviewModal.image-modal-fullscreen .modal-dialog {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

#imagePreviewModal.image-modal-fullscreen .image-modal-content {
  height: 100%;
  border-radius: 0;
}

#imagePreviewModal.image-modal-fullscreen .modal-body {
  min-height: 0;
  max-height: calc(100vh - 71px);
}

#imagePreviewModal.image-modal-fullscreen #imagePreviewFrame {
  max-height: calc(100vh - 110px);
}

.footer-area {
  background: var(--header-solid);
  color: #f8fafc;
  position: relative;
  padding-top: 95px;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 62px;
  display: block;
}

.footer-wave path {
  fill: #f8fbff;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.social-icons a {
  color: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-links a:hover,
.social-icons a:hover {
  color: #bfdbfe;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-area .text-secondary {
  color: rgba(226, 232, 240, 0.85) !important;
}

.footer-area hr {
  border-color: rgba(148, 163, 184, 0.35);
}

.footer-sub {
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.92rem;
}

.floating-social {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 82px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.floating-social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-social-link:hover,
.floating-social-link:focus {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.04);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.24);
}

.floating-social-facebook {
  background: #1877f2;
}

.floating-social-whatsapp {
  background: #25d366;
}

.floating-social-youtube {
  background: #ff0000;
}

.floating-social-telegram {
  background: #229ed9;
}

.back-to-top {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--header-solid);
  color: #fff;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1200;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

/* Classic interface polish: keeps the existing color palette intact. */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

.btn {
  position: relative;
  min-height: 48px;
  border-width: 1px;
  border-radius: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: calc(0.7rem - 4px);
  pointer-events: none;
}

.btn-outline-primary::after {
  border-color: rgba(36, 84, 255, 0.18);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 11px 22px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.1),
    inset 0 2px 4px rgba(15, 23, 42, 0.08);
}

.header-area .nav-link {
  position: relative;
  padding-inline: 0.48rem;
}

.header-area .nav-link::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateX(50%);
  transition: width 0.22s ease;
}

.header-area .nav-link:hover::after,
.header-area .nav-link:focus-visible::after {
  width: calc(100% - 1.5rem);
}

.header-area .navbar-toggler {
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.header-area .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(219, 231, 255, 0.25);
}

.official-note,
.hero-card,
.stat-item,
.module-card,
.modules-panel,
.download-box,
.testimonial-card,
.video-card,
.features-logo-box {
  position: relative;
}

.official-note {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  border-radius: 0.65rem;
}

.hero-card,
.modules-panel,
.download-box,
.testimonial-card,
.video-card,
.features-logo-box {
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.07),
    inset 0 0 0 3px rgba(248, 250, 252, 0.9);
}

.hero-card {
  border-radius: 0.85rem;
}

.hero-card::before,
.modules-panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(219, 227, 241, 0.75);
  border-radius: calc(1rem - 7px);
  pointer-events: none;
}

.hero-card-grid,
.modules-panel > :not(.program-summary-actions) {
  position: relative;
  z-index: 1;
}

.stat-item {
  overflow: hidden;
  border-radius: 0.65rem;
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.06),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--primary);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 11px 22px rgba(15, 23, 42, 0.09),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #e2e8f0;
}

.module-card {
  border-radius: 0.75rem;
  box-shadow:
    0 9px 20px rgba(15, 23, 42, 0.06),
    inset 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(215, 226, 244, 0.8);
  border-radius: calc(0.75rem - 7px);
  pointer-events: none;
}

.module-card > * {
  position: relative;
  z-index: 1;
}

.module-icon {
  border-radius: 0.65rem;
  border: 1px solid #d7e2f4;
  box-shadow:
    0 7px 15px rgba(36, 84, 255, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.module-tab-card.active {
  box-shadow:
    0 17px 32px rgba(36, 84, 255, 0.14),
    inset 0 0 0 4px rgba(255, 255, 255, 0.62);
}

.program-summary-actions {
  gap: 16px;
}

.program-summary-btn,
.program-download-btn {
  border-radius: 0.72rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.program-summary-btn:hover,
.program-summary-btn:focus-visible,
.program-download-btn:hover,
.program-download-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.program-summary-btn:active,
.program-download-btn:active {
  transform: translateY(0);
}

.program-image-card {
  border-radius: 0.72rem;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.08),
    inset 0 0 0 4px #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-image-card:hover,
.program-image-card:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 15px 28px rgba(15, 23, 42, 0.13),
    inset 0 0 0 4px #ffffff;
}

.program-swiper-button {
  border-radius: 0.6rem;
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.08),
    inset 0 0 0 3px #ffffff;
}

.program-swiper-button:active {
  transform: translateY(1px);
}

.section-title h2 {
  padding-inline: 30px;
  padding-bottom: 14px;
}

.section-title h2::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 3px;
  width: 96px;
  height: 1px;
  background: #d7e2f4;
  transform: translateX(50%);
}

.section-title h2::after {
  width: 48px;
  height: 3px;
}

.feature-item {
  align-items: flex-start;
  margin-bottom: 12px !important;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #ffffff;
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.05),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateX(-3px);
  box-shadow:
    0 11px 22px rgba(15, 23, 42, 0.08),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #e2e8f0;
}

.feature-item > i {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #d7e2f4;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fbff;
}

.testimonial-card {
  overflow: hidden;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -12px;
  inset-inline-start: 12px;
  color: var(--primary-soft);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.testimonial-card > * {
  position: relative;
  z-index: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.1),
    inset 0 0 0 3px rgba(248, 250, 252, 0.9);
}

.video-card {
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.1),
    inset 0 0 0 3px rgba(248, 250, 252, 0.9);
}

.video-thumb,
.video-tab-btn {
  border-radius: 0.6rem;
}

.video-open-btn {
  border-radius: 0.55rem;
}

.accordion {
  max-width: 980px;
  margin-inline: auto;
}

.accordion-item {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #dbe3f1;
  border-radius: 0.65rem !important;
  background: #ffffff;
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.05),
    inset 0 0 0 3px #ffffff;
}

.accordion-button {
  min-height: 62px;
  padding: 16px 20px;
  background: #ffffff;
  color: var(--dark);
  font-weight: 700;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-dark);
  background: #f8fbff;
  box-shadow: inset 0 -1px 0 #dbe3f1;
}

.accordion-button:focus {
  border-color: #a9beff;
  box-shadow: inset 0 0 0 2px rgba(36, 84, 255, 0.16);
}

.accordion-body {
  line-height: 1.9;
  color: var(--muted);
}

.modal-content {
  border: 1px solid #dbe3f1 !important;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.22),
    inset 0 0 0 4px rgba(248, 250, 252, 0.9);
}

.modal-header {
  border-bottom-color: #dbe3f1;
  background: #f8fbff;
}

.social-icons a,
.floating-social-link,
.back-to-top {
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.18),
    inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.social-icons a:hover,
.social-icons a:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 11px 22px rgba(15, 23, 42, 0.22),
    inset 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-inline-start: 14px;
}

.footer-links a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid rgba(36, 84, 255, 0.28);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991.98px) {
  .official-strip {
    font-size: 0.82rem;
    padding: 6px 0;
  }

  .section-gap {
    padding: 70px 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 175px;
    padding-bottom: 50px;
  }

  .hero-card-column {
    align-self: auto;
  }

  .hero-card {
    min-height: auto;
  }

  .modules-panel {
    min-height: 280px;
  }

  .module-tab-card {
    min-height: 250px;
    grid-template-rows: 72px auto 1fr;
  }

  .program-summary-panel {
    padding-left: 26px;
  }

  .program-summary-actions {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 24px;
    transform: none;
  }

  .header-area .nav-link::after {
    right: 0;
    transform: none;
  }

  .header-area .nav-link:hover::after,
  .header-area .nav-link:focus-visible::after {
    width: 42px;
  }

  .hero-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    min-height: 210px;
  }

  .download-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .module-tab-card {
    grid-template-rows: 72px auto 1fr;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-item {
    min-height: 92px;
    padding: 12px 5px;
  }

  .stat-item h3 {
    font-size: 1.45rem;
  }

  .stat-item small {
    font-size: 0.76rem;
  }

  .module-card {
    padding: 22px;
  }

  .module-icon {
    width: 48px;
    height: 48px;
    font-size: 1.55rem;
    margin-bottom: 14px;
  }

  .module-brand {
    gap: 7px;
    margin-bottom: 14px;
  }

  .module-logo-frame {
    width: 64px;
    height: 64px;
  }

  .module-device-badge {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .btn {
    min-height: 46px;
  }

  .program-summary-btn {
    width: 100%;
  }

  .back-to-top {
    left: 12px;
    right: auto;
    bottom: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }

  .floating-social {
    left: 12px;
    right: auto;
    bottom: 66px;
    gap: 8px;
  }

  .floating-social-link {
    width: 42px;
    height: 42px;
    font-size: 1.08rem;
  }

  .download-box-primary,
  .install-video-card {
    min-height: 190px;
    padding: 22px;
  }

  .program-download-btn {
    width: 100%;
  }

  .download-actions-row,
  .winrar-download-group,
  .winrar-buttons-row {
    width: 100%;
  }
}

/* Responsive refinement for tablets and phones. */
@media (max-width: 991.98px) {
  .container {
    max-width: 100%;
    padding-inline: 24px;
  }

  .header-area .navbar {
    padding-block: 0.75rem !important;
  }

  .header-area .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 58px);
    font-size: 1.08rem !important;
    line-height: 1.45;
  }

  .header-area .navbar-brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-area .navbar-collapse {
    max-height: calc(100vh - var(--header-height));
    margin-top: 10px;
    padding: 8px 12px 12px;
    overflow-y: auto;
    border-top: 1px solid rgba(226, 232, 240, 0.22);
  }

  .header-area .nav-link {
    padding-block: 0.65rem;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero-section h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }

  .hero-section .fs-5 {
    font-size: 1.05rem !important;
  }

  .module-tabs-nav > div:last-child {
    width: 100%;
  }

  .features-logo-box {
    min-height: 260px;
  }

  .suggestions-head {
    align-items: stretch;
    flex-direction: column;
  }

  .suggestions-action {
    width: 100%;
  }

  .suggestions-frame-wrap {
    height: 76vh;
    min-height: 520px;
  }

  .footer-area {
    padding-top: 82px;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-inline: 16px;
  }

  .section-gap {
    padding: 56px 0;
  }

  .section-gap-sm {
    padding: 48px 0 24px;
  }

  .header-wave svg {
    height: 24px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-section h1 {
    font-size: clamp(1.7rem, 7.4vw, 2.15rem);
    line-height: 1.55 !important;
  }

  .hero-section .fs-5 {
    font-size: 0.98rem !important;
    line-height: 1.9;
  }

  .hero-section .d-flex.gap-3.flex-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }

  .hero-section .d-flex.gap-3.flex-wrap .btn {
    width: 100%;
    padding-inline: 10px !important;
    font-size: 0.92rem;
  }

  .official-note {
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .hero-card {
    padding: 20px !important;
  }

  .hero-card-grid {
    gap: 18px;
  }

  .hero-card h5 {
    line-height: 1.65;
  }

  .hero-card li {
    margin-bottom: 9px;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .hero-logo-wrap {
    min-height: 170px;
  }

  .hero-logo-img {
    width: min(82%, 220px);
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-item {
    min-height: 94px;
    padding: 11px 5px;
  }

  .stat-item small {
    line-height: 1.45;
  }

  .section-title {
    margin-bottom: 2rem !important;
  }

  .section-title h2 {
    padding-inline: 18px;
    font-size: 1.65rem;
    line-height: 1.5;
  }

  .section-title p {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .module-tabs-nav > div,
  .module-tabs-nav > div:last-child {
    width: 100%;
  }

  .module-tab-card {
    min-height: 0;
    grid-template-rows: 72px auto auto;
    row-gap: 10px;
  }

  .module-card h5 {
    font-size: 1rem;
    line-height: 1.7;
  }

  .module-card p {
    font-size: 0.91rem;
    line-height: 1.85;
  }

  .modules-panel {
    min-height: 0;
    padding: 20px;
    border-radius: 0.8rem;
  }

  .modules-panel::before {
    inset: 5px;
  }

  .modules-panel h4 {
    font-size: 1.2rem;
    line-height: 1.65;
  }

  .panel-list li {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .program-summary-panel {
    padding-left: 20px;
  }

  .program-summary-actions {
    gap: 12px;
  }

  .program-summary-btn {
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .program-image-card {
    aspect-ratio: 4 / 3;
  }

  .app-image-card {
    width: min(100%, 300px);
    aspect-ratio: 9 / 16;
  }

  .program-swiper-actions {
    gap: 9px;
  }

  .program-swiper-pagination {
    min-width: 80px;
  }

  .download-box-primary,
  .install-video-card,
  .google-play-box {
    min-height: 180px;
    padding: 20px;
  }

  .program-download-btn {
    width: 100%;
    padding-inline: 14px;
    text-align: center;
  }

  .video-tab-btn {
    min-height: 54px;
    padding: 10px;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  article.video-card {
    min-height: 100%;
  }

  .video-thumb {
    height: 100px;
  }

  .video-card h6 {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .video-card p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .feature-item {
    padding: 14px;
  }

  .feature-item > i {
    margin-left: 10px !important;
  }

  .features-logo-box {
    min-height: 220px;
    padding: 20px !important;
  }

  .testimonial-card {
    padding: 20px;
  }

  .accordion-button {
    padding: 14px 16px;
    font-size: 0.93rem;
    line-height: 1.7;
  }

  .accordion-body {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .footer-area .row {
    text-align: center;
  }

  .footer-area .social-icons {
    justify-content: center;
  }

  .footer-links a {
    padding-inline: 14px;
  }

  .modal-dialog {
    margin: 10px;
  }

  .image-modal-content .modal-body {
    min-height: 45vh;
    padding: 10px;
  }

  .floating-social {
    gap: 7px;
  }

  .floating-social-link,
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding-inline: 12px;
  }

  .official-strip {
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .header-area .navbar-brand {
    max-width: calc(100% - 52px);
    font-size: 0.92rem !important;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .brand-icon {
    width: 25px;
    height: 25px;
  }

  .hero-section .d-flex.gap-3.flex-wrap {
    grid-template-columns: 1fr;
  }

  .stat-item h3 {
    font-size: 1.3rem;
  }

  .stat-item small {
    font-size: 0.68rem;
  }

  .module-logo-frame {
    width: 58px;
    height: 58px;
  }

  .module-device-badge {
    width: 30px;
    height: 30px;
  }

  .program-summary-btn {
    font-size: 0.82rem;
  }

  .floating-social,
  .back-to-top {
    left: 8px;
  }
}

/* Final mobile polish */
@media (max-width: 767.98px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  main {
    overflow-x: hidden;
  }

  .header-area {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  }

  .official-strip {
    font-size: 0.74rem;
    line-height: 1.65;
    padding-block: 5px;
  }

  .header-area .navbar {
    padding-block: 0.55rem !important;
  }

  .header-area .navbar-brand {
    max-width: calc(100% - 48px);
    gap: 0.45rem !important;
    font-size: 0.96rem !important;
    line-height: 1.35;
  }

  .header-area .navbar-collapse {
    max-height: calc(100vh - 92px);
    padding: 8px;
    background: rgba(28, 67, 201, 0.98);
    border-radius: 0 0 14px 14px;
  }

  .header-area .navbar-nav {
    align-items: stretch;
    gap: 2px;
  }

  .header-area .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.72rem 0.78rem;
    border-radius: 10px;
    white-space: nowrap;
  }

  .header-area .nav-link:hover,
  .header-area .nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
  }

  .download-dropdown-menu {
    min-width: 100%;
    width: min(100%, calc(100vw - 32px));
    margin-top: 0.35rem;
    max-height: 70vh;
    overflow-y: auto;
  }

  .download-dropdown-item {
    padding: 0.65rem;
    gap: 0.55rem;
  }

  .download-dropdown-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .download-dropdown-title {
    font-size: 0.82rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 34px;
  }

  .hero-section .row {
    gap: 18px;
  }

  .hero-section h1 {
    margin-bottom: 0.75rem !important;
    font-size: clamp(1.58rem, 7vw, 2rem);
    text-align: center;
  }

  .hero-section .fs-5,
  .official-note {
    text-align: center;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    z-index: 3;
  }

  .hero-actions .btn,
  .hero-download-dropdown,
  .hero-video-dropdown,
  .hero-download-dropdown > button,
  .hero-video-dropdown > button {
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: center;
    min-height: 48px;
    white-space: normal;
    line-height: 1.45;
  }

  .hero-download-dropdown .download-dropdown-menu,
  .hero-video-dropdown .download-dropdown-menu {
    width: 100%;
    max-width: none;
  }

  .hero-card {
    margin-top: 4px;
    border-radius: 12px;
  }

  .hero-logo-wrap {
    min-height: 150px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-item {
    border-radius: 10px;
  }

  .module-card,
  .modules-panel,
  .download-box,
  .video-card,
  .testimonial-card,
  .features-logo-box,
  .suggestions-box {
    border-radius: 12px;
  }

  .modules-panel h4 .text-nowrap {
    white-space: normal !important;
  }

  .access-highlight {
    display: inline;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 1px 5px;
    font-size: 0.82em;
  }

  .download-box-primary {
    align-items: center;
    text-align: center;
    padding: 18px 14px;
  }

  .download-box-primary h5 {
    width: 100%;
    font-size: 0.98rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .program-images-swiper {
    overflow: visible;
  }

  .program-swiper-actions {
    flex-wrap: nowrap;
  }

  .video-tabs-nav > div {
    width: 100%;
  }

  .suggestions-frame-wrap {
    height: 68vh;
    min-height: 430px;
  }

  .video-modal-content .modal-header,
  .image-modal-content .modal-header {
    gap: 8px;
    align-items: center;
  }

  .video-preview-tools,
  .image-preview-tools {
    gap: 4px;
  }

  .video-tool-btn,
  .image-tool-btn {
    width: 34px;
    height: 34px;
  }

  .video-mini-player {
    right: 10px;
    left: 10px;
    bottom: 74px;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 20px);
    min-height: 170px;
    resize: vertical;
  }

  .floating-social {
    display: flex;
    left: 10px;
    right: auto;
    bottom: 66px;
    gap: 8px;
    z-index: 1075;
  }

  .floating-social-link {
    width: 40px;
    height: 40px;
    font-size: 1.06rem;
  }

  .back-to-top {
    left: 12px;
    bottom: 12px;
  }
}

@media (max-width: 360px) {
  .header-area .navbar-brand {
    font-size: 0.84rem !important;
  }

  .hero-section h1 {
    font-size: 1.45rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .modal-title {
    font-size: 0.9rem;
  }

  .video-tool-btn,
  .image-tool-btn {
    width: 31px;
    height: 31px;
  }
}
