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

/* header */
body {
  font-family: "Vazirmatn", sans-serif;
  background: #fff;
  color: #0f172a;
}
body {
  overflow-x: hidden;
}

i {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   VARIABLES
========================================================= */
:root {
  --ep-accent: #00a3ff;
  --ep-blue: #318fe3;

  --ep-text-dark: #0f172a;
  --ep-border-dark: rgba(15, 23, 42, 0.12);

  --ep-radius: 14px;
  --ep-radius-sm: 12px;

  --ep-shadow-md: 0 10px 22px rgba(0, 0, 0, 0.12);

  /* Offcanvas (WHITE THEME) */
  --ep-oc-bg: #ffffff;
  --ep-oc-bg-2: #f6f8fc;
  --ep-oc-text: rgba(15, 23, 42, 0.92);
  --ep-oc-text-soft: rgba(15, 23, 42, 0.62);
  --ep-oc-border: rgba(15, 23, 42, 0.1);
  --ep-oc-border-2: rgba(15, 23, 42, 0.08);
  --ep-oc-shadow: -24px 0 70px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   Z-INDEX (ALWAYS ON TOP)
========================================================= */
.glassy-nav {
  z-index: 2147483646 !important;
}
.ep-offcanvas.offcanvas {
  z-index: 2147483647 !important;
}

/* Backdrop */
.offcanvas-backdrop.show {
  opacity: 0.55;
  background-color: #000;
}

/* =========================================================
   HEADER (GLASS + SCROLL)
========================================================= */
.glassy-nav {
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* default (not scrolled) */
.glassy-nav:not(.scrolled) {
  background: rgba(0, 0, 0, 0.06);
  backdrop-filter: saturate(110%);
}

/* scrolled -> white */
.glassy-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Brand */
.brand-logo {
  height: 40px;
  width: auto;
}

/* Nav links */
.glassy-nav .nav-link {
  font-weight: 700;
  color: black !important;
  position: relative;
  padding: 0.35rem 0.15rem;
  transition: color 0.25s ease;
}

.glassy-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--ep-accent);
  transition: width 0.3s ease;
}
.glassy-nav .nav-link:hover::after {
  width: 100%;
}

/* scrolled link color */
.glassy-nav.scrolled .nav-link {
  color: #111 !important;
}

/* Desktop button */
.glassy-nav .btn-outline-glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #3490e3;
  color: black;
  border-radius: 5px;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.glassy-nav .btn-outline-glass:hover {
  background: rgba(0, 163, 255, 0.16);
  border-color: var(--ep-accent);
}

.glassy-nav.scrolled .btn-outline-glass {
  color: #111;
  background: #f2f4f7;
  border-color: rgba(0, 0, 0, 0.18);
}

/* Toggler icon */
.ep-oc-trigger i {
  font-size: 2rem;
  color: #fff !important;
}
.glassy-nav.scrolled .ep-oc-trigger i {
  color: var(--ep-blue) !important;
}

/* Remove bootstrap focus ring */
.glassy-nav .navbar-toggler:focus,
.glassy-nav .navbar-toggler:active {
  outline: none;
  box-shadow: none;
}

/* =========================================================
   OFFCANVAS (WHITE THEME - SOLID, NOT GLASS)
========================================================= */

/* Prevent Bootstrap full width */
.ep-offcanvas.offcanvas {
  --bs-offcanvas-width: 290px !important;
  width: var(--bs-offcanvas-width) !important;
  max-width: 88vw !important;
}

.ep-offcanvas {
  border: 0 !important;
  background: var(--ep-oc-bg) !important;
  color: var(--ep-oc-text) !important;
  box-shadow: var(--ep-oc-shadow);
}

/* kill glass leftovers */
.ep-offcanvas::before {
  content: none !important;
}
.ep-offcanvas * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Scrollbar */
.ep-offcanvas .offcanvas-body {
  scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}
.ep-offcanvas .offcanvas-body::-webkit-scrollbar {
  width: 10px;
}
.ep-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Top sticky area */
.ep-offcanvas__top {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px 12px;
  background: var(--ep-oc-bg) !important;
  border-bottom: 1px solid var(--ep-oc-border-2);
}

/* Title */
.ep-oc-title {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--ep-oc-text);
}

/* Divider */
.ep-oc-divider {
  height: 1px;
  margin: 12px 0;
  background: var(--ep-oc-border-2);
}

