/* Contestant Profiles Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #FFFFF0;
    line-height: 1.6;
    color: #333;
}

.contestants-page {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.content-wrapper {
    width: 100%;
    max-width: 1280px;
    padding: 0 20px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 10px;
}

.page-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.25em;
    color: #000000;
    text-align: left;
    padding-bottom: 20px;
}

.contestants-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contestant-card {
    background: transparent;
    width: 100%;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: transparent;
    border-radius: 8px;
    padding: 0;
    width: 100%;
}

.contestant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 773px;
}

.contestant-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.1111111111111112em;
    color: #000000;
    margin: 0;
    height: 20px;
    display: flex;
    align-items: center;
}

.contestant-bio {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #656363;
    margin: 0;
    text-align: justify;
}

.contestant-image {
    flex-shrink: 0;
    width: 366px;
    height: 171px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.contestant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Special styling for cards with different text heights */
.contestant-card:nth-child(2) .card-content {
    align-items: center;
}

.contestant-card:nth-child(2) .contestant-info {
    max-width: 776px;
}

.contestant-card:nth-child(2) .contestant-image {
    width: 368px;
    height: 171px;
}

.contestant-card:nth-child(3) .contestant-info {
    max-width: 776px;
}

.contestant-card:nth-child(3) .contestant-image {
    width: 368px;
    height: 171px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contestants-page {
        padding: 30px 0;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 0 40px;
    }

    .card-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
    }

    .contestant-info {
        max-width: 100%;
        text-align: center;
    }

    .contestant-bio {
        text-align: left;
    }

    .contestant-image {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .contestants-page {
        padding: 20px 0;
    }

    .content-wrapper {
        padding: 0 20px;
    }

    .page-title {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }

    .contestant-card {
        padding: 12px;
    }

    .contestants-grid {
        gap: 12px;
    }

    .contestant-name {
        font-size: 16px;
        text-align: center;
    }

    .contestant-bio {
        font-size: 14px;
    }

    .contestant-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .contestant-name {
        font-size: 14px;
    }

    .contestant-bio {
        font-size: 13px;
    }

    .contestant-image {
        height: 180px;
    }
}