/* /home/mgijimi/my_flask_app/static/assets/css/aboutus.css */

/* About Hero Section (unchanged) */
.about-hero {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('/static/assets/images/about-hero-bg.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* About Sections with Wider Cards */
.about-sections {
    padding: 80px 0;
    background-color: var(--primary-white);
    position: relative;
}

.about-sections .section-title {
    margin-bottom: 20px;
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 60px auto;
    line-height: 1.7;
    color: var(--text-color);
}

/* Expanded Card Styling */
.about-card {
    display: flex;
    align-items: flex-start;
    margin: 0 auto 60px;
    position: relative;
    padding: 40px;
    border-radius: 12px;
    background-color: var(--light-gray);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-red);
    width: 90%; /* Wider cards that use more space */
    max-width: 1100px; /* Increased maximum width */
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.about-icon {
    width: 70px;
    height: 70px;
    min-width: 70px; /* Base min-width */
    background-color: var(--primary-red);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    margin-right: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-content {
    flex-grow: 1;
}

.about-content h3 {
    font-size: 1.6em;
    color: var(--primary-black);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-content p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color);
}

.about-content p strong {
    color: var(--primary-red);
}

/* Reverse layout */
.about-card.reverse-layout {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 5px solid var(--primary-red);
}

.about-card.reverse-layout .about-icon {
    margin-right: 0;
    margin-left: 30px;
}

/* ===== Perfect Timeline Markers ===== */
.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-yellow);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 0 3px var(--primary-red), 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    width: 120px;
    text-align: center;
    white-space: nowrap;
    right: -140px; /* Perfectly positioned outside card */
}

.about-card.reverse-layout .timeline-marker {
    left: -140px; /* Perfectly positioned outside card */
    right: auto;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .about-card {
        width: 85%;
        max-width: 1000px;
    }
    .timeline-marker {
        right: -130px;
        width: 110px;
    }
    .about-card.reverse-layout .timeline-marker {
        left: -130px;
    }
}

@media (max-width: 1200px) {
    .about-card {
        width: 90%;
    }
    .timeline-marker {
        right: -120px;
        width: 110px;
    }
    .about-card.reverse-layout .timeline-marker {
        left: -120px;
    }
}

@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    .about-hero p {
        font-size: 1.1rem;
    }
    .about-card {
        flex-direction: column;
        text-align: center;
        width: 90%;
        margin: 0 auto 40px;
        padding: 30px;
        border-left: 5px solid var(--primary-red);
        border-right: none;
    }
    .about-icon {
        margin: 0 auto 20px;
        min-width: 0; /* ADDED: Reset min-width to allow shrinking */
    }
    .about-card.reverse-layout {
        flex-direction: column;
        border-right: none;
        border-left: 5px solid var(--primary-red);
    }
    .about-card.reverse-layout .about-icon {
        margin-left: auto;
    }
    .timeline-marker {
        position: static;
        margin: 0 auto 20px;
        width: fit-content;
        box-shadow: none;
        background-color: transparent;
        color: var(--primary-black);
        font-size: 1em;
        transform: none;
        white-space: normal;
        right: auto;
        left: auto;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.2rem;
    }
    .about-hero p {
        font-size: 1rem;
    }
    .about-sections {
        padding: 60px 0;
    }
    .about-sections .section-title {
        font-size: 2rem;
    }
    .section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .about-icon {
        width: 60px;
        height: 60px;
        min-width: 0; /* ADDED: Ensure min-width is reset here too */
        font-size: 2em;
    }
    .about-content h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 100px 0 50px;
    }
    .about-hero h1 {
        font-size: 1.8rem;
    }
    .about-hero p {
        font-size: 0.9rem;
    }
    .about-sections {
        padding: 40px 0;
    }
    .about-sections .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .section-description {
        margin-bottom: 30px;
    }
    .about-card {
        padding: 20px;
        margin-bottom: 30px;
        width: 95%;
    }
    .about-icon {
        width: 50px;
        height: 50px;
        min-width: 0; /* ADDED: Ensure min-width is reset here too */
        font-size: 1.5em;
    }
    .about-content h3 {
        font-size: 1.2em;
    }
}

