:root {
  --brand-primary: #0a2d47;
  --brand-accent: #ffb800;
  --brand-teal: #0aa6a6;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  color: #233;
}

/* Navbar */
.navbar {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.navbar .nav-link {
  font-weight: 600;
}

/* .navbar-brand img {
  height: 36px;
} */

/* Buttons */
.btn-brand {
  background: var(--brand-teal);
  color: #fff;
  border: none;
}

.btn-brand:hover {
  background: #088c8c;
  color: #fff;
}

.btn-ghost {
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  background: #fff;
}

.btn-ghost:hover {
  background: var(--brand-teal);
  color: #fff;
}

.btn-outline-light-custom {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
}

.btn-outline-light-custom:hover {
  background: #f3f3f3;
  color: #111;
}

/* Hero slider */
.hero-slide {
  min-height: 540px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-block: 4rem;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 45, 71, 0.85),
    rgba(10, 45, 71, 0.55)
  );
  inset: 0;
  position: absolute;
}

.carousel-caption {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  text-align: start;
  padding: 2rem;
}

.carousel-caption .wrap {
  max-width: 780px;
  color: #fff;
  position: relative;
  z-index: 3;
}

/* Hide slider arrows */
.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

/* Sections */
.section-pad {
  padding: 4rem 0;
}

/* Feature icons */
/* .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef7f7;
} */

/* الصورة داخل الأيقونة */
.feature-icon img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* كروت الموارد */
.resource-card {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.resource-card:hover {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

/* أيقونة الموارد داخل الكارت */
.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eef7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
}

.resource-icon i {
  font-size: 1.3rem;
}


/* Footer */
.footer {
  background: #0b2033;
  color: #d8e2ef;
  padding: 3rem 0;
}

.footer a {
  color: #cfe5ff;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.badge-soft {
  background: #eef7f7;
  color: #0a2d47;
}

/* Dropdown arrows */
.nav-dropdown .dropdown-toggle::after,
.mega-dropdown .dropdown-toggle::after {
  display: none;
}

.dropdown-arrow {
  font-size: 0.55rem;
  margin-inline-start: 0.25rem;
  transition: transform 0.15s ease;
}

.nav-dropdown.show .dropdown-arrow,
.mega-dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

/* Mega dropdown */
.mega-dropdown .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0 !important; 
  border-radius: 24px;
  border: none;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  min-width: min(860px, 100vw - 2rem);
  padding: 1.5rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: #111827;
  transition: 0.15s ease;
}

.mega-link:hover {
  background: #f3f4ff;
}

.mega-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f4f4f5;
  color: #4b5563;
  flex-shrink: 0;
}

.mega-link-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.mega-link-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

.mega-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-card-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fff7e6;
  color: #b45309;
  align-self: flex-start;
  font-weight: 600;
}

.mega-card-img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
}

/* RTL helpers */
[dir="rtl"] .text-start {
  text-align: right !important;
}

[dir="rtl"] .text-end {
  text-align: left !important;
}

/* Floating Request Demo button */
.request-demo-floating {
  position: fixed;
  z-index: 1050;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--brand-teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.request-demo-floating:hover {
  background: #088c8c;
  color: #fff;
}

.max-w-200{
  max-width: 200px;
}

/* SIGNUP CTA SECTION */
.signup-cta {
  background-color: #f5fbff;
  position: relative;
  overflow: hidden;
}

.signup-title {
  font-size: clamp(1.8rem, 2.3vw + 1rem, 2.4rem);
  line-height: 1.3;
}

.signup-title .text-brand {
  display: block;
  color: var(--brand-teal, #00928f);
}

.signup-panel {
  background: #fff;
  border-radius: 1.5rem;
  border: 2px solid #0059b2;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  direction: ltr;
}

.signup-domain-suffix {
  background: #f2f6fb;
  border-left: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.signup-panel .form-control {
  border-radius: 0.75rem;
}

.signup-panel .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.signup-panel .input-group .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* زر أساسي بنفس ألوان Trainovas */
.btn-brand {
  background-color: var(--brand-teal, #00928f);
  border-color: var(--brand-teal, #00928f);
  color: #fff;
  font-weight: 600;
}

.btn-brand:hover {
  background-color: #007a76;
  border-color: #007a76;
}

/* ملاحظة تحت الفورم */
.signup-note {
  text-align: center;
}

/* GROW SECTION */
.grow-section {
  background-color: #f0f0e8;
}

.grow-image-wrapper {
  margin-inline: auto;
}

.grow-image-wrapper img {
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  display: block;
  width: 100%;
}

.grow-icon img {
  height: 56px;
  width: auto;
}

.grow-title {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem);
  line-height: 1.3;
}

.grow-title .text-brand {
  color: var(--brand-teal, #00928f);
}


.bg-banner{background-color: #e8e8e8;}

.bg-banner-mob{background-color: #e8e8e8;}

.ai-core-section{
  background: url(../../images/ai-core-bg.jpg) no-repeat; background-position: center; background-size: cover;
  padding: 5em 0;
  color: white;
}

.ai-core-section i{
  color: white !important;
}

.curved-section {
    position: relative;
    background: url(../../images/ai-core-bg.jpg) center/cover no-repeat;
    padding: 120px 0;
    overflow: hidden;
}

/* الانحناء العلوي */
.curved-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -80px;                 /* يتحكم في مقدار القص من الأعلى */
    transform: translateX(-50%);
    width: 120%;                /* أكبر من عرض السكشن قليلاً */
    height: 160px;              /* ارتفاع الكيرف */
    background: #ffffff;        /* لون الخلفية خارج السكشن */
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
}

/* الانحناء السفلي (نفس الشكل لكن معكوس) */
.curved-section::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -80px;              /* يتحكم في مقدار القص من الأسفل */
    transform: translateX(-50%);
    width: 120%;
    height: 160px;
    background: #ffffff;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
}

.curved-section, .curved-section i{
  color: white !important;
}

.support-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-teal, #00928f);
  display: inline-flex;
  align-items: center;
}

.support-link i {
  font-size: 0.95rem;
}

.support-link:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
 .mega-dropdown .dropdown-menu {
    left: auto;
    transform: translateX(0);
    margin-top: 0 !important; 
    min-width: min(660px, 100vw - 2rem);
  }
    .navbar .navbar-collapse {
    max-height: calc(100vh - 100px); /* حسب ارتفاع الـ navbar تقريباً */
    overflow-y: auto;
  }
}

@media (max-width: 932px) {
  .bg-banner{background-color: transparent;}
  
}

/* موبايل */
@media (max-width: 767.98px) {
  .signup-panel {
    padding: 1.25rem;
  }
  .max-w-200{
  max-width: 180px;
}
.grow-section {
    text-align: center;
  }

  .grow-title {
    font-size: 1.8rem;
  }

  .grow-icon img {
    margin-inline: auto;
  }
}


