@font-face { font-family: "Pinar"; src: local("Pinar Bold"), local("Pinar"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kalameh"; src: local("Kalame Yekan Bold"), local("Kalameh"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BTitr"; src: local("B Titr"), local("BTitr"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mitra"; src: local("B Mitra"), local("Mitra"); font-display: swap; }
@font-face { font-family: "LalezarLocal"; src: local("Lalezar"); font-display: swap; }
@font-face { font-family: "PlasmaLocal"; src: local("Plasma"); font-display: swap; }
@font-face { font-family: "SarbazLocal"; src: local("Sarbaz"); font-display: swap; }

:root {
  --primary: #008c95;
  --primary-dark: #045c64;
  --primary-soft: #e2fbfb;
  --accent: #f2c36b;
  --ink: #17333a;
  --muted: #668087;
  --line: #d8eeee;
  --surface: #ffffff;
  --bg: #f7fcfc;
  --shadow: 0 22px 70px rgba(0, 96, 105, .14);
  --radius-xl: 44px;
  --radius-lg: 28px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Mitra", "SarbazLocal", "Pinar", "Kalameh", Tahoma, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 188, 196, .15), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #ffffff 100%);
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 140, 149, .12);
}
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--primary-dark); text-align: right; }
.site-logo { width: 58px; height: 58px; object-fit: contain; border-radius: 16px; background: transparent; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 7px; }
.nav-links a { padding: 11px 13px; border-radius: 999px; font-size: 14px; color: #254a52; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-toggle {
  border: 0; cursor: pointer; background: #edfafa; color: var(--primary-dark);
  min-width: 43px; height: 43px; border-radius: 999px; display: inline-grid; place-items: center;
  font: inherit;
}
.menu-toggle { display: none; font-size: 24px; }
.btn {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 45px; padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); box-shadow: 0 16px 34px rgba(0, 140, 149, .24); }
.btn-light { color: var(--primary-dark); background: #fff; border: 1px solid var(--line); }
.btn-ghost { color: var(--primary-dark); background: var(--primary-soft); }


.hero-banner-section { background: #fff; padding: 16px 0 0; }
.hero-banner-slider {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  min-height: clamp(190px, 40vw, 480px);
  border-radius: 0 0 46px 46px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-soft), #fff);
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: var(--shadow);
  transition: opacity .45s ease;
}
.profile-transparent {
  border-radius: 36px; overflow: hidden; aspect-ratio: 1 / 1.05;
  background: radial-gradient(circle at 50% 75%, rgba(0, 140, 149, .24), transparent 55%);
  display: grid; place-items: end center;
}
.profile-transparent img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-person-card { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(226,251,251,.78)); }

.hero {
  min-height: 520px;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom-left-radius: 80px;
  background: linear-gradient(110deg, rgba(255,255,255,.95) 0%, rgba(231,252,252,.88) 44%, rgba(0,140,149,.2) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 72px 0; }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: -.2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: "Pinar", "Kalameh", "BTitr", "LalezarLocal", Tahoma, sans-serif; }
