/* ==========================================================================
   BARSÄZ — Pages
   صفحه‌های «درباره آموزشگاه» و «تماس با ما»
   ========================================================================== */

/* زیرعنوان سرصفحهٔ تماس (مقدار: contact_subtitle در پنل ادمین) */
.page-head .page-lead {
    max-width: 620px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Static page (CMS) — صفحهٔ ایستای ساخته‌شده در پنل ادمین
   -------------------------------------------------------------------------- */
/* بدنهٔ صفحه — ستون وسط‌چین؛ در سایزهای کوچک فول‌عرض می‌شود */
.page-body {
    padding: 34px 0 90px;
}

.page-body > .container {
    max-width: 760px;
}

.page-hero-image {
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}

.page-hero-image img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.page-title {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.45;
}

.page-excerpt {
    max-width: 680px;
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

/* بدنهٔ صفحه — ستون وسط‌چین؛ در سایزهای کوچک فول‌عرض می‌شود */
/* (استایل در ابتدای همین بخش تعریف شده است) */

/* بدنهٔ محتوای صفحه (HTML از ادیتور پنل) — تا زمانی که rich-text لود نشده، اینجا تعریف می‌شود */
.page-content {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 2.1;
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content p {
    margin: 0 0 1.1em;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 1.8em 0 .6em;
    color: var(--ink);
    line-height: 1.5;
}

.page-content h2 {
    font-size: 1.45rem;
}

.page-content h3 {
    font-size: 1.2rem;
}

.page-content h4 {
    font-size: 1.05rem;
}

.page-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.page-content a:hover {
    color: var(--accent-ink);
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.2em;
    padding-inline-start: 22px;
}

.page-content li {
    margin-bottom: .45em;
}

.page-content ul li::marker {
    color: var(--accent);
}

.page-content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    border-inline-start: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--ink-2);
}

.page-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4em 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.page-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.page-content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.page-content th,
.page-content td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: start;
}

.page-content th {
    background: var(--surface-2);
    font-weight: 800;
}

.page-content iframe,
.page-content video {
    max-width: 100%;
    border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   About — story
   -------------------------------------------------------------------------- */
.about-split {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 72px;
    align-items: center;
}

.about-media {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5.15;
    min-height: 500px;
    border-radius: var(--radius-arch);
    background: linear-gradient(170deg, var(--surface-2), var(--bg-2));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}

.about-media::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 3;
    border: 1px solid color-mix(in srgb, var(--light) 62%, transparent);
    border-radius: var(--radius-arch);
    pointer-events: none;
}

.about-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: linear-gradient(to top, color-mix(in srgb, var(--dark) 44%, transparent), transparent 42%);
    pointer-events: none;
}

.about-media .about-blob {
    z-index: 0;
}

.about-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    border: 0;
    border-radius: var(--radius-arch);
}

.about-media .ph {
    position: absolute;
    z-index: 1;
    inset: 0;
    border: 1px solid var(--line);
    border-radius: inherit;
}

.about-media .about-badge {
    position: absolute;
    inset-inline-end: 18px;
    bottom: 22px;
    z-index: 4;
    padding: 13px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.about-media .about-badge b {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--accent);
}

.about-media .about-badge small {
    color: var(--muted);
    font-size: 11.5px;
}

/* عنوان صفحه در HTML باید h1 باشد (سئو)، اما از نظر اندازه و استایل دقیقاً
   همان h2 بخش «درباره ما»ی صفحهٔ اصلی است. */
.about-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(1.75rem, 3.4vw, 2.7rem);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Instructors
   -------------------------------------------------------------------------- */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.instructor-tile {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
        border-color var(--dur) var(--ease);
}

.instructor-tile:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.instructor-tile .media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-2);
}

.instructor-tile .media img,
.instructor-tile .media .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-tile .body {
    padding: 18px;
}

.instructor-tile .tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.instructor-tile .social-row {
    margin-top: 14px;
}

.instructor-tile h3 {
    margin-bottom: 4px;
    font-size: 15.5px;
}

