/* assets/css/about.css (FINAL VERSION - Hero, Mobile & Gradient Fixes) */

/* --- GLOBAL SETTINGS & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=K2D:wght@400&display=swap');

/* HERO FIX 1: Universal reset to remove default browser margins/paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F1ECE2;
    --text-color: #333;
    --primary-yellow: #E2B726;
    --font-bold: 'Inter', sans-serif;
    --font-normal: 'K2D', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-normal);
    overflow-x: hidden; /* Failsafe against any horizontal scroll */
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 1. ABOUT HERO SECTION (FIXED) --- */
.about-hero {
    position: relative;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    width: 100%; /* Ensure section is full-width */
}
.about-hero-bg-img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.about-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}
.about-hero .container {
    position: relative; z-index: 3;
}
.about-hero-content { max-width: 700px; }
.about-hero-content h1 { font-family: var(--font-bold); font-weight: 800; font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
.about-hero-content p { font-family: var(--font-normal); font-size: 1.1rem; line-height: 1.8; opacity: 0.9; }


/* --- 2. OUR PILLARS SECTION (CREATIVE REDESIGN) --- */
.pillars-section {
    padding: 7rem 0;
    /* No custom background color */
}
.pillars-header { text-align: center; margin-bottom: 4rem; }
.pillars-header h2 { font-family: var(--font-bold); font-size: 2.8rem; color: var(--text-color); }

.mission-vision-grid, .core-values-grid { display: grid; gap: 2rem; }
.mission-vision-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 4rem; }
.core-values-grid { grid-template-columns: repeat(3, 1fr); }

.pillar-card {
    position: relative;
    /* CREATIVE FIX: New elegant gradient background */
    background-image: linear-gradient(145deg, #FFFFFF 0%, #F5F2EC 100%);

    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;

    /* Animation Preparation */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
}

.pillar-icon {
    width: 50px; height: 50px; margin-bottom: 1.5rem;
    border-radius: 12px; display: grid; place-items: center;
    background-color: #FFFBEB;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.pillar-icon svg { width: 24px; height: 24px; color: #D69E2E; transition: color 0.3s ease; }
.pillar-card h3 { font-family: var(--font-bold); font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-color); }
.pillar-card p { font-family: var(--font-normal); line-height: 1.7; color: #555; }

/* REFINED HOVER EFFECT */
.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border-color: var(--primary-yellow);
}
.pillar-card:hover .pillar-icon { background-color: var(--primary-yellow); transform: scale(1.1); }
.pillar-card:hover .pillar-icon svg { color: #fff; }


/* --- RESPONSIVENESS (WITH MOBILE OVERFLOW FIX) --- */
@media (max-width: 992px) {
    .core-values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* HERO FIX 2: Reduce padding on the container on mobile */
    .container { padding: 0 1.5rem; }

    .about-hero { height: 90vh; align-items: flex-end; padding-bottom: 5rem; }
    .about-hero-overlay { background: rgba(0,0,0,0.6); }
    .about-hero-content { text-align: center; }
    .about-hero-content h1 { font-size: 2.5rem; }
    .about-hero-content p { font-size: 1rem; }

    /* MOBILE OVERFLOW FIX */
    .pillars-section {
        padding: 4rem 1.5rem; /* The section itself gets padding */
    }
    .pillars-section .container {
        padding: 0; /* The container inside gets NO padding */
    }

    .mission-vision-grid { grid-template-columns: 1fr; }
    .pillars-header h2 { font-size: 2.2rem; }
}




/* REPLACE your entire previous team section CSS block with this */


/* --- 3. TEAM SECTION (DEFINITIVE REDESIGN) --- */

/* Part 1: Leadership Features (Restored Design) */
.leadership-features { padding-top: 7rem; }
.leader-block { padding: 6rem 0; overflow: hidden; }
.leader-block.alt-bg { background-color: #E9E2D8; }
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.leader-grid.reverse .leader-image { order: 2; }
.leader-image { height: 500px; border-radius: 16px; overflow: hidden; }
.leader-image img { width: 100%; height: 100%; object-fit: cover; }
.leader-title { font-family: var(--font-bold); color: var(--primary-yellow); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.leader-name { font-family: var(--font-bold); font-size: 3.5rem; margin: 0.5rem 0 1.5rem 0; }
.leader-bio { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 2rem; }
.linkedin-link svg { width: 28px; height: 28px; fill: #555; transition: fill 0.3s ease; }
.linkedin-link:hover svg { fill: var(--primary-yellow); }

/* Part 2: Core Teams (Redesigned with correct heights) */
.core-teams-section {
    padding: 7rem 0;
}
.core-team-group:not(:last-child) {
    margin-bottom: 5rem;
}
.core-team-group h3 {
    font-family: var(--font-bold);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: end; /* This is the key: aligns items to the bottom */
}
.team-member-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.member-photo {
    background-color: #1a1a1a; /* Dark placeholder color */
    width: 100%;
}

/* --- THE KEY DETAIL FIX --- */
/* Specific heights for the different card types */
.member-photo.short {
    height: 250px;
}
.member-photo.tall {
    height: 350px;
}

.team-member-card p {
    font-family: var(--font-normal);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Part 3: Global Experts (Updated) */
.experts-section {
    padding: 7rem 0;
    background-color: #1a1a1a;
    color: #fff;
}
.experts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.experts-text h2 {
    font-family: var(--font-bold);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.3;
    color: var(--primary-yellow);
}
.experts-gallery {
    display: grid;
    /* Updated grid for 32 items */
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}
.expert-placeholder {
    background-color: #555;
    aspect-ratio: 1/1;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .leader-grid { grid-template-columns: 1fr; gap: 2rem; }
    .leader-grid.reverse .leader-image { order: -1; }
    .leader-details { text-align: center; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .leadership-features, .core-teams-section, .experts-section { padding: 4rem 0; }
    .leader-block { padding: 4rem 0; }
    .leader-name { font-size: 2.5rem; }
    .experts-grid { grid-template-columns: 1fr; }
    .experts-text { text-align: center; margin-bottom: 2rem; }
    .experts-gallery { grid-template-columns: repeat(4, 1fr); } /* 4 columns on mobile */
}