/* ============================================================
   about.css — Full LTR + RTL direction-aware styles
   Place at: public/assets/qitaf/about.css
   ============================================================ */

:root {
    --blue: #006aa3;
    --blue-dark: #004f7a;
    --blue-light: #e8f4fb;
    --text: #0f1923;
    --muted: #64748b;
    --border: #e2eaf2;
}

.about-page-wrap {
    background: #f8fafc;
    animation: aboutFadeIn 0.4s ease both;
}

@keyframes aboutFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
.about-hero {
    background: var(--blue);
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    text-align: center;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 64px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.about-hero-badge .dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse-g 1.6s ease infinite;
}

@keyframes pulse-g {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.6); }
}

.about-hero h1 {
    font-size: clamp(26px, 5vw, 50px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.about-hero .hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ============================================================
   SECTION LABEL  (shared)
   ============================================================ */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ============================================================
   VMM  (Vision / Mission / Methodology)
   ============================================================ */
.vmm-section {
    padding: 72px 0 60px;
}

.vmm-header {
    text-align: center;
    margin-bottom: 52px;
}

.vmm-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.vmm-header p {
    font-size: 15px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

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

@media (max-width: 900px) {
    .vmm-grid { grid-template-columns: 1fr; }
}

.vmm-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* text always starts from natural reading direction */
    text-align: start;
}

.vmm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,106,163,0.1);
    border-color: var(--blue);
}

/* Decorative corner — direction-aware */
.vmm-card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--blue-light);
    transition: background 0.3s ease;
}

/* RTL: corner on the right */
[dir="rtl"] .vmm-card::before {
    right: 0;
    border-radius: 0 20px 0 80px;
}

/* LTR: corner on the left */
[dir="ltr"] .vmm-card::before {
    left: 0;
    border-radius: 20px 0 80px 0;
}

.vmm-card:hover::before {
    background: rgba(0,106,163,0.07);
}

.vmm-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1;
}

.vmm-card:hover .vmm-icon {
    background: var(--blue);
}

.vmm-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.vmm-card:hover .vmm-icon svg {
    stroke: #fff;
}

.vmm-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.vmm-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

/* ============================================================
   EXPERTS
   ============================================================ */
.experts-section {
    background: var(--blue);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.experts-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.experts-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .experts-inner { grid-template-columns: 1fr; gap: 36px; }
}

.experts-text .section-label {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.experts-text h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
    text-align: start;
}

.experts-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    line-height: 1.85;
    text-align: start;
}

.experts-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.expert-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.expert-stat:hover {
    background: rgba(255,255,255,0.16);
}

.expert-stat-num {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.expert-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ============================================================
   DISTINCTIONS
   ============================================================ */
.distinctions-section {
    padding: 72px 0 80px;
}

.distinctions-header {
    text-align: center;
    margin-bottom: 52px;
}

.distinctions-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.distinctions-header p {
    font-size: 15px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

.distinctions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) { .distinctions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .distinctions-grid { grid-template-columns: 1fr; } }

.distinction-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.distinction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,106,163,0.09);
    border-color: var(--blue);
}

.distinction-num {
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.distinction-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.75;
    flex: 1;
    margin: 0;
}

/* ============================================================
   ACCREDITATION BANNER
   ============================================================ */
.accreditation-banner {
    background: var(--blue-light);
    border: 1.5px solid rgba(0,106,163,0.15);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    /* direction-aware alignment */
    text-align: start;
}

@media (max-width: 575px) {
    .accreditation-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }
}

.accreditation-icon {
    width: 64px;
    height: 64px;
    background: var(--blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accreditation-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.accreditation-text h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.accreditation-text p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   LTR-SPECIFIC FIXES
   These only run when the page is in English (dir="ltr")
   ============================================================ */

/* Experts layout: in LTR show text first (left), stats second (right) */
[dir="ltr"] .experts-inner {
    direction: ltr;
}

/* In LTR, text-align is already start = left, nothing extra needed */
[dir="ltr"] .vmm-header,
[dir="ltr"] .distinctions-header,
[dir="ltr"] .vmm-header h2,
[dir="ltr"] .vmm-header p,
[dir="ltr"] .distinctions-header h2,
[dir="ltr"] .distinctions-header p {
    text-align: center;
}

[dir="ltr"] .vmm-card,
[dir="ltr"] .distinction-card,
[dir="ltr"] .accreditation-banner,
[dir="ltr"] .experts-text h2,
[dir="ltr"] .experts-text p {
    text-align: left;
}

/* Section label letter-spacing works well in LTR; reset for RTL */
[dir="rtl"] .section-label {
    letter-spacing: 0;
}
