.container {
    display: flex;
    min-height: 100vh;
    gap: 20px; 
    padding: 20px;
}
.aperture-half-pane {
    flex: 1; 
    padding: 20px;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}

.winners-container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-bottom: 2px solid #333;
    margin-bottom: 10px;
}

.header-cell {
    font-weight: bold;
    padding: 10px;
}

.winner-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 15px 10px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.student-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.student-cell img {
    height: auto;
    width: 160px;
    border-radius: 8px;
}

.student-name {
    font-weight: bold;
}

.winner-row > div {
    padding: 8px;
}

/* Responsive design for tablets */

@media (max-width: 768px) {
    .header-row, .winner-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .header-row {
        display: none; /* Hide headers on mobile */
    }
    .winner-row {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 8px;
        background-color: #f9f9f9;
    }
    .winner-row > div::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #555;
    }
    .student-cell {
        align-items: flex-start;
        flex-direction: row;
        gap: 15px;
    }
    .student-cell img {
        width: 120px;
    }
}

/* Mobile phones */

@media (max-width: 480px) {
    .winners-container {
        padding: 10px;
    }
    .student-cell {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .student-cell img {
        width: 100px;
    }
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

caption {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

th, td {
    border: 2px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e8f4fd;
    transition: background-color 0.3s ease;
}

td[style*="text-align:center"] {
    text-align: center !important;
}

a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Remove excessive formatting */
u {
    text-decoration: none;
    border-bottom: 2px solid #3498db;
    padding-bottom: 2px;
}

strong {
    font-weight: 600;
}

/* Make tables responsive */

@media (max-width: 600px) {
    table {
        font-size: 0.9em;
    }
    th, td {
        padding: 8px 10px;
    }
    caption {
        padding: 10px;
        font-size: 1em;
    }
}

.spacing {
    height: 20px;
}

.btn-bkrico {
    background-color: #3C7A9A; 
    color: white!important; 
    padding: 12px 24px; 
    font-size: 16px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .btn-bkrico {
        background-color: #3C7A9A; 
        color: white!important; 
        padding: 12px 24px; 
        font-size: 11px; 
        border: none; 
        border-radius: 6px; 
        cursor: pointer; 
        transition: all 0.3s ease;
        white-space: nowrap;   
        text-overflow: ellipsis;
    }
}


