/* Blog Page Styling - Matches Homepage Structure */

/* Blog post page: outside wrapper uses same background as .blog-games-right-module for contrast */
.blog-post-page .main-content {
    background: #f8f9fa !important;
}

/* Blog page: NO page-level padding - each section has its own 0.5rem padding */
/* This gives better control and prevents carousel from being blocked by page padding */
.blog-page {
    --content-side-padding: 0.5rem !important;
}

/* Each section gets 0.5rem padding individually */
.blog-page .latest-posts {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    box-sizing: border-box;
}

.blog-page .blog-offers-wrapper {
    padding-left: 0 !important; /* No wrapper padding - header and boxes handle their own 0.5rem */
    padding-right: 0 !important;
    box-sizing: border-box;
}

.blog-page .main-container:has(.author-bio-small) {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    box-sizing: border-box;
}

/* Center the blog title */
/* Override for blog post pages - left align and capitalize */
.blog-post-page .blog-hero-section h1,
.blog-post-page .hero-section h1 {
    text-align: left !important;
    text-transform: capitalize !important;
}

.latest-posts {
    margin: 3rem 0;
}

.latest-posts .section-title {
    color: #022e4a;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Hero section uses hero-section.css - no overrides needed */

/* Internal linking section - carousels */
.internal-linking-section {
    margin: 3rem 0;
}

.carousel-wrapper {
    margin-bottom: 3rem;
}

.carousel-wrapper h2 {
    color: #022e4a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.carousel-wrapper h2 a {
    color: #00cc5a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.carousel-wrapper h2 a:hover {
    text-decoration: underline;
}

/* Posts Grid - Match home.php blog section: 3 columns desktop, responsive */
.blog-page .latest-posts,
.latest-posts {
    margin: 1rem 0;
}

.blog-page .latest-posts .section-title,
.latest-posts .section-title {
    font-size: 20px !important;
    color: #022e4a !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important; /* 1rem gap between carousel boxes */
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* At 500px min: two blog posts per line until 1024px min */
@media (min-width: 500px) and (max-width: 1023px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important; /* 1rem gap */
    }
}

/* Below 500px: single column */
@media (max-width: 499px) {
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important; /* 1rem gap */
    }
}

/* Desktop 1024px+: three columns */
@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important; /* 1rem gap */
    }
}

/* Post card - vertical by default, horizontal at 500-600px */
.post-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column; /* Vertical stacking by default */
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(2, 46, 74, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
    background: #f4f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100% !important; /* Always full width */
    margin: 0 !important;
    padding: 0 !important;
}

.post-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* REMOVED: 500-600px horizontal layout - reverted to vertical boxes */

.post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 16px !important;
    color: #022e4a !important;
    line-height: 1.4;
    font-weight: 600;
}

.post-content h3 a {
    color: #022e4a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content h3 a:hover {
    color: #00cc5a;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.post-category {
    background: #f4f6f8;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    color: #022e4a;
    font-size: 0.75rem;
}

.post-date {
    color: #666;
}

.post-excerpt {
    color: #4a5568 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0;
    flex: 1;
}

/* Content Sections */
.content-sections {
    margin: 3rem 0;
}

.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    font-size: var(--fs-h2) !important;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Use existing signup-offers styling - no custom overrides needed */

.see-all-link {
    text-align: center;
}

.see-all-link a {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.see-all-link a:hover {
    text-decoration: underline;
}

/* Author Bio */
.author-bio-small {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid #e0e0e0;
}

.author-bio-small h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.author-bio-small h3 a {
    color: #0077b5;
    text-decoration: none;
}

.author-bio-small h3 a:hover {
    text-decoration: underline;
}

.author-bio-small p {
    color: #666;
    margin: 0;
}

.linkedin-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem 0; /* Increased top margin for separation between pages */
    padding-top: 2rem; /* Additional padding to ensure pages don't touch */
    border-top: 1px solid #e0e0e0; /* Visual separator */
}

