/* ============================================================
   about.css — About Us Page Dedicated Stylesheet
   Extends the global style.css from the main site
   ============================================================ */

/* ─── HERO BANNER ─────────────────────────────────────────── */
.about-hero {
    position: relative;
    height: 400px;
    background-image: url('image/past projects/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

/* Cyan diagonal/side overlay — left-heavy as in the design */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 190, 217, 0.85) 0%, rgba(20, 190, 217, 0.6) 100%);
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.projects-breadcrumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── EMPOWERMENT SECTION ─────────────────────────────────── */
.empowerment-section {
    position: relative;
    padding: 6rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center right;
    border-bottom: 12px solid var(--primary-navy);
}

.empowerment-badge {
    display: inline-block;
    background-color: #f0fdf4;
    color: var(--primary-green);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.empowerment-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.empowerment-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.empowerment-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

/* ─── STATS BAR ───────────────────────────────────────────── */
.about-stats-bar {
    background-color: var(--primary-navy);
    padding: 2.5rem 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1rem;
}

/* Divider between stats */
.about-stats-grid .about-stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.about-stat-item .s-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-yellow);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.about-stat-item .s-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.4;
}

/* ─── FULL-WIDTH IMAGE STRIP ──────────────────────────────── */
.about-img-strip {
    width: 100%;
    height: 260px;
    background-image: url('image/About Us/our vison and mission.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ─── MISSION & VISION ────────────────────────────────────── */
.about-mv-section {
    padding: 5rem 0;
    background: #fff;
}

.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-mv-card {
    padding: 0;
}

.about-mv-card .mv-icon-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mv-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mv-icon-circle.gold {
    background: #fef3c7;
    color: var(--primary-yellow);
}

.mv-icon-circle.cyan {
    background: #cffafe;
    color: var(--primary-cyan);
}

.mv-icon-circle i {
    width: 20px;
    height: 20px;
}

.about-mv-card h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
    margin: 0;
}

.about-mv-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

/* ─── HISTORY SECTION ────────────────────────────────────── */
.history-section {
    position: relative;
    min-height: 500px;
    background-image: url('image/About Us/The History of IME.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

/* Dark overlay so white card reads clearly */
.history-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 60, 0.55);
}

.history-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.history-card {
    background: #fff;
    border-radius: 1rem;
    padding: 3.5rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.history-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.history-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.history-card p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.history-card p:last-child {
    margin-bottom: 0;
}


/* Container alignment (if you already have one, skip or adjust) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main layout */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid #1954AC;
    border-radius: 14px;
    background: #fff;
}

/* Left text */
.history-text {
    padding: 40px;
}

.history-title {
    color: #1954AC;
    font-size: 24px;
    margin-bottom: 20px;
}

.history-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Right image area */
.history-image-area {
    position: relative;
}

.history-img-wrap {
    width: 100%;
    height: 100%;
}

.history-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 14px 14px 0;
}

/* Caption overlay */
.history-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-text {
        padding: 20px;
    }
}

/* ─── BOARD OF DIRECTORS ─────────────────────────────────── */
.directors-section-about {
    padding: 5rem 0;
    background: #fff;
}

.directors-section-about .section-top {
    text-align: center;
    margin-bottom: 1rem;
}

.directors-section-about .section-top .badge-pill {
    display: inline-block;
    background: rgba(20, 190, 217, 0.1);
    color: var(--primary-cyan);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.directors-section-about .section-top h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.directors-section-about .section-top p {
    font-size: 16px;
    color: var(--text-main);
    max-width: 540px;
    margin: 0 auto;
}

.directors-grid-about {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Card: photo fills the card, overlay bar sits ON the image */
.director-card-about {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.director-card-about:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Full-card photo */
.director-card-about img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Name/role overlay — sits at the bottom of the photo */
.director-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(17, 40, 90, 0.95) 0%,
            rgba(17, 40, 90, 0.80) 60%,
            rgba(17, 40, 90, 0.0) 100%);
    padding: 2.5rem 1.1rem 1.1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.director-card-overlay h4 {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.director-card-overlay p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.72rem;
    line-height: 1.3;
}

/* Yellow circle arrow on each card */
.director-arrow-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.director-arrow-btn:hover {
    background: var(--primary-yellow-hover);
}

.director-arrow-btn i {
    width: 15px;
    height: 15px;
}

/* ─── SUPPORT / DONATE CTA ───────────────────────────────── */
.about-support-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.about-support-img {
    background-image: url('image/About Us/Support Our Mission.jpg');
    background-size: cover;
    background-position: center;
}

.about-support-content {
    background: var(--primary-cyan);
    padding: 4rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-support-content h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.about-support-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-donate-about {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-yellow);
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    width: max-content;
}

.btn-donate-about:hover {
    background: var(--primary-yellow-hover);
}

.btn-donate-about .arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-donate-about .arrow-circle i {
    width: 16px;
    height: 16px;
}


/* --- Footer --- */
.footera {
    background-color: var(--primary-navy);
    background-image: url('image/Home/footerwate.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.footera-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footera-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.footera-logo img {
    height: 170px;
    object-fit: contain;
}

.brand-col p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 0.85rem;
}

.social-links a {
    width: 2.25rem;
    height: 2.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-cyan);
    color: var(--white);
    transform: translateY(-3px);
}

.social-links i {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 1.1rem;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.footera-col h4 {
    color: var(--primary-yellow);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
}

.footera-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footera-col ul a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.footera-col ul a:hover {
    color: var(--primary-cyan);
}

.newsletter-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    position: relative;
    max-width: 320px;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 3.5rem 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 0.5rem;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--primary-cyan);
    color: var(--white);
    border: none;
    width: 40px;
    height: calc(100% - 10px);
    border-radius: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: var(--primary-cyan-hover);
}

.footera-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.9;
}

.footera-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footera-bottom-links a:hover {
    color: var(--white);
}

@media (min-width: 768px) {
    .footera-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footera-grid {
        grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr 1.2fr;
        gap: 4rem;
    }

    .footera-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footera-bottom p {
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.6);
    }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */


@media (max-width: 991px) {
    .empowerment-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .circle-img-wrap {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-stats-grid .about-stat-item {
        border-right: none;
    }

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

    .history-card-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .directors-grid-about {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-support-img {
        min-height: 260px;
    }

    .about-support-content {
        padding: 3rem 2rem;
    }

    .empowerment-section {
        background-position: center bottom;
        padding-top: 3rem;
        padding-bottom: 15rem;
    }

    .empowerment-section .gradient-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 65%, rgba(255, 255, 255, 0) 100%);
    }
}

@media (max-width: 767px) {
    .about-hero h1 {
        font-size: 2.2rem;
    }

    .empowerment-title,
    .about-support-content h2 {
        font-size: 27px !important;
    }

    .empowerment-text p,
    .about-mv-card p,
    .history-card p,
    .history-text p,
    .directors-section-about .section-top p,
    .about-support-content p {
        font-size: 14px !important;
    }
}

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