h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.25; margin-bottom: 18px; color: var(--primary-dark); }
.lead { font-size: clamp(16px, 2vw, 21px); color: #385962; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
  background: rgba(255,255,255,.76); border: 1px solid rgba(0,140,149,.16); box-shadow: var(--shadow);
  border-radius: var(--radius-xl); padding: 18px; position: relative;
}
.profile-wrap { border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--primary-soft); }
.profile-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { background: #fff; border-radius: 22px; padding: 13px; text-align: center; border: 1px solid var(--line); }
.stat strong { display: block; color: var(--primary-dark); font-size: 20px; }

.section { padding: 84px 0; }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title h2 { color: var(--primary-dark); font-size: clamp(26px, 4vw, 42px); margin-bottom: 8px; }
.section-title p { color: var(--muted); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: 0 16px 44px rgba(0, 96, 105, .08);
}
.card-icon { width: 58px; height: 58px; border-radius: 22px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-size: 26px; margin-bottom: 18px; }
.card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.card p, .card li { color: var(--muted); font-size: 14px; text-align: justify; }
.card ul { padding-right: 20px; margin-bottom: 0; }

.about-band {
  background: linear-gradient(135deg, #064f57, #008c95);
  color: #fff;
  border-radius: 56px;
  padding: 44px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 34px;
  align-items: center;
  overflow: hidden;
}
.about-band img { width: 100%; border-radius: 38px; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: center top; }
.about-band p { color: rgba(255,255,255,.86); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); padding: 8px 13px; border-radius: 999px; font-size: 13px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { overflow: hidden; padding: 0; }
.course-media { min-height: 210px; display: grid; place-items: center; color: #fff; font-size: 54px; background: linear-gradient(135deg, var(--primary), #65d5d3); overflow: hidden; }
.course-media img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.course-body { padding: 24px; }
.price { color: var(--primary); font-weight: 800; }

.media-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote { position: relative; padding-right: 80px; min-height: 120px; }
.avatar { position: absolute; right: 22px; top: 22px; width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary-dark); }

.page-hero { padding: 72px 0 50px; background: linear-gradient(135deg, #e9ffff, #fff); border-bottom-left-radius: 64px; }
.page-hero h1 { font-family: "Pinar", "Kalameh", "BTitr", "LalezarLocal", Tahoma, sans-serif; }
h1 { font-size: clamp(32px, 5vw, 54px); }
.content-box { background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 34px; box-shadow: var(--shadow); }
.contact-form-panel { grid-column: span 2; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 12px; align-items: start; padding: 18px; border-radius: 22px; background: var(--primary-soft); }

.site-footer { margin-top: 70px; padding-top: 58px; background: #043f46; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr .8fr; gap: 34px; }
.site-footer h3 { color: #d5fffb; }
.site-footer p, .site-footer a, .site-footer li { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.enamad-box { background: #fff; border-radius: 22px; padding: 14px; display: inline-block; min-width: 120px; }
.enamad-box img { max-width: 120px; min-height: 90px; height: auto; }
.copyright { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.login-modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(3, 38, 43, .45); backdrop-filter: blur(8px); padding: 20px; }
.login-modal.open { display: grid; }
.modal-card { width: min(430px, 100%); background: #fff; border-radius: 32px; padding: 28px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.close-modal { border: 0; background: var(--primary-soft); color: var(--primary-dark); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; }
.form-row { display: grid; gap: 7px; margin-top: 16px; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; font: inherit; background: #fbffff; }
.note { color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; top: 76px; right: 0; width: min(82vw, 340px); height: calc(100vh - 76px); display: flex; flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.96); border-left: 1px solid var(--line); border-radius: 28px 0 0 28px; padding: 18px; box-shadow: var(--shadow);
    transform: translateX(110%); opacity: 0; pointer-events: none; transition: transform .28s ease, opacity .28s ease;
  }
  .nav-links.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
  .header-actions .btn { display: none; }
  .hero-grid, .about-band, .footer-grid { grid-template-columns: 1fr; }
  .contact-form-panel { grid-column: 1 / -1; }
  .hero { min-height: auto; border-bottom-left-radius: 42px; }
  .cards, .course-grid, .media-grid, .contact-grid, .testimonials { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 22px, var(--container)); }
  .navbar { min-height: 68px; }
  .brand span { font-size: 14px; }
  .brand small { display: none; }
  .site-logo { width: 48px; height: 48px; }
  .nav-links { top: 68px; height: calc(100vh - 68px); }
  .hero-grid { padding: 42px 0; gap: 26px; }
  .hero-actions, .copyright { flex-direction: column; align-items: stretch; }
  .hero-banner-slider { width: min(100% - 22px, var(--container)); border-radius: 0 0 30px 30px; }

  .stat-strip, .cards, .course-grid, .media-grid, .contact-grid, .testimonials { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .about-band { border-radius: 34px; padding: 22px; }
  .content-box { padding: 22px; border-radius: 26px; }
  .footer-grid { gap: 24px; }
}

.stat, .price, .btn, .nav-links a, .copyright, .banner-help { text-align: initial; }
.section-title, .section-title h2, .section-title p { text-align: center; }

.admin-success { color: #027a48; background: #ecfdf3; border-radius: 14px; padding: 12px; }

.about-band img[src*="transparent"] {
  object-fit: contain;
  object-position: center bottom;
  align-self: end;
  background: radial-gradient(circle at 50% 88%, rgba(255,255,255,.18), transparent 62%);
}

.form-row select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; font: inherit; background: #fbffff; color: var(--ink); }
.admin-error { color: #b42318; background: #fff1f0; border-radius: 14px; padding: 12px; }
.hero-banner-slider.no-link { cursor: default; }

.auth-section { padding-top: 48px; }
.compact-auth { min-height: 70vh; display: grid; align-items: center; }
.auth-card { width: min(540px, 100%); margin-inline: auto; background: linear-gradient(180deg, #ffffff, #f3ffff); border: 1px solid var(--line); border-radius: 36px; padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(0, 140, 149, .1); left: -70px; top: -70px; pointer-events: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; background: var(--primary-soft); border-radius: 999px; margin-bottom: 20px; }
.tab-button { border: 0; cursor: pointer; border-radius: 999px; padding: 12px 16px; background: transparent; color: var(--primary-dark); font: inherit; font-weight: 800; }
.tab-button.active { background: #fff; box-shadow: 0 10px 24px rgba(0, 96, 105, .12); }
.tab-panel { display: none; padding: 14px 10px 10px; position: relative; }
.tab-panel.active { display: block; }
.auth-card h2 { text-align: center; margin-bottom: 4px; }
.auth-card .note { text-align: center; }

.user-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--primary-dark); font-weight: 800; }
