/* ===========================
   ABOUT — HOMEPAGE SECTION
=========================== */
.about-section { padding: 50px 0; background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ── Image layout ── */
.about-images-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
    align-self: flex-start;
}

.about-img-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28, 53, 87, 0.18);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background: linear-gradient(135deg, #1D3557, #3C78B4);
}

.about-img-secondary {
    position: absolute;
    bottom: -36px;
    right: -36px;
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 10px solid #ffffff;
    box-shadow: 0 12px 40px rgba(28, 53, 87, 0.25);
    z-index: 2;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[dir="rtl"] .about-img-secondary {
    bottom: -36px;
    left: -36px;
    right: auto;
}

/* ── Content ── */
.about-content .section-title { text-align: left; margin-bottom: 20px; }
.about-content p { color: var(--gray-600); font-size: 16px; line-height: 1.8; margin-bottom: 14px; text-align: justify; }
.about-content .btn-link { margin-top: 12px; font-size: 15px; }
[dir="rtl"] .about-content p { direction: rtl; }

/* ===========================
   ANIMATIONS — KEYFRAMES
=========================== */
@keyframes aboutFadeLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes aboutFadeRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes aboutFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes aboutImgFloat {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Default hidden state (before scroll trigger) ── */
.about-images-wrap              { opacity: 0; }
.about-img-secondary            { opacity: 0; }
.about-section .section-header  { opacity: 0; }
.about-section .section-tag,
.about-section .section-title   { opacity: 0; }
.about-section p                { opacity: 0; }
.about-section .btn,
.about-section .about-btn,
.about-section .btn-link        { opacity: 0; }

/* ── Visible state (JS adds .is-visible) ── */
.about-section.is-visible .about-images-wrap {
    animation: aboutFadeLeft 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.about-section.is-visible .about-img-secondary {
    animation: aboutImgFloat 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
.about-section.is-visible .section-header,
.about-section.is-visible .section-tag,
.about-section.is-visible .section-title {
    animation: aboutFadeRight 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}
.about-section.is-visible p {
    animation: aboutFadeRight 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
.about-section.is-visible .btn,
.about-section.is-visible .about-btn,
.about-section.is-visible .btn-link {
    animation: aboutFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 1.0s forwards;
}

/* ── RTL animation swap ── */
[dir="rtl"] .about-section.is-visible .about-images-wrap {
    animation: aboutFadeRight 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
[dir="rtl"] .about-section.is-visible .section-header,
[dir="rtl"] .about-section.is-visible .section-tag,
[dir="rtl"] .about-section.is-visible .section-title {
    animation: aboutFadeLeft 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

/* ===========================
   RESPONSIVE — portrait mobile
=========================== */
@media (max-width: 1024px) and (orientation: portrait) {
    .about-section { padding: 70px 0 100px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-images-wrap {
        max-width: 100%;
        margin-bottom: 64px;
        order: -1;
    }

    .about-img-secondary {
        bottom: -28px;
        right: -16px;
        width: 42%;
        border-width: 4px;
    }

    [dir="rtl"] .about-img-secondary {
        left: -16px;
        right: auto;
    }

    .about-content .section-title { text-align: center; }
    .section-tag {
        margin-top: 0px;
    }
}

/* ===========================
   RESPONSIVE — landscape mobile
=========================== */
@media (max-width: 1024px) and (orientation: landscape) {
    .about-images-wrap { max-width: 340px; }

    .about-img-secondary {
        bottom: -24px;
        right: -20px;
        width: 44%;
    }
}

/* ===========================
   ABOUT PAGE (page-about.php)
=========================== */

/* ----- HERO ----- */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 64px;
  height: 30vh;
  text-align: center;
}
.about-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(29,53,87,0.92) 0%, rgba(29,53,87,0.70) 55%, rgba(29,53,87,0.40) 100%);
}
.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
    animation: heroFadeIn 0.9s ease forwards;
}
.about-hero-content-rtl {
    direction: rtl;
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}
.about-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}
.about-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.about-breadcrumb a:hover { color: #fff; }
.about-breadcrumb-sep { color: rgba(255,255,255,0.4); }
.about-breadcrumb span:last-child { color: #fff; font-weight: 600; }
.about-hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}
.about-hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 580px;
}

/* ----- MISSION & VISION ----- */
.about-mv {
    padding: 80px 0;
    background: var(--white);
}
.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.about-mv-card {
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border-left: 5px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.about-mv-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.about-mv-mission { border-left-color: var(--blue); }
.about-mv-vision  { border-left-color: var(--green); }
.about-mv-grid-rtl .about-mv-card {
    border-left: none;
    border-right: 5px solid transparent;
}
.about-mv-grid-rtl .about-mv-mission { border-right-color: var(--blue); }
.about-mv-grid-rtl .about-mv-vision  { border-right-color: var(--green); }
.about-mv-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}
.about-mv-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}
.about-mv-card p {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
}

/* ----- OUR STORY ----- */
.about-story {
    padding: 100px 0;
    background: var(--gray-50);
}
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-story-grid-rtl {
    direction: rtl;
}
.about-story-text .section-tag { display: inline-block; }
.about-story-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--navy);
    margin: 16px 0 20px;
    line-height: 1.2;
}
.about-story-body {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 28px;
    text-align: justify;
}
.about-story-body p {
     margin-bottom: 14px;
     text-align: justify;
    }
.rtl-text { direction: rtl; text-align: right; }
.about-founded-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 8px;
}
.about-founded-badge strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.about-story-image-wrap {
    position: relative;
}
.about-story-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}
.about-story-img-placeholder {
    width: 100%;
    height: 440px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}
/* Image overlap accent */
.about-story-image-wrap::before {
    content: '';
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 60%;
    height: 60%;
    background: var(--blue);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}
.about-story-grid-rtl .about-story-image-wrap::before {
    right: auto;
    left: -18px;
}

/* ----- VALUES ----- */
.about-values {
    padding: 100px 0;
    background: var(--gray-100);
}
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.about-value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.about-value-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.about-value-icon {
    font-size: 42px;
    margin-bottom: 16px;
    display: block;
}
.about-value-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.about-value-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.75;
}

/* ----- TEAM ----- */
.about-team {
    padding: 100px 0;
    background: var(--white);
}
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.about-team-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.about-team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.about-team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--blue);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-team-initials {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.about-team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.about-team-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 10px;
}
.about-team-bio {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ----- RTL CARD TEXT ALIGNMENT ----- */
.about-mv-grid-rtl .about-mv-card,
.rtl-text,
.about-value-card.rtl-text,
.about-team-card.rtl-text {
    text-align: right;
    direction: rtl;
}

/* ----- ABOUT PAGE RESPONSIVE ----- */
@media (max-width: 1024px) {
    .about-values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-team-grid   { grid-template-columns: repeat(2, 1fr); }
    .about-story-grid  { grid-template-columns: 1fr; gap: 48px; }
    .about-mv-grid     { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .about-hero          { min-height: 50vh; padding-top: 80px; }
    .about-hero-title    { font-size: 32px; }
    .about-values-grid   { grid-template-columns: 1fr; }
    .about-team-grid     { grid-template-columns: 1fr; }
    .about-story-img,
    .about-story-img-placeholder { height: 260px; }
    .about-story-image-wrap::before { display: none; }
}
