:root {
    --primary-red: #ff4444;
    --dark-bg: #333333;
    --darker-bg: #222222;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --text-color: #444;
    --link-color: #333;
    --white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.5;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: var(--darker-bg);
    color: #ccc;
    padding: 8px 0;
    font-size: 11px;
    text-transform: uppercase;
}

.top-bar nav {
    display: flex;
    gap: 15px;
}

.top-bar a:hover {
    color: var(--white);
}

/* Main Header */
.main-header {
    padding: 20px 0;
    background: var(--white);
}

/* Main Navigation */
.main-nav {
    background-color: var(--dark-bg);
    border-bottom: 3px solid var(--primary-red);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.main-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-right: 1px solid #444;
}

.main-nav li a:hover, .main-nav li a.active {
    background-color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
}

/* News Ticker */
.ticker-wrap {
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 11px;
    height: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker {
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-label {
    background-color: #333;
    padding: 0 10px;
    height: 30px;
    display: flex;
    align-items: center;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-content {
    padding-left: 10px;
    display: flex;
    gap: 15px;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
}

.ticker-more {
    padding: 0 10px;
    background: rgba(0,0,0,0.1);
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 40px;
}

.content-area {
    flex: 3;
    min-width: 0; /* Prevents flex items from overflowing */
}

.sidebar {
    flex: 1;
    min-width: 300px;
}

/* General Section Styling */
section {
    margin-bottom: 30px;
    background: var(--white);
}

h1 {
    font-family: var(--font-condensed);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
    color: #222;
}

h2, h3, .widget-title {
    font-family: var(--font-condensed);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 15px;
}

.sub-header {
    border-bottom: 1px solid #ed2121;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Intro Section */
.intro-content p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 13px;
    color: #666;
}

.align-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    padding: 4px;
}

.intro-content ul {
    list-style: square inside;
    margin-left: 10px;
    color: #666;
    font-size: 13px;
}

/* Games Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-item {
    flex: 0 0 calc(12.5% - 9px);
    margin-bottom: 5px;
}

.game-item img {
    width: 100%;
    height: 100px; /* Fixed height */
    object-fit: cover; /* Maintain aspect ratio */
    border: 1px solid #eee;
    display: block;
    transition: opacity 0.2s;
}

.game-item img:hover {
    opacity: 0.8;
    border-color: var(--primary-red);
}

.section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-size: 11px;
}

.badge {
    background: var(--primary-red);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
}

.more-link {
    color: var(--primary-red);
    font-weight: bold;
    text-transform: uppercase;
}

/* Providers 2-Col Layout */
.providers-row {
    display: flex;
    gap: 30px;
}

.provider-col {
    flex: 1;
}

.featured-game img {
    width: 100%;
    height: 180px; /* Fixed height */
    object-fit: cover; /* Maintain aspect ratio */
    border: 1px solid #eee;
    padding: 3px;
}

.featured-game h3 {
    font-size: 14px;
    margin: 10px 0 5px 0;
}

.featured-game p {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.mini-list .mini-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 10px;
}

.mini-item img {
    width: 60px;
    height: 60px;
    object-fit: cover; /* Maintain aspect ratio */
    border: 1px solid #eee;
}

.mini-item h4 {
    font-size: 12px;
    font-weight: bold;
    color: #222;
}
.mini-item h4 a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}
.mini-item p {
    font-size: 11px;
    color: #777;
}

/* Two Up Grid (Bottom) */
.two-up-grid {
    display: flex;
    gap: 20px;
}

.two-up-grid .game-card {
    flex: 1;
}

.two-up-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #eee;
    padding: 3px;
}
/* Header links inside Game Cards */
.game-card h3 a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}
/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #ed2121;
}

.widget-title {
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.contentat img {
    width: 100%;
    height: auto;
}

.recent-posts .featured-post img {
    width: 100%;
    border: 3px solid #333;
    margin-bottom: 10px;
}

.post-list {
    margin-top: 15px;
}

.post-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #ddd;
}

.post-list li img {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
}

.post-list div a {
    font-weight: bold;
    font-size: 12px;
    display: block;
    color: #333;
}

.post-list div span {
    font-size: 11px;
    color: #666;
}

.widget-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 10px;
}

/* Tag Cloud */
.tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tags a {
    background: var(--primary-red);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.tags a:hover {
    opacity: 0.8;
}

/* Footer */
.main-footer {
    background: #222;
    color: #666;
    text-align: center;
    padding: 30px 0;
    font-size: 11px;
    margin-top: 20px;
    border-top: 4px solid #111;
}

.footer-warnings {
    margin-bottom: 20px;
    color: #999;
}

.warning-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.age-restriction {
    display: inline-block;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 4px 4px;
    border-radius: 50%;
    font-size: 14px;
}

.footer-disclaimer {
    margin-bottom: 20px;
    font-size: 10px;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.copyright {
    color: #444;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    color: #fff;
    padding: 15px 0;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 12px;
}

.btn-accept {
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-accept:hover {
    background-color: #d32f2f;
}
/* =========================================
   NEW STYLES FOR NEWS SECTION
   ========================================= */

.news-grid {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to new line if > 2 items */
    gap: 20px;
}

.news-item {
    /* 50% width minus half of the gap space, ensuring 2 per row */
    flex: 0 0 calc(50% - 10px);
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.news-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.news-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-content h3 a:hover {
    color: var(--primary-red);
}

.news-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 11px;
    color: var(--primary-red);
    font-weight: bold;
    text-transform: uppercase;
}

.read-more:hover {
    text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 992px) {
    .providers-row {
        flex-direction: column;
    }
    .game-item {
        flex: 0 0 calc(25% - 8px);
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul.open {
        display: flex;
    }

    .main-nav li a {
        border-right: none;
        border-bottom: 1px solid #444;
    }

    .two-up-grid {
        flex-direction: column;
    }
    
    .game-item {
        flex: 0 0 calc(33.33% - 7px);
    }
    
    .top-bar nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    /* Stack news items on smaller tablets/mobile */
    .news-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 480px) {
    .game-item {
        flex: 0 0 calc(50% - 5px);
    }
}
