/* ============================================================
   ABOUT PAGE — DEDICATED STYLESHEET
   Theme-matched to homepage (style.css design tokens).
   Uses: --primary-teal, --green-deep, --gold, --cream, --parchment
============================================================ */

/* ----- Page-hero (Page Banner) --------------------------- */
.ap-hero {
    position: relative;
    padding: 200px 0 80px;
    background:
        linear-gradient(135deg,
            rgba(20, 68, 42, 0.92) 0%,
            rgba(13, 115, 119, 0.88) 60%,
            rgba(20, 68, 42, 0.94) 100%),
        radial-gradient(ellipse at top left, rgba(200, 147, 58, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(232, 185, 106, 0.18) 0%, transparent 55%),
        var(--green-deep);
    overflow: hidden;
    isolation: isolate;
}

.ap-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 38px,
            rgba(200, 147, 58, 0.06) 38px,
            rgba(200, 147, 58, 0.06) 40px);
    pointer-events: none;
    z-index: -1;
}

.ap-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 147, 58, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.ap-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.ap-hero-arabic {
    font-family: 'Scheherazade New', 'Amiri', serif;
    direction: rtl;
    font-size: 1.75rem;
    color: var(--gold-light);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    display: inline-block;
    animation: fadeUp 0.7s ease both;
}

.ap-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 18px;
    animation: fadeUp 0.8s ease 0.05s both;
}

.ap-hero-eyebrow span {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: var(--gold-light);
}

.ap-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px;
    animation: fadeUp 0.9s ease 0.1s both;
}

.ap-hero-title em {
    font-style: italic;
    color: var(--gold-light);
    position: relative;
}

.ap-hero-sub {
    max-width: 720px;
    margin: 0 auto 26px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeUp 1s ease 0.15s both;
}

.ap-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 185, 106, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeUp 1.05s ease 0.2s both;
}

.ap-breadcrumb a,
.ap-breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.ap-breadcrumb a:hover {
    color: var(--gold-light);
}

.ap-breadcrumb .crumb-sep {
    color: var(--gold-light);
    font-size: 0.7rem;
}

.ap-breadcrumb .crumb-current {
    color: var(--gold-light);
}

/* Wave divider into next section */
.ap-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.ap-hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}


/* ----- Section foundation -------------------------------- */
.ap-section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    
}

.ap-section.alt-bg {
    background: var(--parchment);
}

.ap-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.ap-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.ap-eyebrow span {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.ap-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.2;
    margin-bottom: 14px;
}

.ap-section-title em {
    font-style: italic;
    color: var(--primary-teal);
}

.ap-rule {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-bottom: 22px;
}

.ap-section-sub {
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
}

.ap-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.ap-section-head .ap-rule {
    margin: 0 auto 22px;
}

.ap-section-head .ap-section-sub {
    margin: 0 auto;
}


/* ----- Welcome / Historical Context Block ----------------- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-img-col {
    position: relative;
}

.welcome-img-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 28px 60px -25px rgba(20, 68, 42, 0.45),
        0 0 0 1px rgba(200, 147, 58, 0.15);
    transition: transform 0.5s ease;
}

.welcome-img-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(13, 115, 119, 0.1) 0%,
            transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.welcome-img-frame img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.welcome-img-frame:hover img {
    transform: scale(1.04);
}

.welcome-img-deco {
    position: absolute;
    bottom: -22px;
    right: -22px;
    width: 110px;
    height: 110px;
    background:
        repeating-linear-gradient(45deg,
            var(--gold) 0,
            var(--gold) 2px,
            transparent 2px,
            transparent 10px);
    opacity: 0.55;
    border-radius: 4px;
    z-index: -1;
}

.welcome-badge {
    position: absolute;
    top: 22px;
    left: -18px;
    background: var(--gold);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px -10px rgba(200, 147, 58, 0.6);
    z-index: 3;
}

.welcome-badge::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    border-left: 8px solid transparent;
    border-top: 8px solid #8a6520;
    border-bottom: 0;
}

.welcome-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.welcome-quote {
    position: relative;
    margin: 28px 0;
    padding: 22px 28px;
    background: linear-gradient(135deg,
            rgba(13, 115, 119, 0.06) 0%,
            rgba(200, 147, 58, 0.06) 100%);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    font-style: italic;
    color: var(--green-deep);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.7;
}

.welcome-quote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.welcome-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--primary-teal);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}


/* ----- Mission / Vision Cards ---------------------------- */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    position: relative;
    background: var(--white);
    padding: 40px 36px 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px -25px rgba(20, 68, 42, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.mv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-teal), var(--gold));
}

