/* ==========================================================================
   Partner brand page (Aral Group)
   هماهنگ با صفحه‌های دیگر سایت: فونت سایت (dana)، آبی آرال، متن خاکستری،
   دکمه‌های pill، کارت‌های سفید با سایه‌ی نرم روی زمینه‌ی طوسی.
   Prefix: pp-   |   Breakpoints مثل about.css: 576px و 992px
   ========================================================================== */

/* فونت و تنظیمات پایه صفحه برند */

.pp-page {
    --pp-blue: var(--aral-blue, #21409a);
    --pp-blue-dark: #172f73;
    --pp-text: #666464;
    --pp-head: #4a4a4a;
    --pp-muted: #838383;
    --pp-gray: var(--aral-bg-gray, #f6f6f6);
    --pp-line: #e0e0e0;
    --pp-shadow: 0 0 18px 6px rgba(0, 0, 0, 0.04);

    direction: rtl;
    text-align: right;
    background: #fff;
    color: var(--pp-text);
    font-family: dana, kalameh, iransans, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 2.1;
    font-variant-numeric: normal;
}

/* متن‌های انگلیسی و کدهای فنی */

.pp-page .pp-en,
.pp-page :lang(en) {
    font-family: dana, kalameh, iransans, Helvetica, sans-serif;
    font-weight: inherit;
    font-variant-numeric: lining-nums;
    direction: ltr;
    unicode-bidi: isolate;
}

/* حفظ وزن واقعی عنوان‌ها و عناصر دارای تأکید */

.pp-page :where(bdi, span, a, button) {
    line-height: inherit;
    font-weight: inherit;
}

.pp-page strong {
    font-weight: 700;
}



/* متن‌های بلند صفحه‌ی برند: دوطرف‌چین */
.partner-page .partner-text,
.partner-page .partner-timeline p,
.partner-page .partner-card p {
    text-align: justify;
    text-align-last: right;
    text-justify: inter-word;
    hyphens: none;
}

.pp-page ::selection {
    background: var(--pp-blue);
    color: #fff;
}

.pp-page :focus-visible {
    outline: 3px solid var(--pp-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.pp-wrap {
    width: min(1260px, 100% - 40px);
    margin-inline: auto;
}

/* ---------- عنوان بالای صفحه ---------- */

.pp-top {
    padding: 45px 0 10px;
    text-align: center;
}

/* لوگوی شرکا سفید است (برای زمینه‌ی سرمه‌ای مگاپنل)؛ روی کپسول آبی نمایش داده می‌شود */
.pp-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    padding: 14px 28px;
    border-radius: 16px;
    background: var(--pp-blue);
    line-height: 0;
}

.pp-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 44px;
    margin: 0;
}

.pp-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
}

.pp-slogan {
    max-width: 46rem;
    margin: 0 auto 28px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
    color: var(--pp-blue);
}

.pp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

/* ---------- دکمه‌ها و لینک‌ها (مثل .more-btn سایت) ---------- */

.pp-btn {
    display: inline-block;
    padding: 0.45rem 2.2rem;
    border: 0;
    border-radius: 50px;
    background: var(--pp-blue);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 2.2;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.pp-btn:hover {
    background: var(--pp-blue-dark);
    color: #fff;
}

.pp-btn--gray {
    background: #949494;
}

.pp-btn--gray:hover {
    background: var(--pp-blue);
}

.pp-btn--white {
    background: #fff;
    color: var(--pp-blue);
}

.pp-btn--white:hover {
    background: #eef1fb;
    color: var(--pp-blue-dark);
}

.pp-link {
    color: var(--pp-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.pp-link:hover {
    color: var(--pp-blue-dark);
    text-decoration-thickness: 2px;
}

.pp-link--light,
.pp-link--light:hover {
    color: #fff;
}

/* ---------- بخش اول: معرفی + حقایق ---------- */

.pp-section {
    padding: 35px 0;
}

.pp-subtitle {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--pp-head);
}

.pp-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 2.1;
}

/* متن‌های بلند: دوطرف‌چین، فاصله فقط بین کلمات (معادل Justify Low) */
.pp-text,
.pp-history-text,
.pp-row-text,
.pp-cta-text {
    text-align: justify;
    text-align-last: right;
    text-justify: inter-word;
    hyphens: none;
}

.pp-figure {
    margin: 28px 0 0;
}

.pp-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    /*object-fit: cover;*/
    border-radius: 16px;
    background: var(--pp-gray);
}

/* جدول حقایق: عنوان ........ مقدار */
.pp-ledger {
    margin: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 16px;
    background: var(--pp-gray);
}

.pp-ledger-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0;
}

.pp-ledger dt {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0;
    font-weight: 400;
    color: var(--pp-muted);
}

.pp-ledger dt::after {
    content: "";
    flex: 1;
    border-bottom: 1px dotted #b5b5b5;
}

.pp-ledger dd {
    flex: 0 1 auto;
    max-width: 60%;
    margin: 0;
    font-weight: 700;
    line-height: 1.8;
    color: var(--pp-head);
}

/* ---------- بخش‌های بازشونده (Bootstrap Collapse) ---------- */

.pp-acc-band {
    margin-top: 20px;
    padding: 36px 0;
    background: var(--pp-gray);
}

.pp-acc {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-acc-item {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--pp-shadow);
    scroll-margin-top: calc(var(--header-height, 0px) + 16px);
}

.pp-acc-head {
    margin: 0;
}

.pp-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 0;
    background: none;
    color: var(--pp-head);
    font: inherit;
    line-height: 1.8;
    text-align: right;
    cursor: pointer;
    transition: color 0.25s ease;
}

