/* About Section */
.about {
    padding: 6rem 0;
    background: #F6F3F2;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.25rem;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.milestones {
    margin-bottom: 4rem;
}

.milestones h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary-color);
    margin-left: -2px;
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border: 4px solid #EFE7E5; /* Match section background */
    border-radius: 50%;
    margin-left: -8px;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 20px);
    padding: 1rem;
    border-radius: 0.5rem;
    background: white; /* Or a light color */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 20px);
    text-align: left;
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Responsive styles for timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px; /* Align line to the left on smaller screens */
        margin-left: 0;
    }
    
    .timeline-item {
        margin-left: 40px; /* Space for marker and line */
    }
    
    .timeline-marker {
        left: 20px; /* Align marker to the left */
        margin-left: -6px; /* Adjust for smaller size */
        width: 12px; /* Smaller size */
        height: 12px; /* Smaller size */
        background: var(--primary-color); /* Change color on mobile */
        border-color: #F6F3F2; /* Match light background */
        display: none;
    }
    
    .timeline-content {
        width: 100%;
        padding: 1rem; /* Increased padding */
        /* Add a pseudo-element or border for connection */
        border-left: 4px solid var(--secondary-color); /* Add a left border for visual connection */
        box-shadow: none; /* Remove box shadow for cleaner look on mobile */
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 0; /* Content takes full width */
        text-align: left; /* Align text to left */
        margin-bottom: 1.5rem; /* Added vertical spacing between content boxes */
    }
    
    .timeline-item:last-child .timeline-content {
        margin-bottom: 0; /* No bottom margin on the last item */
    }
}

.team {
    margin-bottom: 4rem;
}

.team h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    transition: transform 0.2s;
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 350px;
    margin: 0 auto;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    border: 4px solid var(--primary-color);
    display: block;
}

.team-header-info {
    cursor: pointer;
    position: relative;
    padding-right: 25px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    text-align: center;
}

.team-member .role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
}

.team-member .bio {
    color: var(--light-text);
    line-height: 1.6;
}

.team-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Styling for icon links */
.team-member .team-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    border-radius: 50%; /* Make them circular */
    transition: all 0.2s ease;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    padding: 0; /* Remove padding from the link */
}

.team-member .team-link-icon:hover {
    background-color: var(--primary-color);
    /* If your icons are single-color, you might need to change their color here too */
}

.team-member .team-icon {
    width: 20px; /* Adjust size relative to link container */
    height: 20px; /* Adjust size relative to link container */
    display: block; /* Ensure the image takes up space */
}

/* Keep the original .team-link styles in case they are used elsewhere */
.team-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.team-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.about-cta {
    text-align: center;
}

/* Responsive Design for About */
@media (max-width: 768px) {
    .about {
        padding: 4rem 0;
    }
    
    .about-description {
        font-size: 1.125rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .team-photo {
        width: 100px;
        height: 100px;
        display: block;
        margin: 0 auto 0.75rem;
    }

    .team-header-info {
        padding-right: 20px; /* Adjust space for smaller indicator */
        margin-bottom: 0.75rem; /* Adjust space below header */
    }

    .expand-indicator {
        right: 0;
    }

    .team-collapsible-content {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
}

.team-header-info,
.team-member h4,
.team-member .role {
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
} 