/* Team Matambuu - Professional Cycling Team Design */

/* Redesigned Intro Section */
.matambuu-intro-section {
    padding: 110px 0;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.matambuu-intro-section .auto-container {
    position: relative;
    z-index: 2;
}

.matambuu-about-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 28px;
    padding: 48px 52px 30px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.matambuu-about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 42px;
}

.matambuu-about-copy h2 {
    font-size: 3rem;
    line-height: 1.1;
    color: #171a22;
    margin: 0 0 20px;
    font-weight: 800;
}

.matambuu-about-copy p {
    margin: 0 0 14px;
    color: #565656;
    font-size: 17px;
    line-height: 1.72;
}

.matambuu-about-copy p:last-child {
    margin-bottom: 0;
}

.matambuu-about-photos {
    position: relative;
    min-height: 380px;
}

.matambuu-photo-main {
    width: 78%;
    height: 365px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    display: block;
}

.matambuu-photo-tilt {
    position: absolute;
    right: 6px;
    bottom: -2px;
    width: 52%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #ffffff;
    transform: rotate(12deg);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.matambuu-about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #ededed;
}

.matambuu-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 96px;
}

.matambuu-stat-item h3 {
    margin: 0 0 6px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #171a22;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.matambuu-stat-item h3 span {
    color: #b30000;
}

.matambuu-stat-item p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.matambuu-flight-line {
    position: absolute;
    left: 45%;
    bottom: 88px;
    color: #b30000;
    opacity: 0.35;
    font-size: 22px;
}

/* About Team Section */
.about-team-section {
    padding: 110px 0;
    background: #f7f8fa;
    position: relative;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    position: relative;
}

.about-image-stack {
    min-height: 560px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #ececec;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.about-img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.about-main-img {
    width: 84%;
    height: 525px;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.about-secondary-img {
    position: absolute;
    right: 6px;
    bottom: 40px;
    width: 45%;
    height: 265px;
    border-radius: 14px;
    border: 5px solid #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.about-text {
    padding-left: 0;
}

.text-content {
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 34px 32px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.about-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4d4d4d;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.kicker-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff1f1;
    border: 1px solid #f1c9cb;
    color: #b30000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex: 0 0 auto;
}

.about-title-large {
    font-size: 2.65rem;
    margin-bottom: 1rem;
    color: #161922;
}

.about-brand-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 20px;
}

.about-brand-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #6c161a;
    background: #fff6f6;
    border: 1px solid #f0d1d3;
    border-radius: 999px;
    padding: 6px 11px;
}

.about-brand-points i {
    color: #c30c14;
}

.about-values-list {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.about-value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 14px 14px 12px;
    border: 1px solid #eeeeee;
    border-left: 3px solid #c30c14;
    border-radius: 12px;
    background: #ffffff;
}

.about-value-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #fff1f1;
    color: #b30000;
    border: 1px solid #f3d0d2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.about-value-item h4 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    line-height: 1.2;
    color: #171a23;
}

.about-value-item p {
    margin: 0;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.62;
}

.section-title {
    color: #333;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #b30000;
    border-radius: 2px;
}

.section-description {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Founder's Vision & Mission Section */
.founder-vision-mission-section {
    padding: 80px 0;
    background: #f5f6f8; /* light gray */
}

.founder-vision-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    align-items: start;
}

/* Left Column: Founder's Vision Text */
.founder-vision-left {
    padding-right: 20px;
}

.founder-vision-left .section-title {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.founder-vision-content {
    max-width: 600px;
}

.founder-vision-left .founder-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Right Column: Founder's Portrait & Info */
.founder-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

.founder-right .founder-info {
    text-align: center;
}

.founder-right .founder-name {
    font-size: 2rem;
    font-weight: 700;
    color: #d70006;
    margin-bottom: 10px;
}

.founder-right .founder-role {
    font-size: 1.2rem;
    font-weight: 500;
    color: #777;
    margin: 0;
}

/* Vision & Mission Cards */
.vision-mission-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-image {
    position: relative;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-top: -100px; /* lift image even higher */
}

.founder-image:hover {
    transform: none;
    box-shadow: none;
}

.founder-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

/* Signature overlay on image */
/* signature overlay removed per latest request */

.vision-card,
.mission-card {
    background: #ffffff;
    padding: 36px 34px;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vision-card::before,
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #b30000;
}

.vision-card::after,
.mission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(179, 0, 0, 0.22);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(179, 0, 0, 0.16);
    border-color: #b30000;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff2f2;
    border: 1px solid #ffd9d9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 1.1rem;
    color: #b30000;
}

