/* About Page Specific Styles */

/* About Hero */
.about-hero {
    background: #f5f7f9;
    /* Off-white background to match home page */
    padding: 140px 40px 60px;
    /* Matched to Home Page */
    text-align: center;
    position: relative;
    overflow: visible;
    /* Allow content to be seen properly */
}

/* Header Content */
.about-hero-header {
    max-width: 1000px;
    /* Widened to allow text to fit on 2 lines */
    margin: 0 auto;
    /* Removed large bottom margin, handled by h1 or grid margin */
}

.pill-tag {
    display: inline-block;
    background: rgba(54, 117, 255, 0.08);
    color: #3675ff;
    padding: 6px 16px;
    /* Matched to Home Page */
    border-radius: 1000px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.about-hero h1 {
    font-size: 48px;
    /* Matched to Home Page (56px) */
    font-weight: 400;
    line-height: 1.1;
    color: #171717;
    margin-bottom: 70px;
    /* Matched to Home Page */
    letter-spacing: -0.02em;
}

.about-hero h1 .highlight {
    color: #3675ff;
    font-weight: 600;
}

/* Bento Grid */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Made left wider (was 4fr 5fr), now equal split makes left wider relative to before */
    gap: 32px;
    max-width: 1120px;
    /* Matched to Home Page Effective Width */
    margin: 100px auto 0;
    /* Increased top margin significantly to spacing away from title */
}

.grid-item {
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    /* Placeholder background */
}

/* Left Large Item */
.grid-item.large {
    height: 100%;
    min-height: 600px;
    /* Reduced from 800px */
    /* Taller height */
    /* Ensure tall height */
}

/* Right Column */
.grid-column-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
}

/* Image styling */
.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #e2e8f0;
    /* Visible placeholder color when src is empty */
}

.grid-item.small {
    flex: 1;
    /* Both small items take equal height */
    min-height: 284px;
    /* Reduced from 384px */
    /* Taller small items */
    /* Half of large - gap */
}

.grid-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Responsive Grid */
@media (max-width: 900px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 16px;
        /* Tighter gap */
        margin: 60px auto 0;
        /* Less top margin */
    }

    .grid-item.large {
        min-height: 250px;
        /* Much smaller */
    }

    .grid-column-right {
        flex-direction: row;
        /* Side-by-side */
        gap: 16px;
        /* Tighter gap */
    }

    .grid-item.small {
        min-height: 140px;
        /* Compact height */
    }
}

/* Trusted Experts Section */
.trusted-experts-section {
    max-width: 1200px;
    /* Increased to allow 1120px content with padding */
    margin: 0 auto;
    padding: 100px 40px;
}

.experts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 60px;
}

.experts-header h2 {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: #171717;
    flex: 1;
}

.experts-intro {
    flex: 1;
    max-width: 500px;
}

.experts-intro p {
    font-size: 19px;
    color: #667085;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Stats Bar */
.experts-stats {
    background: #e0e9ff;
    /* #e0e9ff Background */
    border-radius: 32px;
    padding: 50px 10px;
    /* Increased vertical padding to make it taller */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    /* Minimal gap */
}

.stat-item {
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cleaned up Stats Logic */
.stat-number {
    font-size: 56px;
    /* Smaller numbers */
    font-weight: 400;
    color: #000000;
    /* Black numbers */
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-number .highlight-blue,
.stat-number .plus {
    color: #3675ff;
    /* Blue highlights/plus */
    font-size: 32px;
    /* Smaller symbols */
}

.stat-label {
    font-size: var(--font-size-l-body);
    /* 19px to match intro text */
    color: #667085;
    /* Match intro text color */
    line-height: 1.7;
    font-weight: 400;
    opacity: 1;
    /* Slight opacity for hierarchy if needed, or pure white */
}

/* Separators */
.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -5px;
    /* Centered in 10px gap */
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #bfdbfe;
    /* Light blue dot */
    border-radius: 50%;
}

/* Story Section */
.story-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content h2 {
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #000000;
}

.story-content p {
    font-size: 19px;
    color: #667085;
    margin-bottom: 24px;
    line-height: 1.7;
}

.story-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-icon {
    opacity: 0.1;
    color: #3675ff;
}

.placeholder-label {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Team Section */
.team-section {
    background: #f8fafc;
    padding: 100px 40px;
    text-align: center;
}

.team-section h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 16px;
}

.team-section .section-subtitle {
    font-size: 19px;
    color: #667085;
    max-width: 600px;
    margin: 0 auto 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.team-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-info {
    padding: 24px;
    text-align: left;
}

.team-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #171717;
}

.team-info .role {
    color: #3675ff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.team-info p {
    font-size: 15px;
    color: #667085;
    line-height: 1.6;
}

/* Values Grid Variant */
.about-values {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-values h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 400;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    padding: 40px;
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #3675ff;
    transform: translateY(-4px);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(54, 117, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    stroke: #3675ff;
    stroke-width: 2;
    fill: none;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #171717;
}

.value-card p {
    color: #667085;
    line-height: 1.7;
    font-size: 19px;
}

/* Responsive */
@media (max-width: 900px) {
    .story-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 40px;
    }

    /* Fix Experts Section Mobile */
    .experts-header {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 40px;
    }

    .experts-intro {
        max-width: 100%;
    }

    /* Fix Stats Mobile - 2x2 Grid */
    .experts-stats {
        flex-wrap: wrap;
        padding: 30px 20px;
        gap: 20px;
        border-radius: 24px;
    }

    .stat-item {
        flex: 1 1 40%;
        /* Minimum 40% width allows 2 per row */
        margin-bottom: 20px;
    }

    .stat-item:not(:last-child)::after {
        display: none;
        /* Remove separators on mobile */
    }

    .stat-number {
        font-size: 42px;
    }

    .stat-label {
        font-size: 16px;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-section .section-tag {
    display: inline-block;
    color: #3675ff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
    position: relative;
    padding-left: 12px;
}

.benefits-section .section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3675ff;
    border-radius: 2px;
}

.benefits-section h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 1.2;
}

.benefits-content-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 600px;
    /* Fixed height for consistency */
}

.benefits-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Popup Box */
.benefits-popup-box {
    position: absolute;
    top: 40px;
    right: 40px;
    background: #3675ff;
    /* Brand Blue */
    color: white;
    padding: 40px;
    border-radius: 24px;
    width: 340px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefits-popup-box.pop-in {
    opacity: 1;
    transform: translateY(0);
}

.benefits-popup-box h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.9;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.benefit-icon-small {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon-small svg {
    width: 20px;
    height: 20px;
    color: white;
    opacity: 0.8;
}

/* Responsive Benefits */
@media (max-width: 900px) {
    .benefits-content-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .benefits-bg-image {
        height: 300px;
    }

    .benefits-popup-box {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 32px 32px;
        transform: none;
        opacity: 1;
        /* Always visible on mobile if needed, or animate normally */
    }
}