@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
    background: #f9fafb;
    margin-bottom: 2rem;
    box-sizing: border-box;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    color: #005b2e;
    text-align: center;
    margin: 2rem 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.management-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.management-intro {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    justify-items: center;
}

.manager-card {
    perspective: 1000px;
    height: 350px;
    width: 100%;
    max-width: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.manager-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

.card-back {
    transform: rotateY(180deg);
    background: #e8f0ee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.manager-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    transform: scale(0.85);
    margin-bottom: 1rem;
    background: #fff;
    border: 2px solid #e8f0ee;
}

.card-front h3, .card-back h3 {
    font-size: 1.4rem;
    color: #005b2e;
    margin: 0 0 0.5rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.card-front p {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 1rem;
    font-family: 'Roboto', sans-serif;
}

.bio-button {
    background: #005b2e;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bio-button:hover {
    background: #003018;
}

.bio-content {
    font-size: 1rem;
    color: #333;
    font-family: 'Roboto', sans-serif;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.bio-content p {
    margin: 0.5rem 0;
}

html, body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .management-intro {
        font-size: 1.1rem;
    }

    .manager-card {
        height: 420px;
        max-width: 320px;
    }

    .card-front h3, .card-back h3 {
        font-size: 1.4rem;
    }

    .card-front p {
        font-size: 1.1rem;
    }

    .bio-button {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
    }

    .bio-content {
        font-size: 1rem;
    }

    .management-grid {
        gap: 2rem;
    }

    .manager-photo {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 479px) {
    .manager-card {
        height: 400px;
    }

    .card-front h3, .card-back h3 {
        font-size: 1.3rem;
    }

    .manager-photo {
        width: 140px;
        height: 140px;
    }
}