/* Players Page Styling */

/* Overall Section */
.players-section {
    max-width: 1600px; /* Increased overall width */
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Section Title */
.players-section h2 {
    color: #2d3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Grid Layout */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Increased min card size */
    gap: 20px;
    justify-content: center;
}

/* Player Card */
.player-card {
    background: #fefefe;
    border: 2px solid #c49a6c; /* Accent color border */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    text-align: left;
}

.player-card:hover {
    transform: translateY(-5px);
}

.player-card h3 {
    color: #2d3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Accordion for Airline Panels */
.airline-panel {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.airline-header {
    background: #c49a6c; /* Accent background */
    color: #fff;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airline-header h4 {
    font-size: 1.2rem;
    margin: 0;
}

.toggle-indicator {
    font-size: 1rem;
    margin-left: 10px;
}

.airline-details {
    background: #f9f9f9;
    padding: 15px;
    text-align: left;
}

/* Two-column layout for airline details */
.two-column {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.two-column .column {
    flex: 1;
}

/* Lists in Airline Details */
.airline-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}

.airline-details li {
    background: #f0f0f0;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Exclusive Hub Bubble */
.exclusive-hub {
    display: inline-block;
    background-color: #c49a6c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 5px;
    border: 1px solid #c49a6c; /* Slight border using your accent color */
}

/* Responsive Adjustments for Medium Devices (469px to 1024px) */
@media (min-width: 469px) and (max-width: 1024px) {
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .player-card {
        padding: 15px;
    }
    .player-card h3 {
        font-size: 1.3rem;
    }
    .airline-header h4 {
        font-size: 1rem;
    }
    .toggle-indicator {
        font-size: 0.9rem;
    }
    .airline-details {
        padding: 10px;
    }
    .airline-details li {
        font-size: 0.8rem;
    }
}

/* Responsive Adjustments for Small Devices (up to 468px) */
@media (max-width: 468px) {
    .players-section {
        padding: 15px;
    }
    .players-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .player-card {
        padding: 10px;
    }
    .player-card h3 {
        font-size: 1.2rem;
    }
    .airline-header h4 {
        font-size: 0.9rem;
    }
    .airline-details {
        padding: 8px;
    }
    .airline-details li {
        font-size: 0.75rem;
    }
}

/* For large screens, force 5 cards per row */
@media (min-width: 1200px) {
    .players-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}