*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --slate:        #313c4c;
  --slate-light:  #51627c;
  --slate-dark:   #141920;
  --green:        #0b9a61;
  --green-light:  #22c55e;
  --green-dark:   #04462b;
  --red:          #f7292d;
  --red-light:    #ff6b6e;
  --red-dark:     #7c0b0e;

  /* Light theme (default) */
  --bg:           #ffffff;
  --bg-surface:   #f4f6f9;
  --bg-card:      #ffffff;
  --text:         #313c4c;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --topbar-bg:    #313c4c;
  --topbar-text:  #d0d8e4;
  --shadow:       rgba(49, 60, 76, 0.08);
  --nav-bg:       #ffffff;
  --nav-border:   #e2e8f0;
  --overlay:      rgba(49, 60, 76, 0.55);

  /* Typography */
  --font:         'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Transitions */
  --transition:   0.25s ease;
}

[data-theme="dark"] {
  --bg:           #141920;
  --bg-surface:   #1c2535;
  --bg-card:      #1c2535;
  --text:         #e8edf4;
  --text-muted:   #8a9ab5;
  --border:       #2a3a50;
  --topbar-bg:    #0a0d12;
  --topbar-text:  #8a9ab5;
  --shadow:       rgba(0, 0, 0, 0.3);
  --nav-bg:       #141920;
  --nav-border:   #2a3a50;
  --overlay:      rgba(10, 13, 18, 0.7);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  max-width: 100vw;
}

/* RTL base */
[dir="rtl"] {
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  background-color: var(--topbar-bg);
  color: var(--topbar-text);
  padding: 0.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 1rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--green);
  flex-shrink: 0;
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--topbar-text);
  transition: color var(--transition);
}

.topbar-socials a:last-child { border-right: none; }

[dir="rtl"] .topbar-socials a {
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.1);
}
[dir="rtl"] .topbar-socials a:last-child { border-left: none; }

.topbar-socials a:hover { color: var(--green); }

.topbar-socials svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

@media (max-width: 768px) {
  .topbar { display: none; }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  transition: background-color var(--transition), border-color var(--transition),
              box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255,255,255,0.92);
}

[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(20, 25, 32, 0.92);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-logo span { color: var(--green); }

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 6px;
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background-color: var(--bg-surface);
}

.nav-link .arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  transform: translateX(-50%) translateY(8px);
  z-index: 1100;
}

[dir="rtl"] .dropdown {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
[dir="rtl"] .dropdown.open,
[dir="rtl"] .nav-item:hover .dropdown {
  transform: translateX(50%) translateY(0);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color var(--transition), color var(--transition);
}

.dropdown a:hover {
  background-color: var(--bg-surface);
  color: var(--green);
}

/* Right side actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lang-btn:hover { border-color: var(--green); }

.lang-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 25px var(--shadow);
  min-width: 130px;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 1200;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-option:hover,
.lang-option.active {
  background: var(--bg-surface);
  color: var(--green);
}

.lang-flag { font-size: 1rem; }

/* Theme toggle */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.theme-btn:hover { border-color: var(--green); color: var(--green); }

.theme-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Book CTA button in nav */
.btn-book-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-book-nav:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 100px 5% 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .mobile-sub {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

[dir="rtl"] .mobile-nav .mobile-sub {
  padding-left: 0;
  padding-right: 1.5rem;
}

.mobile-nav .mobile-sub a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .nav-menu,
  .btn-book-nav { display: none; }
  .hamburger { display: flex; }
  .nav-actions .theme-btn { display: none; }
  .navbar { padding: 0 4%; }
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  height: 90vh;
  min-height: 500px;
  max-height: 800px;
  background: var(--slate-dark);
}

.carousel {
  position: relative;
  height: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.carousel-content {
  position: relative;
  z-index: 2;
  padding: 0 10%;
  max-width: 750px;
  color: #fff;
}

.carousel-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-tagline::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--green-light);
}

[dir="rtl"] .carousel-tagline { flex-direction: row-reverse; }
[dir="rtl"] .carousel-tagline::before { display: none; }
[dir="rtl"] .carousel-tagline::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--green-light);
}

.carousel-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
}

.carousel-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 480px;
}

.carousel-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 14px rgba(247,41,45,0.35);
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background var(--transition), border-color var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* Carousel controls */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

.carousel-prev { left: 3%; }
.carousel-next { right: 3%; }

[dir="rtl"] .carousel-prev { left: auto; right: 3%; }
[dir="rtl"] .carousel-next { right: auto; left: 3%; }

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255,255,255,0.3);
}

