@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0px;
  width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Don't force height:auto on SVGs — it collapses Lucide/UI icons */
svg {
  max-width: 100%;
}

svg.lucide {
  max-width: none;
  flex-shrink: 0;
  overflow: visible;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-focus-ring) !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes rotateArrow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame-header,
  .frame-header .logo,
  .nav-menu,
  .nav-backdrop,
  .nav-link::after,
  .hamburger-btn .icon-menu,
  .hamburger-btn .icon-close,
  .nav-auth-cta__btn,
  .user-menu-btn {
    transition: none !important;
    animation: none !important;
  }
}

@keyframes floatUp {

  0%,
  100% {
    transform: translateY(0px);
  }

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

@keyframes floatDown {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(12px);
  }
}

/* Main Frame Container */
.frame {
  display: flex;
  flex-direction: column;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  height: auto;
  margin: 0 auto;
  position: relative;
}

/* Header Navigation — fixed on all pages */
.frame-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 100px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  z-index: 200;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
  transition:
    padding 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.frame-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(51, 122, 183, 0.1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.frame-header.is-scrolled .logo {
  width: 152px;
}

.frame-header.nav-open {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-backdrop {
  display: none;
}

.site-logo-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  color: #040516;
  text-decoration: none;
  white-space: nowrap;
}

.logo {
  width: 178px;
  height: auto;
  object-fit: contain;
  transition: width 0.28s ease, opacity 0.2s ease;
}

.logo-mobile:hover .logo,
.logo-desktop:hover .logo {
  opacity: 0.88;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  width: 100%;
  flex: 0 0 auto;
  justify-content: space-between;
}

.logo-desktop {
  display: block;
}

.logo-mobile {
  display: none;
}

/* Hamburger Menu */
.hamburger-btn {
  display: none;
  background: rgba(51, 122, 183, 0.06);
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  width: 42px;
  height: 42px;
  position: relative;
  align-items: center;
  justify-content: center;
  color: #141212;
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(51, 122, 183, 0.12);
  color: #337ab7;
}

.hamburger-btn:focus-visible,
.nav-link:focus-visible,
.nav-auth-cta__btn:focus-visible,
.user-menu-btn:focus-visible,
.nav-dropdown-chevron-btn:focus-visible {
  outline: 2px solid #337ab7;
  outline-offset: 2px;
}

.hamburger-btn.active {
  background: rgba(51, 122, 183, 0.14);
  border-color: rgba(51, 122, 183, 0.2);
  color: #337ab7;
}

/* User Profile Dropdown Styles */
.user-menu-dropdown {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-menu-btn:hover,
.user-menu-btn[aria-expanded="true"] {
  background-color: #f3f9ff;
  border-color: rgba(51, 122, 183, 0.18);
  box-shadow: 0 2px 10px rgba(51, 122, 183, 0.08);
}

.user-menu-btn[aria-expanded="true"] .arrow-down {
  transform: rotate(180deg);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  min-width: 220px;
  padding: 8px;
  z-index: 1000;
  border: 1px solid rgba(51, 122, 183, 0.1);
  animation: slideDown 0.2s ease-out;
}

.user-dropdown-menu:not([hidden]) {
  display: block;
}

html[dir="rtl"] .user-dropdown-menu,
body.dir-rtl .user-dropdown-menu {
  right: auto;
  left: 0;
}

.user-dropdown-menu li {
  list-style: none;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.user-dropdown-link:hover {
  background-color: #f3f9ff;
  /* Light blue hover */
  color: #337ab7;
  /* Primary color */
}

.user-dropdown-link i {
  font-size: 18px;
  color: #9ca3af;
  transition: color 0.2s;
}

.user-dropdown-link:hover i {
  color: #337ab7;
}

.divider {
  height: 1px;
  background-color: #f1f1f1;
  margin: 6px 0;
}

.user-dropdown-item-logout {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #dc3545;
  /* Red for logout */
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.user-dropdown-item-logout:hover {
  background-color: #fff1f2;
}

.user-dropdown-item-logout i {
  font-size: 18px;
}

.hamburger-btn .icon-menu,
.hamburger-btn .icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hamburger-btn .icon-menu {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hamburger-btn .icon-close {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75) rotate(-45deg);
}

.hamburger-btn.active .icon-menu {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75) rotate(45deg);
}

.hamburger-btn.active .icon-close {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.nav-list {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  /* Remove auto margin */
  padding: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown-item {
  gap: 4px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: #4b5563;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.1px;
  line-height: normal;
  white-space: nowrap;
  font-family: var(--font-sans);
  background: none;
  border: none;
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #337ab7, #4a90e2);
  border-radius: 2px;
  transition: width 0.28s ease;
}

.nav-link:hover {
  color: #337ab7;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-active {
  font-weight: 700;
  color: #337ab7;
}

.nav-link-active::after {
  width: 100%;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-services-dropdown {
  flex-wrap: wrap;
}

.nav-dropdown-chevron-btn {
  margin: 0;
  padding: 4px 4px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: inherit;
}

.nav-services-dropdown>.dropdown-menu {
  flex-basis: 100%;
  width: 100%;
  min-width: 220px;
  padding: 6px;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-services-dropdown>.dropdown-menu .dropdown-link {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}

.nav-services-dropdown>.dropdown-menu .dropdown-link:hover {
  padding-left: 14px;
  background-color: #f3f9ff;
}

/* Services: label + chevron on one row (matches mobile user-menu pattern) */
.nav-services-dropdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.nav-services-dropdown__row .nav-link {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
}

.nav-dropdown-toggle[aria-expanded="true"] .arrow-down {
  animation: rotateArrow 0.3s ease forwards;
}

.arrow-down {
  width: 10px;
  height: 10px;
  aspect-ratio: 1;
  transition: transform 0.3s ease;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 8px 0 0 0;
  padding: 12px 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-dropdown-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: slideDown 0.3s ease;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #141212;
  font-size: 14px;
  text-align: left;
  letter-spacing: 0;
  line-height: normal;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background-color: #f3f9ff;
  color: #337ab7;
  padding-left: 24px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  position: relative;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  cursor: pointer;
}

.language-selector:hover {
  background-color: #f3f9ff;
  border-color: #337ab7;
}

.language-dropdown-item {
  gap: 4px;
}

.global-icon,
.nav-lang-icon {
  width: 18px;
  height: 18px;
  color: #4b5563;
  flex-shrink: 0;
  stroke: currentColor;
}

.language-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.language-btn:hover {
  color: #337ab7;
}

.language-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.language-dropdown-toggle .language-label {
  white-space: nowrap;
}

.language-dropdown-toggle[aria-expanded="true"] .language-arrow {
  animation: rotateArrow 0.3s ease forwards;
}

.language-arrow {
  width: 16px;
  height: 16px;
  aspect-ratio: 1;
  transition: transform 0.3s ease;
}

/* Language Dropdown Menu */
.language-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  list-style: none;
  margin: 8px 0 0 0;
  padding: 12px 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.language-dropdown-item:hover .language-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: slideDown 0.3s ease;
}

.language-dropdown-menu li {
  list-style: none;
}

.language-link {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #141212;
  font-size: 14px;
  text-align: left;
  letter-spacing: 0;
  line-height: normal;
  transition: all 0.2s ease;
}

.language-link:hover {
  background-color: #f3f9ff;
  color: #337ab7;
  padding-left: 24px;
}

.language-link-active {
  background-color: #f3f9ff;
  color: #337ab7;
  font-weight: 500;
}

.sign-in-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 28px;
  white-space: nowrap;
  background-color: #337ab7;
  border-radius: var(--radius-btn);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(51, 122, 183, 0.25);
}

.sign-in-btn:hover {
  background-color: #2563a8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(51, 122, 183, 0.35);
  color: #ffffff;
}

.sign-in-btn span {
  display: block;
}

.nav-auth-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-auth-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  white-space: nowrap;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  letter-spacing: 0.2px;
  border: 2px solid transparent;
}

.nav-auth-cta__btn:active {
  transform: translateY(0);
}

.nav-auth-cta__btn--login {
  background-color: transparent;
  border-color: #337ab7;
  color: #337ab7;
}

.nav-auth-cta__btn--login:hover {
  background-color: #f3f9ff;
  transform: translateY(-1px);
}

.nav-auth-cta__btn--start {
  background-color: #337ab7;
  border-color: #337ab7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(51, 122, 183, 0.25);
}

.nav-auth-cta__btn--start:hover {
  background-color: #2563a8;
  border-color: #2563a8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(51, 122, 183, 0.35);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  display: flex;
  width: 100%;
  max-width: 1480px;
  align-items: center;
  padding: 60px 50px;
  margin: 50px auto;
  border-radius: 20px;
  background-color: #F3F9FF;
  min-height: 480px;
  position: relative;
  overflow-x: hidden;
  overflow-y: clip;
  overflow-clip-margin: 3.5rem 0 0 0; /* allow head / floating icons above the card; clip bottom */
}

@supports not (overflow-clip-margin: 1px) {
  .hero-section {
    padding-top: 5.75rem;
  }

  .hero-image {
    top: -1.75rem;
    height: calc(100% + 1.75rem);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  width: 52%;
  min-width: 320px;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 2;
  padding-inline-end: 28px;
  box-sizing: border-box;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset-inline-start: -8%;
  top: 8%;
  width: min(420px, 90%);
  height: min(420px, 78%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 40%,
      rgba(126, 200, 239, 0.28) 0%,
      rgba(51, 122, 183, 0.12) 42%,
      transparent 72%
    );
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  max-width: 600px;
}

.hero-copy > .hero-badge,
.hero-copy > .hero-title,
.hero-copy > .hero-subtitle,
.hero-copy > .hero-buttons {
  animation: hero-copy-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > .hero-badge {
  animation-delay: 0.05s;
}

.hero-copy > .hero-title {
  animation-delay: 0.14s;
}

.hero-copy > .hero-subtitle {
  animation-delay: 0.24s;
}

.hero-copy > .hero-buttons {
  animation-delay: 0.34s;
}

@keyframes hero-copy-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(51, 122, 183, 0.2);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(243, 249, 255, 0.9) 45%,
      rgba(230, 242, 255, 0.82) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(51, 122, 183, 0.05),
    0 6px 22px rgba(51, 122, 183, 0.11),
    0 0 0 1px rgba(126, 200, 239, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-badge {
  padding: 10px 20px 10px 16px;
  gap: 0;
}

.badge:hover {
  border-color: rgba(51, 122, 183, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 28px rgba(51, 122, 183, 0.16),
    0 0 0 1px rgba(126, 200, 239, 0.22);
  transform: translateY(-2px);
}

.badge-text {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-primary, #337ab7);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.badge-text::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #337ab7);
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.22);
  animation: hero-status-dot-pulse 2.2s ease-in-out infinite;
}

html[dir="rtl"] .badge-text,
.dir-rtl .badge-text {
  flex-direction: row-reverse;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  width: 100%;
  max-width: 583px;
  font-family: var(--font-sans);
  font-weight: 700;
  color: transparent;
  font-size: clamp(2.15rem, 3.4vw, 3.15rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0;
}

.hero-title__line {
  display: block;
}

.hero-title__line--suffix {
  max-width: 22ch;
  font-size: 0.92em;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.hero-title .text-dark {
  color: #0f172a;
}

.hero-title .text-primary {
  color: #337ab7;
}

.hero-title__name {
  position: relative;
  display: inline;
  background-image: linear-gradient(90deg, rgba(51, 122, 183, 0.18), rgba(126, 200, 239, 0.08));
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 92%;
  padding-inline: 0.04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-subtitle {
  display: block;
  width: 100%;
  max-width: 34rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #4b6280;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1.75;
  margin: 0;
  padding-block: 2px 4px;
  border-inline-start: 3px solid rgba(51, 122, 183, 0.35);
  padding-inline-start: 14px;
}

html[dir="rtl"] .hero-subtitle,
.dir-rtl .hero-subtitle {
  line-height: 1.85;
}

@keyframes hero-status-dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.22);
  }

  50% {
    opacity: 0.92;
    box-shadow: 0 0 0 5px rgba(51, 122, 183, 0.1);
  }
}

.hero-buttons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  flex: 0 0 auto;
  margin-top: 6px;
}

.hero-btn {
  min-height: 52px;
  padding: 14px 22px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.9875rem !important;
  letter-spacing: 0.01em;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease !important;
}

.hero-btn__label--short {
  display: none;
}

.hero-btn--primary {
  background: linear-gradient(135deg, #3a86c4 0%, #2a6599 100%) !important;
  border-color: transparent !important;
  box-shadow:
    0 10px 24px rgba(51, 122, 183, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(51, 122, 183, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #4190d0 0%, #2563a8 100%) !important;
  color: #ffffff !important;
}

.hero-btn--secondary {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(51, 122, 183, 0.45) !important;
  color: #2a6599 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.hero-btn--secondary:hover {
  transform: translateY(-2px);
  background: #ffffff !important;
  border-color: #337ab7 !important;
  color: #337ab7 !important;
  box-shadow: 0 10px 24px rgba(51, 122, 183, 0.14);
}

.hero-btn:focus-visible {
  outline: 2px solid #337ab7;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > .hero-badge,
  .hero-copy > .hero-title,
  .hero-copy > .hero-subtitle,
  .hero-copy > .hero-buttons {
    animation: none;
  }

  .hero-btn,
  .hero-btn--primary:hover,
  .hero-btn--secondary:hover {
    transform: none !important;
  }
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  position: relative;
  background-color: #337ab7;
  border-radius: var(--radius-btn);
  border: 1px solid #337ab7;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #2d5fa3;
  color: #ffffff;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  position: relative;
  background-color: transparent;
  border-radius: var(--radius-btn);
  border: 1px solid #337ab7;
  color: #337ab7;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #337ab7;
  border-color: #337ab7;
  color: #ffffff;
}

/* Hero Image */
.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45%;
  z-index: 1;
}

.hero-image-composite {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('../assets/image/hero-bg.png');
  background-size: cover;
  background-position: center;
}

/* Heavy light overlay — makes dark office look like a soft bright room */
.hero-image-composite::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(243, 249, 255, 0.76);
  z-index: 1;
  pointer-events: none;
}

/* Left-to-right blend: solid blue → fully transparent; office only shows on the right */
.hero-image-composite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      #F3F9FF 0%,
      rgba(243, 249, 255, 0.95) 12%,
      rgba(243, 249, 255, 0.55) 30%,
      rgba(243, 249, 255, 0.10) 55%,
      transparent 75%);
  z-index: 2;
  pointer-events: none;
}

/* Person image – centered within the image area, full height */
.main-image {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  height: fit-content;
  width: 85%;
  object-fit: cover;
  object-position: bottom center;
  z-index: 3;
  filter: drop-shadow(0 18px 40px rgba(15, 55, 95, 0.18));
  animation: hero-portrait-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.12s;
}

.hero-float-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(72%, 340px);
  height: min(58%, 280px);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(126, 200, 239, 0.42) 0%,
      rgba(51, 122, 183, 0.16) 42%,
      transparent 72%
    );
  filter: blur(8px);
  pointer-events: none;
  z-index: 2;
  animation: hero-glow-breathe 5.5s ease-in-out infinite;
}

.badge-overlay {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px 11px 11px;
  position: absolute;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(248, 252, 255, 0.92) 55%,
      rgba(236, 246, 255, 0.88) 100%
    );
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow:
    0 14px 36px rgba(51, 122, 183, 0.14),
    0 4px 12px rgba(15, 40, 70, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  font-family: var(--font-sans);
  z-index: 4;
  white-space: nowrap;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
  opacity: 0;
  animation: floatDown 4.4s ease-in-out 0.55s infinite, hero-chip-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.badge-overlay:hover {
  border-color: rgba(126, 200, 239, 0.55);
  filter: brightness(1.03);
  box-shadow:
    0 18px 42px rgba(51, 122, 183, 0.2),
    0 6px 16px rgba(15, 40, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.badge-overlay-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background:
    linear-gradient(145deg, #edf6ff 0%, #d7ebff 55%, #c8e3ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f6fad;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(51, 122, 183, 0.12);
  position: relative;
  overflow: hidden;
}

.badge-overlay-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.55) 0%, transparent 48%);
  pointer-events: none;
}

.badge-overlay-icon svg,
.badge-overlay-icon i {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1;
}

.badge-overlay-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-inline-end: 2px;
}

.badge-overlay-title {
  font-size: 13px;
  font-weight: 700;
  color: #14233a;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.badge-overlay-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
}

/* Bottom-left badge – floats DOWN then up */
.badge-overlay-1 {
  bottom: 18%;
  left: 8%;
}

/* Right-middle badge – floats UP then down */
.badge-overlay-2 {
  top: 40%;
  right: 2%;
  animation: floatUp 4.6s ease-in-out 1.5s infinite, hero-chip-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-float-chip,
.ai-idea,
.ai-programming {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, #ffffff 0%, #e8f4ff 55%, #d7ebff 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 28px rgba(51, 122, 183, 0.22),
    0 2px 8px rgba(15, 40, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: #2f6fad;
  z-index: 4;
  overflow: visible;
}

.hero-float-chip i,
.ai-idea i,
.ai-programming i {
  font-size: 1.2rem;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.hero-float-chip__ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(126, 200, 239, 0.45);
  opacity: 0.85;
  animation: hero-ring-pulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-float-chip__spark {
  position: absolute;
  top: 4px;
  inset-inline-end: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #7ec8ef 45%, #337ab7 100%);
  box-shadow: 0 0 10px rgba(126, 200, 239, 0.75);
  z-index: 3;
  animation: hero-spark-blink 2.4s ease-in-out infinite;
}

/* ai-idea (lightbulb) – floats UP then down */
.ai-idea {
  top: 6%;
  right: 18%;
  opacity: 0;
  animation: floatUp 3.8s ease-in-out infinite, hero-chip-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.ai-idea img {
  width: 30px;
  height: 30px;
}

/* ai-programming (code) – floats DOWN then up, offset from ai-idea */
.ai-programming {
  top: 32%;
  left: 6%;
  width: 52px;
  height: 52px;
  opacity: 0;
  animation: floatDown 3.8s ease-in-out 1.1s infinite, hero-chip-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.ai-programming img {
  width: 26px;
  height: 26px;
}

.ai-programming .hero-float-chip__spark {
  animation-delay: 0.6s;
}

@keyframes hero-portrait-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes hero-chip-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-glow-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes hero-ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.35;
  }
}

@keyframes hero-spark-blink {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Hero RTL: portrait on the left, copy on the right (mirror of LTR layout) */
html[dir="rtl"] .hero-section,
.dir-rtl .hero-section {
  justify-content: flex-start;
}

html[dir="rtl"] .hero-image,
.dir-rtl .hero-image {
  right: auto;
  left: 0;
  width: 46%;
}

html[dir="rtl"] .main-image,
.dir-rtl .main-image {
  width: 80%;
}

html[dir="rtl"] .hero-image-composite::before,
.dir-rtl .hero-image-composite::before {
  background: linear-gradient(to left,
      #F3F9FF 0%,
      rgba(243, 249, 255, 0.95) 12%,
      rgba(243, 249, 255, 0.55) 30%,
      rgba(243, 249, 255, 0.10) 55%,
      transparent 75%);
}

html[dir="rtl"] .hero-content,
.dir-rtl .hero-content {
  position: absolute;
  top: 50%;
  right: 50px;
  left: auto;
  width: 48%;
  max-width: 620px;
  min-width: 280px;
  transform: translateY(-50%);
  align-items: flex-start;
  text-align: right;
  margin: 0;
  padding-inline-start: 16px;
  padding-inline-end: 0;
  box-sizing: border-box;
}

html[dir="rtl"] .hero-copy,
.dir-rtl .hero-copy {
  align-items: flex-start;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
.dir-rtl .hero-title,
.dir-rtl .hero-subtitle {
  width: 100%;
  max-width: 100%;
  text-align: right;
  align-self: stretch;
}

html[dir="rtl"] .hero-title__line--suffix,
.dir-rtl .hero-title__line--suffix {
  max-width: none;
}

html[dir="rtl"] .hero-buttons,
.dir-rtl .hero-buttons {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  direction: rtl;
}

html[dir="rtl"] .badge,
.dir-rtl .badge {
  padding: 11px 26px;
}

html[dir="rtl"] .badge-overlay-1,
.dir-rtl .badge-overlay-1 {
  left: auto;
  right: 8%;
}

html[dir="rtl"] .badge-overlay-2,
.dir-rtl .badge-overlay-2 {
  right: auto;
  left: 2%;
}

html[dir="rtl"] .ai-idea,
.dir-rtl .ai-idea {
  right: auto;
  left: 18%;
}

html[dir="rtl"] .ai-programming,
.dir-rtl .ai-programming {
  left: auto;
  right: 6%;
}

/* Divider Line */
.divider-line {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 1px;
  background-color: #e5e7eb;
  z-index: 10;
  margin: 0 auto;
}

/* Ellipse Background */
.ellipse-right {
  position: absolute;
  right: 0;
  width: 707px;
  height: 707px;
  border-radius: 353.5px;
  filter: blur(100px);
  background: linear-gradient(342deg,
      rgba(51, 122, 183, 0.02) 0%,
      rgba(0, 46, 125, 0.09) 100%);
  z-index: -1;
}

.ellipse-left {
  position: absolute;
  right: 0;
  width: 707px;
  height: 707px;
  border-radius: 353.5px;
  filter: blur(100px);
  background: linear-gradient(342deg,
      rgba(51, 122, 183, 0.02) 0%,
      rgba(0, 46, 125, 0.09) 100%);
  z-index: -1;
}

.ellipse-about {
  position: absolute;
  left: 0;
  width: 589px;
  height: 640px;
  border-radius: 353.5px;
  filter: blur(100px);
  background: linear-gradient(342deg, rgba(51, 122, 183, 0.02) 0%, rgb(0 46 125 / 42%) 100%);
  z-index: -1;
  top: -23px;
}

.ellipse-image {
  position: absolute;
  left: -45px;
  top: -40px;
  width: 645px;
  height: 645px;
  z-index: 0;
}

.ellipse-course {
  position: absolute;
  left: -110px;
  width: 589px;
  height: 640px;
  border-radius: 353.5px;
  filter: blur(100px);
  background: linear-gradient(342deg, rgba(51, 122, 183, 0.02) 0%, rgb(0 46 125 / 23%) 100%);
  z-index: -1;
  top: -23px;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 0;
  width: 100%;
  max-width: 1480px;
  align-items: stretch;
  justify-items: stretch;
  padding: 28px 20px;
  margin: 60px auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 250, 255, 0.96) 100%);
  border-radius: 20px;
  border: 1px solid rgba(51, 122, 183, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 10px 32px rgba(15, 23, 42, 0.06),
    0 28px 56px rgba(51, 122, 183, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2a6599 0%, #337ab7 35%, #7ec8ef 50%, #337ab7 65%, #2a6599 100%);
  background-size: 200% 100%;
  animation: stats-accent-shine 8s ease-in-out infinite;
}

.stats-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 200, 239, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@keyframes stats-accent-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.stat-item {
  gap: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 188px;
  padding: 22px 18px;
  margin: 4px 8px;
  border-radius: 16px;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease,
    box-shadow 0.28s ease;
  animation: stats-item-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stat-delay, 0s);
}

@keyframes stats-item-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(51, 122, 183, 0.1);
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  right: -8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(51, 122, 183, 0.18) 18%,
    rgba(51, 122, 183, 0.18) 82%,
    transparent 100%
  );
}

.stat-icon {
  width: 90px;
  height: 90px;
  aspect-ratio: 1;
}

.stat-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 64px;
  height: 64px;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
  background:
    linear-gradient(160deg, #f4f9ff 0%, #e7f1fb 55%, #dff0ff 100%);
  border: 1px solid rgba(51, 122, 183, 0.14);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(51, 122, 183, 0.1);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.stat-item:hover .stat-icon-wrapper {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(51, 122, 183, 0.28);
  background:
    linear-gradient(160deg, #ffffff 0%, #e8f3fc 50%, #d4ebff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 26px rgba(51, 122, 183, 0.18);
}

.stat-icon-svg {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #337ab7;
}

.stat-icon-svg i {
  font-size: 26px;
  color: #337ab7;
  line-height: 1;
}

.stat-icon-svg svg,
.stat-icon-svg [data-lucide] {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  color: #337ab7;
}

.stat-icon-svg--image {
  width: 28px;
  height: 28px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.stat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
}

.stat-number {
  position: relative;
  align-self: stretch;
  margin-top: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #0f172a;
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-number::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(51, 122, 183, 0.15), #337ab7, rgba(51, 122, 183, 0.15));
  opacity: 0.7;
  transition: width 0.28s ease, opacity 0.28s ease;
}

.stat-item:hover .stat-number::after {
  width: 40px;
  opacity: 1;
}

.stat-label {
  position: relative;
  width: 100%;
  max-width: 220px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .stats-section::before,
  .stat-item {
    animation: none;
  }

  .stat-item:hover,
  .stat-item:hover .stat-icon-wrapper {
    transform: none;
  }
}

html[dir="rtl"] .stat-item:not(:last-child)::after,
.dir-rtl .stat-item:not(:last-child)::after {
  right: auto;
  left: -8px;
}

html[dir="rtl"] .stats-section::after,
.dir-rtl .stats-section::after {
  inset: auto auto -40% -10%;
}

/* About Section */
.about-section {
  display: flex;
  align-items: center;
  gap: 78px;
  width: 100%;
  max-width: 1480px;
  margin: 80px auto 0;
  padding: 0 48px;
  position: relative;
}

.about-image {
  position: relative;
  width: 467px;
  height: 542px;
}

.about-content {
  display: flex;
  flex-direction: column;
  width: 735px;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.about-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0b1220;
}

.about-title .text-dark,
.about-section .fh-section-title__plain {
  color: #141212;
}

.about-title .text-primary,
.about-section .fh-section-title__accent {
  color: #337ab7;
}

.about-section .fh-section-title-wrap {
  margin-bottom: 4px;
  gap: 8px;
}

.about-text {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #373c40;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 27px;
  margin: 0;
}

.btn-download {
  width: auto;
  min-width: 208px;
  flex: 0 0 auto;
  margin-top: 12px;
}

/* ===== SECTION 2: SERVICES ===== */

.services-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1480px;
  align-items: flex-start;
  gap: 32px;
  padding: 0 48px;
  margin: 80px auto 0;
  position: relative;
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.services-section .fh-section-title-wrap {
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.services-title {
  position: relative;
  width: fit-content;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0b1220;
}

.services-title .text-dark,
.services-section .fh-section-title__plain {
  color: #141212;
}

.services-title .text-primary,
.services-section .fh-section-title__accent {
  color: #337ab7;
}

.services-cta {
  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  padding: 4px 0 8px;
}

.services-carousel {
  position: relative;
  align-self: stretch;
  width: 100%;
}

.services-pagination {
  display: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  position: relative;
  min-height: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px -8px rgba(52, 37, 94, 0.1);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #337ab7 0%, #5a9fd4 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(51, 122, 183, 0.2);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 24px 56px -12px rgba(51, 122, 183, 0.22);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card--empty {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
}

.service-card--empty p {
  margin: 0;
  color: #6b7280;
  font-size: 18px;
}

.service-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(51, 122, 183, 0.08);
  flex-shrink: 0;
  transition: background 0.28s ease, transform 0.28s ease;
}

.service-card:hover .service-icon-wrapper {
  background: rgba(51, 122, 183, 0.12);
  transform: scale(1.04);
}

.service-icon-wrapper img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.service-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.service-title {
  width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #111827;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-description {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-link {
  display: inline-flex;
  width: auto;
  min-width: 167px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  margin-top: auto;
  flex-shrink: 0;
  background-color: rgba(51, 122, 183, 0.08);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    gap 0.25s ease;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #337ab7;
  font-size: 16px;
}

.service-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.service-link:hover {
  background-color: rgba(51, 122, 183, 0.16);
  gap: 12px;
}

.service-link:hover .service-link-icon {
  transform: translateX(3px);
}

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 639px) {
  .services-carousel {
    padding-bottom: 2.35rem;
  }

  .services-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding-bottom: 12px;
    scrollbar-width: none;
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .services-grid .service-card {
    flex: 0 0 min(88%, 300px);
    scroll-snap-align: start;
  }

  .services-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
  }

  .services-pagination__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(51, 122, 183, 0.22);
    cursor: pointer;
    transition:
      width 0.28s ease,
      background-color 0.28s ease;
  }

  .services-pagination__dot:hover {
    background-color: rgba(51, 122, 183, 0.45);
  }

  .services-pagination__dot.is-active {
    width: 26px;
    background-color: #337ab7;
  }

  .services-pagination__dot:focus-visible {
    outline: 2px solid var(--color-focus-ring, #4a90e2);
    outline-offset: 2px;
  }
}

/* ===== SECTION 2: WHAT I OFFER ===== */

.what-i-offer-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1480px;
  align-items: center;
  gap: 40px;
  padding: 0 clamp(20px, 4vw, 48px);
  margin: 96px auto 0;
  position: relative;
}

.what-i-offer-section::before {
  content: '';
  position: absolute;
  inset-inline: 8%;
  top: 4rem;
  height: min(420px, 55%);
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(126, 200, 239, 0.18) 0%,
      rgba(51, 122, 183, 0.06) 45%,
      transparent 72%
    );
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

.what-i-offer-section > * {
  position: relative;
  z-index: 1;
}

.what-i-offer-title,
.what-i-offer-section .fh-section-title {
  position: relative;
  width: fit-content;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.what-i-offer-title .text-dark,
.what-i-offer-section .fh-section-title__plain {
  color: #0b1220;
}

.what-i-offer-title .text-primary,
.what-i-offer-section .fh-section-title__accent {
  color: #337ab7;
}

.what-i-offer-section .fh-section-title-wrap {
  margin-bottom: 4px;
  gap: 8px;
}

.offer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.offer-swiper-wrap {
  display: none;
  width: 100%;
  align-self: stretch;
}

.offer-swiper-wrap .offer-cards,
.offer-swiper-wrap .offer-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 4px 56px;
  box-sizing: border-box;
}

.offer-swiper-wrap .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.offer-swiper-wrap .offer-card {
  width: 100%;
  max-width: none;
}

@media (min-width: 1025px) {
  .offer-swiper-wrap {
    display: none !important;
  }

  .offer-grid--desktop,
  .tools-grid--desktop {
    display: grid;
  }

  .offer-grid--desktop {
    display: flex;
  }
}

.offer-row {
  display: flex;
  align-items: stretch;
  gap: 22px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.offer-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 26px;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(51, 122, 183, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 252, 255, 0.94) 55%,
      rgba(239, 247, 255, 0.9) 100%
    );
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 14px 36px -12px rgba(51, 122, 183, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: offer-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--offer-delay, 0s);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.offer-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #337ab7 0%, rgba(126, 200, 239, 0.2) 100%);
  opacity: 0.85;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51, 122, 183, 0.28);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.05),
    0 22px 44px -14px rgba(51, 122, 183, 0.28);
}

