/* Team Cards */
.team-section {
    padding: .5rem;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-right: 20px;
    margin-left: 20px;
    font-size: 1.5em;
}

.team-card {
    flex: 0 1 calc(20% - 40px); /* 5 per row */
    max-width: 475px;
    text-align: center;
    padding: 0px;
    box-sizing: border-box;
}

.team-photo {
    width: 100%;
    height: auto;
    border-bottom: 0px solid #eee;
    box-shadow: 5px 5px 4px rgba(0,0,0,0.8);
    border-radius: 1px;
}

    .team-card h3 {
        color: var(--primary-light);
    }

.title {
    color: var(--accent-light);
    font-size: 1.2rem;
}

.license {
    color: var(--primary-light);
    font-size: 1rem;
}

.bio {
    font-size: 16px;
    margin-top: 10px;
}

/* Responsive adjustments */

@media (max-width: 1600px) {
    .team-container {
        justify-content: center;
    }

    .team-card {
        flex: 0 1 calc(25% - 40px); /* 4 per row */
    }
}

@media (max-width: 1500px) {
    .team-container {
        justify-content: center;
    }

    .team-card {
        flex: 0 1 calc(33% - 30px); /* 3 per row */
    }
}

@media (max-width: 1200px) {
    .team-container {
        justify-content: center;
    }

    .team-card {
        flex: 0 1 calc(50% - 20px); /* 2 per row */
    }
}

@media (max-width: 800px) {
    .team-card {
        flex: 0 1 100%; /* 1 per row */
    }
}



/* Mike Valente Tribute */
.tribute-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tribute-image {
    max-width: 200px; /* Adjust based on layout */
    margin-bottom: 20px; /* Added margin-bottom for spacing when stacked */
    border-radius: 5px;
}

.tribute-text {
    flex: 1;
}

    .tribute-text h2 {
        color: var(--primary-dark);
        margin-bottom: 5px;
    }

    .tribute-text h3 {
        color: var(--accent);
        margin-bottom: 15px;
    }

    .tribute-text p {
        color: #333;
        line-height: 1.6;
    }

@media screen and (min-width: 768px) {
    .tribute-section {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .tribute-image {
        margin-right: 20px; /* Restores right margin for side-by-side layout */
        margin-bottom: 0; /* Removes bottom margin when not stacked */
    }
}

.team-header h2 {
    color: var(--primary-dark);
    letter-spacing: .4rem;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
}
.team-header {
    margin-bottom: 4rem;
}

.about-cta-section,
.about-closing-section {
    width: min(calc(100% - 2rem), 1180px);
    margin: 0 auto 2rem;
}
.about-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.about-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

    .about-cta-button:hover,
    .about-cta-button:focus {
        transform: translateY(-1px);
    }

.about-cta-primary {
    background-color: var(--accent);
    color: var(--primary-light);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

    .about-cta-primary:hover,
    .about-cta-primary:focus {
        background-color: var(--accent-dark);
        color: var(--primary-light);
    }

.about-cta-secondary {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--accent-dark);
}

    .about-cta-secondary:hover,
    .about-cta-secondary:focus {
        background-color: var(--accent-light);
        color: var(--primary-dark);
    }

.about-intro-card {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.sub-head {
    color: var(--primary-light);
}