.pagination-btn, .pagination-number {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover, .pagination-number:hover {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.pagination-number.active {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Responsive - REMOVED: conflicting with main .posts-grid rules above */
    
    .latest-posts .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .post-image {
        height: 200px;
        width: 100% !important; /* Always full width on mobile */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .post-image img {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important; /* Remove max-width restriction */
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .post-content {
        padding: 1.25rem;
    }
    
    .post-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Blog offer sections: header left-aligned over top left of first offer, See All on right */
/* CRITICAL: Both headers must align perfectly horizontally - same padding, same baseline */
.blog-page .blog-offers-wrapper .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important; /* Baseline ensures h2 and see-all-link sit perfectly on same line */
    text-align: left !important;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.5rem !important; /* Reduced gap between header and first offer */
}
.blog-page .blog-offers-wrapper .section-header h2 {
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.2 !important; /* Tight line-height for perfect baseline alignment */
    font-weight: 700 !important;
    padding: 0 !important; /* Header padding handled by parent .section-header */
    border: 0 !important;
    display: inline-block !important; /* Ensures baseline alignment works */
    vertical-align: baseline !important;
    /* Font size matches carousel headers: 20px desktop, 16px mobile */
    font-size: 20px !important;
}
@media (max-width: 1023px) {
    .blog-page .blog-offers-wrapper .section-header h2 {
        font-size: 16px !important; /* Match carousel headers on mobile */
    }
}
.blog-page .blog-offers-wrapper .section-header .see-all-link {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important; /* Match h2 line-height exactly */
    font-size: 16px !important;
    font-weight: 600 !important;
    white-space: nowrap !important; /* Prevent wrapping */
    padding: 0 !important;
    border: 0 !important;
    color: #00cc5a !important;
    text-decoration: none !important;
    display: inline-block !important; /* Ensures baseline alignment works */
    vertical-align: baseline !important; /* Perfect baseline alignment with h2 */
}
/* Mobile: Hide "See All Casino Offers →" text and show only "(See All)" inline */
@media (max-width: 1023px) {
    .blog-page .blog-offers-wrapper .section-header .see-all-link {
        font-size: 0 !important; /* Hide original "See All Casino Offers →" text */
    }
    .blog-page .blog-offers-wrapper .section-header .see-all-link::after {
        content: "(See All)" !important;
        font-size: 14px !important; /* Match carousel "(See All)" size */
        color: #00cc5a !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        display: inline-block !important;
        vertical-align: baseline !important;
    }
}
/* Mobile: BOTH headers use SAME padding (1rem) for perfect horizontal alignment */
@media (max-width: 767px) {
    /* Both headers: identical padding ensures perfect horizontal alignment */
    .blog-page .blog-offers-wrapper .section-header {
        padding-left: 0.5rem !important; /* 0.5rem padding from page border - LEFT ONLY */
        padding-right: 0 !important;
        margin-bottom: 0.25rem !important; /* Reduced gap between header and first offer */
    }
    
    /* Offer boxes: 0.5rem left padding */
    .blog-page .offers-section,
    .blog-page .offers-list {
        padding-left: 0.5rem !important; /* 0.5rem padding from page border - LEFT ONLY */
        padding-right: 0 !important;
    }
}
/* Desktop: headers align with carousel headers - match games-section padding exactly */
@media (min-width: 768px) {
    /* Both headers: match carousel header padding exactly */
    /* Carousel structure: .container (padding: 0 var(--spacing-md) = 1rem) > .games-section (padding-left: var(--content-side-padding, 1rem) = 1rem) */
    /* So carousel header is 1rem from container's inner edge */
    /* Offer structure: .container (padding: 0 var(--spacing-md) = 1rem) > .main-container (padding: 0 1rem) > .section-header */
    /* .main-container already has 1rem padding, so header padding should be 0 to align with carousel's 1rem from container edge */
    /* BUT: user says headers need to move more left, so maybe .main-container padding is different? Let's match games-section padding directly */
    .blog-page .blog-offers-wrapper .section-header {
        padding-left: 0.5rem !important; /* 0.5rem padding from page border - LEFT ONLY */
        padding-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Offer boxes: 0.5rem left padding */
    .blog-page .offers-section,
    .blog-page .offers-list {
        padding-left: 0.5rem !important; /* 0.5rem padding from page border - LEFT ONLY */
        padding-right: 0 !important;
    }
}

/* Tablet breakpoint (768px-1023px): Round corners on offer sections */
@media (min-width: 768px) and (max-width: 1023px) {
    .blog-page .blog-offers-wrapper {
        border-radius: 12px !important; /* Round all 4 corners */
        overflow: hidden !important; /* Ensure content respects border-radius */
    }
    
    .blog-page .blog-offers-wrapper .offers-section,
    .blog-page .blog-offers-wrapper .offers-list {
        border-radius: 12px !important; /* Round all 4 corners */
        overflow: hidden !important;
    }
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #022e4a;
}

.section-header .see-all-link {
    color: #00cc5a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px !important; /* Match blog page header size (16px) */
    transition: color 0.2s;
}

.see-all-link:hover {
    color: #00cc57;
    text-decoration: underline;
}

/* Author Bio Section - Smaller with side-by-side layout */
.author-bio-small {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12), 0 2px 6px rgba(2, 46, 74, 0.06);
}

.author-content {
    display: block;
}

.author-text {
    width: 100%;
}

.author-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0 0 0.5rem;
}

.author-text h3 a {
    color: #022e4a;
    text-decoration: none;
    transition: color 0.2s;
}

.author-text h3 a:hover {
    color: #00cc5a;
    text-decoration: underline;
}

.author-text p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}


/* Remove old green page-header styling - now using hero-section.css */

/* REMOVED: Old blog carousel rules - replaced with home.php exact copy below */

    /* Mobile: Change "See All Casino Offers →" and "See All Sports Offers →" to just "(See All)" */
    /* Use more specific selector to ensure it applies to blog-offers-wrapper headers */
    .blog-page .blog-offers-wrapper .section-header .see-all-link,
    .blog-page .section-header .see-all-link {
        font-size: 0 !important; /* Hide original text */
    }
    
    .blog-page .blog-offers-wrapper .section-header .see-all-link::after,
    .blog-page .section-header .see-all-link::after {
        content: "(See All)" !important;
        font-size: 14px !important; /* Mobile: 14px for casino/sports See All - matches carousel */
        color: #00cc5a !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        display: inline-block !important;
        vertical-align: baseline !important;
    }
}

/* Blog page carousels: EXACT copy of home.php structure - word for word, bar for bar */
/* Desktop structure - matches home.php exactly */
.blog-page .games-section {
    margin: 2rem 0 -1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* No padding - track handles alignment */
    padding-right: 0 !important; /* Carousels should disappear against page border */
    padding-top: 15px !important; /* Space for shadow to breathe on top */
    padding-bottom: 15px !important; /* Space for shadow to breathe on bottom */
    overflow: visible !important; /* Ensure shadows aren't clipped */
}

.blog-page .games-section h2 {
    color: #022e4a !important;
    margin: 0 0 0rem 0 !important;
    word-wrap: break-word !important;
    text-align: left !important;
    box-sizing: border-box !important;
    padding-left: 0.5rem !important; /* 0.5rem gap from page border - LEFT ONLY */
}

/* Desktop: Offer boxes and headers - 0.5rem left padding */
@media (min-width: 768px) {
    .blog-page .blog-offers-wrapper .section-header {
        padding-left: 0.5rem !important; /* 0.5rem padding from page border - LEFT ONLY */
        padding-right: 0 !important;
    }
    
    .blog-page .offers-section,
    .blog-page .offers-list {
        padding-left: 0.5rem !important; /* 0.5rem padding from page border - LEFT ONLY */
        padding-right: 0 !important;
    }
}

/* Mobile: Match global h2 mobile size and align with 0.5rem gap */
@media (max-width: 767px) {
    
    /* Mobile: Clean carousel styling - break out of container padding so shadows show on left */
    .blog-page .games-section {
        margin-left: 0 !important; /* No page padding to break out of */
        margin-right: 0 !important; /* Right edge - carousels disappear against border */
        padding-left: calc(0.5rem + 8px) !important; /* Own 0.5rem padding + content padding (8px) */
        padding-right: 0 !important; /* Right edge - carousels disappear against border */
        padding-top: 12px !important; /* Top padding - shadows bleed into it */
        padding-bottom: 12px !important; /* Bottom padding - shadows bleed into it */
        margin-bottom: 0 !important; /* Remove negative margin on mobile */
        overflow: visible !important; /* Shadows bleed into padding area */
        width: 100% !important; /* Full width - no compensation needed */
    }
    
    .blog-page .games-section h2 {
       
    
}
    margin-bottom: 0 !important;
    margin-left: calc(var(--content-side-padding, 1rem) * -1) !important;
    margin-right: calc(var(--content-side-padding, 1rem) * -1) !important;
    padding-left: var(--content-side-padding, 1rem) !important;
    padding-right: var(--content-side-padding, 1rem) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: var(--content-side-padding, 1rem) !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
}

.blog-page .horizontal-track::-webkit-scrollbar {
    display: none !important;
}

/* Match homepage .game-item exactly */
.blog-page .horizontal-track .item,
.blog-page .game-item {
    flex: 0 0 calc(66.67vw - 0.5rem) !important;
    max-width: 280px !important;
    min-width: 260px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(2, 46, 74, 0.05), 0 1px 4px rgba(2, 46, 74, 0.03) !important;
    overflow: hidden !important;
    height: 195px !important; /* FIXED height to match skeleton: 160px image + 35px top border */
    min-height: 195px !important;
    max-height: 195px !important;
    display: flex !important;
    flex-direction: column !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
}

/* Match homepage .game-image exactly */
.blog-page .game-image {
    position: relative !important;
    width: 100% !important;
    height: 160px !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden !important;
    background: #1a1f3f !important;
}

.blog-page .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Match homepage .game-top-border exactly */
.blog-page .game-top-border {
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 35px !important;
    background: #ffffff !important;
    border-radius: 0 0 8px 8px !important;
}

.blog-page .game-bookmaker-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    }

