:root {
    /* Color Palette - Dark Theme */
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-header: #000000;
    --primary-color: #00E676;
    /* Vibrant Green */
    --primary-hover: #00C853;
    --secondary-color: #FFD700;
    /* Gold/Yellow for accents */
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --border-color: #333333;

    /* Layout */
    --container-width: 1200px;
    --header-height: 70px;

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Import Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Dark Theme is now default - No Light Theme overrides */


/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img,
iframe,
video {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

p {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 0;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    /* Black text on green for contrast */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #000;
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header & Navigation */
header {
    background-color: var(--bg-header);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary-color);
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding-left: 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: flex-start;
    /* Align content to left */
    text-align: left;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    overflow: hidden;
    padding-bottom: 4rem;
}

/* Gradient Overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.hero-tag {
    background: var(--primary-color);
    color: black;
    padding: 6px 16px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    /* Glow effect */
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 a {
    color: white;
    text-decoration: none;
    background-image: linear-gradient(to right, #fff, #ddd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.hero h1 a:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Consolidating mobile styles at the bottom of the file */
@media (max-width: 768px) {
    .hero {
        align-items: center;
        text-align: center;
        justify-content: center;
    }
}

/* Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-cat {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Match Widget (Horizontal Scroll) */
.match-widget-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.match-scroller {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
}

.match-card {
    min-width: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid transparent;
    transition: border 0.2s;
}

.match-card:hover {
    border-color: var(--primary-color);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-weight: 600;
}

.match-score {
    background: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.match-status-live {
    color: #FF1744;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Page Specific: Bookmakers */
.bookmaker-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bookmaker-item {
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.bookmaker-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.bookmaker-info {
    flex: 1;
    margin: 0 2rem;
}

.rating-stars {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: black;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-col h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Hide for now, toggle not implemented in CSS only */
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .match-scroller {
        padding-bottom: 1rem;
    }

    .bookmaker-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bookmaker-info {
        margin: 0;
    }

    /* Mobile Menu Improvements */
    .nav-menu.active .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        min-width: 100%;
        padding-left: 1rem;
        border: none;
        display: none;
        /* Hidden by default, toggled via JS or just list all? standard is list all or toggle */
        display: block;
        /* Show all submenus on mobile for simplicity or add JS toggle */
    }

    .nav-menu.active .nav-item {
        width: 100%;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #333;
        width: 100%;
    }

    /* Adjust Header Logo on Mobile */
    .logo img {
        height: 40px !important;
        /* Smaller logo on mobile */
    }

    /* TYPOGRAPHY FIXES FOR MOBILE */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .section {
        padding: 2rem 0 !important;
    }

    .hero {
        height: auto !important;
        /* Allow hero to shrink */
        min-height: 400px;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    /* Force override for Hero Title on Mobile */
    .hero h1,
    .hero-content h1,
    h1.hero-title-mobile {
        font-size: 1.4rem !important;
        /* Slightly smaller to be safe */
        line-height: 1.2 !important;
        margin-bottom: 0.8rem !important;
        word-wrap: break-word;
    }

    .hero-tag {
        font-size: 0.7rem;
        padding: 4px 12px;
        margin-bottom: 1rem;
    }

    .container {
        padding: 0 1rem !important;
        /* Force nice padding */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* BONUS PAGE STYLES */
.bonus-intro {
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.bonus-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

.bonus-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bonus-intro h2 {
    margin-top: 2.5rem;
    color: var(--text-main);
}

.bonus-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.bonus-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.2s, border-color 0.2s;
}

.bonus-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.bonus-card-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bonus-logo {
    flex: 0 0 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.bonus-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bonus-info h3 {
    margin-bottom: 0.2rem;
    font-size: 1.4rem;
}

.bonus-info h3 a {
    color: var(--text-main);
}

.bonus-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.verified {
    font-size: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.bonus-amount {
    font-size: 1.8rem;
    /* Make amount stand out */
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.bonus-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    min-width: 200px;
}

.bonus-code {
    background: #2a2a2a;
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px dashed var(--secondary-color);
    font-family: monospace;
    font-size: 1.1rem;
    display: flex;
    gap: 5px;
}

.code-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    align-self: center;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.read-more {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
}

/* Content Text Styling (Bottom of page) */
.content-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.content-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.content-text ul,
.content-text ol {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    color: var(--text-muted);
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* --- Header Updates --- */
.header-logo-img {
    max-height: 46px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: #1e1e1e;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #333;
    transition: border-color 0.2s;
}
.header-search-form:focus-within {
    border-color: var(--primary-color);
}
.header-search-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.85rem;
    outline: none;
    width: 130px;
}
.header-search-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
}
.live-indicator {
    color: #FF1744;
    font-size: 0.6em;
}

/* --- Footer Updates --- */
.site-footer {
    background-color: #000;
    border-top: 1px solid #222;
    margin-top: 4rem;
    padding-top: 4rem;
    color: #b0b0b0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}
.footer-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}
.footer-logo-img {
    height: 60px;
    display: block;
}
.footer-about-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icon {
    background: #222;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: background 0.3s, color 0.3s;
}
.social-icon:hover {
    background: var(--primary-color);
    color: #000;
}
.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
}
.primary-underline {
    background: var(--primary-color);
}
.secondary-underline {
    background: var(--secondary-color);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-link-item {
    margin-bottom: 0.8rem;
}
.footer-link {
    color: #b0b0b0;
    transition: color 0.3s;
}
.footer-link:hover {
    color: var(--primary-color);
}
.footer-warning-box {
    margin-top: 2rem;
    background: #111;
    padding: 1rem;
    border-radius: 8px;
}
.footer-warning-text {
    font-size: 0.8rem;
    margin-bottom: 0;
}
.footer-warning-icon {
    color: #FF1744;
    margin-right: 5px;
}
.site-copyright {
    border-top: 1px solid #222;
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Bonus Page Specifics */
@media (max-width: 768px) {
    .bonus-intro h1 {
        font-size: 1.6rem !important;
        /* Smaller title */
        margin-bottom: 1rem;
    }

    .bonus-intro p {
        font-size: 0.95rem;
    }

    .bonus-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        align-items: stretch;
    }

    .bonus-card-main {
        flex-direction: row;
        /* Keep logo next to info */
        gap: 1rem;
        align-items: flex-start;
    }

    .bonus-logo {
        flex: 0 0 70px;
        /* Smaller logo */
        height: 70px;
    }

    .bonus-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .bonus-amount {
        font-size: 1.4rem;
        margin-top: 0.2rem;
    }

    .bonus-actions {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        /* Buttons side by side? or Stacked? Stacked is safer for long codes */
        flex-wrap: wrap;
    }

    .bonus-code {
        width: 100%;
        justify-content: center;
    }

    .btn-block {
        flex: 1;
        /* Button takes available space */
    }

    .read-more {
        width: 100%;
        text-align: center;
        padding: 5px;
    }
}

/* =====================================================
 * Rich Text Content Styling (TinyMCE Output)
 * ===================================================== */
.article-content,
.post-content,
.prose,
.rich-text {
    line-height: 1.7;
    color: var(--text-main, #e0e0e0);
}

/* 1. Tables */
.article-content table,
.post-content table,
.prose table,
.rich-text table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: table !important;
}

.article-content th,
.post-content th,
.prose th,
.rich-text th {
    background: rgba(0, 230, 118, 0.15) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-align: left !important;
}

.article-content td,
.post-content td,
.prose td,
.rich-text td {
    padding: 12px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e0e0e0 !important;
}

.article-content tr:nth-child(even),
.post-content tr:nth-child(even),
.prose tr:nth-child(even),
.rich-text tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* 2. Lists */
.article-content ul,
.post-content ul,
.prose ul,
.rich-text ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.25rem !important;
}

.article-content ol,
.post-content ol,
.prose ol,
.rich-text ol {
    list-style-type: decimal !important;
    padding-left: 2rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.25rem !important;
}

.article-content li,
.post-content li,
.prose li,
.rich-text li {
    display: list-item !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.6 !important;
    color: #e0e0e0 !important;
}

/* 3. Links */
.article-content a,
.post-content a,
.prose a,
.rich-text a {
    color: var(--primary-color, #00e676) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.article-content a:hover,
.post-content a:hover,
.prose a:hover,
.rich-text a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}