.mv-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 115, 119, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -25px rgba(20, 68, 42, 0.4);
}

.mv-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    color: var(--white);
    font-size: 1.55rem;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px -12px rgba(13, 115, 119, 0.55);
}

.mv-card.vision .mv-card-icon {
    background: linear-gradient(135deg, var(--gold), #b07f2c);
    box-shadow: 0 12px 24px -12px rgba(200, 147, 58, 0.55);
}

.mv-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--green-deep);
    margin-bottom: 12px;
    font-weight: 700;
}

.mv-card-text {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--text-mid);
}


/* ----- Three Pillars ------------------------------------ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pillar-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 36px 28px 32px;
    text-align: center;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.45s ease;
    box-shadow: 0 12px 30px -22px rgba(20, 68, 42, 0.25);
}

.pillar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-teal));
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -25px rgba(20, 68, 42, 0.4);
    border-color: rgba(200, 147, 58, 0.5);
}

.pillar-card:hover::before {
    width: 100%;
}

.pillar-num {
    position: absolute;
    top: 14px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(200, 147, 58, 0.12);
    line-height: 1;
    pointer-events: none;
}

.pillar-icon-wrap {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(13, 115, 119, 0.12) 0%,
            rgba(200, 147, 58, 0.12) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.5s ease;
}

.pillar-icon-wrap::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px dashed var(--gold);
    border-radius: 50%;
    opacity: 0.4;
    animation: pillarSpin 22s linear infinite;
}

.pillar-card:hover .pillar-icon-wrap {
    transform: scale(1.08);
}

.pillar-icon-wrap i {
    font-size: 2rem;
    color: var(--primary-teal);
    transition: color 0.4s ease;
}

.pillar-card:hover .pillar-icon-wrap i {
    color: var(--gold);
}

@keyframes pillarSpin {
    to {
        transform: rotate(360deg);
    }
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 12px;
}

.pillar-desc {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-mid);
}


/* ----- Principal Message --------------------------------- */
.principal-section {
    background:
        linear-gradient(135deg,
            rgba(20, 68, 42, 0.97) 0%,
            rgba(13, 115, 119, 0.92) 100%),
        var(--green-deep);
    position: relative;
    overflow: hidden;
}

.principal-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg,
            transparent 0,
            transparent 50px,
            rgba(200, 147, 58, 0.04) 50px,
            rgba(200, 147, 58, 0.04) 52px);
    pointer-events: none;
}

.principal-section::after {
    content: "﷽";
    position: absolute;
    top: 30px;
    right: 50px;
    font-family: 'Scheherazade New', 'Amiri', serif;
    font-size: 8rem;
    color: rgba(200, 147, 58, 0.08);
    pointer-events: none;
    line-height: 1;
}

.principal-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.principal-img-col {
    position: relative;
    text-align: center;
}

.principal-portrait {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow:
        0 20px 50px -15px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(200, 147, 58, 0.15);
}

.principal-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.principal-portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-teal), var(--green-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 6rem;
}

.principal-name-block {
    color: var(--white);
    margin-top: 18px;
}