.carousel-prev svg,
.carousel-next svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

@media (max-width: 960px) {
  .carousel-prev,
  .carousel-next {
    width: 38px;
    height: 38px;
  }
  .carousel-prev svg,
  .carousel-next svg {
    width: 16px;
    height: 16px;
  }
  .carousel-prev { left: 1.5%; }
  .carousel-next { right: 1.5%; }
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--green);
  transform: scale(1.3);
}

/* =========================================================
   FACTS BAR
   ========================================================= */
.facts {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
}

.fact-item:last-child { border-right: none; }

[dir="rtl"] .fact-item {
  border-right: none;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .fact-item:last-child { border-left: none; }

.fact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .fact-icon { background: var(--green); }

.fact-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.fact-text h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.fact-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .fact-item { border-right: 1px solid var(--border); }
  .fact-item:nth-child(2),
  .fact-item:nth-child(4) { border-right: none; }
  .fact-item:nth-child(3),
  .fact-item:nth-child(4) { border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .facts-inner { grid-template-columns: 1fr; }
  .fact-item { border-right: none !important; border-top: 1px solid var(--border); }
  .fact-item:first-child { border-top: none; }
}

/* =========================================================
   SECTION UTILITIES
   ========================================================= */
.section { padding: 5rem 5%; }
.section-sm { padding: 3rem 5%; }

.section-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   ABOUT SECTION (homepage preview)
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 420px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 80px);
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

[dir="rtl"] .about-img-main {
  left: auto;
  right: 0;
}

.about-img-accent {
  position: absolute;
  bottom: -30px;
  right: 0;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid var(--bg);
  box-shadow: 0 8px 24px var(--shadow);
}

[dir="rtl"] .about-img-accent {
  right: auto;
  left: 0;
}

.about-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.check-item::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--slate);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: var(--slate-dark);
  transform: translateY(-2px);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.phone-link:hover { color: var(--green); }

.phone-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 280px; margin-bottom: 2rem; }
}

/* =========================================================
   COURSES CARDS
   ========================================================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.course-card:hover {
  box-shadow: 0 12px 35px var(--shadow);
  transform: translateY(-4px);
}

.course-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-price-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.course-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.course-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-meta-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--green);
}

/* Courses section actions */
.courses-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.btn-ghost:hover {
  background: var(--green);
  color: #fff;
}

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

