/* =========================
   مدارس دانش‌بنیان — CSS اصلی سایت
   نسخه مرتب‌شده و بهینه
   ========================= */

/* ---------- متغیرها و پایه ---------- */

:root {
    --navy-950: #07111f;
    --navy-900: #0b172a;
    --navy-800: #10223c;
    --navy-700: #17365f;

    --gold-500: #f5c542;
    --gold-600: #d9a520;
    --gold-100: #fff4cc;

    --cream: #fffaf0;
    --paper: #ffffff;
    --soft-bg: #f8f5ed;

    --text-main: #101827;
    --text-muted: #667085;

    --border: #eadfca;

    --shadow-soft: 0 22px 60px rgba(7, 17, 31, 0.10);
    --shadow-card: 0 14px 34px rgba(7, 17, 31, 0.08);

    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 38px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    line-height: 1.9;
    color: var(--text-main);
    background:
        radial-gradient(circle at top right, rgba(245, 197, 66, 0.20), transparent 32%),
        radial-gradient(circle at top left, rgba(23, 54, 95, 0.13), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, var(--soft-bg) 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* ---------- هدر، برند و منو ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(234, 223, 202, 0.85);
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--navy-950);
    white-space: nowrap;
}

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(7, 17, 31, 0.22);
    border: 1px solid rgba(245, 197, 66, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.brand-text small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--navy-800);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 999px;
    transition: 0.22s ease;
}

.main-nav a:hover {
    background-color: var(--gold-100);
    color: var(--navy-950);
}

.main-nav .nav-cta {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    color: #ffffff;
    border: 1px solid rgba(245, 197, 66, 0.42);
    box-shadow: 0 12px 26px rgba(7, 17, 31, 0.16);
}

.main-nav .nav-cta:hover {
    color: var(--gold-500);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: #ffffff;
    cursor: pointer;
    padding: 10px;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.08);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background-color: var(--navy-950);
    border-radius: 999px;
    transition: 0.22s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- دکمه‌ها ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    margin: 4px;
    border: none;
    cursor: pointer;
    transition: 0.22s ease;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--navy-950);
    box-shadow: 0 14px 28px rgba(217, 165, 32, 0.26);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.96);
    color: var(--navy-900);
    border: 1px solid rgba(245, 197, 66, 0.45);
    box-shadow: 0 12px 26px rgba(7, 17, 31, 0.08);
}

/* ---------- Hero صفحه اصلی ---------- */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 96px 0 82px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 22px 4%;
    background:
        radial-gradient(circle at 16% 16%, rgba(245, 197, 66, 0.30), transparent 26%),
        linear-gradient(135deg, var(--navy-950), var(--navy-700));
    border-radius: 42px;
    z-index: -1;
    box-shadow: var(--shadow-soft);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    left: 10%;
    bottom: 18px;
    background: rgba(245, 197, 66, 0.10);
    border: 1px solid rgba(245, 197, 66, 0.18);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 34px;
    align-items: center;
}

.hero-content {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background-color: rgba(245, 197, 66, 0.14);
    color: var(--gold-500);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 197, 66, 0.26);
}

.eyebrow.dark {
    background-color: var(--gold-100);
    color: var(--navy-900);
    border-color: rgba(217, 165, 32, 0.28);
}

.hero-section h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.18;
    margin: 0 0 10px;
    font-weight: 950;
    letter-spacing: -1.2px;
}

.hero-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 22px;
    color: #fff0b8;
    font-weight: 800;
}

.hero-section p {
    font-size: 18px;
    color: #e6edf7;
    margin-bottom: 30px;
    max-width: 690px;
}

.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 250, 240, 0.94));
    color: var(--text-main);
    border-radius: 34px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(245, 197, 66, 0.30);
}

.hero-panel-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
}

.hero-panel-header span {
    color: var(--gold-600);
    font-size: 13px;
    font-weight: 900;
}

.hero-panel-header strong {
    color: var(--navy-950);
    font-size: 21px;
    font-weight: 900;
}

.hero-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 17px 18px;
    margin-bottom: 14px;
}

.hero-stat strong {
    color: var(--navy-900);
    font-size: 32px;
    line-height: 1;
    font-weight: 950;
}