.blog-page .game-bookmaker-logo img {
    width: 70px !important;
    height: auto !important;
    max-height: 35px !important;
    object-fit: contain !important;
}

/* Match homepage .game-timer-text exactly */
.blog-page .game-timer-text {
    color: #00cc5a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: right !important;
}

/* Desktop layout (920px+) - Match homepage exactly */
@media (min-width: 920px) {
    .blog-page .horizontal-track {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important; /* 4 games on desktop */
        gap: 7px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    .blog-page .game-item {
        width: 100% !important;
        cursor: pointer !important;
        transition: transform 0.2s !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        display: block !important;
    }
    
    .blog-page .game-item:hover .game-top-border {
        background: rgba(0, 204, 90, 0.05) !important;
    }
}

/* Mobile layout - Match homepage exactly */
@media (max-width: 919px) {
    .blog-page .horizontal-track .item,
    .blog-page .game-item {
        flex: 0 0 calc(66.67vw - 0.5rem) !important;
        max-width: 280px !important;
        min-width: 260px !important;
        display: flex !important;
        flex-direction: column !important;
        scroll-snap-align: start !important;
        width: auto !important;
    }
}

@media (max-width: 767px) {
    .section-header {
        flex-direction: row;
        align-items: baseline; /* Align header text and (See All) on same baseline */
        justify-content: flex-start; /* Keep header + (See All) together on left, not spaced apart */
        gap: 0.5rem;
    }
    
    .author-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        align-self: center;
    }
}

/* ============================================
   BLOG POST PAGES - Professional Article Styling
   (Daily Mail / The Sun style - only affects .blog-post-page)
   ============================================ */