.offer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  order: 1;
  padding-inline-start: 6px;
}

.offer-title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #0f172a;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.offer-description {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 450;
  color: #475569;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.65;
}

.offer-icon {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  align-self: flex-start;
  order: 2;
  border-radius: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f6fad;
  border: 1px solid rgba(126, 200, 239, 0.45);
  background:
    linear-gradient(145deg, #f4f9ff 0%, #e4f1ff 55%, #d7ebff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(51, 122, 183, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover .offer-icon {
  transform: scale(1.04) rotate(-2deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 24px rgba(51, 122, 183, 0.18);
}

.offer-icon img,
.offer-icon i {
  width: auto;
  height: auto;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.offer-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  line-height: 1;
  color: #2f6fad;
}

.offer-icon svg,
.offer-icon [data-lucide] {
  width: 1.7rem;
  height: 1.7rem;
  stroke: currentColor;
  color: #2f6fad;
}

.offer-card__cta.fh-cta {
  margin-top: 4px;
}

@keyframes offer-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .offer-card:hover,
  .offer-card:hover .offer-icon {
    transform: none;
  }
}

html[dir="rtl"] .offer-card::before,
.dir-rtl .offer-card::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
  background: linear-gradient(180deg, #337ab7 0%, rgba(126, 200, 239, 0.2) 100%);
}

html[dir="rtl"] .offer-content,
.dir-rtl .offer-content {
  padding-inline-start: 0;
  padding-inline-end: 6px;
}

@media (min-width: 769px) {
  .offer-row .offer-card .offer-content > .offer-card__cta {
    margin-top: auto;
    align-self: flex-start;
  }
}

.offer-card__cta.fh-cta--ghost {
  padding-inline: 0;
  min-height: 36px;
  background: transparent;
  color: #2f6fad;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  border: none;
  gap: 8px;
}

.offer-card__cta.fh-cta--ghost:hover {
  background: transparent;
  color: #1e5a94;
  transform: translateX(2px);
  box-shadow: none;
}

html[dir="rtl"] .offer-card__cta.fh-cta--ghost:hover,
.dir-rtl .offer-card__cta.fh-cta--ghost:hover {
  transform: translateX(-2px);
}

.offer-card__cta .fh-cta__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.offer-card__cta:hover .fh-cta__arrow {
  transform: translateX(3px);
}

html:not([dir="rtl"]) .offer-card__cta .fh-cta__arrow {
  transform: rotate(180deg);
}

html:not([dir="rtl"]) .offer-card__cta:hover .fh-cta__arrow {
  transform: rotate(180deg) translateX(-3px);
}

/* Offer detail modal */
body.offer-modal-open {
  overflow: hidden;
}

.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.offer-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(4 5 22 / 50%);
}

