@import url('./common.css');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800&display=swap');

.about-page {
    background: linear-gradient(180deg, #eff2f6 0%, #eceef1 100%);
}

.about-hero {
    position: relative;
    padding: 112px 0 118px;
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=2200&q=80');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -34% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 203, 83, 0.16), rgba(104, 203, 83, 0));
    pointer-events: none;
}

.about-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(104, 203, 83, 0.16), rgba(104, 203, 83, 0) 28%),
        linear-gradient(115deg, rgba(13, 16, 45, 0.9), rgba(13, 16, 45, 0.68));
}

.about-hero .hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 920px;
}

.about-hero h1 {
    margin: 0 0 14px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 4.4vw, 4.85rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    max-width: 920px;
}

.about-hero p {
    margin: 0;
    max-width: 820px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: #d7e0f6;
    line-height: 1.8;
}

.about-story {
    padding: 108px 0 112px;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: start;
}

.story-copy {
    border: 1px solid rgba(190, 201, 224, 0.72);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 250, 0.96));
    box-shadow: var(--shadow-medium);
    padding: 34px;
}

.story-copy h2 {
    margin: 0 0 14px;
    color: #1f2a3f;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.story-copy p {
    margin: 0 0 14px;
    color: #44556f;
    font-size: 1rem;
    line-height: 1.82;
}

.story-copy p:last-child {
    margin-bottom: 0;
}

.story-stats {
    display: grid;
    gap: 16px;
}

.about-page .stat-card {
    border-radius: 24px;
    border: 1px solid rgba(173, 186, 217, 0.34);
    background: linear-gradient(155deg, #15193f, #12163a);
    color: #fff;
    min-height: 164px;
    padding: 24px 26px;
    text-align: left;
    align-items: flex-start;
    box-shadow: 0 20px 36px rgba(11, 17, 34, 0.18);
}

.about-page .stat-card h3 {
    margin: 0 0 10px;
    color: #68cb53;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.about-page .stat-card p {
    margin: 0;
    color: #d5def6;
    font-size: 0.98rem;
    line-height: 1.72;
}

.about-values {
    position: relative;
    background:
        radial-gradient(circle at 16% 18%, rgba(104, 203, 83, 0.12), rgba(104, 203, 83, 0)),
        linear-gradient(170deg, #12163a, #111433);
    padding: 106px 0 110px;
    color: #fff;
}

.about-values .section-head {
    text-align: center;
    margin: 0 auto 34px;
    max-width: 780px;
}

.about-values h2 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.1rem, 3.8vw, 3.55rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.value-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card {
    border: 1px solid rgba(172, 185, 217, 0.32);
    border-radius: 24px;
    background: rgba(53, 60, 98, 0.56);
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 34px rgba(9, 13, 31, 0.16);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(195, 207, 239, 0.48);
    box-shadow: 0 22px 40px rgba(9, 13, 31, 0.2);
}

.value-card h3 {
    margin: 0 0 10px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.24;
}

.value-card p {
    margin: 0;
    color: #d6def5;
    line-height: 1.78;
    font-size: 0.98rem;
}

.about-cta {
    padding: 106px 0 112px;
}

.cta-box {
    border-radius: 30px;
    border: 1px solid rgba(190, 201, 224, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 246, 250, 0.96));
    box-shadow: var(--shadow-medium);
    padding: 42px 34px;
    text-align: center;
}

.cta-box h2 {
    margin: 0 0 12px;
    font-family: 'Sora', sans-serif;
    color: #202d41;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.cta-box p {
    margin: 0;
    color: #465874;
    font-size: 1rem;
    line-height: 1.78;
}

.cta-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.outline-btn.dark {
    color: #1f2a3f;
    border-color: rgba(183, 197, 225, 0.9);
    background: rgba(255, 255, 255, 0.8);
}

.outline-btn.dark:hover {
    background: #fff;
}

body.rtl .story-grid,
body.rtl .value-grid,
body.rtl .cta-actions {
    direction: rtl;
}

body.rtl .about-page .stat-card {
    text-align: right;
    align-items: flex-end;
}

@media (max-width: 1100px) {
    .story-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }
}

/* Final about page content overrides */
.about-page .about-hero h1 {
    max-width: 14ch;
}

.about-page .about-story {
    padding-top: 86px;
    padding-bottom: 92px;
}

.about-page .story-copy {
    padding: 38px;
}

.about-page .story-copy h2 {
    margin-bottom: 16px;
}

.about-page .story-copy p:last-child {
    margin-bottom: 0;
}

.about-page .story-stats {
    grid-template-columns: 1fr;
}