.principal-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.principal-title-text {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.principal-signature {
    margin-top: 14px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.principal-content {
    color: var(--white);
    position: relative;
}

.principal-content .ap-eyebrow {
    color: var(--gold-light);
}

.principal-content .ap-eyebrow span {
    background: var(--gold-light);
}

.principal-content .ap-section-title {
    color: var(--white);
}

.principal-content .ap-section-title em {
    color: var(--gold-light);
}

.principal-content .ap-rule {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.principal-quote-mark {
    position: absolute;
    top: -30px;
    left: -10px;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: var(--gold);
    opacity: 0.18;
    line-height: 1;
    pointer-events: none;
}

.principal-body p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
}

.principal-body p strong {
    color: var(--gold-light);
    font-weight: 600;
}

.principal-contact-strip {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.principal-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 185, 106, 0.3);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.principal-contact-chip i {
    color: var(--gold-light);
}

.principal-contact-chip:hover {
    background: var(--gold);
    color: var(--green-deep);
    border-color: var(--gold);
}

.principal-contact-chip:hover i {
    color: var(--green-deep);
}


/* ----- Approach (Why Us) features ------------------------ */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.approach-card {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 22px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.approach-card:hover {
    background: linear-gradient(135deg, var(--green-deep), var(--primary-teal));
    border-color: var(--gold);
    transform: translateY(-6px);
}

.approach-card:hover .approach-icon,
.approach-card:hover .approach-title,
.approach-card:hover .approach-text {
    color: var(--white);
}

.approach-card:hover .approach-icon {
    background: var(--gold);
    color: var(--green-deep);
}

.approach-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.1), rgba(200, 147, 58, 0.1));
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.approach-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--green-deep);
    font-weight: 700;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.approach-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-mid);
    transition: color 0.4s ease;
}


/* ----- CTA Banner --------------------------------------- */
.ap-cta {
    padding: 70px 0;
    background:
        linear-gradient(135deg,
            rgba(200, 147, 58, 0.95) 0%,
            rgba(176, 127, 44, 0.96) 100%),
        var(--gold);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.ap-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 40px,
            rgba(255, 255, 255, 0.05) 40px,
            rgba(255, 255, 255, 0.05) 42px);
}

.ap-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.ap-cta-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.ap-cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    line-height: 1.6;
}

.ap-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ap-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--green-deep);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 2px solid var(--white);
    transition: all 0.35s ease;
}

.ap-cta-btn:hover {
    background: transparent;
    color: var(--white);
}

.ap-cta-btn.outline {
    background: transparent;
    color: var(--white);
}

.ap-cta-btn.outline:hover {
    background: var(--white);
    color: var(--green-deep);
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .welcome-img-col {
        max-width: 480px;
        margin: 0 auto;
    }

    .principal-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .principal-quote-mark {
        left: 50%;
        transform: translateX(-50%);
        top: -50px;
    }

    .principal-contact-strip {
        justify-content: center;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ap-hero {
        padding: 110px 0 70px;
    }

    .ap-hero-arabic {
        font-size: 1.4rem;
    }

    .ap-section {
        padding: 70px 0;
    }

    .ap-section-head {
        margin-bottom: 36px;
    }

    .welcome-quote {
        padding: 20px 22px;
        font-size: 0.98rem;
    }

    .principal-section::after {
        font-size: 5rem;
        top: 20px;
        right: 20px;
    }

    .principal-portrait {
        width: 220px;
        height: 220px;
    }

    .ap-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .ap-cta-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ap-hero {
        padding: 100px 0 60px;
    }

    .ap-section {
        padding: 60px 0;
    }

    .ap-inner {
        padding: 0 5%;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .mv-card {
        padding: 32px 24px;
    }

    .pillar-card {
        padding: 32px 22px;
    }

    .welcome-badge {
        left: 10px;
        font-size: 0.7rem;
        padding: 8px 16px;
    }

    .welcome-img-deco {
        display: none;
    }

    .ap-cta-actions {
        flex-direction: column;
    }

    .ap-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .principal-contact-chip {
        width: 100%;
        justify-content: center;
    }

    .principal-portrait {
        width: 180px;
        height: 180px;
    }
}