/*
Theme Name: SportsIQ Daily
Theme URI: https://sportsiqdaily.com
Author: SportsIQDaily Team
Author URI: https://sportsiqdaily.com
Description: A lightweight, modern sports news theme optimized for speed, SEO, and Core Web Vitals.
Version: 1.0
License: GPLv2 or later
Text Domain: sportsiqdaily
*/

/* ---------- CSS Variables ---------- */
:root {
    --primary: #e60023;
    --primary-dark: #b3001b;
    --secondary: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
    --font-base: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 72px;
}

/* Dark Mode */
body.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-dark: #f0f0f0;
    --text-muted: #b0b0b0;
    --text-light: #888888;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
    --secondary: #2a2a2a;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition), transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(230, 0, 35, 0.3);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}
.card:hover::before {
    opacity: 1;
}

.card-image-wrap {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px 20px 18px;
}

.card-category {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.card-date .time-ago {
    color: var(--text-light);
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-dark);
    transition: color 0.2s;
}
.card-title a:hover {
    color: var(--primary);
}

.card-body .btn-sm {
    margin-top: 4px;
    margin-bottom: 10px;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: background 0.3s, box-shadow 0.3s;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--primary);
    transition: width 0.3s;
    margin-top: 4px;
}
.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

/* --- Dropdown toggle button (hidden on desktop) --- */
.main-nav .dropdown-toggle {
    background: none;
    border: none;
    padding: 0 4px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.8rem;
}
.main-nav .dropdown-toggle .dashicons {
    vertical-align: middle;
}

/* ---------- Desktop: Hide dropdown arrows ---------- */
@media (min-width: 992px) {
    .main-nav .dropdown-toggle {
        display: none !important;
    }
}

.search-toggle,
#dark-mode-toggle,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0 4px;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-actions .dashicons {
    font-size: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
}

.menu-toggle {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay .close-search {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
}
.search-overlay form {
    width: 80%;
    max-width: 600px;
    display: flex;
    gap: 10px;
}
.search-overlay input[type="search"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    background: #fff;
    color: #000;
}
.search-overlay button {
    padding: 16px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---------- Hero Single ---------- */
.hero-single {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 30px 0;
    background: #000;
}
.hero-image-wrap {
    overflow: hidden;
    border-radius: var(--radius);
}
.hero-image-link {
    display: block;
}
.hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-image-link:hover .hero-image {
    transform: scale(1.03);
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 40px 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-category-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}
.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}
.hero-title a {
    color: #fff;
}
.hero-title a:hover {
    color: var(--primary);
}
.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 15px;
}
.hero-meta-left {
    font-size: 0.95rem;
    opacity: 0.85;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hero-meta-left .hero-author {
    opacity: 0.8;
}
.hero-read-more {
    display: inline-block;
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
    flex-shrink: 0;
}
.hero-read-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
    color: #fff;
}

/* ---------- Dropdown sub-menu (desktop) ---------- */
.main-nav ul ul {
    display: none;
    position: absolute;
    background: var(--bg-card);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    z-index: 100;
}
.main-nav ul ul ul {
    left: 100%;
    top: 0;
}
.main-nav li:hover > ul,
.main-nav li.focus > ul {
    display: block;
}
.main-nav li {
    position: relative;
}
.main-nav ul ul a {
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
}
.main-nav ul ul li {
    margin: 0;
}

/* ---------- Section Headers ---------- */
.section-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
}
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.section-header .live-dot {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
.section-header h2 {
    font-size: 1.6rem;
    margin: 0;
}
.view-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.view-all-link .dashicons {
    vertical-align: middle;
    font-size: 1.2rem;
    margin-left: 4px;
}

/* ---------- Post Grid ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* ---------- About Box ---------- */
.about-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 30px;
    margin: 40px 0;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.about-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.about-box h2 {
    color: var(--primary);
    margin-bottom: 10px;
}
.about-box p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 20px;
}