/* Hero Section for Blog Posts - Use same gradient as site-wide */
.blog-post-page .blog-hero-section {
    background: linear-gradient(135deg, #022e4a 0%, #004d7a 100%);
    color: white;
    padding: 1rem 0 0rem 0;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    z-index: 1;
}

.blog-post-page .blog-hero-section .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-page .blog-hero-section h1 {
    font-size: 32px;
    font-weight: 700 !important;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    color: white !important;
    text-align: left !important;
    text-transform: capitalize !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-post-page .blog-hero-section .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0 0;
    font-weight: 400;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-post-page .blog-hero-section .hero-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    width: 100%;
    white-space: nowrap;
    flex-wrap: nowrap;
    font-weight: 700 !important;
    line-height: 1.4;
    min-height: 2rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-post-page .blog-hero-section .author-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-page .blog-hero-section .author-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-post-page .blog-hero-section .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-page .blog-hero-section .author-name a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.blog-post-page .blog-hero-section .author-name a:hover {
    text-decoration: underline;
}

.blog-post-page .blog-hero-section .author-sep {
    color: rgba(255, 255, 255, 0.5);
}

/* Featured Image - Match blog-article-body width (not including sidebar) */
.blog-post-page .blog-featured-image {
    background: #ffffff;
    padding: 1rem 0 0 0; /* Reduced top padding to bring content closer */
    margin: 0;
}

.blog-post-page .blog-featured-image .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-page .blog-featured-image img {
    max-width: calc(100% - 300px - 3rem); /* Match blog-article-body width (grid: 1fr 300px, gap: 3rem) */
    width: 100%;
    height: auto;
    object-fit: contain; /* No cropping - show full image */
    object-position: left top; /* Left align */
    border-radius: 2px; /* Minimal corner rounding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0;
}

@media (max-width: 1023px) {
    .blog-post-page .blog-featured-image img {
        max-width: 100%; /* Full width on mobile (no sidebar) */
    }
}

/* Article Content Container */
.blog-post-page .blog-article-content {
    background: #ffffff;
    padding: 1rem 0 3rem 0; /* Reduced top padding to bring content closer to image */
}

/* Green Separator Line Between Image and Content - Constrained to blog-content-wrapper width */
.blog-post-page .blog-featured-image-separator {
    border: none;
    border-top: 3px solid #00cc5a;
    margin: 1rem auto;
    position: relative;
    background: linear-gradient(to right, transparent, #00cc5a 20%, #00cc5a 80%, transparent);
    height: 3px;
    max-width: calc(100% - 300px - 3rem); /* Match blog-content-wrapper article width (grid: 1fr 300px, gap: 3rem) */
    width: 100%;
}

.blog-post-page .blog-featured-image-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 204, 90, 0.3) 20%, rgba(0, 204, 90, 0.3) 80%, transparent);
}

@media (max-width: 1023px) {
    .blog-post-page .blog-featured-image-separator {
        max-width: 100%; /* Full width on mobile (no sidebar) */
    }
}

.blog-post-page .blog-article-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-page .blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* Article Body - Modern 2025 Style (Montserrat font) - OLBG Inspired */
.blog-post-page .blog-article-body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8; /* Better readability like OLBG */
    color: #1a1a2e;
    font-size: 1.0625rem; /* Slightly larger for better readability */
}

.blog-post-page .blog-article-body h2 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #022e4a;
    margin: 2.5rem 0 1.5rem 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-page .blog-article-body h3 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #022e4a;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.blog-post-page .blog-article-body p {
    margin: 1.25rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d2d44;
}

.blog-post-page .blog-article-body p strong {
    font-weight: 700;
    color: #1a1a2e;
}

.blog-post-page .blog-article-body ul,
.blog-post-page .blog-article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post-page .blog-article-body li {
    margin: 0.75rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d2d44;
}

.blog-post-page .blog-article-body a {
    color: #00cc5a;
    text-decoration: underline;
    font-weight: 600;
}

.blog-post-page .blog-article-body a:hover {
    color: #00a847;
}

/* Green link styling for free-to-play jackpot competitions link */
.blog-post-page .blog-article-body a[href*="jackpot-competitions"] {
    color: #00cc5a !important;
    text-decoration: none;
    font-weight: 700;
}

.blog-post-page .blog-article-body a[href*="jackpot-competitions"]:hover {
    color: #00a847 !important;
    text-decoration: underline;
}

/* CTA callout box – pro news style (no weird inlays) */
.blog-post-page .blog-article-body .blog-cta-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-left: 4px solid #00cc5a;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.blog-post-page .blog-article-body .blog-cta-box p {
    margin: 0;
}
.blog-post-page .blog-article-body .blog-cta-box strong {
    color: #022e4a;
}

/* Section Separators with Betquest Branding (Green Accents) */
.blog-post-page .blog-article-body hr {
    border: none;
    border-top: 3px solid #00cc5a;
    margin: 4rem 0;
    position: relative;
    background: linear-gradient(to right, transparent, #00cc5a 20%, #00cc5a 80%, transparent);
    height: 3px;
}

.blog-post-page .blog-article-body hr::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 204, 90, 0.3) 20%, rgba(0, 204, 90, 0.3) 80%, transparent);
}

.blog-post-page .blog-article-body hr::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #00cc5a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #00cc5a;
}

/* Blog Tables - Match comparison-table styling EXACTLY */
.blog-post-page .blog-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* If table is wrapped, remove margin from table */
.blog-post-page .blog-table-wrapper .blog-table {
    margin: 0;
}

/* If table is NOT wrapped, add wrapper styles directly to table */
.blog-post-page .blog-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure tables are always wrapped for proper mobile handling */
.blog-post-page .blog-article-body table.blog-table {
    display: table;
    min-width: 800px;
}

/* Wrap any unwrapped tables in article body */
.blog-post-page .blog-article-body > table:not(.blog-table-wrapper) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-post-page .blog-table caption {
    padding: 1rem;
    background: #f4f6f8;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    text-align: left;
    border-bottom: 2px solid #00cc5a;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-post-page .blog-table thead {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white;
}

.blog-post-page .blog-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #00cc5a;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-post-page .blog-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.blog-post-page .blog-table tbody tr:hover {
    background-color: #f8f9fa;
}

