/* ===============================
   Global Styles
   =============================== */
html, body {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', system-ui, sans-serif;
  background-color: #fff;
  color: #0F172A;
  line-height: 1.6;
}

.rtl {
  direction: rtl;
  text-align: right;
}

.ltr {
  direction: ltr;
  text-align: left;
}

body.ltr .text-dir {
  text-align: left;
}
body.rtl .text-dir {
  text-align: right;
}


/* ===============================
   Navbar & Links
   =============================== */
.navlink {
  position: relative;
  font-weight: 500;
  transition: color 0.25s ease;
}

.navlink:after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -5px;
  height: 2px;
  background: #0056D2;
  transform: scaleX(0);
  transform-origin: var(--x, 0%);
  transition: transform .25s ease;
}

.navlink:hover {
  color: #0056D2;
}

.navlink:hover:after {
  transform: scaleX(1);
}

header {
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 999;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


header a.navlink {
  color: #0F172A;
  transition: color 0.2s;
}
header a.navlink:hover {
  color: #0056D2;
}

header .ets-svg {
  width: 58px;
  height: auto;
}


/* ===============================
   ETS SVG Styling
   =============================== */
.ets-svg {
  display: inline-block;
  vertical-align: middle;
}

.ets-svg path {
  fill: #004A99;
  transition: fill 0.3s;
}

header:hover .ets-svg path {
  fill: #0056D2;
}

/* ===============================
   Buttons
   =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 12px;
  transition: all .3s ease;
  cursor: pointer;
}

.btn-primary {
  background: #0056D2;
  color: #fff;
  padding: .75rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 86, 210, 0.25);
}

.btn-primary:hover {
  background: #004BB3;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 86, 210, 0.35);
}

.btn-outline {
  border: 1px solid #0056D2;
  color: #0056D2;
  padding: .75rem 1.5rem;
}

.btn-outline:hover {
  background: rgba(0, 86, 210, 0.1);
}

/* ===============================
   Badges
   =============================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,86,210,0.1);
  color: #0056D2;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .35rem .75rem;
}

/* ===============================
   Cards & Shadows
   =============================== */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.12);
}

/* Decorative highlight on hover */
.card::before {
  content: "";
  position: none;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,86,210,0.05), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.card:hover::before {
  opacity: 1;
}

/* ===============================
   Inputs & Forms
   =============================== */
input, select, textarea {
  font-family: 'Cairo', system-ui, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  transition: border .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #0056D2;
  box-shadow: 0 0 0 2px rgba(0,86,210,0.2);
  outline: none;
}

#leadForm input, #leadForm select, #leadForm textarea {
  background: #fff;
  transition: border .2s ease;
}

#leadForm button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
   Hero Section
   =============================== */
.badge + h1 {
  color: #0F172A;
}

.glass {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.3);
}

.swap-dir {
  transform: scaleX(-1);
}

/* Hero image animation */
@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero img {
  animation: floatImg 6s ease-in-out infinite;
}

/* ===============================
   Decorative Blobs
   =============================== */
svg.blob {
  position: absolute;
  opacity: 0.25;
  filter: blur(8px);
  z-index: 0;
}

/* ===============================
   Responsive Tweaks
   =============================== */
@media (max-width: 1024px) {
  header .container {
    padding-inline: 1rem;
  }

  .navlink {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn-primary, .btn-outline {
    padding: 0.65rem 1.25rem;
  }
}

@media (max-width: 640px) {
  h1, h2, h3 {
    line-height: 1.4;
  }

  .card {
    padding: 1.25rem;
  }

  .ets-svg {
    width: 48px;
  }
}

/* ===============================
   WhatsApp Floating Button
   =============================== */
#waFloat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .3s, box-shadow .3s;
  z-index: 1000;
}

#waFloat:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ===============================
   Footer
   =============================== */
footer {
  background: #fff;
}

footer a {
  color: #64748B;
  transition: color .3s;
}

footer a:hover {
  color: #0056D2;
}

footer img {
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: scale(1.05);
}

/* ===============================
   AOS Animations Overrides
   =============================== */
[data-aos] {
  transition-duration: 650ms !important;
}

/* ===============================
   Utility
   =============================== */
.hidden {
  display: none;
}

.text-muted {
  color: #64748B;
}

.text-brand {
  color: #0056D2;
}

.text-ink {
  color: #0F172A;
}

/* ===============================
   Small Details
   =============================== */
::selection {
  background: #0056D2;
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #0056D2;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #004bb3;
}

#programs .program-cta {
  font-weight: 600;
  transition: all .3s ease;
}

#programs .program-cta:hover {
  background: #0056D2;
  color: #fff;
}

.program-cta {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* ===============================
   Enhanced Card Styling
   =============================== */

#programs .card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  border: 1px solid #f1f5f9;
}

#programs .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 86, 210, 0.12);
}

/* Header section (Title + Badge) */
#programs .card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

#programs .card .badge {
  font-size: 0.8rem;
  background: #EFF6FF;
  color: #0056D2;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Program Details */
#programs .card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  line-height: 1.8;
}

#programs .card ul li {
  font-size: 0.95rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#programs .card ul li::before {
  content: "•";
  color: #0056D2;
  font-weight: bold;
  display: inline-block;
  margin-left: 0.4rem;
}

/* Price & Button area */
#programs .card .text-brand {
  font-size: 1.1rem;
  font-weight: 800;
}

#programs .card .program-cta {
  border: 2px solid #0056D2;
  color: #0056D2;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

#programs .card .program-cta:hover {
  background: #0056D2;
  color: #fff;
  transform: translateY(-2px);
}

/* Layout balance for last row */
#programs .card .mt-4 {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
}

/* ===============================
   Outcomes Section (Improved Cards)
   =============================== */

#outcomes {
  background: #fff;
}

#outcomes .benefit-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#outcomes .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 86, 210, 0.12);
  border-color: #dbeafe;
}

#outcomes .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,86,210,0.08);
  color: #0056D2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

#outcomes .benefit-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.4rem;
}

#outcomes .benefit-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  max-width: 85%;
  margin: 0 auto;
}

@media (max-width: 640px) {
  #outcomes .benefit-card {
    padding: 1.5rem;
  }
  #outcomes .benefit-title {
    font-size: 1rem;
  }
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #111827;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* السهم */
.select-wrapper::after {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230056D2' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.select-wrapper select:hover {
  border-color: #0056D2;
  box-shadow: 0 0 0 3px rgba(0,86,210,0.1);
}

.select-wrapper select:focus {
  outline: none;
  border-color: #0056D2;
  box-shadow: 0 0 0 3px rgba(0,86,210,0.15);
}

option {
  font-size: 0.9rem;
  color: #111827;
  background-color: #fff;
}

body.rtl .select-wrapper::after {
  left: 1rem;
  right: auto;
}

body.ltr .select-wrapper::after {
  right: 1rem;
  left: auto;
}

footer a {
  text-decoration: none;
}
footer a:hover {
  color: #0056D2;
}


@media (max-width: 768px) {
  #form {
    scroll-margin-bottom: -440px;
  }
}

