.weekly-post-ranking {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.weekly-post-ranking h3 {
    color: #2d3748;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

.weekly-post-ranking table {
    width: 100%;
    border-collapse: collapse;
}

.weekly-post-ranking th,
.weekly-post-ranking td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.weekly-post-ranking th:nth-child(3),
.weekly-post-ranking td:nth-child(3) {
    text-align: center;
}

.weekly-post-ranking .total-views {
    background-color: #f8f9fa;
    font-weight: bold;
    border-top: 2px solid #e2e8f0;
    margin-top: 10px;
}

.weekly-post-ranking th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.weekly-post-ranking tr:hover {
    background-color: #f7fafc;
}

.weekly-post-ranking .total-row {
    font-weight: bold;
    background-color: #f8f9fa;
    border-top: 2px solid #e2e8f0;
}

.weekly-post-ranking td:first-child {
    font-weight: bold;
    color: #2d3748;
}

.weekly-post-ranking a {
    color: #3182ce;
    text-decoration: none;
    display: inline-block;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weekly-post-ranking a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .weekly-post-ranking {
        padding: 10px;
    }

    .weekly-post-ranking th,
    .weekly-post-ranking td {
        padding: 8px 10px;
    }
}