/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/poppins-v24-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Real Money Casinos - Custom Styles */

:root {
    /* Light Theme Variables */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #252525;
    /* Updated Body Color */
    --text-secondary: #6c757d;
    --border-color: #dee2e6;

    /* Color-Blind Friendly Palette (Okabe-Ito inspired) */
    --primary-color: #0157ff; /* Blue */
    --secondary-color: #E69F00; /* Orange */
    --accent-color: #56B4E9; /* Sky Blue */
    --success-color: #009E73; /* Bluish Green - distinct from red */
    --danger-color: #D55E00; /* Vermilion - distinct from green */
    --warning-color: #F0E442; /* Yellow */
    --gradient-from: #153567; /* Gradient From */
    --gradient-to: #061d4b; /* Gradient To */

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* NEW: Desktop Table Grid Definition */
    /* Rank | Casino | Bonus | Wagering | Deposit | Payout | Rating | Action */
    --table-cols: 70px 140px 1fr 90px 100px 120px 90px 120px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    padding-top: 62px; /* Adjust based on mobile navbar height */
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* =========================================
   NAVBAR & MENU (Original Logic Preserved)
   ========================================= */
.navbar {
    background-color: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-toggler {
    border: 0;
    border-radius: 0;
}
.navbar-toggler:focus { box-shadow: none; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23252525' d='M22 6a1 1 0 0 0-1-1H3a1 1 0 1 0 0 2h18a1 1 0 0 0 1-1zM22 12a1 1 0 0 0-1-1H9a1 1 0 1 0 0 2h12a1 1 0 0 0 1-1zM21 17a1 1 0 1 1 0 2h-6a1 1 0 1 1 0-2z'/%3E%3C/svg%3E");
}

.navbar-nav .nav-link { font-size: 1rem; }

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
}
.nav-link:hover { color: var(--primary-color) !important; }

.dropdown-menu {
    border: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 250px;
}

.dropdown-item { padding: 0.75rem var(--bs-dropdown-item-padding-x); }

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at center, var(--gradient-from) 0%, var(--gradient-to) 100%);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
}

.hero-title {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Cards & Buttons */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.btn-primary {
    padding: 10px 25px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* =========================================
   UNIFIED COMPARISON TABLE (The Fix)
   ========================================= */

/* Shared Styles (Badges) */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 114, 178, 0.25);
}

.rank-badge.rank-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.35);
    font-size: 1.1rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(230, 159, 0, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.casino-name-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.bonus-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* --- MOBILE STYLES (Default View) --- 
   This mimics your original 'casino-card-mobile' logic
*/
.unified-table-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.unified-table-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0; /* Important: padding handled by children for mobile header effect */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    
    /* Mobile Layout Grid */
    display: grid;
    grid-template-columns: auto 1fr auto; 
    gap: 0;
}

/* Featured Styling */
.unified-table-row.row-featured {
    border: 2px solid #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
}

/* Mobile Header Area (Rank, Name, Rating) */
.u-cell.cell-rank,
.u-cell.cell-casino,
.u-cell.cell-rating {
    grid-row: 1;
    padding: 16px 10px;
    background: linear-gradient(135deg, rgba(0, 114, 178, 0.05), rgba(86, 180, 233, 0.03));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.row-featured .u-cell.cell-rank,
.row-featured .u-cell.cell-casino,
.row-featured .u-cell.cell-rating {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.08));
}

.u-cell.cell-rank { grid-column: 1; padding-left: 18px; }
.u-cell.cell-casino { grid-column: 2; }
.u-cell.cell-rating { grid-column: 3; justify-content: flex-end; padding-right: 18px; }

/* Mobile Body Area (Bonus) */
.u-cell.cell-bonus {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 18px 18px 0 18px;
    margin-bottom: 16px;
}

