.main-container {
    max-width: 1313px;
    width: 90%;
    margin: 5.5rem auto 3rem auto;
}
@media (min-width: 768px) {
    .main-container {
        margin: 7rem auto 4rem auto;
    }
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    font-family: 'Roboto Serif', serif;
    color: #00346e;
}
@media (min-width: 768px) {
    .page-title {
        font-size: 60pt;
        margin-bottom: 3rem;
    }
}

.page-content h1 {
    font-family: 'Roboto Serif', serif;
    font-weight: 600;
    color: #00346e;
}
@media (min-width: 768px) {
    .page-content h1 {
        font-size: 25pt;
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00346e;
    line-height: 1.25;
    text-align: center;
    margin: 0 0 2rem 0;
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin: 0 0 3rem 0;
    }
}

.team-section {
    background-color: #edf2f9;
    padding: 1rem 0;
    width: 100%;
    margin-top: 0rem;
}
@media (min-width: 768px) {
    .team-section {
        padding: 2rem 0;
        margin-top: 3rem;
    }
}

/* Content Styles mirrored from post_slug.astro */
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}
@media (min-width: 768px) {
    .page-content {
        font-size: 1.15rem;
    }
}
.page-content p,
.page-content ul {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    color: #3d444e;
    margin-bottom: 0.9rem;
    text-align: justify;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .page-content p,
    .page-content ul {
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 18pt;
    }
}
.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    color: #264d88;
    margin-top: 1.2rem;
    margin-bottom: 0.9rem;
}
@media (min-width: 768px) {
    .page-content h2,
    .page-content h3,
    .page-content h4 {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 18pt;
    }
}

/* Team Carousel Styles */
.team-carousel-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
/* Permitimos ver la barra de scroll para facilitar el arrastre */
.team-carousel-container::-webkit-scrollbar {
    height: 8px;
}
.team-carousel-container::-webkit-scrollbar-track {
    background: transparent;
}
.team-carousel-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.team-carousel-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.team-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .team-track {
        padding: 0 5%;
    }
}

.team-card {
    width: 170px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
@media (min-width: 768px) {
    .team-card {
        width: 260px;
    }
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background-color: #e2e8f0;
}
@media (min-width: 768px) {
    .team-image {
        height: 320px;
    }
}

.team-info {
    padding: 0.5rem;
    background-color: #00346e;
    color: white;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .team-info {
        padding: 1rem;
    }
}

.team-name {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
@media (min-width: 768px) {
    .team-name {
        font-size: 1.2rem;
    }
}

.team-role {
    font-size: 0.7rem;
    color: #bae6fd;
}
@media (min-width: 768px) {
    .team-role {
        font-size: 0.85rem;
    }
}