.blog-post-page .blog-table tbody tr:last-child {
    border-bottom: none;
}

.blog-post-page .blog-table td {
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #2d2d44;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Sidebar */
.blog-post-page .article-sidebar {
    position: sticky;
    top: 2rem;
}

.blog-post-page .sidebar-widget {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

/* Desktop: Sections still have their own padding (no container padding) */
@media (min-width: 1024px) {
    .blog-page .main-container {
        max-width: 1200px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important; /* No container padding - sections handle their own */
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .blog-page .offers-section,
    .blog-page .offers-list {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Remove widget styling from offers container - blog-games-right-module has its own styling */
.blog-post-page #blog-sidebar-offers {
    background: none;
    padding: 0;
    border: none;
    margin: 0;
}

.blog-post-page .sidebar-widget h3 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
}

.blog-post-page .related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-post-page .related-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-page .related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-post-page .related-post a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-post-page .related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-post-page .related-post h4 {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

/* Article Tags */
.blog-post-page .article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.blog-post-page .article-tags h4 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-page .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-page .tag {
    background: #f4f6f8;
    color: #1a1a2e;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
    .blog-post-page .blog-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post-page .article-sidebar {
        position: static;
    }
    
    .blog-post-page .blog-hero-section h1 {
        font-size: 2rem;
        text-align: left !important;
        text-transform: capitalize !important;
    }
    
    .blog-post-page .blog-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-post-page .blog-article-body {
        font-size: 1rem;
    }
    
    .blog-post-page .blog-article-body h2 {
        font-size: 1.75rem;
    }
    
    .blog-post-page .blog-article-body h3 {
        font-size: 1.25rem;
    }
    
    .blog-post-page .blog-article-body p {
        font-size: 1rem;
    }
    
    .blog-post-page .blog-table {
        font-size: 0.9rem;
        min-width: 100%;
    }
    
    .blog-post-page .blog-table th,
    .blog-post-page .blog-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 767px) {
    .blog-post-page .blog-hero-section {
        padding: 1rem 0 !important;
    }
    
    .blog-post-page .blog-hero-section h1 {
        font-size: 20px !important;
        text-align: left !important;
        text-transform: capitalize !important;
    }
    
    .blog-post-page .blog-hero-section .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .blog-post-page .blog-hero-section .hero-author-info {
        font-size: 0.75rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0 !important;
        white-space: nowrap !important;
    }
    
    .blog-post-page .blog-hero-section .author-sep {
        margin: 0 0.5rem !important;
    }
    
    .blog-post-page .blog-featured-image {
        padding: 1.5rem 0;
    }
    
    .blog-post-page .blog-featured-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        object-position: left top;
        border-radius: 2px;
    }
    
    .blog-post-page .blog-article-content {
        padding: 2rem 0;
    }
    
    .blog-post-page .blog-article-body h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-page .blog-article-body h3 {
        font-size: 1.125rem;
    }
    
    .blog-post-page .blog-table {
        font-size: 0.85rem;
        min-width: 100%;
    }
    
    .blog-post-page .blog-table th,
    .blog-post-page .blog-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .blog-post-page .blog-table caption {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* Ensure all blog content elements fit within page boundaries on mobile */
    .blog-post-page .blog-article-body {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        box-sizing: border-box;
    }
    
    /* Force all images in blog content to fit within container */
    .blog-post-page .blog-article-body img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        display: block;
        margin: 1.5rem auto;
        box-sizing: border-box;
    }
    
    /* Ensure tables are properly constrained and scrollable on mobile */
    .blog-post-page .blog-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1.5rem 0;
        box-sizing: border-box;
    }
    
    .blog-post-page .blog-table {
        min-width: 100%;
        width: auto;
        font-size: 0.75rem;
    }
    
    .blog-post-page .blog-table th,
    .blog-post-page .blog-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure all text content wraps properly */
    .blog-post-page .blog-article-body p,
    .blog-post-page .blog-article-body li,
    .blog-post-page .blog-article-body h2,
    .blog-post-page .blog-article-body h3 {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
}

/* Desktop: Ensure blog content doesn't exceed container width */
@media (min-width: 768px) {
    .blog-post-page .blog-article-body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-post-page .blog-article-body img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .blog-post-page .blog-table {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Inline Blog Images - Modern 2025 Style */
/* Competition Section Boxes - After h2 headers (uses betquest-carousel-card = same as home.php) */
.blog-post-page .blog-competition-section {
    margin: 2rem 0 3rem 0;
    background: #f4f6f8 !important; /* Contrast with page background (#f8f9fa) */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* CTA box: single offer only – carousel card logic from reusable-carousel.css */
.blog-post-page .blog-competition-section .blog-competition-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: 0;
    box-sizing: border-box;
}

/* Single card: .blog-competition-box.betquest-carousel-card – same structure as home carousel card */
/* CRITICAL: Override flex: 0 0 280px from reusable-carousel.css - use auto flex-basis instead */
.blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card {
    display: flex !important;
    flex-direction: column !important;
    width: 300px !important;
    max-width: 300px !important;
    flex: 0 0 auto !important; /* Override flex: 0 0 280px - use auto flex-basis */
    flex-shrink: 0;
    margin: 0 !important;
    overflow: hidden !important;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Footer styled by reusable-carousel.css .betquest-carousel-card .betquest-carousel-footer */
}

/* Blog post: carousel footer height and centering – match mobile carousel box logic */
/* Remove bottom border and any visual continuation below footer */
.blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card .betquest-carousel-footer {
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card .betquest-carousel-footer::after {
    display: none !important;
}
.blog-post-page .blog-competition-section .blog-competition-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
@media (max-width: 767px) {
    .blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card .betquest-carousel-footer {
        min-height: 52px !important; /* Match mobile carousel card footer height */
        max-height: 52px !important;
        padding: 0.5rem 0.75rem !important;
    }
    .blog-post-page .blog-competition-section .blog-competition-cta {
        justify-content: center !important;
    }
}

.blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 46, 74, 0.15), 0 3px 10px rgba(2, 46, 74, 0.1) !important;
}

/* Legacy .game-item rules – only when not using carousel card (e.g. old markup) */
.blog-post-page .blog-competition-section .blog-competition-box.game-item,
.blog-post-page .blog-competition-box.game-item {
    width: 300px !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    background: white;
    border-radius: 8px;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    box-sizing: border-box;
    flex: none !important;
    max-width: 300px !important;
    cursor: pointer !important;
}

.blog-post-page .blog-competition-box.game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-post-page .blog-competition-box.game-item .game-top-border {
    transition: background 0.2s ease;
}

.blog-post-page .blog-competition-box .game-image {
    width: 100%;
    height: 180px !important;
    min-height: 180px;
    max-height: 180px;
    overflow: hidden !important;
    background: #1a1f3f !important;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    flex: 0 0 180px;
    box-sizing: border-box;
}

.blog-post-page .blog-competition-box .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.blog-post-page .blog-competition-box .game-top-border {
    padding: 0.75rem 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    background: #ffffff !important;
    box-sizing: border-box;
    flex-shrink: 0;
    flex: 0 0 60px;
    margin: 0;
}

.blog-post-page .blog-competition-box .game-bookmaker-logo img {
    width: 93px;
    height: 47px;
    object-fit: contain;
}

.blog-post-page .blog-competition-box .game-timer-text {
    font-size: 14px;
    font-weight: 700;
    color: #008844;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Competition Text - Desktop: Left, Mobile: Below Box */
.blog-post-page .blog-competition-text {
    flex: 1;
    display: flex;
    align-items: center; /* Center text vertically within its own space */
    align-self: stretch; /* Allow text to take full height, doesn't affect box centering */
}

.blog-post-page .blog-competition-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blog-post-page .blog-competition-text p strong {
    font-weight: 700;
    color: #1a1a2e;
}

/* Mobile Layout - Box Centered, Text Below */
@media (max-width: 767px) {
    .blog-post-page .blog-competition-section .blog-competition-cta {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch; /* Stretch to full width */
        min-height: auto; /* Let content determine height */
        padding: 1rem;
    }
    
    .blog-post-page .blog-competition-section .blog-competition-box,
    .blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card {
        width: 300px !important;
        max-width: 300px !important;
        margin: 0 auto;
        flex: 0 0 auto !important; /* CRITICAL: Override flex: 0 0 280px from reusable-carousel.css */
        flex-basis: auto !important; /* Ensure flex-basis is auto, not 280px */
    }
    
    .blog-post-page .blog-competition-section .blog-competition-text {
        text-align: left;
        width: 100%;
        margin-top: 0; /* Directly below box */
        align-items: flex-start; /* Align text to top */
    }
    
    .blog-post-page .blog-competition-section .blog-competition-text p {
        text-align: left;
    }
}

/* Desktop Layout - Text Left, Box Right */
@media (min-width: 768px) {
    .blog-post-page .blog-competition-section .blog-competition-cta {
        flex-direction: row;
        align-items: center; /* Vertically center box */
    }
    
    /* Reorder: Text left, Box right (HTML has box first, text second) */
    .blog-post-page .blog-competition-section .blog-competition-text {
        order: -1; /* Text comes first (left side) */
    }
    
    .blog-post-page .blog-competition-section .blog-competition-box,
    .blog-post-page .blog-competition-section .blog-competition-box.betquest-carousel-card {
        order: 0; /* Box comes second (right side) */
        margin-right: 1rem !important; /* Shift left to show box shadow */
    }
}

/* Inline Images - OLBG Style (Larger, Better Spacing) */
.blog-post-page .blog-inline-image {
    margin: 3rem auto;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
}

.blog-post-page .blog-inline-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 4px; /* Minimal corner rounding like OLBG */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: block;
    margin: 0 auto;
}

.blog-post-page .blog-inline-image figcaption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
}

@media (max-width: 767px) {
    .blog-post-page .blog-inline-image {
        margin: 2rem 0;
    }
    
    .blog-post-page .blog-inline-image figcaption {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* Related Articles Section - Within Article Content */
.blog-post-page .related-articles-section {
    margin: 4rem 0 3rem 0;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.blog-post-page .related-articles-section h2 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-page .related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-post-page .related-article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-page .related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(2, 46, 74, 0.12);
}

.blog-post-page .related-article-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-post-page .related-article-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f4f6f8;
}

.blog-post-page .related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-page .related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.blog-post-page .related-article-content {
    padding: 1.5rem;
}

.blog-post-page .related-article-content h3 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #022e4a;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.blog-post-page .related-article-content h3:hover {
    color: #00cc5a;
}

.blog-post-page .related-article-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-page .related-article-category {
    display: inline-block;
    background: #f4f6f8;
    color: #022e4a;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Games Right Module - EXACT SAME AS jackpot-games-right-module */
.blog-post-page .sidebar-offers {
    position: sticky;
    top: 2rem;
}

.blog-games-right-module {
    width: 320px;
    background: #f8f9fa;
    border: none;
    border-radius: 12px;
    padding: 15px;
    z-index: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12), 0 2px 6px rgba(2, 46, 74, 0.06);
    box-sizing: border-box;
}

/* Responsive: Wide (320px) at 1450px+, Narrow (240px) at 1100px-1449px, Hidden below 1100px */
/* Default: Narrow version for tablet/medium screens */
.blog-games-right-module {
    width: 240px;
    padding: 12px;
}

.blog-games-right-module h3 {
    font-size: 14px;
    margin: 0 0 12px;
}

.blog-games-right-module .additional-offer {
    margin-bottom: 12px;
}

/* Wide version: Desktop at 1450px and above */
@media (min-width: 1450px) {
    .blog-games-right-module {
        width: 320px;
        padding: 15px;
    }
    
    .blog-games-right-module h3 {
        font-size: 16px;
        margin: 0 0 15px;
    }
}

/* Hide offers module below 1100px */
@media (max-width: 1099px) {
    .blog-games-right-module {
        display: none !important;
    }
}

.blog-games-right-module h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--text-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.blog-games-right-module .additional-offer {
    margin-bottom: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12), 0 2px 6px rgba(2, 46, 74, 0.06);
    font-weight: bold;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-games-right-module .additional-offer:hover {
    box-shadow: 0 6px 16px rgba(2, 46, 74, 0.18), 0 3px 8px rgba(2, 46, 74, 0.12);
    transform: translateY(-2px);
}

.blog-games-right-module .additional-offer p {
    font-size: 14px;
    margin: 0 0 8px !important;
    padding: 0 0 8px 0 !important;
    color: var(--text-color);
    text-align: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    min-height: 36px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    contain: layout style !important;
}

.blog-games-right-module .additional-offer p img {
    width: 71px !important;
    height: 36px !important;
    min-width: 71px !important;
    min-height: 36px !important;
    max-width: 71px !important;
    max-height: 36px !important;
    flex-shrink: 0 !important;
    display: block !important;
    object-fit: contain !important;
    aspect-ratio: 2/1 !important;
    border-radius: 3px;
    margin: 0 !important;
    padding: 0 !important;
    contain: layout style size !important;
}

.blog-games-right-module .additional-offer span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #20242e;
    line-height: 1.4;
}

.blog-games-right-module .additional-offer small {
    font-size: 9px !important;
    color: var(--subtle-gray);
    display: block;
    margin-top: 6px;
    margin-bottom: 6px;
    text-align: center;
    line-height: 1.2;
}

.blog-games-right-module .offer-button-small {
    display: inline-block;
    background: var(--primary-cta);
    color: #20242e;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0 !important;
}

.blog-games-right-module .offer-button-small:hover {
    background: #00a847;
    color: white;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 1023px) {
    .blog-post-page .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .blog-post-page .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-page .related-articles-section {
        margin: 3rem 0 2rem 0;
        padding-top: 2rem;
    }
    
    .blog-post-page .related-articles-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-post-page .sidebar-offers {
        position: static;
        margin-top: 2rem;
    }
    
    .blog-games-right-module {
        width: 100%;
        max-width: 100%;
    }
}

/* Blog-post page Latest Analysis: same classes as jackpot – image must fit inside box (mirror jackpot exactly) */
.blog-post-page .blog-post .blog-post-image {
    overflow: hidden !important;
    border-radius: 8px;
}
.blog-post-page .blog-post .blog-post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
}

/* Mobile only: blog-template Related Articles = same CSS as other pages' Latest Analysis (blog-section/blog-grid/blog-post) */
@media (max-width: 767px) {
    .blog-post-page .related-articles-section {
        margin: 3rem 0 !important;
        padding: 0 0.5rem !important;
        border-top: none !important;
        padding-top: 0 !important;
    }
    .blog-post-page .related-articles-section h2 {
        font-size: 20px !important;
        color: #022e4a !important;
        margin: 0 0 2rem 0 !important;
        text-align: center !important;
        text-transform: none;
        letter-spacing: 0;
    }
    .blog-post-page .related-articles-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }
    .blog-post-page .related-article-card {
        padding: 1.5rem !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12) !important;
        transition: transform 0.2s !important;
    }
    .blog-post-page .related-article-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 16px rgba(2, 46, 74, 0.12) !important;
    }
    .blog-post-page .related-article-image {
        width: 100% !important;
        height: 120px !important;
        overflow: hidden !important;
        background: #f4f6f8 !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
    }
    .blog-post-page .related-article-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .blog-post-page .related-article-content {
        padding: 0 !important;
    }
    .blog-post-page .related-article-content h3 {
        font-size: 16px !important;
        color: #022e4a !important;
        margin: 0 0 0.5rem 0 !important;
        line-height: 1.4 !important;
    }
    .blog-post-page .related-article-content h3:hover,
    .blog-post-page .related-article-card:hover .related-article-content h3 a {
        color: #00cc5a !important;
    }
    .blog-post-page .related-article-excerpt {
        font-size: 14px !important;
        color: #4a5568 !important;
        line-height: 1.5 !important;
        margin: 0 0 0.75rem 0 !important;
        -webkit-line-clamp: unset;
        display: block;
    }
    .blog-post-page .related-article-category {
        font-size: 11px !important;
        padding: 0.25rem 0.6rem !important;
        letter-spacing: 0.3px !important;
    }
}

