/* ========================================================= */
/* --- DEDICATED Styles for About Page (v3 - FINAL VERSION) --- */
/* This is the definitive version with the "Trust Showcase" design. */
/* ========================================================= */

.about-hero .container,
.legacy-section .container,
.trust-showcase-section .container,
.founder-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* --- Immersive Hero Section --- */
.about-hero {
    position: relative;
    padding: 6rem 1rem;
    background-image: linear-gradient(rgba(10, 96, 171, 0.8), rgba(0, 74, 141, 0.8)), url('..//images/about/about-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
    max-width: 800px;
    margin: 0 auto;
}


/* ==================================================================== */
/* --- ENHANCED Legacy Section ("Animated Legacy Timeline") --- */
/* ==================================================================== */

/* ==================================================================== */
/* --- FINAL: One-by-One Scrolling Story Section --- */
/* ==================================================================== */

.story-reveal-section {
    padding: 5rem 1rem;
    background-color: #f8f9fa;
    overflow: hidden;
    /* Contains animations */
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 5rem auto;
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.story-block:last-child {
    margin-bottom: 0;
}

/* Reverse layout for alternating blocks */
.story-block.reverse .story-image {
    order: 2;
}

.story-block.reverse .story-content {
    order: 1;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.story-content h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.story-content h3 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.story-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.story-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.story-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.story-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--green);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .story-block {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .story-block.reverse .story-image,
    .story-block.reverse .story-content {
        order: initial;
        /* Reset order */
    }

    .story-content h3 {
        font-size: 1.8rem;
    }
}




/* =================================================================== */
/*         START: COMPLETE CSS FOR BOTH SECTIONS                  */
/* =================================================================== */


/* === CSS FOR: Trust Showcase Section (V2 - Unique Redesign) === */
.trust-showcase-section {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.legacy-panel {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.legacy-number {
    font-family: var(--font-primary);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.legacy-text {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 1px;
    opacity: 0.9;
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trust-point-icon {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.tpi-icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaf0f6;
    color: var(--color-primary);
}

.tpi-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.trust-point-icon span {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (min-width: 992px) {
    .trust-showcase-section {
        padding: 6rem 1rem;
    }

    .trust-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }

    .trust-point-icon span {
        font-size: 1.1rem;
    }
}

/* ==================================================================== */
/* --- FINAL Founder Section ("Emerald Prestige Panel" - Green) --- */
/* ==================================================================== */

/* === CSS FOR: Founder Showcase Section (NEW) === */
.founder-section {
    padding: 4rem 1rem;
    background: linear-gradient(175deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
}

.founder-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.founder-image-wrapper {
    margin-bottom: 2.5rem;
}

.founder-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1rem auto;
}

.founder-name {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.founder-title {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.founder-bio {
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.founder-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.founder-achievements h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.achievements-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

.achievements-list li {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: background-color 0.3s ease;
}

.achievements-list li:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.achievements-list .icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: #ffffff;
}

@media (min-width: 768px) {
    .founder-section {
        padding: 6rem 1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .achievements-list {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}


/* ==================================================================== */
/* --- FINAL, UNIFIED: "Our Commitment" Section --- */
/* ==================================================================== */

/* 1. Section Styling */
.csr-section {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    /* Light grey background to make cards pop */
}

.csr-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.csr-section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.csr-section-header p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* 2. The Card Grid Layout */
.commitment-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. The Unified Card Style (Applied to ALL cards) */
.commitment-card {
    /* The signature blue gradient */
    background-image: linear-gradient(135deg, #0d6ace, #00408a);
    color: white;
    /* All text inside is white */

    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 74, 141, 0.15);
}

/* 4. Shared Icon Styling */
.commitment-card .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1.5rem;

    /* Icon has a white background with a blue SVG */
    background-color: white;
    color: var(--color-primary);
}

.commitment-card .icon svg {
    width: 30px;
    height: 30px;
}

/* 5. Shared Text Styling (Headings & Paragraphs) */
.commitment-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    /* Ensures heading is white */
}

.commitment-card p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    /* Slightly transparent white for readability */
}



/* ==================================================================== */
/* --- "Chashma Mukth Bharat" Initiative Section --- */
/* ==================================================================== */

/* Define the new brand colors for this section */
:root {
    --green: #25D366;
    --saffron: #FCAE03;
}

.initiative-section {
    padding: 3rem 1rem;
    background-color: var(--color-bg-light);
    /* The requested light grey background */
    border-top: 1px solid var(--color-bg-dividers);
}

.initiative-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile-first: 1 column */
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- The Two-Column Layout for Desktop --- */
@media (min-width: 992px) {
    .initiative-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* --- Mobile Responsiveness: Image on top, Text below --- */
@media (max-width: 991px) {
    .initiative-image-wrapper {
        order: 1;
        /* Image appears first */
    }

    .initiative-content {
        order: 2;
        /* Text appears second */
    }
}


/* --- Right Column: The Image --- */
.initiative-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.initiative-image-wrapper img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius);
}


/* --- Left Column: The Content --- */
.initiative-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.initiative-content .main-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

/* Highlighted text style */
.initiative-content .highlight-text {
    font-weight: 700;
    color: var(--green);
}

/* The Key Contribution Points List */
.contribution-points {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contribution-points li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contribution-points .icon {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 5px;
    /* Aligns icon with text */
}

.contribution-points .point-title {
    display: block;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}


/* The Call-to-Action Button */
.btn-initiative {
    display: inline-block;
    background-color: var(--saffron);
    color: white;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(252, 174, 3, 0.3);
    transition: all 0.3s ease;
}

/* Premium hover effect */
.btn-initiative:hover {
    transform: translateY(-4px);
    background-color: var(--green);
    box-shadow: 0 10px 30px rgba(252, 174, 3, 0.4);
}



/* ==================================================================== */
/* --- FINAL "Tree Branching" Services Section --- */
/* ==================================================================== */


/* 3. The Branch Element */
.tree-branch {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* The "node" or "bud" where the branch connects to the trunk */
.tree-branch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 30px;
    background-color: var(--color-primary);
    border: 5px solid var(--color-primary);
    /* Signature blue border */
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}

.tree-branch:hover::after {
    transform: scale(1.15);
}

/* 4. Branch Positioning */
.tree-branch.left {
    left: 0;
}

.tree-branch.right {
    left: 50%;
}

/* Position the node on the correct side */
.tree-branch.left::after {
    right: -12px;
}

.tree-branch.right::after {
    left: -12px;
}

/* 5. The Service Card Styling */
.tree-branch .service-category-card {
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 74, 141, 0.08);
    transition: transform 0.3s ease;
}

.tree-branch:hover .service-category-card {
    transform: translateY(-5px);
}

/* 6. Card Content Styling */
.service-category-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.service-category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-category-card li {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}


/* ==================================================================== */
/* --- FINAL "Tree Branching" Services Section --- */
/* ==================================================================== */

/* ... (The main section and trunk styles remain the same) ... */

/* HEADING STYLES - This block ensures the title is centered and responsive */
.services-section-header {
    text-align: center;
    /* Centers the text */
    max-width: 700px;
    /* Constrains width for readability */
    margin: 0 auto 4rem auto;
    /* Centers the whole block horizontally */
}

.services-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.services-section-header p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-light);
}


/* --- The rest of the tree-branching styles --- */

/* Main Section Container */
.services-tree-section {
    padding: 6rem 1rem;
    background-color: #f8f9fa;
    position: relative;
}

/* The central "trunk" line */
.services-tree-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--color-primary-dark);
    z-index: 0;
}

/* The Timeline/Tree Container */
.service-tree-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* ... (All other styles for .tree-branch, .service-category-card, etc., remain exactly as provided before) ... */

/* Mobile Responsive Design */
@media (max-width: 768px) {

    /* On mobile, headings become slightly smaller automatically */
    .services-section-header h2 {
        font-size: 2.2rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .services-section-header p {
        font-size: 1.1rem;
    }

    /* Move the trunk to the far left */
    .services-tree-section::before {
        left: 20px;
    }

    /* Make branches full-width and add padding */
    .tree-branch {
        width: 100%;
        padding-left: 55px;
        padding-right: 0px;
    }

    /* Place all branches on the left of the trunk */
    .tree-branch.right {
        left: 0;
    }

    /* Align all nodes with the trunk */
    .tree-branch.left::after,
    .tree-branch.right::after {
        left: 8px;
    }
}

/* --- Mobile Responsive Design --- */
@media (max-width: 768px) {

    /* Move the trunk to the far left */
    .services-tree-section::before {
        left: 20px;
    }

    /* Make branches full-width and add padding */
    .tree-branch {
        width: 100%;
        padding-left: 55px;
        padding-right: 0px;
    }

    /* Place all branches on the left of the trunk */
    .tree-branch.right {
        left: 0;
    }

    /* Align all nodes with the trunk */
    .tree-branch.left::after,
    .tree-branch.right::after {
        left: 8px;
    }
}