/* ---------- Sidebar ---------- */
.sidebar {
    margin-top: 30px;
}
.sidebar .widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.sidebar .widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}
.sidebar .widget ul {
    margin: 0;
}
.sidebar .widget li {
    margin-bottom: 12px;
}
.sidebar .latest-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.sidebar .latest-post-item:hover {
    background: rgba(230, 0, 35, 0.06);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sidebar .latest-post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease;
}
.sidebar .latest-post-item:hover img {
    transform: scale(1.08);
}
.sidebar .latest-post-item a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}
.sidebar .latest-post-item:hover a {
    color: var(--primary);
}

/* ---------- Social Lists ---------- */
.sidebar .social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}
.sidebar .social-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.sidebar .social-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    transition: color 0.3s;
}
.sidebar .social-list a:hover {
    color: var(--primary);
}
.sidebar .social-list .social-label {
    font-size: 0.95rem;
}

.site-footer .social-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    padding: 0;
    margin: 0;
}
.site-footer .social-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.site-footer .social-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.site-footer .social-list a:hover {
    color: var(--primary);
}
.site-footer .social-list .social-label {
    font-size: 0.9rem;
}

.social-list .dashicons,
.social-list .social-icon-custom {
    font-size: 1.3rem;
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-list .telegram-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

/* ---------- Filters ---------- */
.filter-bar {
    text-align: center;
    margin: 20px 0 30px;
}
.filter-bar .filter-btn {
    display: inline-block;
    padding: 8px 24px;
    margin: 0 8px 10px;
    background: var(--bg-card);
    border: 2px solid var(--text-light);
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}
.filter-bar .filter-btn.active,
.filter-bar .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-bar .more-games {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #000000;
    border-top: none;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: 50px;
}
.site-footer a {
    color: #ffffff;
    opacity: 0.8;
}
.site-footer a:hover {
    opacity: 1;
    color: var(--primary);
}
.site-footer h4,
.site-footer .footer-column h4 {
    color: #ffffff;
}
.footer-bottom {
    border-top-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer-column h4 {
    margin-bottom: 15px;
}
.footer-column p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}
.footer-column ul {
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul li a {
    color: rgba(255,255,255,0.8);
}
.footer-column ul li a:hover {
    color: var(--primary);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== MOBILE MENU (≤991px) – Arrow visible & inline ===== */
@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px 24px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        display: none;
        flex-direction: column;
        gap: 10px;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        border-top: 3px solid var(--primary);
        animation: slideDown 0.3s ease;
    }
    .main-nav.open {
        display: flex;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .main-nav ul {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        padding: 4px 0;
    }
    /* 🔥 Dropdown arrow inline with link */
    .main-nav li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .main-nav li.menu-item-has-children > a {
        flex: 1;
        display: inline-block;
        padding: 8px 0;
    }
    .main-nav .dropdown-toggle {
        background: none;
        border: none;
        padding: 0 8px;
        cursor: pointer;
        color: var(--text-dark);
        font-size: 1.1rem;
        transition: transform 0.3s;
        display: inline-block !important; /* override desktop hide */
        line-height: 1;
    }
    .main-nav li.menu-item-has-children.open > .dropdown-toggle {
        transform: rotate(180deg);
    }
    .main-nav ul ul {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
        display: none;
        margin-top: 4px;
        flex-basis: 100%;
    }
    .main-nav li.menu-item-has-children.open > ul {
        display: block;
    }
    .main-nav ul ul a {
        font-size: 0.95rem;
        padding: 6px 0 6px 12px;
        color: var(--text-muted);
        border-left: 2px solid var(--primary);
    }
    .main-nav ul ul a:hover {
        color: var(--primary);
    }

    .menu-toggle {
        display: inline-block;
    }

    .logo img {
        max-height: 40px;
    }
    .hero-overlay {
        padding: 25px 20px 20px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-meta-row {
        flex-wrap: wrap;
    }
    .hero-read-more {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    .row {
        grid-template-columns: 1fr !important;
    }
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .site-footer .social-list {
        grid-template-columns: 1fr 1fr;
    }
    .section-header-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }
    .single-layout {
        padding: 0 15px;
    }
    .post-box {
        padding: 20px 22px;
    }
    .comments-box {
        padding: 15px 22px 20px;
    }
}

/* ---------- Mobile (≤600px) ---------- */
@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-body {
        padding: 10px 10px 12px;
    }
    .card-title {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    .card-category {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    .card-date {
        font-size: 0.6rem;
        gap: 2px;
        margin-bottom: 4px;
    }
    .card-excerpt {
        display: none;
    }
    .btn-sm {
        font-size: 0.6rem;
        padding: 4px 10px;
        margin-bottom: 4px;
    }

    .hero-single {
        margin: 15px 0;
    }
    .hero-overlay {
        padding: 16px 14px 14px;
        gap: 4px;
    }
    .hero-category-badge {
        font-size: 0.6rem;
        padding: 2px 10px;
    }
    .hero-title {
        font-size: 1.2rem;
    }
    .hero-meta-left {
        font-size: 0.7rem;
    }
    .hero-read-more {
        padding: 5px 14px;
        font-size: 0.7rem;
    }
    .hero-meta-row {
        margin-top: 2px;
        gap: 8px;
    }

    .search-overlay form {
        flex-direction: column;
        width: 90%;
    }
    .search-overlay input[type="search"] {
        font-size: 1rem;
    }
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .container {
        padding: 0 10px;
    }
    .section-header h2 {
        font-size: 1rem;
    }
    .section-header .live-dot {
        width: 8px;
        height: 8px;
    }
    .site-footer .social-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .view-all-link {
        font-size: 0.8rem;
    }

    .related-box .related-link {
        padding: 8px 10px;
        gap: 10px;
    }
    .related-box .related-thumb {
        width: 50px;
        height: 50px;
    }
    .related-box .related-title-text {
        font-size: 0.9rem;
    }

    .all-post-thumb {
        width: 55px;
        height: 55px;
    }
    .all-post-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .post-grid {
        gap: 8px;
    }
    .card-body {
        padding: 6px 6px 8px;
    }
    .card-title {
        font-size: 0.7rem;
    }
}
/* ----- Boxed Layout for Single Post ----- */
.single-layout {
    max-width: 820px;
    margin: 30px auto;
    padding: 0 20px;
}
.post-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 35px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}
.post-box:hover {
    box-shadow: var(--shadow-hover);
}
.comments-box {
    padding: 20px 35px 30px;
}

/* ----- Share Section ----- */
.share-section {
    margin: 30px 0 20px;
    padding: 20px 0 10px;
}
.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    cursor: pointer;
    font-size: 1.2rem;
}
.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.share-btn .dashicons {
    font-size: 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
}
/* Brand colours on hover */
.share-btn.whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.x:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.telegram:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-btn.pinterest:hover { background: #E60023; color: #fff; border-color: #E60023; }
.share-btn.copy-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Copy tooltip */
.copy-link {
    position: relative;
}
.copy-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.copy-link:hover .copy-tooltip {
    opacity: 1;
}
.copy-tooltip.copied {
    background: var(--primary);
}

/* ----- Related Posts List ----- */
.related-box .related-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
}
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.related-list-item {
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.related-list-item:hover {
    background: rgba(230, 0, 35, 0.05);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.related-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-dark);
}
.related-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.3s;
}
.related-list-item:hover .related-thumb {
    transform: scale(1.05);
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-title-text {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
    transition: color 0.2s;
}
.related-link:hover .related-title-text {
    color: var(--primary);
}
.related-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ----- Tags ----- */
.post-separator {
    border: none;
    border-top: 2px solid rgba(0,0,0,0.06);
    margin: 30px 0 20px;
}
.post-tags-section {
    margin: 10px 0 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.tags-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 6px;
}
.tags-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.tags-list a:hover {
    color: var(--primary);
}
.tags-list a:not(:last-child)::after {
    content: ', ';
}

/* ----- Responsive tweaks ----- */
@media (max-width: 600px) {
    .post-box {
        padding: 20px 18px;
    }
    .comments-box {
        padding: 15px 18px 20px;
    }
    .share-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .share-btn .dashicons {
        font-size: 1.2rem;
        width: 1.2rem;
        height: 1.2rem;
    }
    .related-thumb {
        width: 50px;
        height: 50px;
    }
}
/* ----- Smaller "Read More" button on cards ----- */
.btn-sm {
    padding: 4px 14px;
    font-size: 0.7rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--primary);
    color: #fff;
    border: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(230, 0, 35, 0.2);
}
.btn-sm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
    color: #fff;
}