.offer-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(85vh, 640px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgb(4 5 22 / 15%);
  text-align: center;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.offer-modal.is-open .offer-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.offer-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.offer-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.offer-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1.11px solid transparent;
  background:
    linear-gradient(180deg, #f6f7fb, #f6f7fb) padding-box,
    linear-gradient(180deg, rgb(143 164 252 / 55%) 0%, rgb(175 191 255 / 19%) 100%) border-box;
  background-clip: padding-box, border-box;
}

.offer-modal__icon img,
.offer-modal__icon i {
  width: 100%;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}

.offer-modal__icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  line-height: 1;
  color: #337ab7;
  width: auto;
  height: auto;
}

.offer-modal__icon svg,
.offer-modal__icon [data-lucide] {
  width: 2.25rem;
  height: 2.25rem;
  stroke: currentColor;
  color: #337ab7;
}

.offer-modal__title {
  margin: 0 0 16px;
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #141212;
  line-height: 1.3;
}

.offer-modal__description {
  text-align: left;
  color: #373c40;
  font-size: 15px;
  line-height: 1.65;
}

.offer-modal__description p {
  margin: 0 0 1em;
}

.offer-modal__description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .offer-modal {
    padding: 16px;
    align-items: center;
  }

  .offer-modal__panel {
    max-height: min(85vh, 640px);
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .offer-modal__title {
    padding: 0 20px;
  }
}

