/*
Theme Name: Paya Tadbir Academy
Theme URI: https://example.com/paya-tadbir-academy
Author: Paya Tadbir Academy
Author URI: https://example.com
Description: Professional WordPress theme for Paya Tadbir Academy
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paya-tadbir-academy
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --pta-bg: #f0f4f8;
  --pta-surface: #ffffff;
  --pta-text: #0f172a;
  --pta-muted: #64748b;
  --pta-border: #e2e8f0;
  --pta-primary: #fbbf24;
  --pta-primary-hover: #f59e0b;
  --pta-accent: #1e40af;
  --pta-accent-hover: #1e3a8a;
  --pta-success: #16a34a;
  --pta-radius: 16px;
  --pta-shadow: 0 18px 50px rgba(2, 6, 23, 0.12);
  --pta-shadow-soft: 0 10px 30px rgba(2, 6, 23, 0.10);
}

body.pta-dark,
body.dark-mode {
  --pta-bg: #0b1225;
  --pta-surface: #0f1b34;
  --pta-text: #f8fafc;
  --pta-muted: #a7b4c7;
  --pta-border: rgba(148, 163, 184, 0.18);
  --pta-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --pta-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--pta-bg);
  color: var(--pta-text);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.92; }

.pta-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.pta-muted { color: var(--pta-muted); }

.pta-main { min-height: 60vh; }
.pta-content { padding: 40px 0; }

.pta-header { position: sticky; top: 0; z-index: 50; }

.pta-nav {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
}
body.pta-dark .pta-nav,
body.dark-mode .pta-nav {
  background: rgba(15, 27, 52, 0.78);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}
.pta-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.pta-brand { display: flex; align-items: center; gap: 12px; }
.pta-brand__mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--pta-accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
  transform: rotate(3deg);
}
.pta-brand__name { font-weight: 900; font-size: 18px; letter-spacing: -0.2px; }
.pta-brand__tagline { display: block; font-size: 12px; color: var(--pta-muted); margin-top: 2px; }

.pta-nav__toggle {
  border: 1px solid var(--pta-border);
  background: var(--pta-surface);
  color: var(--pta-text);
  border-radius: 12px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
@media (min-width: 980px) {
  .pta-nav__toggle { display: none; }
}

.pta-nav__menu { display: none; align-items: center; gap: 18px; }
.pta-nav__menu.is-open { display: flex; }
@media (min-width: 980px) {
  .pta-nav__menu { display: flex; justify-content: space-between; flex: 1; }
}

.pta-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.pta-menu a {
  font-size: 14px;
  font-weight: 700;
  color: var(--pta-muted);
  padding: 10px 12px;
  border-radius: 12px;
}
.pta-menu a:hover { color: var(--pta-text); background: rgba(148, 163, 184, 0.15); }

.pta-nav__actions { display: flex; align-items: center; gap: 10px; }

.pta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.pta-btn--lg { padding: 14px 18px; font-size: 15px; }
.pta-btn--full { width: 100%; }
.pta-btn--primary {
  background: var(--pta-primary);
  color: #0b1225;
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.22);
}
.pta-btn--primary:hover { background: var(--pta-primary-hover); transform: translateY(-1px); }
.pta-btn--accent {
  background: var(--pta-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.22);
}
.pta-btn--accent:hover { background: var(--pta-accent-hover); transform: translateY(-1px); }
.pta-btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.25);
}
.pta-btn--ghost:hover { background: rgba(148, 163, 184, 0.12); transform: translateY(-1px); }

.pta-icon-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.3);
  color: var(--pta-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
body.pta-dark .pta-icon-btn,
body.dark-mode .pta-icon-btn {
  background: rgba(15, 27, 52, 0.3);
}

.pta-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background: radial-gradient(1200px 600px at 70% 10%, rgba(251, 191, 36, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(30, 64, 175, 0.96), rgba(30, 64, 175, 0.86));
  color: #fff;
}
.pta-hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  pointer-events: none;
}
.pta-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 980px) {
  .pta-hero__inner { grid-template-columns: 1fr; text-align: center; }
}

.pta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.pta-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.pta-badge__dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--pta-primary);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.9);
  animation: pta-pulse 1.6s ease-in-out infinite;
}
.pta-badge__text { font-size: 12px; font-weight: 900; letter-spacing: 0.2px; }

@keyframes pta-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}

.pta-hero__title { margin: 18px 0 10px; font-weight: 900; font-size: clamp(28px, 4vw, 50px); line-height: 1.25; }
.pta-hero__title-accent { color: var(--pta-primary); text-decoration: underline wavy rgba(251, 191, 36, 0.45); text-underline-offset: 10px; }
.pta-hero__subtitle {
  margin: 0 0 12px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  letter-spacing: 0.1px;
}
.pta-hero__lead { margin: 0; max-width: 56ch; color: rgba(226, 232, 240, 0.92); font-weight: 600; }
@media (max-width: 980px) { .pta-hero__lead { margin: 0 auto; } }

.pta-hero__cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 980px) { .pta-hero__cta { justify-content: center; } }

.pta-hero__meta { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; color: rgba(226, 232, 240, 0.92); }
@media (max-width: 980px) { .pta-hero__meta { justify-content: center; } }
.pta-meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.pta-meta .material-symbols-outlined { color: var(--pta-primary); }

.pta-hero__visual { display: grid; place-items: center; }
@media (max-width: 980px) { .pta-hero__visual { display: none; } }

.pta-hero-card {
  width: 100%;
  border-radius: 24px;
  padding: 18px;
  background: rgba(15, 27, 52, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.pta-hero-card__grid {
  height: 650px;
  margin-top: 14px;
  border-radius: 18px;
  text-align: center;
}
.pta-hero-card__grid img {
  border-radius: 18px;
}
.pta-hero-card__top { display: flex; gap: 12px; align-items: center; }
.pta-hero-card__play {
  width: 50px; height: 50px;
  border-radius: 999px;
  background: var(--pta-primary);
  color: #0b1225;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.22);
}
.pta-hero-card__title { font-weight: 900; font-size: 14px; color: #fff; }
.pta-hero-card__desc { font-weight: 700; font-size: 12px; color: rgba(226, 232, 240, 0.9); margin-top: 2px; }

.pta-section { padding: 72px 0; }
.pta-section--alt { background: rgba(255, 255, 255, 0.55); }
body.pta-dark .pta-section--alt,
body.dark-mode .pta-section--alt { background: rgba(15, 27, 52, 0.55); }

.pta-section__head { text-align: center; margin-bottom: 28px; }
.pta-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--pta-accent);
  text-transform: uppercase;
}
body.pta-dark .pta-kicker,
body.dark-mode .pta-kicker { color: var(--pta-primary); }

.pta-h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 900; margin: 10px 0 10px; }
.pta-h3 { font-size: 18px; font-weight: 900; margin: 0 0 8px; }

.pta-grid { display: grid; gap: 16px; }
.pta-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pta-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .pta-grid--3, .pta-grid--2 { grid-template-columns: 1fr; }
}

.pta-card {
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: calc(var(--pta-radius) + 8px);
  padding: 18px 18px 16px;
  box-shadow: var(--pta-shadow-soft);
}
.pta-card__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(30, 64, 175, 0.10);
  color: var(--pta-accent);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.pta-callout { position: relative; overflow: hidden; }
.pta-callout:before {
  content: "";
  position: absolute;
  inset: -60px -60px auto auto;
  width: 220px;
  height: 220px;
  filter: blur(2px);
  pointer-events: none;
}
.pta-callout__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.10);
  font-weight: 900;
  font-size: 12px;
  color: var(--pta-text);
}

.pta-scarcity {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) { .pta-scarcity { grid-template-columns: 1fr; } }
.pta-scarcity__content {
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: calc(var(--pta-radius) + 10px);
  padding: 18px;
  box-shadow: var(--pta-shadow-soft);
}
.pta-scarcity__stats {
  display: grid;
  gap: 12px;
}
.pta-stat {
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: calc(var(--pta-radius) + 10px);
  padding: 16px;
  box-shadow: var(--pta-shadow-soft);
}
.pta-stat__value { font-weight: 900; font-size: 16px; color: var(--pta-text); }
.pta-stat__label { margin-top: 6px; color: var(--pta-muted); font-weight: 800; font-size: 12px; }
body.pta-dark .pta-card__icon,
body.dark-mode .pta-card__icon {
  background: rgba(251, 191, 36, 0.10);
  color: var(--pta-primary);
}

.pta-list-card {
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: calc(var(--pta-radius) + 8px);
  padding: 18px;
  box-shadow: var(--pta-shadow-soft);
}
.pta-list { margin: 0; padding: 0; list-style: none; }
.pta-list li {
  position: relative;
  padding-right: 22px;
  margin: 10px 0;
  color: var(--pta-muted);
  font-weight: 700;
}
.pta-list li:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.7em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.25);
}
body.pta-dark .pta-list li:before,
body.dark-mode .pta-list li:before { background: rgba(251, 191, 36, 0.25); }

.pta-pricing {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) { .pta-pricing { grid-template-columns: 1fr; } }

.pta-pricing__info {
  background: transparent;
}
.pta-pricing__checks { margin-top: 14px; display: grid; gap: 10px; }
.pta-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--pta-text); }
.pta-check .material-symbols-outlined { color: var(--pta-success); }

.pta-pricing__card {
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: calc(var(--pta-radius) + 10px);
  padding: 18px;
  box-shadow: var(--pta-shadow);
}
.pta-price { display: grid; gap: 12px; }
.pta-price__row { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; color: var(--pta-muted); }
.pta-price__strike { color: var(--pta-text); text-decoration: line-through rgba(239, 68, 68, 0.45); }
.pta-price__discount { background: rgba(34, 197, 94, 0.10); border: 1px solid rgba(34, 197, 94, 0.18); padding: 10px 12px; border-radius: 14px; color: rgba(21, 128, 61, 1); }
body.pta-dark .pta-price__discount,
body.dark-mode .pta-price__discount { color: rgba(134, 239, 172, 0.95); }
.pta-price__total { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--pta-border); }
.pta-price__final { color: var(--pta-accent); font-weight: 900; }
body.pta-dark .pta-price__final,
body.dark-mode .pta-price__final { color: var(--pta-primary); }

.pta-price__note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(30, 64, 175, 0.18);
  background: rgba(30, 64, 175, 0.08);
  color: var(--pta-text);
  font-weight: 900;
  text-align: center;
  font-size: 13px;
}
body.pta-dark .pta-price__note,
body.dark-mode .pta-price__note {
  border-color: rgba(251, 191, 36, 0.20);
  background: rgba(251, 191, 36, 0.10);
}

.pta-support {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.pta-support__title {
  font-weight: 900;
  font-size: 13px;
  color: var(--pta-text);
}
.pta-support__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--pta-surface);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-weight: 900;
  color: var(--pta-text);
}
.pta-support__item:hover { transform: translateY(-1px); box-shadow: var(--pta-shadow-soft); }

.pta-secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--pta-muted); margin-top: 12px; font-weight: 700; font-size: 12px; }

.pta-footer {
  margin-top: 56px;
  border-top: 1px solid var(--pta-border);
  background: var(--pta-surface);
}
.pta-footer__inner {
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pta-footer__brand { display: flex; align-items: center; gap: 12px; }
.pta-footer__mark {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--pta-accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.pta-footer__name { font-weight: 900; }
.pta-footer__desc { font-size: 12px; color: var(--pta-muted); margin-top: 2px; }
.pta-footer__links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.pta-footer__links a { color: var(--pta-muted); font-weight: 800; font-size: 13px; padding: 10px 12px; border-radius: 12px; }
.pta-footer__links a:hover { background: rgba(148, 163, 184, 0.12); color: var(--pta-text); }
.pta-footer__social { display: flex; gap: 10px; }
.pta-social {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.10);
}
.pta-social:hover { background: var(--pta-accent); color: #fff; }
.pta-footer__bottom { border-top: 1px solid var(--pta-border); padding: 14px 0; color: var(--pta-muted); font-weight: 700; font-size: 12px; text-align: center; }

/* Blog/article */
.pta-article {
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: calc(var(--pta-radius) + 10px);
  padding: 18px;
  box-shadow: var(--pta-shadow-soft);
  margin-bottom: 18px;
}
.pta-article__title a { color: var(--pta-text); }
.pta-article__header { margin-bottom: 10px; }
.pta-article__meta { font-size: 12px; font-weight: 800; }