@media (max-width: 580px) {
  .courses-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   APPOINTMENT FORM
   ========================================================= */
.appointment-wrap {
  background: var(--slate);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 3rem;
}

[data-theme="dark"] .appointment-wrap { background: var(--bg-surface); }

.appointment-wrap .section-title { color: #fff; }
[data-theme="dark"] .appointment-wrap .section-title { color: var(--text); }

.appt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.appt-grid .full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

[data-theme="dark"] .form-group label { color: var(--text-muted); }

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}

[data-theme="dark"] .form-control {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.form-control::placeholder { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .form-control::placeholder { color: var(--text-muted); }

.form-control:focus { border-color: var(--green); }

.form-control option { background: var(--slate); color: #fff; }
[data-theme="dark"] .form-control option { background: var(--bg-surface); color: var(--text); }

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  transition: background var(--transition);
}

.btn-submit:hover { background: var(--red-dark); }

@media (max-width: 600px) {
  .appt-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FEATURES / WHY CHOOSE US
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .feature-icon-box { background: var(--green); }

.feature-icon-box svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.feature-item h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-image {
  position: relative;
  height: 450px;
}

.features-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: absolute;
  top: 0;
  right: 0;
}

[dir="rtl"] .features-image img { right: auto; left: 0; }

.features-image-accent {
  display: none;
}

[dir="rtl"] .features-image-accent { left: auto; right: 0; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .features-image { display: none; }
}

@media (max-width: 580px) {
  .features-list { grid-template-columns: 1fr; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--bg-surface);
}

.testimonial-track-wrap {
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 5%;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--green);
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-hr {
  width: 50px;
  height: 2px;
  background: var(--green);
  margin: 0 auto 1rem;
  border: none;
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.testimonial-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.testimonial-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.testimonial-dots {
  display: flex;
  gap: 0.4rem;
}

.testimonial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.testimonial-dot.active { background: var(--green); }

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.team-card {
  position: relative;
  overflow: hidden;
}

.team-card:not(:last-child) {
  border-right: 1px solid var(--border);
}

[dir="rtl"] .team-card:not(:last-child) {
  border-right: none;
  border-left: 1px solid var(--border);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-card:hover img { transform: scale(1.05); }

.team-socials {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11,154,97,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover .team-socials { opacity: 1; }

.team-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition);
}

.team-socials a:hover { background: rgba(255,255,255,0.2); }

.team-socials svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.team-info {
  padding: 1.25rem;
  background: var(--bg-surface);
  text-align: center;
  border-top: 1px solid var(--border);
}

.team-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.team-info span {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card:nth-child(2) { border-right: none; }
  .team-card:nth-child(3) { border-top: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { border-right: none !important; }
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-section {
  background: linear-gradient(135deg, var(--slate), var(--slate-dark));
  padding: 6rem 5%;
  text-align: center;
  color: #fff;
}

.cta-section .section-title { color: #fff; }

.cta-section .section-title span { color: var(--green-light); }

.cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: 2.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--red);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 24px rgba(247,41,45,0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-cta:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(247,41,45,0.4);
}

.btn-cta svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-brand p svg {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--green);
}

[dir="rtl"] .footer-heading::after { left: auto; right: 0; }

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green); }

.footer-hours li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.footer-hours li svg {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-links a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.social-links svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.footer-map {
  border-radius: 10px;
  overflow: hidden;
  height: 160px;
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* STR Badge */
.str-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.str-logo {
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.str-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.str-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Copyright */
.copyright {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  padding: 1.1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copyright a { color: var(--green); }
.copyright a:hover { text-decoration: underline; }

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

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .copyright { flex-direction: column; text-align: center; }
}

/* =========================================================
   PAGE HERO BANNER (inner pages)
   ========================================================= */
.page-banner {
  background: linear-gradient(135deg, var(--slate), var(--slate-dark));
  padding: 5rem 5% 4rem;
  color: #fff;
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 550px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a { color: var(--green-light); }
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep { font-size: 0.7rem; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.value-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

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

@media (max-width: 580px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   COURSES PAGE
   ========================================================= */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--bg-surface);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.courses-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .courses-full-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .courses-full-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .contact-info-icon { background: var(--green); }

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.contact-info-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--transition);
}

.contact-info-text a:hover { color: var(--green); }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.contact-form-card .form-group label {
  color: var(--text-muted);
}

.contact-form-card .form-control {
  background: var(--bg-surface);
  border-color: var(--border);
  color: var(--text);
}

.contact-form-card .form-control::placeholder { color: var(--text-muted); }

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11,154,97,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 900;
}

[dir="rtl"] .back-to-top { right: auto; left: 1.75rem; }

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover { transform: translateY(-3px); }

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.alt-bg { background: var(--bg-surface); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }



.str-image {
  max-width: 60px;
}


    /* ── Sticky animated header (index.html only) ─────────────────────────── */

    /* 1. Wrap topbar + navbar together so they both stick */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    /* 2. Override the shared CSS that also set sticky on .navbar alone */
    .site-header .navbar {
      position: relative;
      top: auto;
      z-index: auto;
    }

    /* 3. Entrance animation – fires once when the page loads */
    @keyframes headerSlideDown {
      from { transform: translateY(-100%); opacity: 0; }
      to   { transform: translateY(0);     opacity: 1; }
    }
    .site-header {
      animation: headerSlideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

    /* 4. Scroll-state visual refinement (shadow already in shared CSS,
          this just adds a subtle height compression on the navbar) */
    .site-header.scrolled .navbar {
      height: 75px;
      transition: height 0.3s ease;
    }

    /* ── Hero carousel content slide-up animation ─────────────────────── */
    .carousel-slide img,
    .carousel-tagline,
    .carousel-title,
    .carousel-desc,
    .carousel-btns {
      opacity: 0;
    }

    .carousel-slide.slide-active img {
      animation: fadeInUp 0.8s ease both;
      animation-delay: 0s;
    }
    .carousel-slide.slide-active .carousel-tagline {
      animation: fadeInUp 0.6s ease both;
      animation-delay: 0.1s;
    }
    .carousel-slide.slide-active .carousel-title {
      animation: fadeInUp 0.6s ease both;
      animation-delay: 0.3s;
    }
    .carousel-slide.slide-active .carousel-desc {
      animation: fadeInUp 0.6s ease both;
      animation-delay: 0.5s;
    }
    .carousel-slide.slide-active .carousel-btns {
      animation: fadeInUp 0.6s ease both;
      animation-delay: 0.7s;
    }

    /* ── Scroll-triggered slide-up animation (same logic as demo WOW.js) ── */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(40px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .wow {
      opacity: 0;
      transform: translateY(40px);
    }

    .wow.animated {
      animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    }

/* Hero video background fallback support */
.carousel-slide .hero-bg-image,
.carousel-slide .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide .hero-bg-video {
  opacity: 0;
  pointer-events: none;
}
.carousel-slide.video-ready .hero-bg-video {
  opacity: 1;
}
.carousel-slide.video-ready .hero-bg-image {
  opacity: 0;
}
.carousel-slide.video-failed .hero-bg-video {
  display: none;
}

/* Single active hero: no slider controls or auto-scroll affordances */
.hero-single .carousel-prev,
.hero-single .carousel-next,
.hero-single .carousel-dots,
.carousel.carousel-single .carousel-prev,
.carousel.carousel-single .carousel-next,
.carousel.carousel-single .carousel-dots {
  display: none !important;
}

/* Rules cards: image support and sequential lazy reveal */
.rule-card {
  overflow: hidden;
}

.rule-card-img {
  display: block;
  width: calc(100% + 3.5rem);
  max-width: none;
  height: 160px;
  object-fit: cover;
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: 12px 12px 0 0;
}

@media (max-width: 580px) {
  .rule-card-img {
    height: 190px;
  }
}

/* Blocks Section */
.page-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.page-block-card {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(244,250,245,0.95) 100%
    );
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.35s ease;
    overflow: hidden;
    height: 100%;

    text-align: center; /* Added */
}

.page-block-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.page-block-card-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center image */
    display: block; /* Required for auto margins */
}

.page-block-card h3 {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.page-block-card p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* subtle green accent */
.page-block-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--green);
}

/* Blocks Section - cards and parallax background */
.blocks-parallax {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.blocks-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 1;
}

[data-theme="dark"] .blocks-parallax::before {
    background: rgba(20, 25, 32, 0.86);
}

.blocks-parallax .container {
    position: relative;
    z-index: 2;
}

.blocks-parallax .section-title {
    color: var(--text);
}

.blocks-parallax .section-desc {
    color: var(--text-muted);
}

.page-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.page-block-card {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.96) 0%,
        rgba(244,250,245,0.96) 100%
    );
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    overflow: hidden;
    height: 100%;
    text-align: center;
}

[data-theme="dark"] .page-block-card {
    background: linear-gradient(
        135deg,
        rgba(28,37,53,0.96) 0%,
        rgba(20,25,32,0.96) 100%
    );
    border-color: rgba(255,255,255,0.08);
}

.page-block-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.page-block-card-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-block-card h3 {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.page-block-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.page-block-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--green);
}

@media (max-width: 768px) {
    .blocks-parallax {
        background-attachment: scroll;
    }
}

/* =========================================================
   BLOCKS CARDS - HOVER EFFECTS UPDATE
   ========================================================= */
.page-block-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    will-change: transform;
}