/* ===== SECTION 2: TOOLS ===== */

.tools-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1480px;
  align-items: flex-start;
  gap: 48px;
  padding: 0 48px;
  margin: 80px auto 0;
  position: relative;
}

.tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.tools-section .fh-section-title-wrap {
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.tools-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

/* Homepage tools: max 4 in grid (tablet/desktop), Swiper + dots on mobile */
.tools-section--has-mobile-slider .tools-grid--desktop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tools-swiper-wrap {
  display: none;
  width: 100%;
  align-self: stretch;
}

.tools-swiper-wrap .tools-cards,
.tools-swiper-wrap .tools-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0 56px;
  box-sizing: border-box;
}

.tools-swiper-wrap .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.tools-swiper-wrap .swiper-slide .tool-card {
  width: 100%;
  height: 100%;
  margin: 0;
}

@media (min-width: 769px) {
  .tools-section--has-mobile-slider .tools-grid--desktop {
    display: grid !important;
  }

  .tools-section--has-mobile-slider .tools-swiper-wrap {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .tools-section--has-mobile-slider .tools-grid--desktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .tools-section--has-mobile-slider .tools-grid--desktop {
    display: none !important;
  }

  .tools-section--has-mobile-slider .tools-swiper-wrap {
    display: block !important;
    width: 100%;
  }

  .tools-swiper-wrap .tools-cards,
  .tools-swiper-wrap .tools-swiper {
    padding: 4px 0 58px;
  }
}

.tools-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  color: #6b7280;
}

.tool-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  position: relative;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0px 8px 32px 0px rgba(31, 38, 135, 0.1);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 16px 48px 0px rgba(31, 38, 135, 0.2);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0.6) 100%);
}

.tool-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.tool-title {
  position: relative;
  width: fit-content;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #000000;
  font-size: 20px;
  letter-spacing: 0;
  line-height: normal;
}

.tool-description {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #373c40;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 22px;
}

.tool-link {
  display: flex;
  width: fit-content;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  position: relative;
  background-color: rgba(51, 122, 183, 0.08);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #337ab7;
  font-size: 18px;
  text-decoration: none;
}

.tool-link:hover {
  transform: translateX(4px);
  color: #337ab7;
}

.tool-link img {
  width: 18px;
  height: 18px;
}