.hero-stat span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.hero-mini-card {
    margin-top: 18px;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border: 1px solid rgba(245, 197, 66, 0.30);
}

.hero-mini-card h3 {
    margin: 0 0 8px;
    color: var(--gold-500);
}

.hero-mini-card p {
    margin: 0;
    color: #e6edf7;
    font-size: 14px;
}

/* ---------- سکشن‌ها و اجزای عمومی ---------- */

.section {
    padding: 72px 0;
}

.section-light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 250, 240, 0.75));
}

.section h2 {
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--navy-950);
    font-weight: 950;
    letter-spacing: -0.6px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 10px;
}

.section-heading p,
.content-box p {
    color: var(--text-muted);
    margin: 0;
}

.content-box {
    max-width: 900px;
}

.section-action {
    margin-top: 26px;
    text-align: center;
}

.empty-state {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
    color: var(--navy-950);
}

.empty-state p {
    color: var(--text-muted);
}

/* ---------- کارت‌ها و گریدهای عمومی ---------- */

.cards-grid,
.feature-grid,
.steps-grid,
.contact-cards-grid,
.faq-grid,
.gallery-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cards-grid,
.feature-grid,
.steps-grid {
    margin-top: 26px;
}

.card,
.feature-card,
.step-card,
.request-card,
.contact-card,
.faq-item,
.gallery-card,
.testimonial-card,
.timeline-card {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card,
.feature-card,
.step-card,
.request-card,
.contact-card,
.faq-item,
.testimonial-card,
.timeline-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 28px;
}

.card::before,
.feature-card::before,
.step-card::before,
.contact-card::before,
.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 92px;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-600));
    border-bottom-left-radius: 999px;
}

.card h2,
.card h3,
.feature-card h3,
.step-card h3,
.request-card h3,
.contact-card h3,
.faq-item h3,
.gallery-card-content h3,
.testimonial-author strong,
.timeline-card h3 {
    color: var(--navy-950);
    margin-top: 0;
    font-weight: 900;
}

.card p,
.feature-card p,
.step-card p,
.request-card p,
.contact-card p,
.faq-item p,
.gallery-card-content p,
.testimonial-text,
.timeline-item p {
    color: var(--text-muted);
}

.feature-icon,
.contact-icon,
.quote-mark {
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(7, 17, 31, 0.14);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    margin-bottom: 16px;
}

/* ---------- کارت‌های ثبت درخواست و مراحل ---------- */

.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.request-card {
    border-radius: 34px;
    padding: 34px;
}

.request-card-primary,
.contact-guide,
.faq-cta {
    background:
        radial-gradient(circle at top left, rgba(245, 197, 66, 0.18), transparent 32%),
        linear-gradient(135deg, var(--navy-950), var(--navy-700));
    color: #ffffff;
    border: 1px solid rgba(245, 197, 66, 0.28);
}

.request-card h3 {
    font-size: 25px;
}

.request-card-primary h3,
.contact-guide h2,
.faq-cta h2 {
    color: #ffffff;
}

.request-card-primary p,
.contact-guide p,
.faq-cta p {
    color: #e6edf7;
}

.step-card span {
    display: inline-block;
    color: var(--gold-600);
    font-weight: 950;
    font-size: 19px;
    margin-bottom: 10px;
}

/* ---------- سربرگ صفحات داخلی ---------- */

.page-header,
.about-header,
.contact-header,
.faq-header,
.gallery-header,
.testimonials-header {
    padding: 68px 0;
    background:
        radial-gradient(circle at top right, rgba(245, 197, 66, 0.22), transparent 30%),
        linear-gradient(135deg, #fffaf0, #f3ead8);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 0 8px;
    color: var(--navy-950);
    font-weight: 950;
    letter-spacing: -0.8px;
}

.page-header p {
    color: var(--text-muted);
    margin: 0;
}

.about-hero-grid,
.contact-hero-grid,
.faq-hero-grid,
.gallery-hero-grid,
.testimonials-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 28px;
    align-items: center;
}

.about-hero-grid {
    grid-template-columns: 1.4fr 0.65fr;
}