/* FORCED BLOG ALIGNMENT 
   This replicates the exact homepage 1200px behavior 
   Prevents bleeding into sidebars and fixes squashed card appearance
*/
.blog-feed-standard-container {
    width: 100%;
    max-width: 100%;
    margin: 4rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
    clear: both; /* Prevents bleeding into floating ads/sidebars */
}

/* The "Homepage" Container Logic */
@media (min-width: 920px) {
    .blog-feed-standard-container {
        max-width: 1200px !important; /* Perfect homepage width */
        padding: 0 2rem !important;
    }
}

/* Blog Section - Remove max-width, let container handle it (match homepage) */
.blog-section {
    margin: 3rem 0;
    /* No max-width - inherits from container */
}

.blog-section h2 {
    font-size: 20px !important;
    color: #022e4a !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

/* Ensure the heading matches homepage style */
.blog-feed-standard-container .blog-section h2 {
    font-size: 20px !important;
    color: #022e4a !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.blog-feed-subtitle {
    font-size: 0.9rem;
    color: #4a5568;
    margin: -1.5rem 0 2rem 0;
    line-height: 1.5;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

/* Fix the Grid Mismatch - Force correct grid behavior */
.blog-feed-standard-container .blog-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 0.5rem !important;
}

@media (min-width: 920px) {
    .blog-feed-standard-container .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0 !important;
    }
}