.tool-icon {
  position: relative;
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.tool-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.11px;
  border-radius: 19px;
  background: linear-gradient(180deg,
      rgba(143, 164, 252, 0.55) 0%,
      rgba(175, 191, 255, 0.19) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

.tool-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* ===== SECTION 2: COURSES ===== */

.courses-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1480px;
  align-items: flex-start;
  gap: 40px;
  padding: 0 48px;
  margin: 80px auto 0;
  position: relative;
  box-sizing: border-box;
}

.courses-section--carousel {
  gap: 36px;
  width: 100%;
  max-width: 1480px;
  margin: 80px auto 0;
  padding: 0 48px;
  background: none;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

.courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.courses-title {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #040516;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.courses-section .fh-section-title-wrap {
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.courses-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.courses-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.courses-carousel-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.courses-swiper-wrap {
  position: relative;
  align-self: stretch;
  width: 100%;
  overflow: visible;
}

.courses-section--carousel .courses-cards,
.courses-section--carousel .courses-swiper {
  position: relative;
  align-self: stretch;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding: 24px 0 64px !important;
  box-sizing: border-box;
}

.courses-section--carousel .courses-swiper .swiper-wrapper {
  align-items: stretch;
}

.related-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #141212;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.nav-button:hover {
  background-color: #f3f9ff;
  border-color: #337ab7;
  color: #337ab7;
  transform: translateY(-2px);
}

.nav-button:disabled,
.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.courses-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
  overflow: visible;
}

.courses-swiper .course-card-link,
.courses-swiper .course-card {
  width: 100%;
  height: 100%;
}

.courses-section--carousel .course-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.courses-section--carousel .course-card:hover {
  position: relative;
  z-index: 3;
  transform: translateY(-6px);
}

.courses-section--carousel .course-card[data-badge="featured"]:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow:
    0 8px 24px rgba(245, 158, 11, 0.12),
    0 20px 48px rgba(31, 38, 135, 0.12);
}

.courses-section--carousel .course-card[data-badge="sale"]:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow:
    0 8px 24px rgba(239, 68, 68, 0.12),
    0 20px 48px rgba(31, 38, 135, 0.12);
}

.courses-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute !important;
  bottom: 18px !important;
  left: 0;
  width: 100%;
  z-index: 10;
  opacity: 1 !important;
  visibility: visible !important;
}

.courses-pagination.swiper-pagination-lock {
  display: flex !important;
  opacity: 1 !important;
}

.courses-pagination.swiper-pagination {
  width: 100%;
}

.courses-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: rgba(51, 122, 183, 0.22);
  border-radius: 999px;
  opacity: 1;
  margin: 0 !important;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    background-color 0.28s ease,
    opacity 0.28s ease;
}

.courses-pagination .swiper-pagination-bullet:hover {
  background-color: rgba(51, 122, 183, 0.45);
}

.courses-pagination .swiper-pagination-bullet-active,
.home-slider-pagination .swiper-pagination-bullet-active {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background-color: #337ab7;
}

/* Shared dot pagination (courses, offers, tools — like reviews) */
.home-slider-pagination,
.offer-pagination,
.tools-pagination {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute !important;
  bottom: 18px !important;
  left: 0;
  width: 100%;
  z-index: 10;
  opacity: 1 !important;
  visibility: visible !important;
}

.home-slider-pagination .swiper-pagination-bullet,
.offer-pagination .swiper-pagination-bullet,
.tools-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: rgba(51, 122, 183, 0.22);
  border-radius: 999px;
  opacity: 1;
  margin: 0 !important;
  transition:
    width 0.28s ease,
    background-color 0.28s ease;
}

.home-slider-pagination .swiper-pagination-bullet-active,
.offer-pagination .swiper-pagination-bullet-active,
.tools-pagination .swiper-pagination-bullet-active {
  width: 26px;
  background-color: #337ab7;
}

.courses-pagination .swiper-pagination-bullet:only-child {
  display: inline-block !important;
}

.courses-pagination.swiper-pagination-hidden {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 1024px) {
  .courses-section--carousel .courses-cards,
  .courses-section--carousel .courses-swiper {
    padding-bottom: 72px !important;
  }

  .courses-pagination {
    bottom: 22px !important;
    display: flex !important;
  }
}

.courses-empty {
  text-align: center;
  padding: 48px 24px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #e5e7eb;
}

.courses-empty p {
  margin: 0;
  color: #6b7280;
  font-size: 18px;
}

.courses-empty--grid {
  grid-column: 1 / -1;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  position: relative;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0px 8px 32px 0px rgba(31, 38, 135, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 16px 48px 0px rgba(31, 38, 135, 0.15);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.8) 100%);
  border-color: rgba(51, 122, 183, 0.2);
}

.course-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
}

.course-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.course-card .badge-container {
  top: 12px;
  right: 12px;
  z-index: 2;
}

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

.course-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.course-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.course-card .course-title {
  width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #000000;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  max-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.course-instructor {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: #6a6e83;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-instructor .text-dark {
  font-weight: 600;
}

.course-instructor .text-primary {
  color: #337ab7;
  font-weight: 600;
}

.course-progress {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: rgba(51, 122, 183, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #337ab7 0%, #1e62c8 100%);
  border-radius: 999px;
  transition: width 0.45s ease;
}

.course-card--owned {
  border-color: rgba(51, 122, 183, 0.22);
}

.course-card__owned-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(10, 17, 40, 0.92) 0%, rgba(30, 98, 200, 0.88) 100%);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(10, 17, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  pointer-events: none;
  transform: translateZ(0);
}

.course-card__owned-badge--active {
  background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(51, 122, 183, 0.92) 100%);
}

.course-card__owned-badge--done {
  background: linear-gradient(135deg, rgba(10, 17, 40, 0.9) 0%, rgba(21, 128, 61, 0.9) 100%);
  border-color: rgba(134, 239, 172, 0.28);
}

.course-card__owned-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.course-card__owned-badge-icon svg,
.course-card__owned-badge-icon i {
  width: 14px;
  height: 14px;
  color: #fff;
  stroke-width: 2.25;
}

.course-card__owned-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  line-height: 1.15;
}

.course-card__owned-badge-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.course-card__owned-badge-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.course-card:hover .course-card__owned-badge {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(10, 17, 40, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.course-card__progress-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  pointer-events: none;
}

.course-card__progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
}

.course-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #337ab7, #7ec8f0);
  transition: width 0.45s ease;
}

/* Owned learning panel — single progress block in footer */
.course-card__learning {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(51, 122, 183, 0.08) 0%, rgba(10, 17, 40, 0.04) 100%);
  border: 1px solid rgba(51, 122, 183, 0.14);
  box-sizing: border-box;
}

.course-card__learning-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-card__owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e62c8;
  text-decoration: none;
}

.course-card__owned-chip svg,
.course-card__owned-chip i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.course-card__learning-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6a6e83;
  background: rgba(106, 110, 131, 0.1);
  white-space: nowrap;
  text-decoration: none;
}

.course-card__learning-status.is-active {
  color: #1e62c8;
  background: rgba(51, 122, 183, 0.12);
}

.course-card__learning-status.is-done {
  color: #15803d;
  background: rgba(21, 128, 61, 0.12);
}

.course-card__learning-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.course-card__learning-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(10, 17, 40, 0.1);
  overflow: hidden;
}