.about-highlight-card,
.contact-highlight-card,
.faq-highlight-card,
.gallery-highlight-card,
.testimonials-highlight-card {
    background:
        radial-gradient(circle at top right, rgba(245, 197, 66, 0.20), transparent 34%),
        linear-gradient(135deg, var(--navy-950), var(--navy-700));
    color: #ffffff;
    border-radius: 34px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(245, 197, 66, 0.28);
}

.about-highlight-card span,
.contact-highlight-card span,
.faq-highlight-card span,
.gallery-highlight-card span,
.testimonials-highlight-card span {
    color: var(--gold-500);
    font-weight: 900;
    font-size: 14px;
}

.about-highlight-card strong,
.contact-highlight-card strong,
.faq-highlight-card strong,
.gallery-highlight-card strong,
.testimonials-highlight-card strong {
    display: block;
    margin: 14px 0;
    color: #ffffff;
}

.about-highlight-card strong {
    font-size: 54px;
    line-height: 1;
}

.contact-highlight-card strong {
    font-size: 28px;
}

.faq-highlight-card strong,
.gallery-highlight-card strong,
.testimonials-highlight-card strong {
    font-size: 34px;
}

.about-highlight-card p,
.contact-highlight-card p,
.faq-highlight-card p,
.gallery-highlight-card p,
.testimonials-highlight-card p {
    color: #e6edf7;
    margin: 0;
}

/* ---------- صفحه درباره ما ---------- */

.about-story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.timeline-card {
    border-radius: 32px;
    padding: 28px;
}

.timeline-item {
    position: relative;
    padding: 0 28px 20px 0;
    border-right: 2px solid var(--gold-500);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    right: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background-color: var(--gold-500);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--gold-100);
}

.timeline-item span {
    font-weight: 950;
    color: var(--navy-950);
}

.timeline-item p {
    margin: 6px 0 0;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.value-pill {
    background-color: #ffffff;
    border: 1px solid rgba(217, 165, 32, 0.36);
    color: var(--navy-900);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(7, 17, 31, 0.06);
}

/* ---------- صفحه تماس ---------- */

.contact-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
}

.contact-card h3 {
    margin: 0;
}

.contact-card p {
    min-height: 96px;
}

.contact-btn {
    width: 100%;
    margin: 10px 0 12px;
}

.phone-number {
    display: block;
    text-align: center;
    color: var(--navy-900);
    font-weight: 950;
    letter-spacing: 1px;
}

.contact-guide,
.faq-cta {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    border-radius: 38px;
    padding: 36px;
    box-shadow: var(--shadow-soft);
}

.faq-cta {
    grid-template-columns: 1.25fr 0.75fr;
    padding: 38px;
}

.contact-guide-actions,
.faq-cta-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.card a {
    color: var(--navy-900);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid var(--gold-500);
}

/* ---------- صفحه سوالات متداول ---------- */

.faq-item::before {
    content: "؟";
    position: absolute;
    top: 18px;
    left: 22px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-weight: 950;
}

.faq-item h3 {
    margin: 0 0 14px;
    padding-left: 48px;
    font-size: 19px;
}

/* ---------- فرم‌ها ---------- */

.form-container {
    max-width: 760px;
}

.form-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 26px;
    align-items: start;
}

.site-form {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.form-info-card {
    position: sticky;
    top: 105px;
    background:
        radial-gradient(circle at top left, rgba(245, 197, 66, 0.18), transparent 34%),
        linear-gradient(135deg, var(--navy-950), var(--navy-700));
    color: #ffffff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(245, 197, 66, 0.26);
}

.form-info-card h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.info-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.info-step:last-child {
    border-bottom: none;
}

.info-step span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    background-color: rgba(245, 197, 66, 0.16);
    color: var(--gold-500);
    display: grid;
    place-items: center;
    font-weight: 950;
    border: 1px solid rgba(245, 197, 66, 0.22);
}

.info-step p {
    margin: 0;
    color: #e6edf7;
    font-size: 15px;
}

.form-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--navy-950);
}

.form-control {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #ddd1ba;
    border-radius: 16px;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    color: var(--text-main);
    transition: 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-600);
    box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.18);
}

.form-submit {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
}

.errorlist,
.form-errors {
    color: #b91c1c;
    background-color: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 14px;
}

.errorlist {
    list-style: none;
    margin: 8px 0 0;
}

.form-errors {
    margin-bottom: 18px;
}