/* Replicating the styled bonus box */
.u-cell.cell-bonus .bonus-text {
    display: block;
    background: linear-gradient(135deg, rgba(0, 114, 178, 0.06), rgba(86, 180, 233, 0.04));
    border-left: 4px solid var(--primary-color);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Mobile Stats Grid */
.u-cell.cell-wagering,
.u-cell.cell-deposit,
.u-cell.cell-payout {
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px 18px 10px;
}

.u-cell.cell-wagering { grid-column: 1; }
.u-cell.cell-deposit { grid-column: 2; }
.u-cell.cell-payout { grid-column: 3; }

/* Mobile Action Footer */
.u-cell.cell-action {
    grid-row: 4;
    grid-column: 1 / -1;
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.01);
}

/* Mobile Labels */
.mobile-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}
.u-cell.cell-bonus .mobile-label { display: none; } /* Hide label inside bonus box, structure handles it */

.tablesaw-stack {
    border-radius: 0.25rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.tablesaw-stack thead {
    display: none !important;
}

.tablesaw-stack tbody tr {
    display: block !important;
    background: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tablesaw-stack tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #212529;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.tablesaw-stack tbody tr td:last-child {
    border-bottom: none;
}

.tablesaw-stack tbody td .tablesaw-cell-label {
    display: inline-block !important;
    font-weight: 600;
    color: #6c757d;
    margin-right: 1rem;
}

.tablesaw-stack tbody td .tablesaw-cell-content {
    display: inline-block !important;
    color: #212529;
    text-align: right;
}

/* --- DESKTOP STYLES (lg and up) --- */
@media (min-width: 992px) {
    .unified-table-container {
        display: block;
        background: var(--bg-card);
        border-radius: 0.25rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
    }

    .unified-table-header {
        display: grid;
        grid-template-columns: var(--table-cols);
        gap: 12px;
        padding: 1.5rem;
        background: #F2F7FF;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid var(--border-color);
    }

    .unified-table-row {
        display: grid;
        grid-template-columns: var(--table-cols);
        gap: 12px;
        padding: 0.75rem 1rem;
        align-items: center;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s ease;
        background: transparent;
    }

    .unified-table-row:last-child { border-bottom: none; }
    .unified-table-row:hover { background-color: rgba(0, 114, 178, 0.04); }

    .unified-table-row.row-featured {
        border: none;
        border-bottom: 1px solid var(--border-color);
        border-left: 4px solid #FFD700;
        background: transparent;
        box-shadow: none;
    }

    /* Reset Cell Styling for Table Flow */
    .u-cell { 
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        display: flex;
        align-items: center;
        margin: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .u-cell.cell-bonus .bonus-text {
        background: transparent;
        border: none;
        padding: 0;
        font-size: 0.95rem;
        font-weight: 600;
    }

    /* Center Alignments */
    .cell-rank, .cell-wagering, .cell-deposit, .cell-payout, .cell-rating, .cell-action {
        justify-content: center;
    }

    .mobile-label { display: none; }
    .btn-sm { width: auto !important; }

    .u-cell.cell-rank { grid-column: 1 !important; grid-row: 1 !important; }
    .u-cell.cell-casino { grid-column: 2 !important; grid-row: 1 !important; }
    .u-cell.cell-bonus { grid-column: 3 !important; grid-row: 1 !important; }
    .u-cell.cell-wagering { grid-column: 4 !important; grid-row: 1 !important; }
    .u-cell.cell-deposit { grid-column: 5 !important; grid-row: 1 !important; }
    .u-cell.cell-payout { grid-column: 6 !important; grid-row: 1 !important; }
    .u-cell.cell-rating { grid-column: 7 !important; grid-row: 1 !important; }
    .u-cell.cell-action { grid-column: 8 !important; grid-row: 1 !important; }

    .tablesaw-stack {
        border: 1px solid #dee2e6;
        border-top: none;
        margin-bottom: 1rem;
    }

    .tablesaw-stack thead {
        display: table-header-group !important;
    }

    .tablesaw-stack thead th {
        background: #212529;
        color: #fff;
        border: none;
        padding: 0.75rem;
        font-weight: 600;
    }

    .tablesaw-stack tbody tr {
        display: table-row !important;
        background: none;
        border-radius: 0;
        margin-bottom: 0;
    }

    .tablesaw-stack tbody td {
        display: table-cell !important;
        border: none;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem;
    }

    .tablesaw-stack tbody tr td:last-child {
        border-bottom: 1px solid #dee2e6;
    }

    .tablesaw-stack tbody tr:last-child td {
        border-bottom: none;
    }

    .tablesaw-stack tbody td .tablesaw-cell-label {
        display: none !important;
    }

    .tablesaw-stack tbody td .tablesaw-cell-content {
        display: inline !important;
    }
}

/* =========================================
   MOBILE MENU (Bankrate Style - Preserved)
   ========================================= */
.offcanvas-body {
    position: relative;
    padding: 0;
    overflow-x: hidden;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
}

.menu-link:hover, .menu-link:focus {
    color: var(--primary-color);
    background-color: #f8f9fa;
}

.menu-link .bi-chevron-right { font-size: 0.8rem; color: #6c757d; }

.sub-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 10;
    overflow-y: auto;
    visibility: hidden;
}

.sub-menu-panel.active {
    transform: translateX(0);
    visibility: visible;
}

.back-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: #212529;
    cursor: pointer;
}
.back-btn:hover { color: var(--primary-color); }

.section-header {
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #000;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 4px solid var(--primary-color);
}

@media (min-width: 992px) {
    body { padding-top: 82px; }

    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
    .dropdown-item:focus, .dropdown-item { transition: all 0.3s ease; }
    .dropdown-item:focus, .dropdown-item:hover { background: #F2F7FF; }

    .navbar-brand img { height: 60px; }

    .navbar-nav .nav-link {
        font-size: 1.125rem;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-top: 1rem;
        padding-bottom: calc(1rem - 0.25rem);
        line-height: 50px;
        border-bottom: 4px solid transparent;
        box-sizing: border-box;
    }

    .navbar-nav .nav-link:hover {
        background: #F2F7FF;
        border-bottom: 0.25rem solid var(--primary-color);
    }
}

/* =========================================
   IN-DEPTH REVIEWS (Preserved)
   ========================================= */
.review-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}
.review-stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}
.review-stat-sub {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}
.review-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0.25rem;
    overflow: hidden;
}
.review-pros-cons-box {
    height: 100%;
    padding: 1.25rem;
    border-radius: 0.25rem;
}
.review-btn-review-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
}
.review-btn-review-toggle:hover { color: #0d6efd; }
.review-offer-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}
.review-offer-card:last-child { margin-bottom: 0; }
.review-offer-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}
.review-offer-details {
    font-size: 0.85rem;
    color: #6c757d;
}
.review-offer-code-label { display: inline-block; }
.review-offer-code {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-family: monospace;
    border: 1px dashed #ffc107;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* =========================================
   DATA TABLES (Wager/Payout/Bonus) (Preserved)
   ========================================= */
table td {
    word-break: break-word;
}
.wager-table, .payout-table, .bonus-table, .mobile-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem
}
.wager-header, .payout-header, .bonus-header, .mobile-table-header { display: none; }
.wager-row, .payout-row, .bonus-row, .mobile-table-row {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
}
.wager-cell, .payout-cell, .bonus-cell, .mobile-table-cell {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e9ecef;
}
.wager-cell:last-child, .payout-cell:last-child, .bonus-cell:last-child, .mobile-table-cell:last-child { border-bottom: none; }
.wager-label, .payout-label, .bonus-label, .mobile-table-label {
    font-weight: 600;
    color: #6c757d;
}
.wager-value, .payout-value, .bonus-value, .mobile-table-value {
    font-weight: 500;
    text-align: right;
}
.wager-casino, .payout-casino, .bonus-casino, .mobile-table-item {
    font-weight: 600;
    font-size: 1.05rem;
    color: #212529;
}
.wager-difficulty-easiest, .payout-fast, .bonus-match-standard { color: #198754; }
.wager-difficulty-easy { color: #20c997; }
.wager-difficulty-moderate, .payout-medium { color: #fd7e14; }
.wager-difficulty-hard, .payout-slow { color: #dc3545; }
.payout-na { color: #adb5bd; font-style: italic; }
.bonus-match-high { color: #6f42c1; }
.bonus-match-mid { color: #0d6efd; }
.bonus-max { font-weight: 600; color: #212529; }

/* =========================================
   FAQs
   ========================================= */

.accordion-body *:last-child {
    margin-bottom: 0
}

@media (min-width: 768px) {
    .wager-header, .payout-header, .bonus-header, .mobile-table-header {
        display: flex;
        background: #212529;
        color: #fff;
        border-radius: 0.25rem 0.25rem 0 0;
        font-weight: 600;
        padding: 0.75rem 0;
    }
    .wager-header-cell, .payout-header-cell, .bonus-header-cell, .mobile-table-header-cell {
        flex: 1;
        text-align: center;
        padding: 0 0.5rem;
    }
    .wager-header-cell:first-child, .payout-header-cell:first-child, .bonus-header-cell:first-child, .mobile-table-header-cell:first-child {
        flex: 1.5;
        text-align: left;
        padding-left: 1rem;
    }
    .bonus-header-cell:nth-child(2) { flex: 1.5; }
    .wager-table, .payout-table, .bonus-table, .mobile-table { gap: 0; }
    .wager-row, .payout-row, .bonus-row, .mobile-table-row {
        flex-direction: row;
        align-items: center;
        border-radius: 0;
        padding: 0.75rem 0;
        border: none;
        border-bottom: 1px solid #dee2e6;
    }
    .wager-row:last-child, .payout-row:last-child, .bonus-row:last-child, .mobile-table-row:last-child { border-radius: 0 0 0.5rem 0.5rem; }
    .wager-row:nth-child(even), .payout-row:nth-child(even), .bonus-row:nth-child(even), .mobile-table-row:nth-child(even) { background: #fff; }
    .wager-cell, .payout-cell, .bonus-cell, .mobile-table-cell {
        flex: 1;
        display: block;
        text-align: center;
        padding: 0 0.5rem;
        border-bottom: none;
    }
    .wager-cell:first-child, .payout-cell:first-child, .bonus-cell:first-child, .mobile-table-cell:first-child {
        flex: 1.5;
        text-align: left;
        padding-left: 1rem;
    }
    .bonus-cell:nth-child(2) { flex: 1.5; }
    .wager-label, .payout-label, .bonus-label, .mobile-table-label { display: none; }
    .wager-value, .payout-value, .bonus-value, .mobile-table-value { text-align: inherit; }
}

/* Free Spins Offers */
.spins-offers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.spins-offer-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #198754;
    border-radius: 0.5rem;
    padding: 1rem;
}
.spins-offer-casino {
    font-weight: 600;
    font-size: 1.05rem;
    color: #212529;
    margin-bottom: 0.25rem;
}
.spins-offer-detail {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.spins-offer-highlight {
    display: inline-block;
    background: #e9ecef;
    color: #212529;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
}
.spins-offer-item:nth-child(1) { border-left-color: #198754; }
.spins-offer-item:nth-child(2) { border-left-color: #0d6efd; }
.spins-offer-item:nth-child(3) { border-left-color: #6f42c1; }
.spins-offer-item:nth-child(4) { border-left-color: #fd7e14; }
.spins-offer-item:nth-child(5) { border-left-color: #20c997; }
.spins-offer-item:nth-child(6) { border-left-color: #dc3545; }

@media (min-width: 768px) {
    .spins-offers {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Footer */
footer {
    background-color: #000000;
    padding: 50px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}