.course-card__learning-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #337ab7 0%, #1e62c8 70%, #5dade2 100%);
  box-shadow: 0 0 0 1px rgba(51, 122, 183, 0.15);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.course-card__learning-pct {
  flex: 0 0 auto;
  min-width: 2.6em;
  text-align: end;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a1128;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.course-card-link,
.course-card-link:hover,
.course-card-link:focus,
.course-card-link * {
  text-decoration: none !important;
}

.course-button--continue {
  background: linear-gradient(135deg, #337ab7 0%, #1e62c8 100%);
}

.course-button--rewatch {
  background: linear-gradient(135deg, #0a1128 0%, #1a2a4a 100%);
}

.course-button--rewatch:hover {
  box-shadow: 0px 8px 16px rgba(10, 17, 40, 0.28);
}

.course-button.subscribed {
  background: #6a6e83;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.stars {
  display: flex;
  gap: 3px;
}

.stars img {
  width: 16px;
  height: 16px;
}

.reviews {
  font-family: var(--font-sans);
  font-weight: 400;
  color: #6a6e83;
  font-size: 12px;
}

.course-meta {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #6a6e83;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 16px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  gap: 8px;
  flex-direction: column;
}

.course-price {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #337ab7;
  font-size: 18px;
  letter-spacing: 0;
  line-height: normal;
}

.course-button {
  flex: 1;
  padding: 13px 16px;
  background: linear-gradient(135deg, #337ab7 0%, #1e62c8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

.course-button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 16px rgba(30, 98, 200, 0.3);
}

/* ===== SECTION 2: CLIENTS ===== */

.clients-section {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef1f5 0%, #f5f7fa 48%, #eef1f5 100%);
  margin-top: 80px;
  padding: 80px 0 88px;
  border-block: 1px solid rgba(15, 23, 42, 0.06);
}

.clients-title {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #040516;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: none;
}

.clients-section .fh-section-title-wrap {
  gap: 8px;
}

.clients-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeIn 0.8s ease-out;
  /* Marquee must stay LTR so rows scroll correctly in Arabic/RTL pages */
  direction: ltr;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.clients-marquee-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation-timing-function: linear;
}

.clients-marquee-row.marquee-row-reverse {
  margin-inline-start: -48px;
}

a.client-card {
  text-decoration: none;
  color: inherit;
}

a.client-card:focus-visible {
  outline: 2px solid #337ab7;
  outline-offset: 3px;
  border-radius: 12px;
}

.client-card {
  flex-shrink: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 15vw, 180px);
  min-width: 140px;
  max-width: 180px;
  height: 100px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 24px -4px rgba(15, 23, 42, 0.08);
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(51, 122, 183, 0.06) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.client-card:hover::before {
  opacity: 1;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 12px rgba(51, 122, 183, 0.1),
    0 16px 36px -8px rgba(51, 122, 183, 0.18);
  border-color: rgba(51, 122, 183, 0.28);
}

.client-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(128px, 100%);
  max-height: 56px;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

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

.animate-scroll {
  animation: marquee 60s linear infinite;
}

.animate-scroll.marquee-row-reverse {
  animation: marquee-reverse 70s linear infinite;
}

.clients-marquee-row:hover {
  animation-play-state: paused;
}

.clients-marquee-container:hover .client-card {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.clients-empty-state {
  text-align: center;
  padding: 40px;
  width: 100%;
}

.clients-empty-state p {
  color: #999;
  font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee-row {
    animation: none !important;
  }

  .client-card {
    transition: none;
  }

  .client-card:hover {
    transform: none;
  }

  .ai-idea,
  .ai-programming,
  .badge-overlay-1,
  .badge-overlay-2,
  .hero-float-glow,
  .main-image {
    animation: none !important;
  }

  .badge-overlay,
  .ai-idea,
  .ai-programming,
  .main-image {
    opacity: 1 !important;
  }

  .hero-float-chip__ring,
  .hero-float-chip__spark {
    animation: none !important;
  }

  .badge-text::before {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .clients-section {
    padding: 64px 0 72px;
    gap: 32px;
  }

  .clients-marquee-container {
    gap: 24px;
    padding: 14px 0 10px;
  }

  .client-card {
    width: clamp(128px, 20vw, 168px);
    min-width: 128px;
    max-width: 168px;
    height: 88px;
    padding: 18px 22px;
  }

  .client-card img {
    max-height: 50px;
    max-width: min(116px, 100%);
  }

  .clients-marquee-row.marquee-row-reverse {
    margin-inline-start: -32px;
  }

  .animate-scroll {
    animation-duration: 50s;
  }

  .animate-scroll.marquee-row-reverse {
    animation-duration: 60s;
  }
}

@media (max-width: 640px) {
  .clients-section {
    gap: 28px;
    padding: 52px 0 60px;
  }

  .clients-title {
    letter-spacing: 0.08em;
  }

  .clients-marquee-container {
    gap: 18px;
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 4%,
      #000 96%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 4%,
      #000 96%,
      transparent 100%
    );
  }

  .clients-marquee-row {
    gap: 14px;
  }

  .clients-marquee-row.marquee-row-reverse {
    margin-inline-start: -24px;
  }

  .client-card {
    width: clamp(120px, 36vw, 148px);
    min-width: 120px;
    max-width: 148px;
    height: 80px;
    padding: 16px 20px;
    border-radius: 10px;
  }

  .client-card img {
    max-height: 44px;
    max-width: min(104px, 100%);
  }

  .animate-scroll {
    animation-duration: 40s;
  }

  .animate-scroll.marquee-row-reverse {
    animation-duration: 50s;
  }
}

/* ===== SECTION 3: CLIENTS FEEDBACK ===== */

.home-feedback.feedback-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* max-width: 1480px; */
  align-items: center;
  gap: 32px;
  margin: 80px auto 0;
  position: relative;
  /* overflow-x: clip; */
}

.feedback-title {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #040516;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-feedback .fh-section-title-wrap,
.feedback-section .fh-section-title-wrap {
  gap: 8px;
}

.feedback-cards {
  position: relative;
  align-self: stretch;
  width: calc(100% + 80px);
  margin-left: -20px;
  margin-right: -20px;
  overflow: hidden;
  padding: 52px 32px 48px !important;
}

.feedback-cards .swiper-wrapper {
  align-items: stretch;
}

.feedback-cards .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  overflow: visible;
  box-sizing: border-box;
}

.feedback-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 10px;
  position: relative;
  overflow: visible;
  width: 100%;
  height: auto;
  margin-top: 38px;
  padding: 40px 20px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 14px;
  border: 1px solid rgba(51, 122, 183, 0.1);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(51, 122, 183, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feedback-card:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 122, 183, 0.2);
  box-shadow:
    0 8px 24px rgba(51, 122, 183, 0.1),
    0 24px 56px rgba(15, 23, 42, 0.08);
}

/* Avatar: half above card top, half inside */
.feedback-client {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
}

.feedback-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(51, 122, 183, 0.12),
    0 10px 28px rgba(15, 23, 42, 0.14);
}

.feedback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  align-self: stretch;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border: none;
}

.feedback-divider,
.feedback-content hr {
  border: none;
  height: 1px;
  width: 100%;
  max-width: 200px;
  margin: 2px auto 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(51, 122, 183, 0.22),
      transparent);
}

.feedback-quote {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(155deg,
      rgba(51, 122, 183, 0.18),
      rgba(51, 122, 183, 0.05));
}

.feedback-quote img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.92;
}

.feedback-text {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #4b5563;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feedback-line {
  position: relative;
  width: 273px;
  height: 1px;
  object-fit: cover;
}

.feedback-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  align-self: stretch;
  width: 100%;
  margin-top: auto;
}

.feedback-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
}

.feedback-stars img {
  width: 18px;
  height: 18px;
}

.feedback-name {
  position: relative;
  margin: 2px 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #111827;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0;
  line-height: 1.35;
}

.feedback-role {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  line-height: 1.4;
}

.feedback-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute !important;
  bottom: 15px !important;
  left: 0;
  width: 100%;
  z-index: 10;
}

.feedback-pagination.swiper-pagination {
  width: 100%;
}

.feedback-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: rgba(51, 122, 183, 0.22);
  border-radius: 999px;
  opacity: 1;
  margin: 0 !important;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    background-color 0.28s ease,
    opacity 0.28s ease;
}

.feedback-pagination .swiper-pagination-bullet:hover {
  background-color: rgba(51, 122, 183, 0.45);
}

.feedback-pagination .swiper-pagination-bullet-active {
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background-color: #337ab7;
}