/* ---------- صفحه موفقیت ---------- */

.success-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 76px 0;
}

.success-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 34px;
    padding: 50px 34px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--navy-950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 950;
}

.success-actions {
    justify-content: center;
    margin-top: 22px;
}

/* ---------- گالری ---------- */

.gallery-card {
    border-radius: 30px;
}

.gallery-image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--gold-100);
    overflow: hidden;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s ease;
}

.gallery-card:hover .gallery-image-box img {
    transform: scale(1.05);
}

.gallery-card-content {
    padding: 20px;
}

.gallery-card-content h3 {
    margin: 0 0 8px;
}

.gallery-card-content p {
    margin: 0;
}

/* ---------- نظرات خانواده‌ها ---------- */

.quote-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 18px;
}

.testimonial-card {
    border-radius: 32px;
    padding: 30px;
}

.testimonial-text {
    margin: 0 0 22px;
}

.testimonial-author {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-author strong {
    display: block;
}

.testimonial-author span {
    color: var(--gold-600);
    font-weight: 800;
    font-size: 14px;
}

/* ---------- فوتر ---------- */

.site-footer {
    margin-top: 40px;
    background:
        radial-gradient(circle at top left, rgba(245, 197, 66, 0.14), transparent 30%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
    color: #e6edf7;
    padding: 38px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer h3 {
    margin: 0 0 6px;
    color: var(--gold-500);
    font-weight: 950;
}

.site-footer p {
    margin: 4px 0;
    color: #cbd5e1;
}

/* ---------- ریسپانسیو ---------- */

@media (max-width: 900px) {
    .hero-grid,
    .cards-grid,
    .feature-grid,
    .steps-grid,
    .request-grid,
    .form-layout,
    .form-two-columns,
    .about-hero-grid,
    .about-story-grid,
    .contact-hero-grid,
    .contact-cards-grid,
    .contact-guide,
    .faq-hero-grid,
    .faq-grid,
    .faq-cta,
    .gallery-hero-grid,
    .gallery-grid,
    .testimonials-hero-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .hero-section {
        padding: 64px 0 52px;
    }

    .hero-section::before {
        inset: 12px 4%;
        border-radius: 30px;
    }

    .hero-panel {
        margin-top: 12px;
    }

    .form-info-card {
        position: static;
    }

    .site-form {
        padding: 24px;
    }

    .contact-guide-actions,
    .faq-cta-actions {
        justify-content: flex-start;
    }

    .contact-card p {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.85;
    }

    .container {
        width: min(94%, 100%);
    }

    .site-header {
        position: static;
        background: rgba(255, 250, 240, 0.96);
        border-bottom: 1px solid var(--border);
    }

    .header-content {
        width: 94%;
        min-height: auto;
        margin: 0 auto;
        padding: 14px 0;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 16px;
    }

    .brand {
        gap: 10px;
        justify-content: flex-start;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        font-size: 21px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        background-color: rgba(255, 255, 255, 0.74);
        border: 1px solid var(--border);
        border-radius: 24px;
        box-shadow: var(--shadow-card);
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 42px;
        white-space: normal;
        text-align: right;
        line-height: 1.5;
        font-size: 12.5px;
        padding: 10px 14px;
        background-color: #ffffff;
        color: var(--navy-900);
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    .main-nav .nav-cta {
        justify-content: center;
        color: #ffffff;
        background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
        border-color: rgba(245, 197, 66, 0.35);
    }

    .hero-section {
        padding: 24px 0 36px;
    }

    .hero-section::before {
        inset: 0 3%;
        border-radius: 26px;
    }

    .hero-grid {
        width: 90%;
        margin: 0 auto;
        gap: 22px;
    }

    .hero-content {
        padding-top: 26px;
    }

    .hero-section h1 {
        font-size: 31px;
        line-height: 1.25;
    }

    .hero-section h2 {
        font-size: 18px;
    }

    .hero-section p {
        font-size: 14px;
        line-height: 1.9;
    }

    .hero-panel,
    .about-highlight-card,
    .contact-highlight-card,
    .faq-highlight-card,
    .gallery-highlight-card,
    .testimonials-highlight-card {
        border-radius: 26px;
        padding: 22px;
    }

    .hero-stat strong {
        font-size: 27px;
    }

    .section {
        padding: 42px 0;
    }

    .page-header,
    .about-header,
    .contact-header,
    .faq-header,
    .gallery-header,
    .testimonials-header {
        padding: 44px 0;
    }

    .page-header h1 {
        font-size: 30px;
        line-height: 1.35;
    }

    .section h2 {
        font-size: 25px;
        line-height: 1.4;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .card,
    .feature-card,
    .step-card,
    .request-card,
    .contact-card,
    .faq-item,
    .timeline-card,
    .testimonial-card {
        border-radius: 24px;
        padding: 22px;
    }

    .feature-icon,
    .contact-icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .site-form {
        border-radius: 26px;
        padding: 22px;
    }

    .form-info-card {
        border-radius: 26px;
        padding: 24px;
    }

    .form-control {
        font-size: 14px;
        padding: 12px 13px;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
        padding: 12px 18px;
    }

    .hero-actions,
    .success-actions,
    .contact-guide-actions,
    .faq-cta-actions {
        width: 100%;
    }

    .contact-guide,
    .faq-cta {
        border-radius: 28px;
        padding: 26px;
    }

    .faq-item h3 {
        padding-left: 0;
        padding-right: 0;
        margin-top: 46px;
    }

    .faq-item::before {
        top: 20px;
        right: 22px;
        left: auto;
    }

    .about-highlight-card strong {
        font-size: 42px;
    }

    .values-grid {
        gap: 10px;
    }

    .value-pill {
        width: 100%;
        text-align: center;
        padding: 11px 14px;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section h2 {
        font-size: 17px;
    }

    .page-header h1 {
        font-size: 27px;
    }

    .section h2 {
        font-size: 23px;
    }

    .main-nav a {
        font-size: 12px;
    }
}

/* =========================================================
   Auth + User Panel — cleaned & premium version
   این بخش جایگزین همه استایل‌های قبلی ورود/ثبت‌نام/پنل است
   ========================================================= */

.auth-section,
.dashboard-page {
    position: relative;
    min-height: calc(100vh - 84px);
    padding: 72px 0 92px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 197, 66, 0.22), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(23, 54, 95, 0.13), transparent 32%),
        linear-gradient(135deg, #fffaf0 0%, #fffdf8 44%, #f5efe3 100%);
}

.auth-section::before,
.dashboard-page::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(245, 197, 66, 0.14);
    top: -210px;
    right: -160px;
    filter: blur(2px);
}

.auth-section::after,
.dashboard-page::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.08);
    left: -150px;
    bottom: -170px;
}

.auth-container,
.dashboard-page > .container {
    position: relative;
    z-index: 2;
}

.auth-container {
    display: grid;
    grid-template-columns: minmax(340px, 450px) 1fr;
    gap: 58px;
    align-items: center;
}

.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(234, 223, 202, 0.85);
    border-radius: 34px;
    padding: 36px;
    box-shadow: 0 24px 70px rgba(7, 17, 31, 0.12);
    backdrop-filter: blur(16px);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    border: 1px solid rgba(245, 197, 66, 0.18);
    pointer-events: none;
}

.auth-card h2 {
    position: relative;
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.6px;
}

.auth-card-subtitle {
    position: relative;
    color: var(--text-muted);
    margin: 0 0 26px;
    line-height: 2;
}

.auth-card .form-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-card label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy-950);
    font-weight: 850;
    font-size: 14px;
}