/* Close button */
.ep-oc-close {
  width: 38px;
  height: 38px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid var(--ep-oc-border);
  background: var(--ep-oc-bg-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ep-oc-close:hover {
  background: #eef3ff;
  border-color: rgba(49, 143, 227, 0.25);
}
.ep-oc-close i {
  font-size: 1.1rem;
  color: rgba(15, 23, 42, 0.82);
}

/* Body */
.ep-offcanvas__body {
  padding: 14px 16px 18px;
}

/* Auth card */
.ep-oc-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  padding: 12px 12px;
  border-radius: 5px;

  background: var(--ep-oc-bg-2);
  border: 1px solid var(--ep-oc-border);
  color: var(--ep-oc-text);

  transition: background 0.18s ease, border-color 0.18s ease;
}
.ep-oc-auth:hover {
  background: #eef3ff;
  border-color: rgba(49, 143, 227, 0.25);
}

.ep-oc-auth__icon {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  display: grid;
  place-items: center;

  background: #fff;
  border: 1px solid rgba(49, 143, 227, 0.18);
}
.ep-oc-auth__icon i {
  color: var(--ep-blue);
  font-size: 1.1rem;
}
.ep-oc-auth__text {
  font-weight: 900;
  color: var(--ep-oc-text);
}
.ep-oc-auth__chev {
  margin-right: auto;
  color: rgba(15, 23, 42, 0.5);
}

/* Sections */
.ep-oc-section {
  margin-top: 14px;
}
.ep-oc-section__title {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--ep-oc-text-soft);
  margin-bottom: 10px;
}

/* Links */
.ep-oc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  padding: 12px 12px;
  border-radius: 5px;

  background: #fff;
  border: 1px solid var(--ep-oc-border);
  color: var(--ep-oc-text);
  margin-bottom: 10px;

  transition: background 0.18s ease, border-color 0.18s ease;
}
.ep-oc-link:hover {
  background: #f2f7ff;
  border-color: rgba(49, 143, 227, 0.25);
}
.ep-oc-link i {
  font-size: 1.05rem;
  color: var(--ep-blue);
}
.ep-oc-link__chev {
  margin-right: auto;
  opacity: 0.75;
  color: rgba(15, 23, 42, 0.55);
}

/* CTA */
.ep-oc-cta {
  margin-top: 14px;
  padding: 14px;
  border-radius: 5px;
  border: 1px solid rgba(49, 143, 227, 0.2);
  background: linear-gradient(180deg, #f6f9ff, #fff);
}
.ep-oc-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  font-weight: 900;
  border-radius: 5px;
  padding: 12px 14px;

  background: var(--ep-blue);
  color: #fff;

  box-shadow: 0 12px 26px rgba(49, 143, 227, 0.22);
  transition: filter 0.18s ease;
}
.ep-oc-cta__btn:hover {
  filter: brightness(0.98);
}
.ep-oc-cta__hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ep-oc-text-soft);
}

/* =========================================================
   MOBILE POLISH
========================================================= */
@media (max-width: 991.98px) {
  .glassy-nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  }

  .glassy-nav .nav-link {
    color: #111 !important;
    font-size: 1.05rem;
  }

  .glassy-nav .btn-outline-glass {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111;
  }
  .glassy-nav .btn-outline-glass:hover {
    background: #e5e7eb;
    border-color: #cbd5e1;
    color: #000;
  }

  .ep-oc-trigger i {
    color: #111 !important;
  }

  .brand-logo {
    height: 34px;
  }
}

@media (max-width: 420px) {
  .ep-offcanvas.offcanvas {
    --bs-offcanvas-width: 280px !important;
    max-width: 90vw !important;
  }
  .brand-logo {
    height: 32px;
  }
}

/* =========================================================
   FAQ – modern, clean, responsive
========================================================= */
.faq-section {
  background: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 85px;
}

.faq-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  color: #0f172a;
}

.faq-accent {
  width: 80px;
  height: 4px;
  background: #5dadec;
  border-radius: 999px;
}

.faq-sec-title,
#faq-agents h3.fw-bold {
  font-weight: 800;
  line-height: 1.3;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  color: #111827;
}

.faq-header-text {
  color: #4b5563;
  font-size: 0.95rem;
}

#faq-agents .container {
  max-width: 960px;
}

/* Accordion vars */
.faq-section .accordion {
  --bs-accordion-border-color: #e2e8f0;
  --bs-accordion-border-radius: 12px;
}

.faq-section .accordion-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #dbdbdb !important;
}

.faq-section .accordion-item:not(:first-of-type) {
  border-top: 1px solid #e2e8f0 !important;
}

.faq-section .accordion-button {
  font-weight: 600;
  background: #fff;
  color: #0f172a;
  padding: 0.9rem 1rem;
  box-shadow: none !important;
  font-size: 0.98rem;
}