.page-block-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
    border-color: rgba(11,154,97,0.25);
}

.page-block-card-img {
    width: 88px;
    height: 88px;
    transition: transform 0.35s ease;
}

.page-block-card:hover .page-block-card-img {
    transform: scale(1.25);
}

.page-block-card h3 {
    transition: color 0.35s ease;
}

.page-block-card:hover h3 {
    color: var(--green-light);
}

.page-block-card::before {
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    transition: width 0.4s ease;
}

.page-block-card:hover::before {
    width: 100%;
}


/* Package image zoom effect */
.course-card {
    overflow: hidden;
}

.course-card-img {
    transition: transform 0.6s ease;
}

.course-card:hover .course-card-img {
    transform: scale(1.2);
}

.course-card:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Package buttons row */
.package-buttons {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

/* 1 button */
.package-buttons.buttons-1 {
    grid-template-columns: 1fr;
}

/* 2 buttons */
.package-buttons.buttons-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 buttons */
.package-buttons.buttons-3 {
    grid-template-columns: repeat(3, 1fr);
}

.package-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* Same hover behavior as booking button */
.package-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

/* Booking */
.package-btn-book {
    background: var(--red);
    color: #fff;
}

.package-btn-book:hover {
    background: var(--red-dark);
}

/* Bank 1 */
.package-btn-bank1 {
    background: #5eb7ff;
    color: #fff;
}

.package-btn-bank1:hover {
    background: #379ef2;
}

/* Bank 2 */
.package-btn-bank2 {
    background: #ffe58a;
    color: #333;
}

.package-btn-bank2:hover {
    background: #ffd95a;
}

@media (max-width: 640px) {
    .package-buttons.buttons-2,
    .package-buttons.buttons-3 {
        grid-template-columns: 1fr;
    }
}


.package-action-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: visible;
}