.auth-card input,
.auth-card select,
.auth-card .form-control {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(7, 17, 31, 0.12);
    border-radius: 17px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    background: rgba(248, 245, 237, 0.72);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card .form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.16);
}

.auth-card .form-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    font-size: 16px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(217, 165, 32, 0.28);
}

.auth-switch {
    position: relative;
    margin: 22px 0 0;
    text-align: center;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--navy-950);
    font-weight: 950;
    text-decoration: none;
    border-bottom: 2px solid rgba(245, 197, 66, 0.65);
}

.auth-info {
    padding: 12px 0;
}

.auth-info h1 {
    color: var(--navy-950);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.35;
    margin: 16px 0;
    font-weight: 950;
    letter-spacing: -1px;
}

.auth-info > p {
    max-width: 680px;
    color: var(--text-muted);
    line-height: 2.1;
    font-size: 17px;
}

.auth-points {
    display: grid;
    gap: 14px;
    max-width: 660px;
    margin-top: 32px;
}

.auth-points p {
    position: relative;
    margin: 0;
    padding: 17px 58px 17px 18px;
    color: var(--navy-900);
    font-weight: 850;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(234, 223, 202, 0.62);
    box-shadow: 0 16px 42px rgba(7, 17, 31, 0.06);
}

.auth-points p::before {
    content: "✓";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--navy-950);
    font-weight: 950;
}

