/* =============================================================
   توان امید تابان — Brand Override
   Sits on top of main-rtl.css. Recolors primary palette from
   navy/indigo to brand teal + gold and tunes a few key blocks
   (hero, buttons, header, footer, icons) without touching the
   underlying framework CSS.
   ============================================================= */

:root {
  /* Brand */
  --brand-teal:        #015E7D;
  --brand-teal-deep:   #013E54;
  --brand-teal-ink:    #06222F;
  --brand-teal-dark:   #04161E;
  --brand-gold:        #DCB373;
  --brand-gold-soft:   #E8C994;
  --brand-cream:       #F5EFE3;
  --brand-paper:       #FBF8F2;

  /* Map onto framework tokens */
  --bs-blue:   #015E7D;
  --bs-blue2:  #06222F;
  --bs-blue3:  #015E7D;
  --bs-blue4:  #015E7D;
  --bs-blue5:  #06222F;
  --bs-blue6:  #06222F;
  --bs-primary: #015E7D;
}

/* ---------- Header / Navbar ---------- */
.header-main .navbar-brand img { max-height: 56px; width: auto !important; }

.header-nav a.custom-nav-link {
  color: #06222F !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.header-nav a.custom-nav-link:hover,
.header-nav a.custom-nav-link.active {
  color: var(--brand-teal) !important;
}
.main-header-menu-wrap.white-bg { background: #ffffff !important; }

/* gold underline accent under the active menu item */
.header-nav .nav-item .custom-nav-link {
  position: relative;
  padding-bottom: 4px;
}
.header-nav .nav-item .custom-nav-link::after {
  content: "";
  position: absolute;
  right: 0; left: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.header-nav .nav-item:hover .custom-nav-link::after,
.header-nav .nav-item .custom-nav-link.active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero-equal-height {
  background-color: var(--brand-teal-ink);
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Pull the hero content rightward at md+ so the headline doesn't sit on top
   of the gold logo-block on the banner's far-left edge. clamp() makes it
   responsive — zero shift on mobile, up to 80px on wide viewports. */
@media (min-width: 768px) {
  .hero-equal-height .row > .col-md-8 {
    padding-inline-end: clamp(20px, 4vw, 80px);
  }
}
.hero-equal-height .hero-content-left h1 {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.hero-equal-height .hero-content-left h1 .accent { color: var(--brand-gold); }
.hero-equal-height .hero-content-left .lead {
  color: #C7D6DC;
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}
.hero-equal-height .tech-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--brand-cream);
}
.hero-equal-height .tech-feature-list li .bullet {
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(220, 179, 115, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-gold);
  font-size: 11px;
  flex-shrink: 0;
}

/* Small status pill in hero */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(220, 179, 115, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--brand-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 12px var(--brand-gold);
}

/* ---------- Buttons ---------- */
.success-solid-btn,
.primary-solid-btn {
  border: 1px solid var(--brand-teal) !important;
  background: var(--brand-teal) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: all .2s ease;
}
.success-solid-btn:hover,
.primary-solid-btn:hover {
  border-color: var(--brand-teal-deep) !important;
  background: var(--brand-teal-deep) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(1, 94, 125, 0.35);
}
.btn.gold-solid-btn {
  background: var(--brand-gold) !important;
  border: 1px solid var(--brand-gold) !important;
  color: var(--brand-teal-ink) !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
}
.btn.gold-solid-btn:hover {
  background: var(--brand-gold-soft) !important;
  border-color: var(--brand-gold-soft) !important;
  transform: translateY(-1px);
}
.btn.outline-cream-btn {
  background: transparent;
  border: 1.5px solid rgba(245, 239, 227, 0.45) !important;
  color: var(--brand-cream) !important;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 600;
}
.btn.outline-cream-btn:hover {
  background: rgba(245, 239, 227, 0.08);
  border-color: var(--brand-cream) !important;
}

/* ---------- Section base ---------- */
section h2 {
  color: var(--brand-teal-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
section .lead { color: #4d5e66; }

/* eyebrow */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--brand-gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-right: 26px;
}
.section-eyebrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--brand-gold);
  transform: translateY(-50%);
}

/* ---------- About promo tiles ---------- */
.single-promo-2.rounded-custom {
  border: 1px solid rgba(1, 94, 125, 0.10);
  border-radius: 16px !important;
  transition: all .25s ease;
  background: #fff !important;
}
.single-promo-2.rounded-custom:hover {
  border-color: rgba(1, 94, 125, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 34, 47, 0.10);
}
.single-promo-2 .circle-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-deep) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
}
.single-promo-2 .circle-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  border: 1px dashed rgba(220, 179, 115, 0.45);
}
.single-promo-2 h5 {
  color: var(--brand-teal-ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.single-promo-2 p { color: #5C6E76; font-size: 14.5px; line-height: 1.65; margin-bottom: 0; }

/* ---------- Services tiles ---------- */
.single-service-plane {
  border: 1px solid rgba(1, 94, 125, 0.08) !important;
  border-radius: 16px !important;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.single-service-plane::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.single-service-plane:hover::before { transform: scaleX(1); }
.single-service-plane:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(6, 34, 47, 0.12);
}
.single-service-plane h3 { color: var(--brand-teal-ink); font-weight: 700; }
.single-service-plane p { color: #5C6E76; font-size: 14.5px; line-height: 1.65; }
.service-icon-tile {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: rgba(1, 94, 125, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  font-size: 32px;
  border: 1px solid rgba(1, 94, 125, 0.12);
}
.btn-link {
  color: var(--brand-teal) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.btn-link:hover { color: var(--brand-teal-deep) !important; }

/* ---------- Products cards ---------- */
.staff-member .card {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(1, 94, 125, 0.10) !important;
  transition: all .25s ease;
}
.staff-member:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(6, 34, 47, 0.12);
}
.staff-member .card-img-top {
  height: 220px;
  object-fit: cover;
  background: #F0F4F6;
}
.staff-member .teacher {
  color: var(--brand-teal-ink) !important;
  font-weight: 700;
  font-size: 16px;
}
.staff-member span {
  color: var(--brand-gold);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ---------- Clients ---------- */
.client-section .single-client {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(1, 94, 125, 0.08);
  padding: 18px;
  transition: all .2s ease;
}
.client-section .single-client:hover {
  border-color: rgba(1, 94, 125, 0.22);
  transform: translateY(-2px);
}
.client-section .client-img { max-height: 50px; object-fit: contain; filter: grayscale(0.4); opacity: 0.85; transition: all .2s; }
.client-section .single-client:hover .client-img { filter: grayscale(0); opacity: 1; }

/* ---------- Blog cards ---------- */
.single-blog-card {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(1, 94, 125, 0.10) !important;
  transition: all .25s ease;
}
.single-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(6, 34, 47, 0.12);
}
.single-blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.single-blog-card .badge-primary {
  background: var(--brand-gold) !important;
  color: var(--brand-teal-ink) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
}
.single-blog-card .meta-list { color: #7d8c93; font-size: 13px; }
.single-blog-card .card-title a {
  color: var(--brand-teal-ink) !important;
  font-weight: 700;
  text-decoration: none;
}
.single-blog-card .card-title a:hover { color: var(--brand-teal) !important; }
.single-blog-card .detail-link {
  color: var(--brand-teal) !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.single-blog-card .detail-link:hover { color: var(--brand-gold) !important; }

/* ---------- Footer ---------- */
.gradient-bg, .footer-top.gradient-bg {
  background: linear-gradient(135deg, var(--brand-teal-ink) 0%, var(--brand-teal-deep) 60%, var(--brand-teal) 130%) !important;
  position: relative;
  overflow: hidden;
}
.footer-top.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 80%, rgba(220, 179, 115, 0.18) 0%, transparent 35%),
    radial-gradient(circle at 92% 20%, rgba(1, 94, 125, 0.4) 0%, transparent 40%);
  pointer-events: none;
}
.footer-top { padding: 60px 0 40px; }
.footer-nav-wrap h4 {
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 10px;
}
.footer-nav-wrap h4::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--brand-gold);
}
.footer-nav-wrap .nav-link {
  color: rgba(245, 239, 227, 0.75) !important;
  padding: 6px 0 !important;
  font-size: 14px;
  transition: all .2s;
}
.footer-nav-wrap .nav-link:hover {
  color: var(--brand-gold) !important;
  transform: translateX(-4px);
}
.footer-bottom.gray-light-bg {
  background: var(--brand-teal-dark) !important;
  border-top: 1px solid rgba(220, 179, 115, 0.18);
}
.footer-bottom .copyright-text {
  color: rgba(245, 239, 227, 0.6) !important;
  font-size: 13.5px;
}
.footer-bottom .copyright-text a { color: var(--brand-gold) !important; font-weight: 700; }

/* ---------- Bg accents for sections ---------- */
.section-soft-bg {
  background: linear-gradient(180deg, #FBF8F2 0%, #FFFFFF 100%);
  position: relative;
}
.gray-light-bg { background: #FBF8F2 !important; }

/* divider grid pattern */
.grid-divider {
  background-image: linear-gradient(rgba(1, 94, 125, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(1, 94, 125, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  height: 80px;
  position: relative;
}
.grid-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent 30%, transparent 70%, rgba(255,255,255,0.6));
}

/* ---------- Topbar (above header) ---------- */
.brand-topbar {
  background: var(--brand-teal-ink);
  color: rgba(245, 239, 227, 0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(220, 179, 115, 0.18);
}
.brand-topbar a {
  color: rgba(245, 239, 227, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: 18px;
  transition: color .2s;
}
.brand-topbar a:hover { color: var(--brand-gold); }
.brand-topbar .topbar-cta {
  color: var(--brand-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Scroll-to-top button */
.scroll-top {
  background: var(--brand-teal) !important;
  color: #fff !important;
  border: 1px solid var(--brand-gold) !important;
  border-radius: 12px !important;
}
.scroll-top:hover { background: var(--brand-teal-deep) !important; }

/* Override text-bs-primary used in template */
.text-bs-primary, .text-primary { color: var(--brand-teal) !important; }
.bg-bs-primary, .bg-primary { background: var(--brand-teal) !important; }

/* Stats row (added section) */
.brand-stats {
  background: var(--brand-teal-ink);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.brand-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 179, 115, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 179, 115, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.brand-stats .stat-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.brand-stats .stat-label {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.75);
  font-weight: 600;
}
.brand-stats .stat-sub {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(245, 239, 227, 0.55);
}
.brand-stats .stat-block { position: relative; padding-inline-end: 24px; border-inline-end: 1px solid rgba(220, 179, 115, 0.18); }
.brand-stats .stat-block:last-child { border-inline-end: none; }
@media (max-width: 767px) {
  .brand-stats .stat-block { border-inline-end: none; border-bottom: 1px solid rgba(220, 179, 115, 0.18); padding: 18px 0; }
  .brand-stats .stat-block:last-child { border-bottom: none; }
}

/* small helpers */
.ptb-100 { padding-top: 90px; padding-bottom: 90px; }

/* page header height — match hero1.jpg */
.page-header-section.ptb-100 {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.ptb-60 { padding-top: 60px; padding-bottom: 60px; }
.gradient-cream-bg { background: linear-gradient(180deg, #FFFFFF 0%, #FBF8F2 100%); }
