/* Custom Styles for Archive Page */
.custom-archive-header {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.custom-archive-header .logo {
    margin-right: 20px;
}

.custom-archive-header .league-logo {
    max-width: 100px;
    height: auto;
}

.custom-archive-header .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.custom-archive-header .league-title {
    font: bold 24px/1.2 'Arial', sans-serif;
    margin-bottom: 10px;
    color: #333;
}

.custom-archive-header .league-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.custom-archive-header .header-buttons {
    display: flex;
    gap: 10px;
}

.custom-archive-header .league-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 15px;
    font: 12px/1.2 'Arial', sans-serif;
    color: #333;
    border-radius: 5px;
    text-align: center;
}

/* Tab Navigation */
.acf-tab-nav ul {
    list-style: none;
    display: flex;
    gap: 3px;
    padding: 0;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.acf-tab-nav ul::-webkit-scrollbar {
    height: 4px;
}

.acf-tab-nav ul::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.acf-tab-nav ul::-webkit-scrollbar-track {
    background: transparent;
}

.acf-tab-nav li a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #359b0a;
    border-radius: 5px;
    font: bold 14px/1.2 'Arial', sans-serif;
    text-align: center;
    min-width: 100px;
    transition: all 0.2s ease-in-out;
}

.acf-tab-nav li a.active {
    background-color: #359b0a;
    color: #fff;
    border-color: #359b0a;
}

.acf-tab-nav li a:hover {
    background-color: #f0f0f0;
    color: #359b0a;
    border-color: #359b0a;
}

/* Tab Content */
.acf-tab-content .acf-tab {
    display: none;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.acf-tab-content .acf-tab.active {
    display: block;
}

/* Footer & Description Content */
.category-footer,
.category-description {
    padding: 1px;
    background-color: #fff;
    font: 16px/1.8 'Arial', sans-serif;
    color: #333;
    margin-bottom: 0;
    text-align: justify;
}

/* Latest Posts */
.latest-posts {
    margin-top: 20px;
}

.latest-posts .section-heading {
    font: bold 20px/1.2 'Arial', sans-serif;
    margin-bottom: 15px;
    color: #333;
}

.mh-posts-large-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mh-posts-large-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.mh-posts-large-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-posts-large-content {
    flex-grow: 1;
}

.mh-posts-large-header .entry-title {
    font: bold 16px/1.2 'Arial', sans-serif;
    margin: 0 0 5px;
    color: #333;
}

.mh-posts-large-header .entry-title a {
    color: #333;
    text-decoration: none;
}

.mh-posts-large-header .entry-meta {
    font-size: 12px;
    color: #777;
}

.mh-posts-large-header .entry-meta span {
    margin-right: 10px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-archive-header {
        flex-direction: column;
        align-items: center;
    }
    .custom-archive-header .logo {
        margin-right: 0;
    }
    .custom-archive-header .header-content {
        text-align: center;
    }
    .custom-archive-header .league-logo {
        max-width: 80px;
    }
    .custom-archive-header .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    .custom-archive-header .league-btn {
        flex: 1 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        min-width: unset;
    }
    .acf-tab-nav ul {
        flex-wrap: nowrap;
    }
    .acf-tab-nav li a {
        padding: 6px 10px;
        font-size: 12px;
        min-width: auto;
    }
}