/* Timeline Styles */
.timeline {
    border-left: 2px solid var(--slate-200);
    padding-left: 2rem;
    margin-left: 1rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 9px);
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
}

/* Value Grid */
.values-section {
    background: var(--primary);
    color: white;
    padding: 5rem 0;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-top: 4px solid var(--accent);
    text-align: center;
}

.service-card-left:hover {
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }
}

.brands-section {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--slate-200);
}

.brands-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.brand-list {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    filter: grayscale(1);
    opacity: 0.7;
    transition: 0.5s;
}

.brand-list:hover {
    filter: grayscale(0);
    opacity: 1;
}

.brand-item {
    font-weight: 900;
    font-size: 1.5rem;
    font-style: italic;
    border: 2px solid var(--slate-300);
    padding: 0.25rem 1rem;
}







/* --- Legacy Section Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.sub-label {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    /* Responsive font size */
    margin: 1rem 0;
}

/* --- Leadership Cards --- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leadership-card {
    display: flex;
    flex-direction: row;
    /* Horizontal on desktop */
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.leadership-card .card-img {
    width: 45%;
    min-height: 250px;
    position: relative;
}

.leadership-card .card-body {
    width: 55%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

    /* Stack the Legacy/Timeline columns */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adjust the leadership cards to stack vertically */
    .leadership-card {
        flex-direction: column;
    }

    .leadership-card .card-img,
    .leadership-card .card-body {
        width: 90%;

    }

    .leadership-card .card-img {
        min-height: 200px;
    }

    /* Adjust typography for mobile */
    .hero h1 {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 1.5rem;
        margin-left: 0.5rem;
    }
}