.form-errors,
.auth-card ul.errorlist {
    position: relative;
    list-style: none;
    padding: 12px 14px;
    margin: 10px 0 16px;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    font-size: 14px;
}

/* ---------- User dashboard ---------- */

.dashboard-page {
    padding-top: 56px;
}

.dashboard-hero-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: stretch;
    min-height: 310px;
    padding: 38px;
    color: #ffffff;
    border-radius: 36px;
    background:
        radial-gradient(circle at 8% 14%, rgba(245, 197, 66, 0.30), transparent 28%),
        linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
    border: 1px solid rgba(245, 197, 66, 0.28);
    box-shadow: 0 24px 76px rgba(7, 17, 31, 0.18);
}

.dashboard-hero-card::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    left: -92px;
    bottom: -92px;
    background: rgba(245, 197, 66, 0.17);
}

.dashboard-hero-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    right: -44px;
    top: -44px;
    border: 1px solid rgba(245, 197, 66, 0.22);
    transform: rotate(16deg);
}

.dashboard-hero-content,
.dashboard-hero-side {
    position: relative;
    z-index: 1;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    font-weight: 950;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(245, 197, 66, 0.22);
}

.dashboard-hero-card h1 {
    margin: 22px 0 12px;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.35;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: -0.9px;
}

.dashboard-hero-card p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 2.05;
    font-size: 16px;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
}

.dashboard-actions .btn {
    min-width: 170px;
}

.dashboard-hero-side {
    display: grid;
    align-content: center;
    gap: 14px;
}

.dashboard-mini-stat {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.dashboard-mini-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    margin-bottom: 6px;
}

.dashboard-mini-stat strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.dashboard-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.dashboard-panel-card,
.dashboard-card {
    position: relative;
    min-height: 190px;
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(234, 223, 202, 0.74);
    box-shadow: 0 18px 48px rgba(7, 17, 31, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard-panel-card:hover,
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 62px rgba(7, 17, 31, 0.12);
}

.dashboard-card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    margin-bottom: 16px;
    color: var(--navy-950);
    background: var(--gold-100);
    border: 1px solid rgba(245, 197, 66, 0.45);
    font-weight: 950;
    font-size: 20px;
}

.dashboard-panel-card h3,
.dashboard-card h3 {
    color: var(--navy-950);
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 950;
}

.dashboard-panel-card p,
.dashboard-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 2;
}

.dashboard-panel-card a,
.dashboard-card a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--navy-950);
    font-weight: 950;
    text-decoration: none;
    border-bottom: 2px solid rgba(245, 197, 66, 0.65);
}

/* fallback for old dashboard templates */
.dashboard-layout {
    display: grid;
    gap: 26px;
}

.dashboard-welcome-card {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 22px 66px rgba(7, 17, 31, 0.14);
    background:
        radial-gradient(circle at 10% 16%, rgba(245, 197, 66, 0.28), transparent 30%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.dashboard-welcome-card h2,
.dashboard-welcome-card h3 {
    color: #ffffff;
}

.dashboard-welcome-card p {
    color: rgba(255, 255, 255, 0.80);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 980px) {
    .auth-container,
    .dashboard-hero-card {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-card {
        order: 2;
    }

    .auth-info {
        order: 1;
    }

    .dashboard-panel-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .auth-section,
    .dashboard-page {
        padding: 46px 0 66px;
    }

    .auth-card,
    .dashboard-hero-card,
    .dashboard-panel-card,
    .dashboard-card {
        border-radius: 24px;
    }

    .auth-card,
    .dashboard-hero-card {
        padding: 24px;
    }

    .dashboard-actions .btn {
        width: 100%;
    }
}