/* Reduce card body padding */
.card-body {
    padding: 14px 14px 12px;
}
.card-title {
    font-size: 1rem;
    margin-bottom: 4px;
}
.card-date {
    font-size: 0.7rem;
    margin-bottom: 4px;
}
.card-category {
    font-size: 0.7rem;
    margin-bottom: 2px;
}
.card-excerpt {
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.card-body .btn-sm {
    margin-top: 2px;
    margin-bottom: 4px;
}
/* ----- All Posts Page ----- */
.all-posts-layout {
    max-width: 820px;
    margin: 30px auto;
    padding: 0 20px;
}
.all-posts-title {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}
.all-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.all-post-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.all-post-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}
.all-post-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
}
.all-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.all-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.all-post-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.all-post-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    transition: color 0.2s;
}
.all-post-link:hover .all-post-title {
    color: var(--primary);
}
.all-post-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.4;
}
.all-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}
.all-posts-pagination {
    margin-top: 30px;
    text-align: center;
}
.all-posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.all-posts-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
}
.all-posts-pagination .page-numbers:hover:not(.current) {
    background: var(--primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .all-post-thumb {
        width: 55px;
        height: 55px;
    }
    .all-post-title {
        font-size: 0.95rem;
    }
    .all-post-excerpt {
        font-size: 0.8rem;
        display: none; /* hide excerpt on very small screens */
    }
    .all-post-link {
        padding: 10px 12px;
        gap: 12px;
    }
}
/* ----- Single Post Meta (avatar + text) ----- */
.single-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    padding: 6px 0;
    flex-wrap: wrap; /* wraps on small screens */
}

