/* ===== BETTING SITES TEST PAGE STYLES ===== */

.betting-sites-page .bookmaker-section-test {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12), 0 2px 6px rgba(2, 46, 74, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    overflow: visible; /* Never clip expanded mobile content or competition boxes */
}

/* ===== TOP INFO BAR ===== */
.bookmaker-top-bar {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.top-bar-logo-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    align-self: flex-start;
}

.bookmaker-logo-large {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.bookmaker-name-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: flex-start;
}

.bookmaker-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0;
    line-height: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
}

.review-link {
    font-size: 0.875rem;
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.review-link:hover {
    color: #004499;
}

.top-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    min-width: 120px;
    align-self: flex-start;
}

.top-bar-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    line-height: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-value {
    font-size: 0.9rem;
    color: #022e4a;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
}

.top-bar-ukgc-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #022e4a !important;
    cursor: pointer;
    margin-left: 0.25rem;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
    font-size: 0 !important;
    padding: 0 !important;
    color: transparent !important;
}

.top-bar-ukgc-badge::after {
    content: 'i' !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
}

.top-bar-ukgc-badge::before {
    display: none !important;
    content: none !important;
}

.mobile-apps {
    gap: 0.75rem;
    justify-content: center;
}

.app-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.payment-methods {
    flex: 0 0 auto;
    min-width: 120px;
}

.payment-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.payment-icons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-icons-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.payment-icons-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.payment-more {
    color: #008844;
    font-weight: normal;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.payment-icon {
    width: 24px;
    height: 16px;
    object-fit: contain;
}

.payment-more {
    font-size: 0.7rem;
    color: #008844;
    font-weight: normal;
    margin-left: 0.25rem;
}

.placeholder {
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* ===== COMPETITIONS ROW ===== */
.competitions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.competitions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competitions-header {
    font-size: 16px !important;
    font-weight: 700;
    color: #022e4a;
    margin: 0;
    text-align: left;
}

.competitions-header .see-all-link {
    color: #00cc5a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px !important;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

/* Mobile override for competitions-header see-all-link */
@media (max-width: 767px) {
    .competitions-header .see-all-link {
        font-size: 14px !important;
    }
}

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

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Betting Sites Box Dimensions Alignment – match blog carousel (reusable-carousel.css) */
.betting-sites-page .game-item {
    min-height: 195px !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 calc(66.67vw - 0.5rem) !important;
    max-width: 280px !important;
    min-width: 260px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(2, 46, 74, 0.12), 0 2px 8px rgba(2, 46, 74, 0.08) !important;
    border: none !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    transition: none !important;
}

@media (hover: hover) {
    .betting-sites-page .game-item:hover .game-top-border,
    .betting-sites-page .game-item:hover .betquest-carousel-footer {
        background: rgba(0, 204, 90, 0.08) !important;
        box-shadow: 0 1px 3px rgba(0, 204, 90, 0.05) !important;
    }
}

/* Logo link span (same layout as .game-bookmaker-logo) */
.betting-sites-page .game-item-logo-link {
    display: flex !important;
    align-items: center !important;
}

.betting-sites-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;
}

.betting-sites-page .game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Replace .game-top-border with shared footer class – align with reusable-carousel.css (rounded bottom corners) */
.betting-sites-page .game-item .betquest-carousel-footer,
.betting-sites-page .game-top-border {
    min-height: 35px !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-radius: 0 0 8px 8px !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    flex-shrink: 0 !important;
}

.betting-sites-page .game-bookmaker-logo,
.betting-sites-page .game-item-logo-link {
    display: flex !important;
    align-items: center !important;
}

.betting-sites-page .game-bookmaker-logo img,
.betting-sites-page .game-item-logo-link img {
    width: 70px !important;
    height: auto !important;
    max-height: 35px !important;
    object-fit: contain !important;
}

.betting-sites-page .game-timer-text,
.betting-sites-page .game-timer-text span {
    font-size: 16px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
    min-width: 10ch !important;
    display: inline-block !important;
}

.betting-sites-page .game-timer-text {
    color: #00cc5a !important;
    text-align: right;
}

/* Expired round timer text: dark red rgb(204, 8, 0) – overrides any inline style on all pages */
.betting-sites-page .game-item.expired-competition .game-timer-text,
.betting-sites-page .game-item.expired-competition .game-timer-text span {
    color: rgb(204, 8, 0) !important;
}

/* Desktop - remove flex constraints */
@media (min-width: 920px) {
    .betting-sites-page .game-item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        flex: none !important;
    }
    
    .betting-sites-page .game-image {
        height: 160px !important;
    }
}

/* ===== OFFERS ROW ===== */
.offers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: start;
}

