﻿/* =========================================================
   ABOUT – Premium (RTL) / Compatible with your Nama theme
   - Title centered
   - Hero: text RIGHT, video LEFT
   - Logos grid with title
   - Board grid: photo + name + role
   ========================================================= */

/* ---- Page wrapper spacing ---- */
.about-page {
    padding: 10px 0 50px;
}

/* ---- Title (center) ---- */
.about-page-head {
    text-align: center;
    margin: 22px auto 18px;
}

.about-page-title {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    margin: 6px 0 26px;
    color: rgba(11, 18, 32, .92);
    letter-spacing: -.2px;
    position: relative;
}

    .about-page-title::after {
        content: "";
        display: block;
        width: 90px;
        height: 4px;
        border-radius: 999px;
        margin: 8px auto 0;
        background: #8d70d9;
    }

.about-page-sub {
    margin: 10px auto 0;
    max-width: 860px;
    font-size: 16.5px;
    line-height: 2;
    color: rgba(11,18,32,.70);
    font-weight: 800;
}

/* ---- Hero card (same vibe as features-card/steps-card) ---- */
.about-hero {
    margin-top: 18px;
}

.about-hero-card {
    border-radius: 36px;
    overflow: hidden;

}

/* Grid: RIGHT text | LEFT video  (RTL friendly) */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

/* ---- Text panel ---- */
.about-hero-info {
    border-radius: 28px;
    background: rgba(255,255,255,.60);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 22px 70px rgba(15,23,42,.08);
    padding: 18px;
}

.about-hero-title {
    margin: 2px 2px 12px;
    font-size: 30px;
    font-weight: 1000;
    color: rgba(11,18,32,.90);
    letter-spacing: -.25px;
    line-height: 1.45;
}

.about-hero-text {
    margin: 0;
    font-size: 17px;
    line-height: 2.05;
    color: rgba(11,18,32,.72);
    font-weight: 750;
    padding-left:20px;
}

    /* If your text contains HTML */
    .about-hero-text p {
        margin: 0 0 10px;
    }

        .about-hero-text p:last-child {
            margin-bottom: 0;
        }

    .about-hero-text ul,
    .about-hero-text ol {
        margin: 10px 0 0;
        padding-right: 18px;
        display: grid;
        gap: 6px;
    }

    .about-hero-text li {
        line-height: 2;
    }

/* ---- Video panel ---- */
.about-hero-media {
    border: 0;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    position: relative;
}

.about-video-shell {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #000;
    aspect-ratio: 16 / 9;
}

    .about-video-shell::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(11,18,32,.08) 0%, rgba(11,18,32,.18) 55%, rgba(11,18,32,.40) 100%);
        pointer-events: none;
        opacity: .9;
    }

.about-video {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    background: #000;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.about-hero-media:hover .about-video {
    transform: scale(1.07);
}

.about-video-caption {
    margin-top: 10px;
    text-align: center;
    color: rgba(11,18,32,.65);
    font-weight: 850;
    font-size: 13.5px;
}

/* ---- Logos section ---- */
.about-clients {
    margin-top: 34px;
}

.about-section-head {
    text-align: center;
    margin: 0 auto 14px;
}

.about-section-title {
    font-size: 28px;
    font-weight: 1000;
    margin: 50px 0 8px;
    color: rgba(11,18,32,.92);
}

.about-section-sub {
    margin: 0 auto;
    max-width: 820px;
    font-size: 15.8px;
    line-height: 2;
    color: rgba(11, 18, 32, .70);
}

/* card container for logos */
.clients-grid-card {
    border-radius: 32px;
    overflow: hidden;
    padding: 18px;
    background: radial-gradient(560px 220px at 20% 30%, rgba(124,77,255,.12), transparent 60%), radial-gradient(560px 220px at 85% 70%, rgba(109,59,242,.10), transparent 60%), rgba(255,255,255,.70);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 26px 80px rgba(15,23,42,.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ===== Client logo card (logo + title under it) ===== */

.client-logo {
    height: 150px;
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 14px 40px rgba(15,23,42,.06);
    padding: 14px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .client-logo:hover {
        transform: translateY(-2px);
        border-color: rgba(124,77,255,.22);
        box-shadow: 0 24px 70px rgba(124,77,255,.16);
    }

    /* image */
    .client-logo img {
        max-height: 70px;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

/* title under logo */
.client-logo-title {
    font-size: 13px;
    font-weight: 900;
    color: rgba(11,18,32,.78);
    line-height: 1.5;
    margin: 0;
    /* max 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width:576px) {
    .client-logo {
        height: 132px;
    }

        .client-logo img {
            max-height: 60px;
        }

    .client-logo-title {
        font-size: 12.5px;
    }
}


.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.board-card {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 20px 70px rgba(15,23,42,.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    margin-bottom:20px;
}

    .board-card:hover {
        transform: translateY(-2px);
        border-color: rgba(124,77,255,.22);
        box-shadow: 0 30px 90px rgba(124,77,255,.16);
    }

.board-photo {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: rgba(15,23,42,.06);
}

    .board-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform: scale(1.03);
        transition: transform .25s ease;
    }

.board-card:hover .board-photo img {
    transform: scale(1.10);
}

.board-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,18,32,0) 45%, rgba(11,18,32,.35) 100%);
    pointer-events: none;
}

.board-body {
    padding: 14px 14px 16px;
    text-align:center;
}

.board-name {
    font-weight: 1000;
    font-size: 17px;
    color: rgba(11,18,32,.90);
    margin-bottom: 4px;
    text-align: center;
}

.board-role {
    font-weight: 850;
    color: rgba(11,18,32,.62);
    margin: 0;
    font-size: 13.5px;
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .about-video {
        height: 280px;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .board-photo {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .about-page-title {
        font-size: 32px;
    }

    .about-section-title {
        font-size: 22px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-logo {
        height: 110px;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .board-photo {
        height: 320px;
    }

    .about-video {
        height: 230px;
    }
}

/* === About -> Make it like Service Show (No borders) === */

/* Grid مثل service__row */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr; /* متن کمی عریض‌تر */
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* متن مثل service__info (بدون کارت/بدون border/بدون shadow) */
.about-hero-info {
    text-align: right;
    padding: 10px 20px;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* ویدیو مثل service__media */
.about-hero-media {
    border: 0;
    border-radius: 30px; /* اگر تو About متغیر --r نداری */
    overflow: hidden;
    background: rgba(255,255,255,.86);
    
    position: relative;
}

/* ویدیو مثل service__video (نسبت ثابت و بدون ارتفاع دستی) */
.about-video {
    width: 100%;
    display: block;
    object-fit: cover;
    background: #000;
    aspect-ratio: 16 / 9;
    height: auto; /* جایگزین height:320px */
    transform: none; /* اسکیل/هاور رو خاموش */
    transition: none;
}

/* overlay و hover های قبلی About رو خاموش کن */
.about-video-shell::after {
    content: none;
}

.about-hero-media:hover .about-video {
    transform: none;
}