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

:root {
    --blue: #3BBFB2;
    --blue-dark: #1A6B65;
    --blue-mid: #2A9D8F;
    --blue-light: #E8F8F7;
    --text: #1A2E2D;
    --muted: #4A5568;
    --border: #D1E8E6;
}

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

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

/* ============================================================
   HERO
   ============================================================ */
.about-hero {
    background:
        linear-gradient(135deg, rgba(26, 107, 101, .98) 0%, rgba(36, 126, 119, .94) 52%, rgba(73, 180, 174, .34) 100%),
        url('/store/1/hft/logo.jpeg');
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    padding: 84px 0 76px;
    text-align: start;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px 100%),
        linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 100%);
    background-size: 36px 36px;
    opacity: .22;
    pointer-events: none;
}

.about-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%);
    bottom: 0;
    content: "";
    height: 90px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.about-hero-grid {
    align-items: center;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    position: relative;
    z-index: 1;
}

.about-hero-copy {
    color: #fff;
    max-width: 720px;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 999px;
    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(34px, 5.2vw, 68px);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin: 0 0 20px;
    max-width: 760px;
    position: relative;
    z-index: 1;
    text-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.about-hero .hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.86);
    max-width: 690px;
    margin: 0;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.about-hero-btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

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

.about-hero-btn-primary {
    background: #fff;
    border: 1px solid #fff;
    color: var(--blue-dark);
}

.about-hero-btn-primary:hover {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.about-hero-btn-secondary {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.38);
    color: #fff;
}

.about-hero-btn-secondary:hover {
    background: rgba(255,255,255,.20);
    color: #fff;
}

.about-hero-visual {
    display: grid;
    gap: 14px;
    position: relative;
}

.about-hero-logo-card,
.about-hero-stat-card,
.about-hero-note {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(10, 45, 47, .16);
}

.about-hero-logo-card {
    align-items: center;
    display: flex;
    gap: 18px;
    padding: 20px;
}

.about-hero-logo-card img {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    height: 88px;
    object-fit: contain;
    padding: 8px;
    width: 130px;
}

.about-hero-logo-card span {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
}

.about-hero-stat-card {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
}

.about-hero-stat-card div {
    background: rgba(224, 242, 241, .72);
    padding: 18px 14px;
}

.about-hero-stat-card strong {
    color: var(--blue-dark);
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 7px;
}

.about-hero-stat-card span {
    color: var(--text);
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.about-hero-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    padding: 20px;
}

@media (max-width: 991px) {
    .about-hero {
        padding: 68px 0 60px;
    }

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

@media (max-width: 575px) {
    .about-hero {
        padding: 44px 0 40px;
    }

    .about-hero h1 {
        font-size: 30px;
    }

    .about-hero .hero-sub {
        font-size: 15px;
        line-height: 1.75;
    }

    .about-hero-actions,
    .about-hero-btn {
        width: 100%;
    }

    .about-hero-logo-card {
        align-items: center;
        flex-direction: row;
        padding: 14px;
    }

    .about-hero-logo-card img {
        height: 62px;
        width: 92px;
    }

    .about-hero-logo-card span {
        font-size: 13px;
    }

    .about-hero-stat-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-hero-stat-card div {
        padding: 12px 8px;
    }

    .about-hero-stat-card strong {
        font-size: 18px;
    }

    .about-hero-stat-card span {
        font-size: 10px;
        line-height: 1.35;
    }

    .about-hero-note {
        display: none;
    }
}

/* ============================================================
   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(59, 191, 178, 0.12);
    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(59, 191, 178, 0.10);
}

.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(59, 191, 178, 0.12);
    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(59, 191, 178, 0.22);
    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;
}
