/* ==========================================================================
   About Page Stylesheet - Refined & Classic
   ========================================================================== */

/* 1. Hero Section */
.about-hero {
    background-color: var(--secondary-color); /* Set a solid, dark background */
    height: 50vh; /* Adjusted height for a solid color banner */
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-align: center;
}
.about-hero h1 {
    font-size: 3.2rem; /* Larger for more impact */
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
}
.about-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 2. Our Story Section */
.story-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.story-image {
    flex: 1;
    border-radius: 8px;
    box-shadow: var(--shadow-hover); /* Use refined shadow from main styles */
    overflow: hidden;
}
.story-content {
    flex: 1.2; /* Give text a bit more space */
}
.story-content .section-title {
    text-align: left;
    margin-bottom: 1rem;
}
.story-content .section-divider {
    margin: 0 0 1.5rem 0; /* Align left */
}
.story-content p {
    margin-bottom: 1rem;
}

/* 3. NEW: Timeline Section */
.timeline-section {
    background-color: #fff; /* A subtle off-white or white background */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
/* The central line of the timeline */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
/* The dot on the timeline */
.timeline-dot {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 4px solid var(--accent-color);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}
/* Position items to the left */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
/* Position dots correctly for each side */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}
.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.timeline-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* 4. Mission & Values Section */
.values-section {
    background-color: var(--bg-color); /* Matches main background */
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.value-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 2.5rem 2rem;
    transition: var(--transition);
}
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}
.value-card .icon {
    font-size: 2.8rem; /* Larger icon */
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1;
}
.value-card h3 {
    margin-bottom: 0.5rem;
}

/* 5. Call to Action Banner */
.cta-banner {
    background-color: var(--primary-color);
    text-align: center;
    padding: 5rem 1rem;
    color: var(--light-text-color);
}
.cta-banner h2 {
    color: var(--light-text-color);
    margin-bottom: 1rem;
}
.cta-subtitle {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* 6. Responsive Adjustments */
@media (max-width: 768px) {
    /* Add horizontal padding for all sections on mobile */
    .section.container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .parallax {
        background-attachment: scroll; /* Disable parallax on mobile */
    }
    .story-grid {
        flex-direction: column;
    }
    .story-content .section-title {
        text-align: center;
    }
    .story-content .section-divider {
        margin: -1rem auto 2rem;
    }
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Responsive Timeline */
    .timeline::after {
        left: 20px; /* Move line to the left */
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0 !important; /* Override inline style */
        text-align: left !important;
    }
    .timeline-dot {
        left: 11px !important; /* Position dot on the line */
        right: auto !important;
    }
}