.faq-section[dir="rtl"] .accordion-button::after {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

.faq-section .accordion-button:not(.collapsed) {
  color: #0f172a;
  background: #eaf5fe;
  border-bottom: 1px solid #dbe7f3;
  box-shadow: none !important;
}

.faq-section .accordion-button.collapsed:hover {
  background: #f8fbff;
}

.faq-section .accordion-button:focus {
}

.faq-section .accordion-body {
  color: #334155;
  line-height: 1.9;
  background: #fff;
  padding: 0.95rem 1rem 1rem;
  font-size: 0.96rem;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Responsive */
@media (max-width: 575.98px) {
  .faq-section {
    padding-block: 2rem;
  }

  .faq-title {
    text-align: center;
    font-size: 1.35rem;
  }

  .faq-accent {
    margin-inline: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .faq-sec-title,
  #faq-agents h3.fw-bold {
    font-size: 1.1rem;
    text-align: right;
  }

  .faq-section .accordion-item {
    border-radius: 10px !important;
  }

  .faq-section .accordion-button {
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
    text-align: right;
  }

  .faq-section .accordion-body {
    padding: 0.85rem 0.9rem 0.95rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .faq-section .accordion-button {
    padding: 1rem 1.1rem;
  }
  .faq-section .accordion-body {
    padding: 1rem 1.1rem 1.1rem;
  }
}

@media (min-width: 1200px) {
  .faq-section .accordion-body {
    padding-inline: 1.3rem;
  }
}

/* Extra-small phones (<= 471px) */
@media (max-width: 471.98px) {
  .faq-section {
    padding-block: 1.5rem;
  }

  .faq-sec-title,
  #faq-agents h3.fw-bold {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .faq-section .accordion-item {
    margin-bottom: 0.6rem;
    border-radius: 9px !important;
  }

  .faq-section .accordion-button {
    padding: 0.7rem 0.75rem;
    font-size: 0.7rem;
  }

  .faq-section .accordion-body {
    padding: 0.75rem 0.8rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.8;
  }

  /* hide chevron */
  .faq-section .accordion-button::after {
    display: none !important;
  }
}

/* ------------------------------- footer ------------------------------ */

.soft-footer {
  background: radial-gradient(
    circle at top,
    #f9fafb 0,
    #f2f3f5 45%,
    #e5e7eb 100%
  );
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  color: #4b5563;
  font-size: 0.9rem;
}

/* روی هر چیزی داخل فوتر، رنگ متن را کنترل می‌کنیم */
.soft-footer * {
  color: inherit;
}

/* عنوان هر ستون */
.soft-footer-title {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  font-weight: 800;
  color: #111827;
}

/* لینک‌ها */
.soft-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.soft-footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.soft-footer-links a:hover {
  color: #111827;
  transform: translateX(-2px);
}

/* لوگو و شبکه اجتماعی */
.soft-footer .col:first-child p {
  color: #6b7280;
}

/* آیکن شبکه اجتماعی در دایره ملایم */
.footer-social-icon {
  font-size: 1.4rem;
  color: #4b5563;
  transition: color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e5e7eb;
}

.footer-social-icon:hover {
  color: #000;
  /* transform: translateY(-1px); */
}

/* دکمه دانلود اپ */
.soft-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  background: #3490e3;
  color: #ffffff;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  width: auto;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.soft-download-btn i {
  font-size: 1rem;
}

.soft-download-btn:hover {
  background: #2677c6;
  /* transform: translateY(-2px); */
  box-shadow: 0 10px 26px rgba(52, 144, 227, 0.4);
}

/* پایین فوتر */
.soft-footer-bottom {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.8;
}

/* خط بالای بخش پایینی کمی ملایم‌تر */
.soft-footer-bottom.border-top {
  border-color: #e5e7eb !important;
}

/* ========= Responsive Tweaks ========= */

/* تراز بهتر روی تبلت و موبایل */
@media (max-width: 991.98px) {
  .soft-footer .row > .col {
    text-align: center;
  }

  .soft-footer img[alt="لوگو"] {
    margin: 0 auto 0.75rem;
    display: block;
  }

  .soft-footer .col:nth-child(4) img {
    max-width: 120px;
    margin: 0 auto;
    display: block;
  }

  .soft-download-btn {
    width: 100%;
    justify-content: center;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 575.98px) {
  .soft-footer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .soft-footer-title {
    margin-top: 0.5rem;
  }

  .soft-footer .row {
    row-gap: 1.5rem;
  }
}