.blog-post {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12);
    cursor: pointer;
    transition: transform 0.2s;
}

.blog-post:hover {
    transform: translateY(-5px);
}

/* Blog image: 100% fill card boundaries - no gaps, no overflow */
.blog-post-image {
    width: 100% !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    overflow: hidden !important;
    background: #f4f6f8;
    border-radius: 8px;
    margin-bottom: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative;
    box-sizing: border-box;
}

.blog-post-image img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transition: transform 0.3s ease;
}

/* Fix Image Squashing */
.blog-feed-standard-container .blog-post-image img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post h3 {
    font-size: 16px !important;
    color: #022e4a !important;
    margin-bottom: 0.5rem !important;
}

.blog-post h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-post:hover h3 a {
    color: #00cc5a;
}

.blog-post p {
    color: #4a5568 !important;
    line-height: 1.5 !important;
    font-size: 14px !important;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.blog-post-category {
    display: inline-block;
    background: #f4f6f8;
    color: #022e4a;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.blog-post-meta-separator {
    color: #999;
    font-weight: normal;
}

.blog-post-date {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Desktop: Match homepage breakpoints EXACTLY (920px+) */
@media (min-width: 920px) {
    .blog-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
        margin: 2rem 0 !important;
        padding: 0 !important;
    }
    
    .blog-post {
        padding: 1.5rem !important;
        transition: transform 0.2s, opacity 0.5s !important;
    }
    
    .blog-post:hover {
        transform: translateY(-5px) !important;
    }
}

/* Force correct behavior within container */
@media (min-width: 920px) {
    .blog-feed-standard-container .blog-post {
        padding: 1.5rem !important;
        transition: transform 0.2s, opacity 0.5s !important;
    }
    
    .blog-feed-standard-container .blog-post:hover {
        transform: translateY(-5px) !important;
    }
}

/* Tablet: 2 columns (768px - 919px) - Match homepage */
@media (min-width: 768px) and (max-width: 919px) {
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
        margin: 2.5rem 0;
    }
}

