.header {
    background: url(../images/head/bg-header-rankings.jpg) no-repeat top center;
    height: 399px;
}
.header .breads, .header .breads a {
    color: #000;
    font-size: 20px;
}
.section {
    background-color: #1a1a1a;
    min-height: 1000px;
    font-size: 16px;
    height: auto;
}
.rank-wrap {
    width: 100%;
    padding-top: 50px;
    color: #e0e0e0;
}
.rank-layout {
    max-width: 100%;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #f0f0f0;
    margin: auto;
}
.rank-title {
    margin-bottom: 40px;
    font-size: 32px;
    font-family: inherit;
    letter-spacing: 1px;
}
.rank-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;  /* Adjust spacing between left and right containers */
}
.left-rank-container {
    flex: 0 0 calc(50% - 20px); /* Left panel takes 70% width */
    margin-right: 20px; /* Space between left and right */
}
.right-rank-container {
    flex: 0 0 calc(50% - 20px); /* Right panel takes 30% width */
}
.rank-table-wrap {
    background-color: #2e2e2e;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-top: 20px;
}
.panel-rank {
    display: block;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}
.div-table-rank {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 4px;
    background-color: #1e1e1e;
}
.div-table-rank-caption {
    padding: 10px;
    background-color: #3a4c7b;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}
.div-table-rank-row {
    display: flex;
    justify-content: space-between;
    background-color: #121212;
    padding: 8px;
}
.div-table-rank-col {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    text-align: center;
    padding: 10px;
}
.div-table-rank-row span {
    font-size: 0.875rem;
    color: #bfd8db;
    font-weight: 400;
}

/* Add media queries for responsiveness */
@media (max-width: 768px) {
    .rank-row {
        flex-direction: column; /* Stack left and right containers on smaller screens */
    }
    .left-rank-container,
    .right-rank-container {
        flex: unset; /* Reset flex properties */
        width: 100%; /* Make both containers full width */
        margin-right: 0; /* Remove right margin */
    }
}