.about-page .about-values {
    background:
        radial-gradient(circle at 16% 18%, rgba(104, 203, 83, 0.12), rgba(104, 203, 83, 0)),
        linear-gradient(170deg, #12163a, #111433);
    color: #fff;
    padding-top: 86px;
    padding-bottom: 92px;
}

.about-page .about-values .container {
    display: block;
}

.about-page .section-head--stacked {
    max-width: 880px;
    margin: 0 0 28px;
    text-align: left;
}

.about-page .section-head--stacked h2 {
    margin: 0;
    color: #162538;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
}

.about-page .philosophy-list {
    margin: 0;
    padding-left: 26px;
    display: grid;
    gap: 22px;
    color: #243750;
}

.about-page .philosophy-list li {
    line-height: 1.72;
}

.about-page .philosophy-list strong {
    display: block;
    margin-bottom: 6px;
    color: #162538;
    font-size: 1.14rem;
}

.about-page .philosophy-list span {
    display: block;
}

.about-page .about-team-placeholder {
    padding-top: 32px;
    padding-bottom: 102px;
}

.about-page .team-leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.about-page .about-values .section-head--stacked h2,
.about-page .about-values .philosophy-list,
.about-page .about-values .philosophy-list strong,
.about-page .about-values .philosophy-list span {
    color: #fff;
}

.about-page .team-leadership-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(189, 201, 225, 0.82);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.98));
    box-shadow: 0 24px 46px rgba(18, 30, 56, 0.12);
}

.about-page .team-leadership-media {
    position: relative;
    aspect-ratio: 1 / 1.02;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, #25b9ce 0%, #11aabf 52%, #0f8da4 100%);
}

.about-page .team-leadership-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.about-page .team-leadership-copy {
    padding: 24px 26px 22px;
}

.about-page .team-leadership-copy h3 {
    margin: 0;
    color: #182a55;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.18;
}

.about-page .team-leadership-copy p {
    margin: 10px 0 0;
    color: #1ab6c4;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .about-page .story-grid {
        grid-template-columns: 1fr;
    }

    .about-page .story-stats {
        position: static;
    }

    .about-page .team-leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-page .philosophy-list {
        padding-left: 20px;
        gap: 18px;
    }

    .about-page .team-leadership-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-page .team-leadership-card {
        border-radius: 24px;
    }

    .about-page .team-leadership-copy {
        padding: 22px 20px 20px;
    }
}

@media (max-width: 700px) {
    .about-hero,
    .about-story,
    .about-values,
    .about-cta {
        padding-top: 74px;
        padding-bottom: 78px;
    }

    .story-copy,
    .cta-box,
    .value-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .about-page .stat-card {
        min-height: 148px;
        padding: 20px 18px;
        border-radius: 22px;
    }
}

@media (max-width: 560px) {
    .about-hero,
    .about-story,
    .about-values,
    .about-cta {
        padding-top: 62px;
        padding-bottom: 66px;
    }

    .story-copy,
    .cta-box,
    .value-card {
        padding: 20px 16px;
    }
}

.about-hero {
    padding: 42px 0 84px;
    display: flex;
    align-items: flex-end;
}

.about-hero .hero-inner {
    max-width: 980px;
    padding: 42px 46px;
    border-radius: 38px;
    border: 1px solid rgba(206, 216, 240, 0.16);
    background:
        radial-gradient(circle at 84% 16%, rgba(104, 203, 83, 0.14), rgba(104, 203, 83, 0)),
        linear-gradient(135deg, rgba(12, 18, 46, 0.82), rgba(20, 26, 64, 0.66));
    box-shadow: 0 30px 68px rgba(7, 12, 28, 0.22);
    backdrop-filter: blur(14px);
}

.about-story {
    padding-top: 82px;
}

.story-grid {
    gap: 28px;
}

.story-copy {
    border-radius: 32px;
    padding: 38px;
}

.story-stats {
    position: sticky;
    top: 122px;
}

.about-values .container {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: start;
}

.about-values .section-head {
    position: sticky;
    top: 122px;
    text-align: left;
    margin: 0;
}

.value-grid {
    gap: 22px;
}

.value-card {
    border-radius: 28px;
    padding: 32px;
}

.about-cta .cta-box {
    padding: 46px 44px;
    border-radius: 38px;
}

@media (max-width: 1100px) {
    .about-values .container {
        grid-template-columns: 1fr;
    }

    .about-values .section-head,
    .story-stats {
        position: static;
    }
}

@media (max-width: 700px) {
    .about-hero {
        padding-top: 30px;
        padding-bottom: 66px;
    }

    .about-hero .hero-inner,
    .story-copy,
    .about-cta .cta-box {
        padding: 30px 24px;
        border-radius: 28px;
    }
}

/* Keep the philosophy heading in normal flow so it cannot overlap the list. */
.about-page .about-values .container {
    display: block;
}

.about-page .about-values .section-head,
.about-page .about-values .section-head--stacked {
    position: static;
    margin: 0 0 30px;
}