.instructor-tile .specialty {
    display: inline-block;
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
}

.instructor-tile p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.9;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-intro {
    max-width: 760px;
    margin-bottom: 38px;
}

.contact-intro h1 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.contact-intro .page-lead {
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.contact-card .ic {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 13px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.contact-card .ic svg {
    width: 20px;
    height: 20px;
}

.contact-card b {
    display: block;
    margin-bottom: 3px;
    font-size: 13.5px;
}

.contact-card > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-card span,
.contact-card a {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contact-socials .social-btn {
    border-color: var(--line);
    color: var(--ink-2);
}

.contact-socials .social-btn:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
}

.contact-form-box {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.contact-form-box h2 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.contact-form-box .form-note {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

.contact-form {
    display: grid;
    gap: 16px;
}

/* فیلدهای فرم تماس هم‌رنگ بک‌گراند سایت */
.contact-form .input {
    background: var(--light);
}

.contact-form .field {
    margin-bottom: 0;
}

.center-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form textarea.input {
    min-height: 130px;
    resize: vertical;
}

.contact-form .btn {
    justify-self: start;
}

/* --------------------------------------------------------------------------
   About — call to action
   -------------------------------------------------------------------------- */
.about-cta-section {
    padding-top: 54px;
}

.about-cta-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--on-dark-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(125deg, var(--dark), var(--dark-2));
    color: var(--on-dark);
    box-shadow: var(--shadow-lg);
}

.about-cta-card::before,
.about-cta-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid var(--on-dark-line);
    border-radius: 50%;
    pointer-events: none;
}

.about-cta-card::before {
    width: 290px;
    height: 290px;
    inset-inline-start: -130px;
    inset-block-start: -180px;
}

.about-cta-card::after {
    width: 190px;
    height: 190px;
    inset-inline-start: -80px;
    inset-block-start: -130px;
}

.about-cta-symbol {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent-2);
}

.about-cta-symbol svg {
    width: 34px;
    height: 34px;
}

.about-cta-copy,
.about-cta-actions {
    position: relative;
    z-index: 1;
}

.about-cta-copy .eyebrow {
    margin-bottom: 10px;
    color: var(--accent-2);
}

.about-cta-copy h2 {
    margin: 0;
    color: var(--on-dark);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.5;
}

.about-cta-copy p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--on-dark-muted);
    line-height: 2;
}

.about-cta-actions {
    display: grid;
    justify-items: stretch;
    gap: 10px;
    min-width: 190px;
}

.about-cta-actions .btn {
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
}

.about-cta-actions svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.about-cta-actions .btn-outline {
    border-color: var(--on-dark-line);
    color: var(--on-dark);
}

.about-cta-actions .btn-outline:hover {
    border-color: var(--accent-2);
    color: var(--on-dark);
}

.map-embed {
    margin-top: 44px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    aspect-ratio: 16 / 6;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 54px;
    }
    .about-media {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 4.8;
    }
    .instructors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-cta-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 18px;
    }
    .about-cta-symbol {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }
    .about-cta-symbol svg {
        width: 28px;
        height: 28px;
    }
    .about-cta-actions {
        grid-column: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .about-split {
        gap: 28px;
    }

    .about-media {
        max-width: 300px;
        aspect-ratio: 4 / 5.2;
    }
}

@media (max-width: 560px) {
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .contact-intro {
        margin-bottom: 28px;
    }
    .about-cta-section {
        padding-top: 30px;
    }
    .about-cta-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 26px 22px;
    }
    .about-cta-actions {
        grid-column: 1;
        grid-template-columns: 1fr;
    }
    .about-cta-actions .btn {
        width: 100%;
        white-space: normal;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .contact-form-box {
        padding: 22px;
    }
    .contact-form .btn {
        justify-self: stretch;
    }
    .map-embed {
        aspect-ratio: 16 / 10;
    }
}

/* هم‌اندازه با h2 در موبایل (base.css) */
@media (max-width: 420px) {
    .about-copy h1 {
        font-size: 1.6rem;
    }
}