.offer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.offer-box-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #022e4a;
    text-align: left;
}

.offer-box-title .see-all-link {
    color: #00cc5a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px !important;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

/* Mobile override for offer-box-title see-all-link */
@media (max-width: 767px) {
    .offer-box-title .see-all-link {
        font-size: 14px !important;
    }
}

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

.offer-box {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    flex: 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.offer-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.offer-box-text {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    /* Allow up to 3 lines */
    max-height: none;
    overflow: visible;
}

/* ===== DETAILS SECTION ===== */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 0;
    border-top: none;
}

.details-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.details-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0;
}

.details-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.pros-cons-section {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.pros-list,
.cons-list {
    flex: 1;
}

.pros-list ul,
.cons-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pros-list li,
.cons-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.pro-icon {
    color: #00cc5a;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.con-icon {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.available-games-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

.available-games-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.available-game-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e0e0e0;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

/* First 2 items (top row) - span 2 columns each (50% width each) */
.available-game-item:nth-child(1),
.available-game-item:nth-child(2) {
    grid-column: span 2;
}

/* Items 3+ (second row and below) - span 1 column each (25% width, 4 per row) */
.available-game-item:nth-child(n+3) {
    grid-column: span 1;
}

.available-game-item.available {
    background: #f0f9ff;
    border-color: #00cc5a;
    color: #022e4a;
}

.available-game-item.unavailable {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    opacity: 0.6;
}

.available-game-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===== SEO SECTION ===== */
.seo-content-section {
    padding-top: 0;
    border-top: none;
    margin-bottom: 0;
}

.seo-content-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #022e4a;
    margin: 0 0 0.75rem 0;
}

.seo-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

.seo-text.placeholder {
    color: #999;
    font-style: italic;
}

/* Hide all mobile-specific elements on desktop */
@media (min-width: 1024px) {
    .mobile-see-more-icon,
    .mobile-casino-offer-collapsed,
    .mobile-expanded-content {
        display: none !important;
    }
}

/* Ensure desktop content is visible on desktop */
@media (min-width: 1024px) {
    .desktop-content {
        display: block !important;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1023px) {
    /* Show mobile elements on mobile */
    .mobile-see-more-icon {
        display: flex !important;
    }
    
    .mobile-casino-offer-collapsed {
        display: block !important;
    }
    /* Hide desktop content on mobile */
    .desktop-content {
        display: none !important;
    }
    
    /* Top bar - logo left, name/review stacked, see more icon top right */
    .bookmaker-top-bar {
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .top-bar-logo-name {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        flex: 1;
        min-width: 0;
    }
    
    .bookmaker-name-section {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 1;
        min-width: 0;
    }
    
    .bookmaker-name {
        margin: 0;
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .review-link {
        font-size: 0.875rem;
        text-decoration: underline;
        color: #022e4a;
    }
    
    /* Expand/collapse icon button - top right */
    .mobile-see-more-icon {
        position: absolute;
        top: 0;
        right: 0;
        background: #00cc5a;
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        padding: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.5rem;
        font-weight: 700;
        z-index: 100;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        max-height: 60px;
        height: 60px;
        min-height: 60px;
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        transition: background-color 0.2s ease, J 0.2s ease;
    }
    
    .mobile-see-more-icon .expand-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        font-size: 2rem;
        font-weight: 300;
    }
    
    .mobile-see-more-icon:hover {
        background: #00b850;
    }
    
    .mobile-see-more-icon:active {
        opacity: 0.8;
    }
    
    /* Below 400px - just green plus/minus icon, no box */
    @media (max-width: 400px) {
        .mobile-see-more-icon {
            background: transparent;
            width: auto;
            min-width: auto;
            max-width: none;
            height: auto;
            min-height: auto;
            max-height: none;
            padding: 0;
        }
        
        .mobile-see-more-icon .expand-icon {
            font-size: 2rem;
            color: #00cc5a;
            font-weight: 700;
        }
        
        .mobile-see-more-icon:hover {
            background: transparent;
        }
    }
    
    /* Hide desktop top bar items on mobile */
    .top-bar-item:not(.top-bar-logo-name) {
        display: none !important;
    }
    
    /* Mobile casino offer - visible when collapsed, hidden when expanded */
    .mobile-casino-offer-collapsed {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .mobile-collapsed-offer-item {
        display: flex;
        flex-direction: column;
    }
    
    .bookmaker-section-test:not(.mobile-collapsed) .mobile-casino-offer-collapsed {
        display: none !important;
    }
    
    /* Mobile expanded content - hidden by default when collapsed */
    .mobile-expanded-content {
        display: none !important;
    }
    
    .bookmaker-section-test:not(.mobile-collapsed) .mobile-expanded-content {
        display: block !important;
        overflow: visible !important;
        min-height: 0; /* Allow natural height from content */
    }
    
    /* Ensure expanded section never clips competition boxes - full height visible */
    .bookmaker-section-test:not(.mobile-collapsed) .mobile-competitions-swiper {
        overflow-y: visible !important; /* Show full box height, no cut-off at bottom */
        min-height: 215px !important;   /* At least one full game-item (195px) + margin */
    }
    
    /* Mobile info rows */
    .mobile-info-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-info-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mobile-info-label {
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 0.5rem;
        font-weight: 600;
        text-align: center;
        width: 100%;
    }
    
    .mobile-info-value {
        font-size: 1rem;
        color: #022e4a;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .mobile-info-value-centered {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .mobile-info-value-centered.mobile-apps {
        gap: 0.5rem;
    }
    
    /* Mobile competitions sections with swiper - no clipping when expanded */
    .bookmaker-section-test:not(.mobile-collapsed) .mobile-competitions-wrapper,
    .bookmaker-section-test:not(.mobile-collapsed) .mobile-competitions-section {
        overflow: visible !important;
    }
    
    .mobile-competitions-section {
        margin-bottom: 1.5rem;
    }
    
    .mobile-competitions-header {
        font-size: 1rem;
        font-weight: 700;
        color: #022e4a;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    /* Below 600px - use swiper/scrollable logic */
    .mobile-competitions-swiper {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 7px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !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;
        scroll-padding: var(--content-side-padding, 1rem) !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .mobile-competitions-swiper::-webkit-scrollbar {
        display: none !important;
    }
    
    .mobile-competitions-swiper .item {
        flex: 0 0 calc(66.67vw - 0.5rem) !important;
        max-width: 280px !important;
        min-width: 260px !important;
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
    }
    
    /* If only one item, center it */
    .mobile-competitions-swiper .item:only-child {
        flex: 0 0 calc(66.67vw - 0.5rem) !important;
        margin: 0 auto !important;
    }
    
    /* Center single item swiper container */
    .mobile-competitions-swiper.single-item {
        justify-content: center !important;
    }
    
    /* Same height for actual and placeholder boxes (No Other Jackpot / No Other Free Instant Win) */
    .mobile-competitions-swiper .game-item {
        width: 100% !important;
        height: 195px !important;
        min-height: 195px !important;
        max-height: 195px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 16px rgba(2, 46, 74, 0.12), 0 2px 8px rgba(2, 46, 74, 0.08) !important;
    }
    
    .mobile-competitions-swiper .game-image {
        height: 160px !important;
        min-height: 160px !important;
        flex-shrink: 0 !important;
    }
    
    .mobile-competitions-swiper .game-image img {
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Footer: rounded bottom corners to match blog carousel */
    .mobile-competitions-swiper .game-item .betquest-carousel-footer,
    .mobile-competitions-swiper .game-item .game-top-border {
        border-radius: 0 0 8px 8px !important;
        min-height: 35px !important;
        flex-shrink: 0 !important;
    }
    
    /* At 600px - switch to side-by-side no scroll */
    @media (min-width: 600px) {
        .mobile-competitions-swiper {
            overflow: visible !important;
            margin: 0 !important;
            padding: 0 !important;
            gap: 0.75rem !important;
            justify-content: flex-start;
        }
        
        .mobile-competitions-swiper .item {
            flex: 0 0 calc(50% - 0.375rem) !important;
            max-width: calc(50% - 0.375rem) !important;
            min-width: calc(50% - 0.375rem) !important;
        }
    }
    
    /* Scale up boxes from 600px to 768px */
    @media (min-width: 650px) {
        .mobile-competitions-swiper {
            gap: 1rem !important;
        }
        
        .mobile-competitions-swiper .item {
            flex: 0 0 calc(50% - 0.5rem) !important;
            max-width: calc(50% - 0.5rem) !important;
            min-width: calc(50% - 0.5rem) !important;
        }
    }
    
    /* At 768px - offers side-by-side, competitions wider but on separate lines */
    @media (min-width: 768px) {
        .mobile-expanded-content {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        /* Competitions wrapper - keep on separate lines but wider */
        .mobile-competitions-wrapper {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            margin-bottom: 0;
        }
        
        .mobile-competitions-section {
            margin-bottom: 0;
        }
        
        .mobile-competitions-header {
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
            text-align: left;
        }
        
        .mobile-competitions-swiper {
            display: grid !important;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem !important;
            overflow: visible !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        .mobile-competitions-swiper .item {
            flex: none !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }
        
        .mobile-competitions-swiper .game-item {
            height: auto !important;
            min-height: 220px !important;
            max-height: none !important;
        }
        
        .mobile-competitions-swiper .game-image {
            height: 180px !important;
        }
        
        /* Scale up offers to side-by-side */
        .mobile-offers-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 1.5rem;
        }
        
        .mobile-offer-header {
            margin-bottom: 0.75rem;
            font-size: 1rem;
            text-align: left;
        }
        
        /* Collapsed offers - show both offers side-by-side at 768px+ */
        .mobile-casino-offer-collapsed {
            display: grid !important;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            align-items: stretch;
        }
        
        .mobile-collapsed-offer-item {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .mobile-casino-offer-collapsed .mobile-offer-box {
            flex: 1;
            min-height: 120px;
        }
    }
    
    /* Scale up from 768px to desktop */
    @media (min-width: 900px) {
        .mobile-competitions-wrapper {
            gap: 2rem;
        }
        
        .mobile-competitions-swiper {
            gap: 1rem !important;
        }
        
        .mobile-competitions-swiper .game-item {
            min-height: 240px !important;
        }
        
        .mobile-competitions-swiper .game-image {
            height: 200px !important;
        }
        
        .mobile-offers-section {
            gap: 2rem;
            margin-top: 2rem;
        }
    }
    
    @media (min-width: 1024px) {
        .mobile-competitions-wrapper {
            gap: 2.5rem;
        }
        
        .mobile-competitions-swiper {
            gap: 1.25rem !important;
        }
        
        .mobile-competitions-swiper .game-item {
            min-height: 260px !important;
        }
        
        .mobile-competitions-swiper .game-image {
            height: 220px !important;
        }
        
        .mobile-competitions-header {
            font-size: 1rem;
            text-align: left;
        }
        
        .mobile-offers-section {
            gap: 2.5rem;
            margin-top: 2.5rem;
        }
    }
    
    /* Mobile offers section */
    .mobile-offers-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .mobile-offer-header {
        font-size: 1rem;
        font-weight: 700;
        color: #022e4a;
        margin: 0 0 0.5rem 0;
        text-align: left;
    }
    
    .mobile-offer-header .see-all-link {
        color: #00cc5a;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px !important;
        margin-left: 0.25rem;
        transition: color 0.2s;
    }
    
    .mobile-offer-header .see-all-link:hover {
        color: #00cc57;
        text-decoration: underline;
    }
    
    .mobile-competitions-header .see-all-link {
        color: #00cc5a;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px !important;
        margin-left: 0.25rem;
        transition: color 0.2s;
    }
    
    .mobile-competitions-header .see-all-link:hover {
        color: #00cc57;
        text-decoration: underline;
    }
    
    .mobile-casino-offer-collapsed .mobile-offer-header {
        margin-bottom: 0.5rem;
    }
    
    .mobile-offer-box {
        padding: 1.5rem;
        border-radius: 0.5rem;
        text-align: center;
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure all offer boxes in the same section have the same height */
    .mobile-offers-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-offer-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-offers-section .mobile-offer-box {
        flex: 1;
        min-height: 100px;
    }
    
    @media (min-width: 768px) {
        .mobile-offers-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            align-items: stretch;
        }
        
        .mobile-offer-wrapper {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .mobile-offers-section .mobile-offer-box {
            min-height: 120px;
            flex: 1;
        }
        
        /* Ensure collapsed offers also match height */
        .mobile-casino-offer-collapsed {
            align-items: stretch;
        }
        
        .mobile-collapsed-offer-item {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .mobile-casino-offer-collapsed .mobile-offer-box {
            flex: 1;
            min-height: 120px;
        }
    }
    
    .mobile-offer-text {
        font-size: 1.125rem;
        font-weight: 700;
        line-height: 1.4;
    }
    
    /* Mobile details section - hidden on mobile */
    .mobile-details-section {
        display: none !important;
    }
    
    /* Mobile games section */
    .mobile-games-section {
        margin-bottom: 1.5rem;
    }
    
    .mobile-games-header {
        font-size: 1rem;
        font-weight: 700;
        color: #022e4a;
        margin-bottom: 1rem;
    }
    
    .mobile-games-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .mobile-game-box {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
    }
    
    .mobile-game-box.available {
        background: #f0fdf4;
        border-color: #00cc5a;
    }
    
    .mobile-game-box.unavailable {
        background: #f9fafb;
        border-color: #d1d5db;
        opacity: 0.6;
    }
    
    .mobile-game-icon {
        font-size: 1.25rem;
        font-weight: 700;
    }
    
    .mobile-game-box.available .mobile-game-icon {
        color: #00cc5a;
    }
    
    .mobile-game-box.unavailable .mobile-game-icon {
        color: #9ca3af;
    }
    
    .mobile-game-name {
        font-size: 0.875rem;
        font-weight: 600;
        color: #022e4a;
    }
    
    /* Mobile SEO section - scrollable, 10 lines visible */
    .mobile-seo-section {
        margin-bottom: 1rem;
    }
    
    .mobile-seo-section h3 {
        font-size: 1rem;
        font-weight: 700;
        color: #022e4a;
        margin-bottom: 1rem;
    }
    
    .mobile-seo-section .seo-content {
        max-height: 6em; /* Approximately 6 lines - reduced to show less initially */
        overflow-y: auto;
        line-height: 1.6;
        font-size: 0.875rem;
        color: #4b5563;
    }
    
    .mobile-seo-section .seo-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .mobile-seo-section .seo-content::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 3px;
    }
    
    .mobile-seo-section .seo-content::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }
    
    .mobile-seo-section .seo-content::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }
}

/* ===== SKELETON LOADERS ===== */
/* Skeleton loaders for betting-sites page to prevent CLS */
/* FORCE skeletons to be visible - override ALL possible hiding rules */
.betting-sites-page #bookmakers-list .bookmaker-section-test[data-skeleton="true"],
body.page-transitioning .betting-sites-page #bookmakers-list .bookmaker-section-test[data-skeleton="true"],
body.page-transitioning:not(.loaded) .betting-sites-page #bookmakers-list .bookmaker-section-test[data-skeleton="true"] {
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    transform: translateZ(0) !important;
}

/* Hide skeletons when page is loaded AND content is ready */
.betting-sites-page.loaded #bookmakers-list .bookmaker-section-test[data-skeleton="true"] {
    display: none !important;
}

/* Skeleton containers - NO shimmer on parents, just normal styling */
.betting-sites-page .bookmaker-section-test[data-skeleton="true"] {
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px rgba(2, 46, 74, 0.12), 0 2px 6px rgba(2, 46, 74, 0.06) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
}

.betting-sites-page .bookmaker-top-bar {
    /* Normal styling - no shimmer on parent */
    background: transparent !important;
}

/* Individual child elements get shimmer animation - ONLY these elements shimmer */
.betting-sites-page [data-skeleton="true"] .bookmaker-logo-large.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .bookmaker-name.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .review-link.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .top-bar-label.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .top-bar-value.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .mobile-see-more-icon.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .mobile-offer-header.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .offer-box.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .competitions-header.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .offer-box-title.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .game-item.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .game-image.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .game-top-border.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .betquest-carousel-footer.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .game-bottom-border.skeleton-shimmer,
.betting-sites-page [data-skeleton="true"] .payment-icons.skeleton-shimmer {
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 2s ease-in-out infinite !important;
}

/* Specific skeleton element dimensions to match real content */
.betting-sites-page .bookmaker-logo-large.skeleton-shimmer {
    width: 120px !important;
    height: 60px !important;
    max-height: 60px !important;
    border-radius: 8px !important;
}

.betting-sites-page .bookmaker-name.skeleton-shimmer {
    width: 80px !important; /* Match Bet365's short name width (6 characters) */
    height: 24px !important;
    border-radius: 4px !important;
    max-width: 100% !important; /* Prevent overflow on mobile */
}

/* Mobile: Remove global h2 margin so bookmaker name and Review link have no 1.5rem gap (TYPOGRAPHY SCALE in styles-new.css sets h2 { margin-bottom: 1.5rem } – override only for this page) */
@media (max-width: 767px) {
    .betting-sites-page .bookmaker-name-section .bookmaker-name {
        margin-bottom: 0 !important;
    }
}

/* Mobile: Ensure bookmaker-name-section respects flex constraints to prevent overlap */
/* Match Bet365's short name (6 characters = ~80px) - first bookmaker to load */
@media (max-width: 1023px) {
    .betting-sites-page [data-skeleton="true"] .top-bar-logo-name {
        display: flex !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        flex: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 80px) !important; /* Leave space for expand button (60px + 20px gap) */
    }
    
    .betting-sites-page [data-skeleton="true"] .bookmaker-logo-large.skeleton-shimmer {
        width: 120px !important; /* Match actual logo width */
        height: 60px !important; /* Match actual logo max-height */
        flex-shrink: 0 !important;
    }
    
    .betting-sites-page [data-skeleton="true"] .bookmaker-name-section {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .betting-sites-page [data-skeleton="true"] .bookmaker-name.skeleton-shimmer {
        width: 80px !important; /* Match Bet365's actual name width (6 characters) */
        max-width: 100% !important; /* But allow shrinking if needed */
        height: 20px !important; /* Match mobile font-size 1.25rem line-height */
    }
    
    .betting-sites-page [data-skeleton="true"] .review-link.skeleton-shimmer {
        width: 50px !important; /* "Review" is ~50px */
        height: 14px !important;
    }
    
    /* Ensure expand button skeleton matches actual button positioning */
    .betting-sites-page [data-skeleton="true"] .mobile-see-more-icon.skeleton-shimmer {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    @media (max-width: 400px) {
        .betting-sites-page [data-skeleton="true"] .mobile-see-more-icon.skeleton-shimmer {
            width: auto !important;
            min-width: auto !important;
            max-width: none !important;
            height: auto !important;
            min-height: auto !important;
            max-height: none !important;
            background: transparent !important;
        }
    }
}

.betting-sites-page .review-link.skeleton-shimmer {
    width: 80px !important;
    height: 14px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.betting-sites-page .top-bar-label.skeleton-shimmer {
    width: 100px !important;
    height: 14px !important;
    border-radius: 4px !important;
}

.betting-sites-page .top-bar-value.skeleton-shimmer {
    width: 80px !important;
    height: 20px !important;
    border-radius: 4px !important;
}

.betting-sites-page .mobile-see-more-icon.skeleton-shimmer {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: #00cc5a !important;
}

.betting-sites-page .mobile-offer-header.skeleton-shimmer {
    width: 140px !important;
    height: 20px !important;
    border-radius: 4px !important;
}

.betting-sites-page .offer-box.skeleton-shimmer {
    min-height: 140px !important;
    border-radius: 0.75rem !important;
}

.betting-sites-page .competitions-header.skeleton-shimmer {
    width: 200px !important;
    height: 20px !important;
    border-radius: 4px !important;
}

.betting-sites-page .offer-box-title.skeleton-shimmer {
    width: 150px !important;
    height: 20px !important;
    border-radius: 4px !important;
}

.betting-sites-page .game-item.skeleton-shimmer {
    height: 195px !important;
    min-height: 195px !important;
    max-height: 195px !important;
}

.betting-sites-page .game-image.skeleton-shimmer {
    height: 160px !important;
    border-radius: 8px 8px 0 0 !important;
}

.betting-sites-page .game-top-border.skeleton-shimmer,
.betting-sites-page .betquest-carousel-footer.skeleton-shimmer {
    height: 20px !important;
    border-radius: 0 !important;
}

.betting-sites-page .game-bottom-border.skeleton-shimmer {
    height: 15px !important;
    border-radius: 0 0 8px 8px !important;
}

/* Ensure skeleton elements maintain proper spacing and layout */
.betting-sites-page .skeleton-shimmer:empty {
    min-height: 1em;
}

.betting-sites-page .top-bar-item.skeleton-shimmer {
    min-width: 120px;
    min-height: 40px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 2s ease-in-out infinite !important;
    border-radius: 4px;
}

/* Desktop: Ensure skeleton top-bar matches Bet365's actual layout exactly (first bookmaker) */
/* Bet365 has short name "Bet365" (6 chars) = ~80px width, logo 120px, gap 1rem = total ~216px */
@media (min-width: 1024px) {
    .betting-sites-page [data-skeleton="true"] .bookmaker-top-bar {
        display: flex !important;
        align-items: flex-start !important;
        gap: 2rem !important;
        flex-wrap: wrap !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .betting-sites-page [data-skeleton="true"] .top-bar-logo-name {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        flex: 0 0 auto !important;
        align-self: flex-start !important;
        width: auto !important; /* Let content determine width */
        max-width: 216px !important; /* Match Bet365: 120px logo + 16px gap + 80px name */
    }
    
    .betting-sites-page [data-skeleton="true"] .bookmaker-logo-large.skeleton-shimmer {
        width: 120px !important; /* Match actual logo width */
        height: 60px !important; /* Match actual logo max-height */
        flex-shrink: 0 !important;
    }
    
    .betting-sites-page [data-skeleton="true"] .bookmaker-name-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important; /* Don't grow, match Bet365's short name */
        width: auto !important;
    }
    
    .betting-sites-page [data-skeleton="true"] .bookmaker-name.skeleton-shimmer {
        width: 80px !important; /* Match Bet365's actual name width (6 characters) */
        height: 24px !important; /* Match line-height 1.5rem = 24px */
    }
    
    .betting-sites-page [data-skeleton="true"] .review-link.skeleton-shimmer {
        width: 50px !important; /* "Review" is ~50px */
        height: 14px !important;
    }
    
    .betting-sites-page [data-skeleton="true"] .mobile-see-more-icon {
        display: none !important; /* Hide on desktop */
    }
    
    .betting-sites-page [data-skeleton="true"] .top-bar-item.skeleton-shimmer {
        flex: 0 0 auto !important;
        /* Match actual top-bar-item layout - positioned after 2rem gap from logo-name */
    }
}

.betting-sites-page .payment-icons.skeleton-shimmer {
    min-height: 40px;
    width: 100%;
}

/* Match real offer box styling for skeletons */
.betting-sites-page .offer-box.skeleton-shimmer {
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 2s ease-in-out infinite !important;
}

/* Ensure skeleton sections maintain proper grid/flex layout */
.betting-sites-page .competitions-row.skeleton-shimmer,
.betting-sites-page .offers-row.skeleton-shimmer {
    display: grid !important;
}

.betting-sites-page .competitions-grid.skeleton-shimmer {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

/* Ensure skeleton dimensions match actual content across all breakpoints */
@media (max-width: 1023px) {
    .betting-sites-page #bookmakers-list .bookmaker-section-test.skeleton-shimmer .mobile-casino-offer-collapsed {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .betting-sites-page #bookmakers-list .bookmaker-section-test.skeleton-shimmer .desktop-content {
        display: none;
    }
}

@media (min-width: 1024px) {
    .betting-sites-page #bookmakers-list .bookmaker-section-test.skeleton-shimmer .mobile-casino-offer-collapsed {
        display: none;
    }
    
    .betting-sites-page #bookmakers-list .bookmaker-section-test.skeleton-shimmer .desktop-content {
        display: block;
    }
}

/* FINAL: Betting sites timer – 16px on all breakpoints; expired = rgb(204, 8, 0) (overrides inline style) */
.betting-sites-page .game-timer-text,
.betting-sites-page .game-timer-text span {
    font-size: 16px !important;
}
.betting-sites-page .game-item.expired-competition .game-timer-text,
.betting-sites-page .game-item.expired-competition .game-timer-text span {
    color: rgb(204, 8, 0) !important;
}