.card-title {
    color: #1f1f1f;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.card-description {
    color: #4d4d4d;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Focus Areas Section */
.focus-areas-section {
    padding: 80px 0;
    background: #ffffff;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.focus-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b30000 0%, #dc3545 100%);
}

.focus-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(179, 0, 0, 0.15);
    border-color: #b30000;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.focus-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.focus-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.focus-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(179, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2.5rem;
    color: #fff;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px 15px 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #fff;
    color: #b30000;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #b30000;
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-social {
    background: #e1306c;
    color: #fff;
    border-color: #e1306c;
}

.btn-social:hover {
    background: #c13584;
    border-color: #c13584;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .matambuu-intro-section {
        padding: 76px 0;
    }

    .matambuu-about-card {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .matambuu-about-top {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 28px;
    }

    .matambuu-about-copy h2 {
        font-size: 2.2rem;
    }

    .matambuu-about-copy p {
        font-size: 16px;
        line-height: 1.65;
    }

    .matambuu-about-photos {
        min-height: auto;
    }

    .matambuu-photo-main {
        width: 100%;
        height: 360px;
    }

    .matambuu-photo-tilt {
        position: relative;
        right: auto;
        bottom: auto;
        width: 74%;
        height: 210px;
        margin: -44px 0 0 auto;
        transform: rotate(8deg);
    }

    .matambuu-about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .matambuu-stat-item h3 {
        font-size: 36px;
    }

    .matambuu-flight-line {
        display: none;
    }

    .about-team-section {
        padding: 78px 0;
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-stack {
        min-height: auto;
    }

    .about-main-img {
        width: 100%;
        height: 400px;
    }

    .about-secondary-img {
        position: relative;
        right: auto;
        bottom: auto;
        width: 74%;
        height: 215px;
        margin: -58px 0 0 auto;
    }
    
    .about-text {
        padding-left: 0;
    }
    
    .text-content {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .about-title-large {
        font-size: 2.1rem;
    }

    .about-value-item h4 {
        font-size: 1.15rem;
    }

    .text-content {
        padding: 28px 22px;
    }
    
    .founder-vision-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .founder-vision-left {
        padding-right: 0;
        text-align: center;
    }
    
    .founder-vision-left .section-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .founder-vision-left .founder-description {
        text-align: center;
        font-size: 16px;
    }
    
    .founder-right {
        gap: 20px;
    }
    
    .vision-mission-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .founder-img {
        height: 450px;
    }
    
    .founder-image {
        margin-top: 20px;
    }
    
    .vision-card,
    .mission-card {
        padding: 30px 20px;
    }
    
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
        text-align: center;
    }
    
    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .matambuu-about-copy h2 {
        font-size: 1.9rem;
    }

    .matambuu-photo-main {
        height: 300px;
    }

    .matambuu-photo-tilt {
        width: 82%;
        height: 172px;
        margin-top: -38px;
        transform: rotate(7deg);
    }

    .matambuu-about-stats {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .matambuu-stat-item h3 {
        font-size: 34px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-main-img {
        height: 320px;
    }

    .about-secondary-img {
        width: 82%;
        height: 176px;
        margin-top: -42px;
    }

    .about-kicker {
        font-size: 14px;
    }

    .about-brand-points {
        gap: 10px;
        margin-bottom: 22px;
    }

    .about-title-large {
        font-size: 1.75rem;
    }

    .about-value-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .about-value-item h4 {
        font-size: 1.05rem;
    }

    .about-value-item p {
        font-size: 15px;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .vision-card,
    .mission-card {
        padding: 30px 20px;
    }
    
    .focus-card {
        padding: 25px 20px;
    }
}

/* Legacy styles for other sections */
.founder-section {
    padding: 80px 0;
    background: #fff;
}

.founder-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    margin: 0 auto;
    max-width: 1000px;
    border: 1px solid rgba(179, 0, 0, 0.1);
}

.founder-info h3 {
    color: #b30000;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.founder-role {
    font-size: 1.1rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 1.5rem;
}

.founder-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.impact-card {
    background: linear-gradient(145deg, #ffffff 0%, #fdfdfd 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #b30000;
}

.impact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* Partnerships Section */
.partnerships-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.partnerships-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    margin: 0 auto;
    max-width: 1000px;
    border: 1px solid rgba(179, 0, 0, 0.1);
}

.partnership-content h3 {
    color: #b30000;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.partnership-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Get Involved Section */
.get-involved-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #b30000 0%, #8b0000 100%);
    color: #fff;
}

.involved-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.involved-card .section-title {
    color: #fff;
    margin-bottom: 2rem;
}

.involved-card .section-title::after {
    background: #fff;
}

.involved-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.involved-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: #b30000;
    color: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .founder-card,
    .partnerships-card {
        padding: 2rem 1.5rem;
        margin: 0 15px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .involved-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .founder-section,
    .impact-section,
    .partnerships-section,
    .get-involved-section {
        padding: 60px 0;
    }
    
    .founder-info h3 {
        font-size: 1.6rem;
    }
    
    .impact-card {
        padding: 2rem 1.5rem;
    }
    
    .impact-icon {
        font-size: 2.5rem;
    }
}