.package-action-btn-icon {
    display: inline-block !important;
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
}

html[dir="rtl"] .package-action-btn {
    flex-direction: row-reverse;
}

/* Image overlay modal */
.image-overlay-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-overlay-modal.active {
    display: flex;
}

.image-overlay-modal img {
    max-width: 75vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.image-overlay-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.image-overlay-close:hover {
    background: rgba(255,255,255,0.25);
}

.course-card-img {
    cursor: zoom-in;
}

.image-overlay-modal.loading img {
    opacity: 0;
}

.image-overlay-modal img {
    opacity: 1;
    transition: opacity 0.25s ease;
}

.image-overlay-loader {
    position: absolute;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: none;
}

.image-overlay-modal.loading .image-overlay-loader {
    display: block;
}

/* =========================================================
   BANNER TOP AD
   ========================================================= */
.banner-top-container {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--topbar-text) 18%,
    var(--topbar-text) 82%,
    var(--bg) 100%
  );
  padding: 28px 0;
}

.banner-top-section {
  width: 75%;
  margin: 0 auto;
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 50;
  border-radius: 18px;
}

/* soft feather overlay on banner edges */
.banner-top-section::before,
.banner-top-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 45px;
  pointer-events: none;
  z-index: 2;
}

.banner-top-section::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    var(--topbar-text),
    transparent
  );
}

.banner-top-section::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    var(--topbar-text),
    transparent
  );
}

.banner-top-link {
  display: block;
  width: 100%;
  max-height: calc((75vw / 2) * 0.25); /* 1200x600 ratio: show 25% of image height */
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.banner-top-link:hover,
.banner-top-link:focus-visible {
  max-height: 1000px;
}

.banner-top-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .banner-top-container {
    padding: 18px 0;
  }

  .banner-top-section {
    width: 100%;
    border-radius: 0;
  }

  .banner-top-link {
    max-height: calc((100vw / 2) * 0.25);
  }
}





/* Topbar icons only white */
.topbar i,
.topbar svg {
  color: #fff !important;
  fill: #fff !important;
  stroke: #fff !important;
}




/* ================================
   Bottom Ad Banner
================================ */

.banner-bottom-container {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--topbar-text) 18%,
    var(--topbar-text) 82%,
    var(--bg-surface) 100%
  );
  padding: 28px 0 0;
  margin-top: 35px;
}

.banner-bottom-section {
  width: 75%;
  margin: 0 auto;
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 40;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.12);
}

/* soft feather overlay on banner edges */
.banner-bottom-section::before,
.banner-bottom-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 45px;
  pointer-events: none;
  z-index: 2;
}

.banner-bottom-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--topbar-text), transparent);
}

.banner-bottom-section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--topbar-text), transparent);
}

.banner-bottom-link {
  display: block;
  width: 100%;
  max-height: calc((75vw / 2) * 0.25); /* 1200x600 ratio: show 25% of image height */
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  transition: max-height 0.35s ease;
}

.banner-bottom-link:hover,
.banner-bottom-link:focus-visible {
  max-height: 1000px;
  outline: none;
}

.banner-bottom-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.banner-bottom-link:hover .banner-bottom-img,
.banner-bottom-link:focus-visible .banner-bottom-img {
  transform: scale(1.01);
}

/* Keep footer connected visually after the bottom banner */
.banner-bottom-container + footer,
.banner-bottom-container ~ footer:first-of-type {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .banner-bottom-container {
    padding: 18px 0 0;
    margin-top: 25px;
  }

  .banner-bottom-section {
    width: 100%;
    border-radius: 0;
  }

  .banner-bottom-link {
    max-height: calc((100vw / 2) * 0.25);
  }
}







.footer-link-item {
    position: relative;
}

.footer-link-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-arrow {
    font-size: 11px;
    line-height: 1;
}

.footer-sub-links {
    list-style: none;
    margin: 6px 0 8px 14px;
    padding: 0;
}

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

.footer-sub-links a {
    font-size: 14px;
    opacity: 0.85;
}

.footer-sub-links a:hover {
    opacity: 1;
}

html[dir="rtl"] .footer-sub-links {
    margin-left: 0;
    margin-right: 14px;
}