.pp-acc-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    transition: color 0.25s ease;
}

.pp-acc-btn:hover .pp-acc-title,
.pp-acc-btn[aria-expanded="true"] .pp-acc-title {
    color: var(--pp-blue);
}

/* دایره‌ی فلش، مثل دکمه‌های اسلایدر سایت: طوسی → آبی */
.pp-acc-icon {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #b1b1b1;
    transition: background-color 0.25s ease, transform 0.35s ease;
}

.pp-acc-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 8px;
    height: 8px;
    margin: auto;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-2px) rotate(45deg);
}

.pp-acc-btn:hover .pp-acc-icon {
    background: var(--pp-blue);
}

.pp-acc-btn[aria-expanded="true"] .pp-acc-icon {
    background: var(--pp-blue);
    transform: rotate(180deg);
}

/* ارتفاع را خود Bootstrap نرم باز و بسته می‌کند؛ محتوا هم هم‌زمان محو/ظاهر می‌شود */
.pp-acc-body {
    padding: 0 1.25rem 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.collapsing > .pp-acc-body,
.collapse.show > .pp-acc-body {
    opacity: 1;
}

/* ---------- تاریخچه ---------- */

.pp-history {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-history-item {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0 1.5rem;
    align-items: baseline;
    padding: 1rem 0;
    border-top: 1px solid var(--pp-line);
}

.pp-history-year {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.8;
    color: var(--pp-blue);
}

.pp-history-text {
    margin: 0;
    line-height: 2;
}

/* ---------- ردیف «عنوان + توضیح» ---------- */

.pp-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-row {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 0.25rem 2rem;
    align-items: baseline;
    padding: 1rem 0;
    border-top: 1px solid var(--pp-line);
}

.pp-row-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.9;
    color: var(--pp-head);
}

.pp-row-text {
    margin: 0;
    line-height: 2;
}

.pp-more {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--pp-line);
}

/* ---------- نوار همکاری ---------- */

.pp-section--cta {
    padding: 35px 0 70px;
}

.pp-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: var(--pp-blue);
    color: #fff;
}

.pp-cta-title {
    margin: 0 0 0.4rem;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.8;
    color: #fff;
}

.pp-cta-text {
    /*max-width: 40rem;*/
    margin: 0;
    line-height: 2;
    color: rgba(255, 255, 255, 0.88);
}

.pp-actions--end {
    justify-content: flex-start;
}

.pp-cta :focus-visible {
    outline-color: #fff;
}

/* ==========================================================================
   تبلت (≥576px)
   ========================================================================== */
@media (min-width: 576px) {
    .pp-top {
        padding: 60px 0 10px;
    }

    .pp-title {
        font-size: 28px;
    }

    .pp-slogan {
        margin-bottom: 34px;
        font-size: 17px;
    }

    .pp-section {
        padding: 45px 0;
    }

    .pp-subtitle {
        font-size: 19px;
    }

    .pp-text {
        font-size: 15px;
    }

    .pp-acc-title {
        font-size: 19px;
    }

    .pp-acc-btn {
        padding: 1rem 1.5rem;
    }

    .pp-acc-body {
        padding: 0 1.5rem 1.5rem;
    }

    .pp-cta-title {
        font-size: 21px;
    }
}

/* ==========================================================================
   دسکتاپ (≥992px)
   ========================================================================== */
@media (min-width: 992px) {
    .pp-top {
        padding: 94px 0 20px;
    }

    .pp-logo-wrap {
        margin-bottom: 1.75rem;
        padding: 18px 40px;
    }

    .pp-logo {
        max-width: 230px;
        max-height: 54px;
    }

    .pp-title {
        margin-bottom: 14px;
        font-size: 44px;
    }

    .pp-slogan {
        margin-bottom: 40px;
        font-size: 22px;
    }

    .pp-section {
        padding: 60px 0;
    }

    .pp-subtitle {
        margin-bottom: 18px;
        font-size: 21px;
    }

    .pp-text {
        margin-bottom: 28px;
        font-size: 18px;
        line-height: 2.2;
    }

    .pp-ledger {
        padding: 0.75rem 1.75rem;
    }

    .pp-acc-band {
        margin-top: 30px;
        padding: 56px 0 64px;
    }

    .pp-acc {
        gap: 18px;
    }

    .pp-acc-btn {
        padding: 1.25rem 2rem;
    }

    .pp-acc-title {
        font-size: 21px;
    }

    .pp-acc-icon {
        width: 38px;
        height: 38px;
    }

    .pp-acc-body {
        padding: 0 2rem 2rem;
    }

    .pp-history-item {
        grid-template-columns: 8rem 1fr;
    }

    .pp-history-year {
        font-size: 22px;
    }

    .pp-history-text,
    .pp-row-text {
        font-size: 16px;
    }

    .pp-row-title {
        font-size: 17px;
    }

    .pp-section--cta {
        padding: 60px 0 90px;
    }

    .pp-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
        padding: 3rem 3.5rem;
    }

    .pp-cta-title {
        font-size: 24px;
    }

    .pp-cta-text {
        font-size: 16px;
    }

    .pp-actions--end {
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .pp-history-item,
    .pp-row {
        grid-template-columns: 1fr;
    }

    .pp-history-year {
        margin-bottom: 0.1rem;
    }

    .pp-ledger dd {
        max-width: 55%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-btn,
    .pp-acc-btn,
    .pp-acc-title,
    .pp-acc-icon,
    .pp-acc-body {
        transition: none;
    }
}
