/* ===== سرزمین آموزش (LMSLand) — سیستم طراحی ===== */

:root {
  --navy: #1B4B66;
  --navy-dark: #123549;
  --orange: #F5A623;
  --orange-dark: #D98A0E;
  --green: #3FA66C;
  --cream: #FFFBF3;
  --cream-2: #FFF3DC;
  --ink: #23313A;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(27, 75, 102, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--navy); }

a { color: var(--navy); }
a:hover { color: var(--orange-dark); }

/* ===== نوار بالای سایت ===== */
.chalk-topbar {
  background: var(--navy-dark);
  color: var(--cream);
  letter-spacing: .2px;
}

/* ===== هدر ===== */
.site-header {
  background: rgba(255, 251, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(27, 75, 102, .08);
}
.navbar-brand { padding: .3rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-fa { font-weight: 800; font-size: 1.08rem; color: var(--navy); }
.brand-en { font-size: .68rem; letter-spacing: 1.5px; color: var(--orange-dark); font-weight: 600; }

.nav-link { font-weight: 600; color: var(--navy); padding: .5rem 1rem !important; border-radius: 999px; }
.nav-link:hover, .nav-link.active { background: var(--cream-2); color: var(--orange-dark); }

.btn-brand-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.btn-brand-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }

.btn-brand-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
}
.btn-brand-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }

.btn-outline-brand {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  background: transparent;
}
.btn-outline-brand:hover { background: var(--navy); color: #fff; }

/* ===== هیرو ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 10%, #24607f 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: #fff;
  padding: 5.5rem 0 6.5rem;
}
.hero .row { padding-bottom: 3rem; }
.hero .badge-pill {
  background: rgba(245, 166, 35, .18);
  color: var(--orange);
  border: 1px solid rgba(245, 166, 35, .4);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.hero h1 { color: #fff; font-size: 2.6rem; }
.hero p.lead { color: rgba(255,255,255,.85); }
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 50px;
}
@media (min-width: 992px) {
  .hero-wave svg { height: 70px; }
}

.hero-stats {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.hero-stats .stat-num { font-size: 1.7rem; font-weight: 800; color: var(--orange); }
.hero-stats .stat-label { font-size: .82rem; color: rgba(255,255,255,.75); }

/* چند نماد شناور دکوری */
.hero-floaties { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-floaties i {
  position: absolute; color: rgba(255,255,255,.14); font-size: 3rem;
}
.hero > .container { position: relative; z-index: 2; }

/* ===== بخش‌ها ===== */
section { padding: 4.5rem 0; }
.section-tag {
  color: var(--orange-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
}
.section-title { font-size: 2rem; margin-bottom: .75rem; }
.section-sub { color: #5b6b74; max-width: 680px; }

.bg-cream-2 { background: var(--cream-2); }
.bg-navy-soft { background: linear-gradient(180deg, #F4FBF6 0%, var(--cream) 100%); }

/* ===== کارت‌های خدمات ===== */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27,75,102,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27,75,102,.16); }
.service-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff;
  margin-bottom: 1.1rem;
}
.icon-navy { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.icon-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.icon-green { background: linear-gradient(135deg, var(--green), #2c8055); }

/* ===== کارت افزونه ===== */
.plugin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27,75,102,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plugin-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(27,75,102,.16); }
.plugin-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
  border-bottom: 1px solid rgba(27,75,102,.08);
}
.plugin-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .35s ease;
}
.plugin-card:hover .plugin-card-thumb img { transform: scale(1.04); }
.plugin-card-top {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px dashed rgba(27,75,102,.12);
}
.plugin-card-body { padding: 1rem 1.5rem 1.5rem; }
.plugin-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; margin-bottom: .9rem;
}
.category-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 999px;
  background: var(--cream-2); color: var(--orange-dark);
}
.plugin-feature-list { list-style: none; padding: 0; margin: 0; }
.plugin-feature-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .45rem 0;
  border-bottom: 1px dashed rgba(27,75,102,.08);
}
.plugin-feature-list li:last-child { border-bottom: none; }
.plugin-feature-list i { color: var(--green); margin-top: .25rem; }

/* فیلتر دسته‌بندی */
.filter-pill {
  border: 2px solid rgba(27,75,102,.15);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 700;
  font-size: .88rem;
  transition: all .2s;
}
.filter-pill.active, .filter-pill:hover {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

/* ===== گالری تصاویر افزونه ===== */
.plugin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.plugin-gallery button {
  padding: 0; border: 1px solid rgba(27,75,102,.1); border-radius: 14px;
  overflow: hidden; background: #fff; box-shadow: var(--shadow-soft);
  cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease;
}
.plugin-gallery button:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(27,75,102,.18); }
.plugin-gallery img { width: 100%; display: block; }
.narrative-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27,75,102,.06);
  height: 100%;
}
.narrative-block .icon-tag {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; margin-bottom: 1rem;
}
.workflow-steps { display: flex; flex-direction: column; gap: 0; }
.workflow-step {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px dashed rgba(27,75,102,.12);
}
.workflow-step:last-child { border-bottom: none; }
.workflow-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.feature-card {
  background: #fff; border-radius: 16px; padding: 1.3rem;
  border: 1px solid rgba(27,75,102,.08); box-shadow: var(--shadow-soft);
  height: 100%;
}
#lightboxModal .modal-content { background: transparent; border: none; }
#lightboxModal img { width: 100%; border-radius: 12px; }

/* ===== درگاه پرداخت ===== */
.gateway-card {
  border-radius: var(--radius-md);
  padding: 1.4rem;
  background: #fff;
  border: 1px solid rgba(27,75,102,.08);
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.gateway-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* ===== فرم‌ها ===== */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27,75,102,.06);
}
.form-control, .form-select {
  border-radius: 12px;
  padding: .65rem .9rem;
  border: 1.5px solid rgba(27,75,102,.15);
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .2rem rgba(245,166,35,.15);
}
label.form-label { font-weight: 700; color: var(--navy); font-size: .92rem; }

/* ===== CTA ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

/* ===== فوتر ===== */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  position: relative;
  margin-top: 4rem;
}
.footer-hill {
  height: 22px;
  background: var(--orange);
  clip-path: polygon(0 100%, 0 40%, 10% 0, 25% 55%, 40% 10%, 55% 60%, 70% 5%, 85% 50%, 100% 0, 100% 100%);
  opacity: .9;
}
.footer-heading { color: var(--orange); font-weight: 800; margin-bottom: 1rem; font-size: .95rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--orange); }
.footer-credit { color: var(--orange); font-weight: 700; text-decoration: none; }
.footer-credit:hover { color: #fff; text-decoration: underline; }
.admin-link { text-decoration: none; }
.admin-link:hover { color: var(--orange) !important; }

/* ===== صفحه‌بندی/بج وضعیت پنل ادمین ===== */
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 6px; }

/* ===== بریدکرامب صفحات داخلی ===== */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 3.2rem 0 4.5rem;
  position: relative;
}

@media (max-width: 991px) {
  .hero { padding: 3.5rem 0 5rem; }
  .hero h1 { font-size: 2rem; }
  section { padding: 3rem 0; }
}