/* Betquest Blog Page - Center h1 on all screen sizes */
body.blog-page:not(.blog-post-page) .hero-section h1,
body.blog-page:not(.blog-post-page) .hero-content .hero-left h1 {
    text-align: center !important;
}

/* Mobile override - ensure centered on mobile */
@media (max-width: 767px) {
    body.blog-page:not(.blog-post-page) .hero-section h1,
    body.blog-page:not(.blog-post-page) .hero-content .hero-left h1,
    body.blog-page:not(.blog-post-page) .hero-section .hero-title {
        text-align: center !important;
    }
}

/* Related Articles Grid - For use on all pages except homepage and blog-post pages */
/* --- COMPONENT: Related Articles (Internal Page Fix) --- */
.related-articles-section {
    width: 100%;
    /* 960px simulates the 'Article Body' width from the blog post page */
    max-width: 960px !important; 
    margin: 4rem auto; 
    padding: 0 1.5rem;
    box-sizing: border-box;
    clear: both; /* Prevents bleeding into floating ads/sidebars */
}

.related-articles-section h2 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0 0 2rem 0;
    text-align: center !important;
}

/* CRITICAL: Ensure related-articles-section h2 is centered on individual competition pages */
.individual-competition-page .related-articles-section h2 {
    text-align: center !important;
}

.related-articles-grid {
    display: grid;
    /* Use exactly 3 columns to match the blog style */
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; /* Matches Rule Set A from your report */
}

/* Mobile Responsiveness */
@media (max-width: 920px) {
    .related-articles-section {
        max-width: 100% !important;
    }
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Latest Analysis / Related Articles cards - match home.php blog-post */
.related-article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(2, 46, 74, 0.15);
}

.related-article-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-article-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f4f6f8;
    display: block;
    margin: 0;
    padding: 0;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.related-article-content {
    padding: 1.5rem;
}

.related-article-content h3 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px !important;
    font-weight: 600;
    color: #022e4a !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.4;
}

.related-article-content h3 a {
    color: inherit;
    text-decoration: none;
}

.related-article-content h3 a:hover {
    color: #00cc5a;
}

.related-article-excerpt {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #4a5568 !important;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-category {
    display: inline-block;
    background: #f4f6f8;
    color: #022e4a;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.75rem;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .related-articles-section {
        margin: 3rem auto 2rem auto;
        padding: 0 1rem;
    }
    
    .related-articles-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}