* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #1b1e2b;
    background-image: linear-gradient(to bottom right, #1b1e2b, #34354a);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 40px;
    margin: 0 auto;
    flex-grow: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 40px;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    max-width: 150px;
}

.logo-container img {
    width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    background-color: #4b4a45;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    background-color: #c59b5f;
}

.search-bar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-input {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #333230;
    background-color: #ffffff;
    width: 300px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.search-button {
    padding: 12px 30px;
    background-color: #c59b5f;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #1b1e2b;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background-color: #a57b4d;
}

.news-section {
    width: 100%;
    background-color: #2f3240;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.news-section h1 {
    font-size: 30px;
    color: #c59b5f;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
}

.news-card {
    background-color: #34354a;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-header h2 {
    font-size: 20px;
    color: #ffbe60;
    margin: 0;
}

.news-header .date {
    font-size: 14px;
    color: #a0a0a0;
}

.news-card .excerpt {
    font-size: 18px;
    color: #dddddd;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.read-more-container {
    text-align: right;
}

.read-more-button {
    padding: 12px 30px;
    background-color: #c59b5f;
    color: #1b1e2b;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more-button:hover {
    background-color: #a57b4d;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: #dddddd;
    background-color: #1b1e2b;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-bar-container {
        flex-direction: column;
        align-items: center;
    }

    .news-header h2 {
        font-size: 22px;
    }

    .news-header .date {
        margin-top: 5px;
    }

    .logo-container img {
        max-width: 80%;
    }
}

.table-container {
    margin-top: 40px;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2f3240;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.ranking-table thead {
    background-color: #1b1e2b;
}

.ranking-table th,
.ranking-table td {
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    color: #ffffff;
    border-bottom: 1px solid #44475a;
    white-space: nowrap;
}

.ranking-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: #c59b5f;
    letter-spacing: 1px;
}

.ranking-table tbody tr:hover {
    background-color: #34354a;
}

.ranking-table tbody tr:nth-child(even) {
    background-color: #292b3d;
}

.ranking-table .positive-change {
    color: #8fd694;
    font-weight: 600;
}

.ranking-table .negative-change {
    color: #e57373;
    font-weight: 600;
}

@media (max-width: 768px) {

    .ranking-table th,
    .ranking-table td {
        font-size: 14px;
        padding: 12px;
    }

    .ranking-table {
        font-size: 14px;
    }
}

.pagination-links nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-links .flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-links .relative {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-links a,
.pagination-links .relative {
    background-color: #2f3240;
    border: 1px solid #3c3f50;
    color: #dddddd;
    cursor: pointer;
    text-decoration: none;
}

.pagination-links a:hover {
    background-color: #4a4d5f;
    color: #c59b5f;
}

.pagination-links .cursor-default {
    background-color: #1b1e2b;
    border-color: #3c3f50;
    color: #6c6f80;
    cursor: not-allowed;
}

.pagination-links .cursor-default:hover {
    background-color: #1b1e2b;
}

.pagination-links .active {
    background-color: #c59b5f;
    border-color: #c59b5f;
    color: #1b1e2b;
}

.pagination-links .rounded-md {
    border-radius: 8px;
}

.pagination-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pagination-links .leading-5 {
    font-size: 14px;
    line-height: 1.5;
}

.pagination-links .focus\:outline-none:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.pagination-links .focus\:ring:focus {
    border-color: #c59b5f;
    box-shadow: 0 0 10px rgba(197, 155, 95, 0.5);
}

.pagination-links .focus\:border-blue-300:focus {
    border-color: #c59b5f;
}

.pagination-links .active\:bg-gray-100.active,
.pagination-links .dark\:active\:bg-gray-700.active {
    background-color: #c59b5f;
    color: #1b1e2b;
}

.pagination-links .transition {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .pagination-links nav {
        flex-direction: column;
        align-items: center;
    }

    .pagination-links .flex {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }
}

.item-count-label {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #2f3240;
    border: 1px solid #44475a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 17px;
    color: #c59b5f;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.item-count-label strong {
    color: #ffffff;
    font-weight: 600;
    margin-left: 5px;
}

.item-count-label:hover {
    background-color: #4a4d5f;
    border-color: #c59b5f;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .item-count-label {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.notice-box {
    background-color: #34354a;
    border-left: 4px solid #c59b5f;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: #dddddd;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    text-align: justify;
}

.notice-box strong {
    color: #ffbe60;
}

.notice-box:hover {
    background-color: #34354a;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .notice-box {
        padding: 12px 16px;
        font-size: 13px;
    }
}


.affiliate-ranking-container {
    padding: 40px;
    background-color: #1b1e2b;
    color: #ffffff;
}

.top-three-affiliates {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    gap: 20px;
}

.affiliate-card {
    background-color: #2f3240;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.first-place {
    background-color: #40320f;
    border: 2px solid #c59b5f;
}

.crown-icon {
    position: absolute;
    top: -31px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    color: #ffbe60;
}

.affiliate-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #c59b5f;
}

.affiliate-name {
    font-size: 18px;
    color: #c59b5f;
    margin-bottom: 10px;
}

.affiliate-details {
    font-size: 14px;
    margin-bottom: 5px;
    color: #dddddd;
}

.affiliate-rank {
    background-color: #c59b5f;
    color: #1b1e2b;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.affiliate-ranking-table-container {
    margin-top: 40px;
    overflow-x: auto;
}

.affiliate-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2f3240;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.affiliate-ranking-table th,
.affiliate-ranking-table td {
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    color: #ffffff;
    border-bottom: 1px solid #44475a;
}

.affiliate-ranking-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    color: #c59b5f;
    letter-spacing: 1px;
}

.affiliate-ranking-table tbody tr:hover {
    background-color: #34354a;
}

.affiliate-ranking-table tbody tr:nth-child(even) {
    background-color: #292b3d;
}

@media (max-width: 768px) {
    .top-three-affiliates {
        flex-direction: column;
        align-items: center;
    }

    .affiliate-card {
        width: 90%;
    }

    .affiliate-ranking-table th,
    .affiliate-ranking-table td {
        padding: 12px;
        font-size: 12px;
    }
}