/* Forms (registration) */
.pta-form-shell {
  max-width: 980px;
  margin: 28px auto 0;
  background: var(--pta-surface);
  border: 1px solid var(--pta-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--pta-shadow);
}
.pta-form-hero {
  position: relative;
  padding: 26px 18px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.98), rgba(30, 64, 175, 0.86));
  color: #fff;
  text-align: center;
}
.pta-form-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.16;
}
.pta-form-hero > * { position: relative; }
.pta-form-hero__icon {
  width: 62px; height: 62px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.pta-form-hero__title { font-weight: 900; margin: 0; font-size: 22px; }
.pta-form-hero__desc { margin: 8px auto 0; max-width: 60ch; color: rgba(226, 232, 240, 0.92); font-weight: 700; }

.pta-form-body { padding: 22px 18px 26px; }
.pta-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) { .pta-form-grid { grid-template-columns: 1fr; } }
.pta-field { display: grid; gap: 8px; }
.pta-label { font-weight: 900; font-size: 13px; color: var(--pta-text); }
.pta-input, .pta-select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--pta-border);
  background: rgba(148, 163, 184, 0.10);
  padding: 12px 12px;
  font-family: inherit;
  color: var(--pta-text);
  outline: none;
}
.pta-input:focus, .pta-select:focus { border-color: rgba(30, 64, 175, 0.45); box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18); }
body.pta-dark .pta-input:focus, body.pta-dark .pta-select:focus,
body.dark-mode .pta-input:focus, body.dark-mode .pta-select:focus { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18); border-color: rgba(251, 191, 36, 0.45); }

.pta-form-section { margin-top: 18px; }
.pta-form-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin: 0 0 14px;
}
.pta-form-section__title .material-symbols-outlined { color: var(--pta-primary); }

.pta-alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 14px 0;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.10);
}
.pta-alert--success { border-color: rgba(34, 197, 94, 0.25); background: rgba(34, 197, 94, 0.10); color: rgba(21, 128, 61, 1); }
body.pta-dark .pta-alert--success, body.dark-mode .pta-alert--success { color: rgba(134, 239, 172, 0.95); }
.pta-alert--error { border-color: rgba(239, 68, 68, 0.28); background: rgba(239, 68, 68, 0.10); color: rgba(185, 28, 28, 1); }
body.pta-dark .pta-alert--error, body.dark-mode .pta-alert--error { color: rgba(254, 202, 202, 0.95); }

/* WordPress helpers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(148, 163, 184, 0.16); }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.45); border-radius: 999px; }
body.pta-dark ::-webkit-scrollbar-thumb,
body.dark-mode ::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.35); }