.author-avatar-circle {
    flex-shrink: 0;
    display: inline-block;
}
.author-avatar-circle img {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid var(--primary);
    display: block; /* ensures proper spacing */
}

.meta-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.by-author {
    font-weight: 500;
}
.by-author a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}
.by-author a:hover {
    color: var(--primary);
}

.post-date-full {
    color: var(--text-light);
}

/* Make sure the avatar is not pushed to a new line */
@media (max-width: 600px) {
    .single-post-meta {
        gap: 8px;
    }
    .meta-text {
        font-size: 0.85rem;
        gap: 4px 8px;
    }
    .author-avatar-circle img {
        width: 32px;
        height: 32px;
    }
}
/* ----- Archive Pagination (like "1 2 Next") ----- */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    font-size: 0.95rem;
    font-weight: 500;
}
.archive-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230,0,35,0.2);
}
.archive-pagination .page-numbers:hover:not(.current) {
    background: var(--primary);
    color: #fff;
}
.archive-pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
}
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
    font-weight: 600;
    padding: 8px 18px;
}
/* ----- Breadcrumb ----- */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding: 8px 0;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* ----- Category Grid (child cards) ----- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 20px 0 40px;
}
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.category-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    transition: transform 0.4s;
}
.category-card:hover .category-card-image {
    transform: scale(1.04);
}
.category-card-body {
    padding: 14px 16px;
}
.category-card-body h3 {
    font-size: 1rem;
    margin: 0 0 4px;
    color: var(--text-dark);
    font-weight: 600;
}
.category-card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}
.category-card:hover h3 {
    color: var(--primary);
}
/* ----- Filter Bar (pills) ----- */
#sportsiq-filter-bar {
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.filter-group-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 80px;
}
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.filter-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #f0f0f0;
    color: var(--text-dark);
    border: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.filter-pill:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.filter-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230,0,35,0.25);
}
.filter-pill.active:hover {
    background: var(--primary-dark);
}

/* Horizontal scroll on mobile */
@media (max-width: 600px) {
    .filter-pills {
        flex-wrap: nowrap;
        gap: 6px;
    }
    .filter-pill {
        font-size: 0.75rem;
        padding: 4px 14px;
    }
    .filter-group-label {
        font-size: 0.8rem;
        min-width: 60px;
    }
}