.pagination-dot {
  width: 14px;
  height: 14px;
  background-color: rgba(51, 122, 183, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.pagination-dot:hover {
  background-color: rgba(51, 122, 183, 0.3);
}

.pagination-dot.active {
  width: 18px;
  height: 18px;
  background-color: #337ab7;
}

@media (max-width: 1024px) {
  .feedback-cards {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 8px 12px 56px !important;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .feedback-cards {
    padding: 44px 12px 58px !important;
    overflow: hidden;
  }

  .feedback-pagination {
    bottom: 18px !important;
  }
}

@media (max-width: 480px) {
  .feedback-cards {
    padding: 40px 8px 52px !important;
    overflow: hidden;
  }

  .feedback-client {
    width: 64px;
    height: 64px;
  }

  .feedback-card {
    margin-top: 32px;
    padding: 36px 14px 24px;
  }
}

/* ===== SECTION 3: CONTACT US ===== */

.contact-section {
  display: flex;
  align-items: flex-start;
  padding: 80px 48px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  gap: 48px;
  position: relative;
}

.contact-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

/* Contact Form */
.contact-form-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-title {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #161616;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-section .fh-section-title-wrap {
  gap: 10px;
}

.contact-section .fh-section-title__subtitle,
.contact-subtitle {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #373c40;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 24px;
  width: 100%;
  max-width: 720px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.contact-form .form-input,
.contact-form .form-textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d2d6db;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: #373c40;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #a0a6ac;
}

.form-input:focus {
  outline: none;
  border-color: #337ab7;
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d2d6db;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: #373c40;
  background-color: #ffffff;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s ease;
}

.form-textarea::placeholder {
  color: #a0a6ac;
}

.form-textarea:focus {
  outline: none;
  border-color: #337ab7;
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.1);
}

.contact-submit-btn {
  padding: 12px 32px;
  background-color: #337ab7;
  color: white;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: 8px;
}

.contact-submit-btn:hover {
  background-color: #2563a8;
  transform: translateY(-2px);
  box-shadow: 0px 10px 30px rgba(51, 122, 183, 0.2);
}

/* Contact Info */
.contact-info-wrapper {
  flex: 0 1 416px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  top: 40px;
  width: min(416px, 100%);
  max-width: 100%;
  padding: 40px;
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid;
  border-color: #d2d6db;
  align-items: flex-start;
}

.contact-info-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-title {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #161616;
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.contact-info-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-label {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #161616;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.contact-info-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 400;
  color: #373c40;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #337ab7;
  transform: translateX(4px);
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;

  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.social-icon img,
.social-icon i {
  width: 16.25px;
  height: 16.25px;
  font-size: 16.25px;
  line-height: 1;
  color: #337ab7;
}

/* ===== SECTION 3: FOOTER ===== */

.footer-section {
  width: 100%;
  margin-top: 80px;
  background-color: #0a1128; /* dark blue */
  color: #ffffff;
  padding: 60px 0 30px;
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-hr-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.footer-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand-icon {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

@media (min-width: 1024px) {
  .footer-brand-icon {
    height: 80px;
  }
}

.footer-middle-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 60px;
  margin-bottom: 50px;
  align-items: center;
}

.footer-mid-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-mid-left {
  align-items: flex-end;
  text-align: right;
}

.footer-mid-center {
  align-items: center;
  position: relative;
  gap: 30px;
}

.footer-mid-right {
  align-items: flex-start;
  text-align: left;
}

.footer-editorial-link {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-editorial-link:hover {
  color: #ffffff;
}

.footer-editorial-desc {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 250px;
  line-height: 1.6;
}

.footer-social-icons-bare {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social-bare-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-social-bare-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-vr-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright-text {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  margin: 0;
}

.footer-back-to-top-bare {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-back-to-top-bare:hover {
  color: #ffffff;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-middle-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-mid-left,
  .footer-mid-right {
    align-items: center;
    text-align: center;
  }

  .footer-top-row {
    gap: 20px;
  }
  
  .footer-hr-line {
    flex: 0 1 40px;
  }

  .footer-vr-line {
    display: none;
  }

  .footer-bottom-content {
    flex-direction: column-reverse;
    gap: 20px;
  }
}

.footer-link.blog-link {
  color: #64748b;
}

.footer-link.blog-link:hover {
  color: #337ab7;
}

.footer-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Pre-collapse (1200px and under): reduce spacing before hamburger */
@media (max-width: 1200px) {
  .frame-header {
    padding: 16px 24px;
  }

  .nav-list {
    gap: 12px;
  }

  .nav-item {
    padding: 6px;
  }

  .nav-link {
    font-size: 15px;
  }

  .stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 14px;
  }

  .stat-item {
    max-width: none;
    margin: 0;
    min-height: 168px;
    padding: 18px 12px;
  }

  .stat-item::after {
    display: none;
  }

  .footer-section {
    padding: 48px 32px;
  }

  .footer-content {
    gap: 48px;
    padding: 0 32px;
  }

  .footer-links {
    max-width: none;
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    width: 100%;
  }
}

/* Tablet and below (1024px and under) */
@media (max-width: 1024px) {
  .frame {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
  }

  .ellipse-about {
    left: auto;
  }

  /* Let .frame control horizontal gutters on mobile/tablet */
  .services-section,
  .what-i-offer-section,
  .tools-section {
    padding: 0;
  }

  .offer-grid--desktop {
    display: none !important;
  }

  .offer-swiper-wrap {
    display: block !important;
    min-height: 120px;
  }

  .offer-swiper-wrap .offer-cards,
  .offer-swiper-wrap .offer-swiper {
    width: 100%;
    margin-inline: 0;
    padding: 4px 0 58px;
    box-sizing: border-box;
  }

  .offer-swiper-wrap .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .offer-swiper-wrap .swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 88%;
    max-width: 100%;
    width: auto;
    height: auto;
  }

  .courses-section,
  .courses-section--carousel {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
    background: none;
    border: none;
    border-radius: 0;
  }

  .stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 14px;
    gap: 12px;
  }

  .stat-item::after {
    display: none;
  }

  .courses-section--carousel .courses-cards,
  .courses-section--carousel .courses-swiper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 20px 0 58px !important;
  }

  .frame-header {
    padding: 12px 20px;
  }

  .frame-header.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .frame-header.is-scrolled .logo {
    width: 140px;
  }

  .hamburger-btn {
    display: flex;
  }

  .sign-in-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }

  .nav-auth-cta {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .nav-auth-cta__btn {
    flex: 1;
    width: auto;
    min-width: 0;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--navbar-height, 64px);
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 150;
  }

  .frame-header.nav-open .nav-backdrop,
  body.nav-menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Make the mobile menu truly full-width (header has padding) */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 0.32s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      padding 0.22s ease,
      box-shadow 0.22s ease;
    background: #ffffff;
    padding: 0 20px;
    z-index: 200;
    box-shadow: none;
    margin-left: 0;
    border-bottom: 1px solid transparent;
  }

  /* Show mobile logo outside, hide desktop logo inside */
  .logo-mobile {
    display: block;
  }

  .logo-desktop {
    display: none;
  }

  .nav-menu.active {
    max-height: min(78vh, calc(100dvh - var(--navbar-height, 64px) - 12px));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 1;
    transform: translateY(0);
    padding: 16px 20px 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(51, 122, 183, 0.08);
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .frame {
    align-items: center;
  }

  .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 6px 0;
  }

  .nav-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-link {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-services-dropdown__row .nav-link {
    width: auto;
    flex: 0 1 auto;
  }

  .nav-services-dropdown__row {
    padding: 2px 0;
  }

  .nav-services-dropdown__row .nav-dropdown-chevron-btn {
    flex-shrink: 0;
    align-self: center;
    padding: 6px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .nav-services-dropdown__row .nav-dropdown-chevron-btn:hover {
    background: transparent;
    color: #337ab7;
  }

  .nav-services-dropdown__row .nav-dropdown-chevron-btn:focus-visible {
    outline: 2px solid #337ab7;
    outline-offset: 2px;
  }

  .nav-services-dropdown__row .nav-dropdown-chevron-btn[aria-expanded="true"] {
    background: transparent;
    border: none;
    color: #337ab7;
  }

  .nav-services-dropdown__row .arrow-down {
    width: 12px;
    height: 12px;
  }

  .nav-services-dropdown>.dropdown-menu {
    margin-top: 6px;
    margin-left: 0;
    padding: 6px 8px;
    width: 100%;
    background: #fafbfc;
    border: 1px solid #e8eef4;
    border-radius: 8px;
    border-left: none;
    box-shadow: none;
  }

  .nav-services-dropdown>.dropdown-menu li {
    margin-bottom: 0;
  }

  .nav-services-dropdown>.dropdown-menu .dropdown-link {
    padding: 9px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
  }

  .nav-services-dropdown>.dropdown-menu .dropdown-link:hover {
    background-color: #f3f9ff;
    color: #337ab7;
    padding-left: 10px;
  }

  .language-selector {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
  }

  /* Touch-friendly dropdowns: hidden by default, shown by aria-expanded */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #fafbfc;
    margin: 6px 0 0 0;
    box-shadow: none;
    border: 1px solid #e8eef4;
    border-radius: 8px;
    padding: 6px 8px;
    width: 100%;
  }

  .dropdown-menu li {
    margin-bottom: 0;
    list-style: none;
  }

  .dropdown-menu .dropdown-link {
    display: block;
    padding: 9px 10px;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .dropdown-menu .dropdown-link:hover {
    background-color: #f3f9ff;
    color: #337ab7;
    padding-left: 10px;
  }

  .nav-dropdown-toggle[aria-expanded="true"]~.dropdown-menu,
  .nav-services-dropdown:has(.nav-dropdown-toggle[aria-expanded="true"])>.dropdown-menu {
    display: block;
  }

  .language-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(243, 249, 255, 0.6);
    margin: 8px 0 0 0;
    box-shadow: none;
    border: none;
    padding: 8px 0;
    border-radius: 8px;
  }

  .language-dropdown-toggle[aria-expanded="true"]+.language-dropdown-menu {
    display: block;
  }

  .user-menu-dropdown {
    width: 100%;
    margin-left: 0 !important;
    border-top: 1px solid #f1f1f1;
    padding-top: 16px;
    margin-top: 8px;
  }

  .user-menu-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
  }

  .user-dropdown-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none;
    /* Remove border in mobile for cleaner look */
    background: transparent;
    margin-top: 8px !important;
    padding-left: 12px;
    /* Indent items slightly */
    padding-right: 12px;
  }

  .user-dropdown-link,
  .user-dropdown-item-logout {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #f1f1f1;
    margin-bottom: 8px;
  }


  .hero-section {
    margin: 32px 0;
    overflow-x: hidden;
    overflow-y: clip;
    overflow-clip-margin: 2.5rem 0 0 0;
    width: 100%;
    max-width: 920px;
    padding: 44px 24px;
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
    padding-inline-end: 0;
  }

  .hero-content::before {
    inset-inline-start: 50%;
    transform: translateX(-50%);
    top: -4%;
    width: min(360px, 88%);
    height: 280px;
    opacity: 0.85;
  }

  .hero-copy {
    align-items: center;
    max-width: 540px;
    gap: 18px;
  }

  .hero-subtitle {
    border-inline-start: none;
    padding-inline-start: 0;
    text-align: center;
  }

  .hero-title__line--suffix {
    max-width: none;
  }

  html[dir="rtl"] .hero-content,
  .dir-rtl .hero-content {
    position: static;
    transform: none;
    right: auto;
    width: 100%;
    max-width: none;
    padding-inline-start: 0;
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .hero-copy,
  .dir-rtl .hero-copy {
    align-items: center;
  }

  html[dir="rtl"] .hero-title,
  html[dir="rtl"] .hero-subtitle,
  .dir-rtl .hero-title,
  .dir-rtl .hero-subtitle {
    text-align: center;
  }

  html[dir="rtl"] .hero-buttons,
  .dir-rtl .hero-buttons {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Remove profile image on tablet/mobile */
  .hero-image {
    display: none;
  }

  /* Who I Am: stack + center on tablets */
  .about-section {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
  }

  .about-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
  }

  .about-content {
    width: 100%;
    max-width: 760px;
    align-items: center;
    text-align: center;
  }

  .about-title {
    width: 100%;
    max-width: 560px;
  }

  .about-section .fh-section-title-wrap,
  .about-section .fh-section-title-wrap.fh-section-title--start {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-section .fh-section-title {
    justify-content: center;
    margin-inline: auto;
  }

  .badge-overlay,
  .ai-idea,
  .ai-programming,
  .hero-float-glow {
    display: none;
  }

  .services-grid,
  .offer-grid,
  .tools-grid,
  .courses-grid {
    gap: 16px;
  }

  .tools-grid,
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 24px;
  }

  .course-card {
    width: 100%;
    max-width: none;
  }

  .contact-section {
    flex-direction: column;
    padding: 56px 24px;
  }

  .contact-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .contact-subtitle {
    max-width: none;
  }

  .contact-info-wrapper {
    width: 100%;
    max-width: 560px;
    padding: 24px;
    top: 0;
    margin: 0 auto;
  }

  .footer-section {
    padding: 40px 24px;
  }

  .form-row {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
  }

  .footer-links {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    width: 100%;
  }

  .footer-links__item:not(:last-child)::after {
    margin: 0 12px;
    width: 4px;
    height: 4px;
  }

  .footer-link {
    font-size: 16px;
  }
}

/* Mobile (768px and under) */
@media (max-width: 768px) {
  .frame {
    padding: 0 16px;
    gap: 48px;
  }

  .frame > .stats-section,
  .frame > .about-section,
  .frame > .services-section,
  .frame > .what-i-offer-section,
  .frame > .courses-section,
  .frame > .tools-section,
  .frame > .clients-section,
  .frame > .home-feedback,
  .frame > .contact-section {
    margin-top: 0;
  }

  .what-i-offer-section,
  .tools-section,
  .services-section {
    gap: 28px;
    margin-top: 0;
    padding-inline: 0;
  }

  .frame-header {
    padding: 10px 16px;
  }

  .frame-header.is-scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .logo {
    width: 162px;
    height: auto;
  }

  /* Full-width menu for smaller padding */
  .nav-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .nav-menu.active {
    padding: 14px 16px 18px;
    max-height: min(78vh, calc(100dvh - var(--navbar-height, 60px) - 8px));
  }

  .nav-link {
    font-size: 14px;
  }

  .hero-section {
    width: 100%;
    padding: 36px 16px;
    gap: 20px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 22px;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .hero-buttons .hero-btn,
  .hero-buttons .fh-btn {
    flex: 1 1 0;
    min-width: 130px;
    text-align: center;
    justify-content: center;
  }

  .hero-btn__label--full {
    display: none;
  }

  .hero-btn__label--short {
    display: inline;
  }

  .hero-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  /* Decorative blobs: hide on mobile */
  .ellipse-right,
  .ellipse-left,
  .ellipse-about,
  .ellipse-image,
  .ellipse-course {
    display: none;
  }

  .stats-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    padding: 16px 12px;
    gap: 10px;
  }

  .stat-item {
    width: 100%;
    gap: 12px;
    min-height: 150px;
    padding: 16px 10px;
  }

  .stat-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    max-width: none;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .about-section {
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
  }

  .about-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
  }

  .about-content {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-title {
    width: 100%;
    max-width: 520px;
  }

  .about-section .fh-section-title-wrap,
  .about-section .fh-section-title-wrap.fh-section-title--start {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-section .fh-section-title {
    justify-content: center;
    margin-inline: auto;
  }

  .about-content,
  .contact-wrapper,
  .contact-form-wrapper,
  .contact-info-wrapper {
    width: 100%;
  }

  .offer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .offer-card {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 520px;
    text-align: left;
  }

  .offer-content {
    align-items: flex-start;
    text-align: left;
    order: 2;
    width: 100%;
  }

  .offer-title {
    text-align: left;
  }

  .offer-description {
    max-width: none;
  }

  .offer-icon {
    order: 1;
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: 0;
  }

  .services-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .services-header .fh-section-title,
  .courses-header .fh-section-title,
  .tools-header .fh-section-title {
    font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  }

  .services-header .fh-cta,
  .courses-header .fh-cta,
  .tools-header .fh-cta {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.8125rem;
  }

  .courses-section {
    padding: 0;
    gap: 28px;
    margin: 0 auto;
  }

  .courses-section--carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
  }

  .courses-section--carousel .courses-header {
    padding-inline: 0;
    width: 100%;
  }

  .courses-section--carousel .courses-swiper-wrap {
    width: 100%;
    margin-inline: 0;
  }

  .courses-section--carousel .courses-cards,
  .courses-section--carousel .courses-swiper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 0 58px !important;
  }

  .courses-pagination,
  .home-slider-pagination {
    bottom: 14px !important;
  }

  .courses-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .courses-header-actions {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
  }

  .tools-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .tools-section:not(.tools-section--has-mobile-slider) .tools-grid,
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    gap: 16px;
    padding-bottom: 24px;
    scrollbar-width: none;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
  }

  .courses-grid::-webkit-scrollbar {
    display: none;
  }

  .course-card {
    border: 1px solid #e5e7eb;
    box-shadow: none;

  }

  .courses-grid>.course-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 400px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .feedback-card {
    width: 100%;
    max-width: 360px;
  }

  .contact-section {
    flex-direction: column;
    padding: 40px 16px;
  }

  .contact-header {
    text-align: center;
    align-items: center;
  }

  .contact-submit-btn {
    width: 100%;
  }

  .ellipse-about {
    left: auto;
  }

  .contact-info-wrapper {
    display: none;
    width: 100%;
    max-width: 520px;
    padding: 20px;
    margin: 0 auto;
  }

  .footer-section {
    padding: 32px 16px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 24px;
  }

  .footer-brand {
    display: contents;
  }

  .footer-brand-header {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-nav {
    order: 2;
    justify-content: center;
    width: 100%;
    margin: 8px 0;
  }

  .footer-social {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-social-label {
    text-align: center;
  }

  .footer-contact-info {
    align-items: center;
  }

  .footer-social-links {
    justify-content: center;
  }

  .footer-social-links img {
    height: 32px !important;
    width: 32px !important;
  }

  .footer-social-fallback {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px 0;
    padding: 0;
    margin: 0 auto;
    border-radius: 0;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .footer-links__item {
    width: auto;
    justify-content: center;
  }

  .footer-links__item:not(:last-child)::after {
    display: block;
    width: 4px;
    height: 4px;
    margin: 0 10px;
    background-color: #e5e7eb;
    border-radius: 50%;
  }

  .footer-links__item:not(:last-child) {
    border-bottom: none;
  }

  .footer-link {
    display: inline-block;
    width: auto;
    padding: 4px 8px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
  }

  .footer-link:active {
    background: transparent;
  }
}

/* Small mobile (480px and under) */
@media (max-width: 480px) {
  .frame-header {
    padding: 10px 14px;
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
  }

  .logo {
    width: 132px;
  }

  .nav-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .nav-menu.active {
    padding: 12px 14px 16px;
  }

  .hero-section {
    min-height: auto;
    padding: 30px 12px;
  }

  /* Hero badge: smaller on mobile */
  .badge {
    padding: 8px 16px 8px 14px;
    gap: 8px;
  }

  .badge-text {
    font-size: 0.9rem;
  }

  .badge {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .badge-text {
    white-space: normal;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 1.7rem);
    line-height: 1.25;
  }

  .hero-btn {
    min-height: 48px;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }

  .services-title,
  .what-i-offer-title,
  .feedback-title,
  .tools-title,
  .courses-title,
  .clients-title,
  .contact-title,
  .fh-section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .stats-section {
    padding: 12px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-item {
    min-height: 140px;
    padding: 14px 8px;
    border-radius: 14px;
  }

  .stat-icon-wrapper {
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .stat-icon-svg {
    width: 24px;
    height: 24px;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-number::after {
    margin-top: 8px;
    width: 22px;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  .about-section {
    padding: 16px 12px;
  }

  .contact-section {
    padding: 30px 12px;
  }

  .courses-grid>.course-card {
    flex-basis: 92%;
  }

  .footer-content {
    padding: 0 12px;
  }

  .footer-section {
    padding: 28px 12px;
  }
}

/* ===== Reusable frontend breadcrumb (x-frontend.breadcrumb) — minimal ===== */
.page-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  margin: 0;
  padding: 0;
  max-width: 100%;
  background: none;
  border: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

.page-breadcrumb__link {
  color: inherit;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
  background: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.page-breadcrumb__link:hover {
  background: none;
}

.page-breadcrumb__link:focus {
  outline: none;
}

.page-breadcrumb__link:focus-visible {
  outline: 2px solid #337ab7;
  outline-offset: 2px;
  border-radius: 2px;
}

.page-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 0.1rem;
  user-select: none;
  color: inherit;
  opacity: 0.45;
}

.page-breadcrumb__icon {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.page-breadcrumb__current {
  display: inline;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-weight: 600;
}

/* Alignment */
.page-breadcrumb--align-center {
  justify-content: center;
}

.page-breadcrumb--align-start {
  justify-content: flex-start;
}

/* Dark hero — muted trail, current page only emphasized */
.page-breadcrumb--hero {
  align-self: flex-start;
  max-width: 100%;
  color: rgb(255 255 255 / 50%);
}

.page-breadcrumb--hero .page-breadcrumb__link {
  color: rgb(255 255 255 / 55%);
}

.page-breadcrumb--hero .page-breadcrumb__link:hover {
  color: rgb(255 255 255 / 85%);
}

.page-breadcrumb--hero .page-breadcrumb__link:focus-visible {
  outline-color: rgb(159 211 255 / 90%);
}

.page-breadcrumb--hero .page-breadcrumb__sep {
  opacity: 0.4;
}

.page-breadcrumb--hero .page-breadcrumb__current {
  color: #ffffff;
  font-weight: 600;
}

/* Light pages */
.page-breadcrumb--content {
  max-width: 100%;
  color: #9ca3af;
}

.page-breadcrumb--content .page-breadcrumb__link {
  color: #9ca3af;
}

.page-breadcrumb--content .page-breadcrumb__link:hover {
  color: #337ab7;
}

.page-breadcrumb--content .page-breadcrumb__sep {
  opacity: 0.5;
}

.page-breadcrumb--content .page-breadcrumb__current {
  color: #141212;
  font-weight: 600;
}

.page-breadcrumb-contain {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .page-breadcrumb__link {
    transition: none;
  }
}

/* Courses listing: align with sidebar column without stretching the chip */
.page-breadcrumb--courses {
  margin-left: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .page-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    gap: 0.2rem 0.3rem;
    overflow: hidden;
  }

  .page-breadcrumb__link,
  .page-breadcrumb__sep {
    flex-shrink: 0;
  }

  .page-breadcrumb__current {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-breadcrumb--courses {
    margin-left: 0;
  }
}