/* =========================================================================
   Casino888 Child Theme — Master CSS Override v1.1.0
   Loads at priority 200, after all Highroller parent styles.
   ========================================================================= */

/* =========================================================================
   0. CSS CUSTOM PROPERTIES
   ========================================================================= */

:root {
    --c888-primary: #c41e3a;
    --c888-primary-dark: #a01830;
    --c888-primary-light: #fde8ec;
    --c888-accent: #00c853;
    --c888-accent-dark: #00a844;
    --c888-gold: #f5a623;
    --c888-silver: #95a5b6;
    --c888-bronze: #cd7f32;
    --c888-cta-gradient: linear-gradient(135deg, #c41e3a, #e63950);
    --c888-cta-green: linear-gradient(135deg, #00c853, #00e676);
    --c888-cta-gold: linear-gradient(135deg, #f5a623, #f7c948);
    --c888-dark: #1b1e2b;
    --c888-darker: #12141d;
    --c888-card-bg: #ffffff;
    --c888-text: #2d3748;
    --c888-text-light: #718096;
    --c888-text-muted: #a0aec0;
    --c888-border: #e2e8f0;
    --c888-bg: #f0f2f5;
    --c888-row-alt: #f7fafd;
    --c888-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --c888-shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.08), 0 3px 7px -3px rgba(0, 0, 0, 0.05);
    --c888-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --c888-shadow-cta: 0 4px 14px rgba(196, 30, 58, 0.4);
    --c888-shadow-green: 0 4px 14px rgba(0, 200, 83, 0.4);
    --c888-radius: 12px;
    --c888-radius-sm: 8px;
    --c888-radius-lg: 16px;
    --c888-transition: all 0.25s ease;
}

/* =========================================================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================================================= */

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--c888-text);
    overflow-x: hidden;
    margin: 0;
    background: var(--c888-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--c888-dark);
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    border-bottom: none;
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    color: var(--c888-dark);
}

h1.altheading {
    background: var(--c888-dark);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--c888-radius-sm) var(--c888-radius-sm) 0 0;
    font-size: 1.5rem;
    margin: 0 0 0;
    border-bottom: 3px solid var(--c888-primary);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding: 0 0 0.5rem;
    border-bottom: 3px solid var(--c888-primary);
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.main-content a,
.sidebar a,
.entry-content a,
footer a {
    color: var(--c888-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-content a:hover,
.sidebar a:hover,
.entry-content a:hover,
footer a:hover {
    color: var(--c888-primary-dark);
}

.main-content ul,
.main-content ol,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 0;
    list-style: none;
}

.main-content li,
.entry-content li {
    margin-bottom: 0.6em;
    padding-left: 1.6em;
    position: relative;
    line-height: 1.8;
}

/* Custom blue checkmark bullets */
.main-content ul li::before,
.entry-content ul li::before {
    content: "\f00c";
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--c888-primary);
    font-size: 0.85em;
    font-weight: 900;
}

.main-content ol {
    counter-reset: list-counter;
}

.main-content ol li,
.entry-content ol li {
    counter-increment: list-counter;
}

.main-content ol li::before,
.entry-content ol li::before {
    content: counter(list-counter) ".";
    font-family: 'Inter', sans-serif;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c888-primary);
    font-weight: 700;
    font-size: 0.95em;
}

strong, b {
    font-weight: 600;
}

/* =========================================================================
   2. LAYOUT & STRUCTURE
   ========================================================================= */

#outerwrap {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 1280px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    margin: 0 auto;
}

.wrap {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

#main.container,
#main.contentarea {
    padding-top: 20px;
    overflow: hidden;
}

#main > .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.main-content {
    background: var(--c888-card-bg);
    border-radius: var(--c888-radius);
    box-shadow: var(--c888-shadow);
    box-sizing: border-box;
    padding: 30px;
    flex: 1 1 0;
    min-width: 0;
    float: none;
    width: auto;
    margin: 0;
}

.main-content.fullwidth {
    flex: 1 1 100%;
    max-width: 100%;
}

/* =========================================================================
   3. HEADER — Full-width, logo left, banner right
   ========================================================================= */

header.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
    position: relative;
    z-index: 100;
    width: calc(100% + 32px);
    margin-left: -16px;
}

header.main-header > .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    float: left;
}

.header-logo a,
.header-logo h2 a {
    color: var(--c888-dark);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.header-logo img {
    max-height: 60px;
    width: auto;
}

/* Header banner/widgets — to the right of logo */
.headerwidgets {
    float: right;
    text-align: right;
}

.headerwidgets img {
    max-height: 90px;
    width: auto;
}

.headerwidgets .bannerwidget,
.headerwidgets .bannerAd {
    display: inline-block;
    margin: 0;
}

/* =========================================================================
   4. NAVIGATION — Full-width dark bar with hover effects
   ========================================================================= */

nav.navbar {
    background: var(--c888-dark);
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    width: calc(100% + 32px);
    margin-left: -16px;
}

nav.navbar > .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

ul.nav {
    background: var(--c888-dark);
    height: 46px;
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav li {
    float: left;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.nav li:first-child { border-left: none; }
.nav li:last-child { border-right: none; }

.nav li a,
.nav li a:visited {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #e2e8f0;
    display: block;
    padding: 6px 14px;
    transition: var(--c888-transition);
    line-height: 34px;
    border-bottom: 3px solid transparent;
}

.nav li a:hover,
.nav li a:active,
.nav li.current-menu-item > a,
.nav li.current_page_item > a,
.nav li.current-menu-parent > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--c888-primary);
}

.nav li ul {
    position: absolute;
    left: -999em;
    width: 200px;
    margin: 0 0 0 -1px;
    line-height: 17px;
    background: var(--c888-dark);
    z-index: 10;
    border-radius: 0 0 var(--c888-radius-sm) var(--c888-radius-sm);
    box-shadow: var(--c888-shadow-lg);
    border-top: 2px solid var(--c888-primary);
}

.nav li li {
    float: none;
    width: 200px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav li li a,
.nav li li a:visited {
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    text-transform: none;
    line-height: 1.4;
    border-bottom: none;
    background: none;
    border-right: 0;
}

.nav li:hover > ul,
.nav li li:hover > ul {
    left: auto;
}

.nav li li ul {
    margin: -30px 0 0 200px;
    visibility: hidden;
}

.nav li li:hover > ul {
    visibility: visible;
}

/* Mobile menu — HIDDEN on desktop */
#mobile-menu-btn {
    display: none;
}

#mobile-menu {
    display: none;
}

#mobile-menu .menu-item-has-children .arrow {
    display: none;
}

/* =========================================================================
   5. HERO SECTION — Premium casino feel with pattern texture
   ========================================================================= */

.c888-hero {
    background: linear-gradient(135deg, #1b1e2b 0%, #2a1520 40%, #3d1525 70%, #1b1e2b 100%);
    padding: 90px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: -30px -30px 30px;
    border-radius: var(--c888-radius) var(--c888-radius) 0 0;
}

/* Card/poker pattern texture overlay using CSS */
.c888-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 L35 15 L30 25 L25 15Z' fill='white'/%3E%3Ccircle cx='10' cy='45' r='6' fill='white'/%3E%3Cpath d='M50 35 Q53 42 50 49 Q47 42 50 35Z M44 42 Q50 39 56 42 Q50 45 44 42Z' fill='white'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.c888-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(196, 30, 58, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 166, 35, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.c888-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.c888-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.2;
    border-bottom: none;
    background: none;
    padding: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.c888-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 2.5rem;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.c888-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c888-cta-green);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 42px;
    border-radius: var(--c888-radius);
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    transition: var(--c888-transition);
    text-decoration: none;
    text-transform: none;
    animation: c888-shimmer 3s infinite;
    position: relative;
    overflow: hidden;
}

.c888-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: c888-shimmer-sweep 3s infinite;
}

.c888-hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(0, 200, 83, 0.55);
    color: #fff;
}

.c888-hero-cta-arrow {
    font-size: 1.3em;
    transition: transform 0.2s ease;
}

.c888-hero-cta:hover .c888-hero-cta-arrow {
    transform: translateX(5px);
}

@keyframes c888-shimmer {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4); }
    50% { box-shadow: 0 4px 35px rgba(0, 200, 83, 0.65); }
}

@keyframes c888-shimmer-sweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.c888-hero-trust-line {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* =========================================================================
   6. TRUST BADGES — Enhanced
   ========================================================================= */

.c888-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 20px;
    margin: 0 -30px 30px;
    background: linear-gradient(135deg, var(--c888-primary-light), #f0f4ff);
    border-bottom: 2px solid var(--c888-border);
}

.c888-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.c888-trust-badge:hover {
    transform: translateY(-2px);
}

.c888-trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--c888-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.c888-trust-icon i {
    color: #fff;
    font-size: 18px;
}

.c888-trust-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--c888-dark);
}

/* =========================================================================
   7. COMPARISON TABLE (.comptable) — Premium revenue driver
   ========================================================================= */

/* Wrapper added via PHP filter */
.c888-comptable-wrapper {
    position: relative;
    margin: 30px 0;
    overflow-x: auto;
    max-width: 100%;
}

table.comptable {
    border-collapse: separate;
    border-spacing: 0 12px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    table-layout: fixed;
}

/* Header row */
table.comptable tr.topcomp {
    background: linear-gradient(135deg, var(--c888-dark), #16213e);
    border-radius: var(--c888-radius-sm);
}

table.comptable tr.topcomp th {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 14px;
    border: none;
}

table.comptable tr.topcomp th:first-child {
    border-radius: var(--c888-radius-sm) 0 0 var(--c888-radius-sm);
}

table.comptable tr.topcomp th:last-child {
    border-radius: 0 var(--c888-radius-sm) var(--c888-radius-sm) 0;
}

/* Data rows — card style with alternating bg */
table.comptable tr:not(.topcomp) {
    background: var(--c888-card-bg);
    box-shadow: var(--c888-shadow);
    border-radius: var(--c888-radius);
    transition: all 0.3s ease;
    position: relative;
}

table.comptable tr:not(.topcomp):nth-child(odd) {
    background: var(--c888-row-alt);
}

table.comptable tr:not(.topcomp):nth-child(even) {
    background: var(--c888-card-bg);
}

/* Row hover — strong lift with green glow */
table.comptable tr:not(.topcomp):hover {
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.2), var(--c888-shadow-lg);
    transform: translateY(-4px);
    z-index: 2;
}

/* Left border colors: gold #1, silver #2, bronze #3 */
table.comptable tr:nth-child(2):not(.topcomp) {
    border-left: 5px solid var(--c888-gold);
}

table.comptable tr:nth-child(3):not(.topcomp) {
    border-left: 5px solid var(--c888-silver);
}

table.comptable tr:nth-child(4):not(.topcomp) {
    border-left: 5px solid var(--c888-bronze);
}

table.comptable tr:nth-child(n+5):not(.topcomp) {
    border-left: 5px solid var(--c888-border);
}

/* "MEILLEUR CHOIX 2026" badge on first casino row */
table.comptable tr:nth-child(2):not(.topcomp)::before {
    content: "\1F3C6  MEILLEUR CHOIX 2026";
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, var(--c888-gold), #f7c948);
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.4);
    z-index: 3;
    white-space: nowrap;
}

/* Trust signals on each data row via ::after */
table.comptable tr:not(.topcomp)::after {
    content: "\2714  Paiements rapides  \00b7  \2714  Licence v\00e9rifi\00e9e  \00b7  \2714  Support FR";
    display: block;
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: var(--c888-text-muted);
    letter-spacing: 0.02em;
    padding: 0 10px;
}

/* Column widths for fixed layout */
table.comptable .rankcol { width: 8%; }
table.comptable .casinocol { width: 22%; }
table.comptable .bonuscol { width: 25%; }
table.comptable .depcol { width: 20%; }
table.comptable .visitcol { width: 25%; }

/* Cell styling */
table.comptable td {
    padding: 20px 8px 28px;
    vertical-align: middle;
    text-align: center;
    color: var(--c888-text);
    font-weight: 500;
    border: none;
    background: transparent;
    overflow: hidden;
    word-wrap: break-word;
}

table.comptable tr:not(.topcomp) td:first-child {
    border-radius: var(--c888-radius) 0 0 var(--c888-radius);
}

table.comptable tr:not(.topcomp) td:last-child {
    border-radius: 0 var(--c888-radius) var(--c888-radius) 0;
}

/* Remove parent alternating row bg override */
table.comptable tr:nth-child(2n+1) td {
    background: transparent;
}

/* Rank circle */
.comptable .rankcir {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Gold, silver, bronze ranks */
table.comptable tr:nth-child(2) .rankcir {
    background: linear-gradient(135deg, #f5a623, #f7c948);
    box-shadow: 0 3px 12px rgba(245, 166, 35, 0.5);
}

table.comptable tr:nth-child(3) .rankcir {
    background: linear-gradient(135deg, #8e99a4, #b8c4ce);
    box-shadow: 0 3px 12px rgba(142, 153, 164, 0.4);
}

table.comptable tr:nth-child(4) .rankcir {
    background: linear-gradient(135deg, #cd7f32, #daa06d);
    box-shadow: 0 3px 12px rgba(205, 127, 50, 0.4);
}

table.comptable tr:nth-child(n+5) .rankcir {
    background: linear-gradient(135deg, #4a5568, #718096);
}

/* Casino logo */
.comptable img.logocomp {
    border-radius: var(--c888-radius-sm);
    max-width: 110px;
    height: auto;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table.comptable tr:not(.topcomp):hover img.logocomp {
    transform: scale(1.05);
}

/* Bonus text */
.comptable span.hilite {
    color: var(--c888-primary);
    font-size: 1.1em;
    font-weight: 700;
    display: block;
    line-height: 1.4;
}

/* Rating bar — styled as a colored badge */
.comptable .rate {
    height: 28px;
    background: #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
    position: relative;
}

.comptable .ratetotal {
    height: 100%;
    background: var(--c888-cta-green);
    border-radius: 14px;
    display: block;
    position: relative;
}

.comptable .rate.ratecen {
    height: 28px;
    border-radius: 14px;
    max-width: 100px;
}

/* CTA button — visit: green gradient, fits in table */
a.visbutton {
    display: inline-block;
    background: var(--c888-cta-green) !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    min-width: 0;
    text-align: center;
    box-shadow: var(--c888-shadow-green);
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    cursor: pointer;
}

a.visbutton:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.5);
    filter: brightness(1.08);
    color: #fff !important;
}

/* Full-width button variant */
a.visbutton.fullbutton {
    display: block;
    width: 100%;
}

/* Review link */
a.revlink {
    display: block;
    text-align: center;
    color: var(--c888-text-light);
    font-size: 12px;
    margin-top: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.revlink:hover {
    color: var(--c888-primary);
    text-decoration: underline;
}

a.revlink.tc {
    font-size: 11px;
    color: var(--c888-text-muted);
}

/* =========================================================================
   8. CTA BUTTON SYSTEM (flybutton shortcode)
   ========================================================================= */

a.flybutton {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c888-cta-gradient);
    color: #fff;
    padding: 13px 24px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: var(--c888-shadow-cta);
    transition: var(--c888-transition);
    text-decoration: none;
    border: none;
}

a.flybutton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5);
    opacity: 1;
    filter: brightness(1.08);
}

a.flybutton.green {
    background: var(--c888-cta-green);
    box-shadow: var(--c888-shadow-green);
}

a.flybutton.green:hover {
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
}

a.flybutton.orange,
a.flybutton.yellow {
    background: var(--c888-cta-gold);
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
    color: #fff;
}

a.flybutton.lg {
    padding: 16px 32px;
    font-size: 17px;
}

a.flybutton.sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* =========================================================================
   9. QUICK COMPARE CARDS [casino888_quick_compare]
   ========================================================================= */

.c888-quick-compare {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.c888-qc-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 220px;
    background: var(--c888-card-bg);
    border: 1px solid var(--c888-border);
    border-radius: var(--c888-radius);
    box-shadow: var(--c888-shadow);
    padding: 28px 22px;
    text-align: center;
    transition: var(--c888-transition);
    position: relative;
    overflow: hidden;
}

.c888-qc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--c888-cta-green);
}

.c888-qc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--c888-shadow-lg);
    border-color: var(--c888-accent);
}

.c888-qc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.c888-qc-icon i {
    font-size: 22px;
    color: var(--c888-accent);
}

.c888-qc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c888-dark);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.c888-qc-casino {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--c888-primary);
    margin: 0 0 4px;
}

.c888-qc-detail {
    font-size: 0.9rem;
    color: var(--c888-text-light);
    margin: 0 0 18px;
}

.c888-qc-cta {
    display: inline-block;
    background: var(--c888-cta-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--c888-radius-sm);
    text-decoration: none;
    box-shadow: var(--c888-shadow-green);
    transition: var(--c888-transition);
}

.c888-qc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
    color: #fff;
}

/* =========================================================================
   10. GAME PROVIDERS SECTION [casino888_providers]
   ========================================================================= */

.c888-providers {
    margin: 30px 0;
    text-align: center;
}

.c888-providers-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c888-text-muted);
    margin-bottom: 14px;
}

.c888-providers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.c888-provider-badge {
    display: inline-block;
    background: #f1f3f5;
    color: var(--c888-text-light);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--c888-border);
    transition: var(--c888-transition);
    white-space: nowrap;
}

.c888-provider-badge:hover {
    background: var(--c888-primary-light);
    color: var(--c888-primary);
    border-color: var(--c888-primary);
}

/* =========================================================================
   11. SECTION CTA BLOCK
   ========================================================================= */

.c888-section-cta {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    border: 1px solid var(--c888-border);
    border-left: 4px solid var(--c888-primary);
    border-radius: var(--c888-radius-sm);
    padding: 24px 28px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.c888-section-cta-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--c888-dark);
    margin: 0;
    flex: 1;
}

.c888-section-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c888-cta-green);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--c888-shadow-green);
    transition: var(--c888-transition);
    white-space: nowrap;
    text-decoration: none;
}

.c888-section-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
    color: #fff;
}

/* =========================================================================
   12. FAQ SECTION
   ========================================================================= */

.c888-faq {
    margin: 40px 0 30px;
}

.c888-faq-title {
    display: block;
    border-bottom: 3px solid var(--c888-primary);
    margin-bottom: 20px;
}

.c888-faq-item {
    background: var(--c888-card-bg);
    border: 1px solid var(--c888-border);
    border-radius: var(--c888-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--c888-transition);
}

.c888-faq-item:hover {
    border-color: var(--c888-primary);
}

.c888-faq-item[open] {
    box-shadow: var(--c888-shadow);
    border-color: var(--c888-primary);
}

.c888-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--c888-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    user-select: none;
}

.c888-faq-question::-webkit-details-marker {
    display: none;
}

.c888-faq-question::marker {
    display: none;
    content: '';
}

.c888-faq-chevron {
    transition: transform 0.3s ease;
    color: var(--c888-text-light);
    flex-shrink: 0;
}

.c888-faq-item[open] .c888-faq-chevron {
    transform: rotate(180deg);
    color: var(--c888-primary);
}

.c888-faq-answer {
    padding: 0 20px 16px;
    color: var(--c888-text);
    line-height: 1.8;
    border-top: 1px solid var(--c888-border);
    margin-top: 0;
    padding-top: 16px;
}

.c888-faq-answer p:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   13. SIDEBAR — Premium, cleaner with more spacing
   ========================================================================= */

.sidebar {
    background: transparent;
    padding: 0;
    width: 320px;
    flex: 0 0 320px;
    float: none;
}

.sidebar .widget {
    background: var(--c888-card-bg);
    border-radius: var(--c888-radius);
    box-shadow: var(--c888-shadow);
    border: 1px solid var(--c888-border);
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--c888-transition);
}

.sidebar .widget:hover {
    box-shadow: var(--c888-shadow-md);
}

.sidebar h3 {
    background: var(--c888-dark);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    margin: 0;
    border-bottom: 3px solid var(--c888-primary);
    border-radius: 0;
}

.sidebar .widget ul {
    padding: 12px 18px;
    margin: 0;
    list-style: none;
}

.sidebar .widget ul li {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid var(--c888-border);
    font-size: 14px;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--c888-text);
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    padding: 2px 0;
}

.sidebar .widget ul li a:hover {
    color: var(--c888-primary);
    padding-left: 4px;
}

/* Top sites widget v1 */
.sidebar .topsiteswidget {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.sidebar .topsiteswidget th {
    background: transparent;
    border: none;
    padding: 8px 6px;
    font-size: 11px;
    color: var(--c888-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--c888-border);
}

.sidebar .topsiteswidget td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--c888-border);
    vertical-align: middle;
    text-align: center;
}

.sidebar .topsiteswidget tr:last-child td {
    border-bottom: none;
}

.sidebar .topsiteswidget img,
.sidebar .topsiteswidget img.ts_logo {
    border-radius: var(--c888-radius-sm);
    max-width: 70px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar .topsiteswidget span.hilite {
    font-size: 12px;
    display: block;
    text-align: center;
    line-height: 1.3;
}

.sidebar .topsiteswidget a.visbutton.sm {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 12px !important;
    padding: 10px 8px;
    min-width: auto;
    background: var(--c888-cta-green) !important;
    box-shadow: var(--c888-shadow-green);
}

/* Top sites widget v2 */
.topsiteswidget_v2 {
    padding: 18px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--c888-border);
    overflow: hidden;
    position: relative;
    transition: background 0.2s ease;
}

.topsiteswidget_v2:hover {
    background: #fafcff;
}

.topsiteswidget_v2:last-child {
    border-bottom: none;
}

.topsiteswidget_v2 .ts_left {
    float: left;
    width: 35%;
    text-align: center;
}

.topsiteswidget_v2 .ts_right {
    float: right;
    width: 60%;
    text-align: center;
}

.topsiteswidget_v2 .ts_left img,
.topsiteswidget_v2 img.ts_logo {
    border-radius: var(--c888-radius-sm);
    max-width: 90px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.topsiteswidget_v2 h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.topsiteswidget_v2 h4 a {
    color: var(--c888-dark);
}

.topsiteswidget_v2 span.hilite {
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.topsiteswidget_v2 a.visbutton.sm {
    display: inline-block;
    font-size: 12px !important;
    padding: 10px 16px;
    min-width: auto;
    background: var(--c888-cta-green) !important;
    box-shadow: var(--c888-shadow-green);
}

.topsiteswidget_v2 .fulllink {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Featured sites widget with gold "RECOMMANDE" ribbon */
.sidebar .featsites {
    background: var(--c888-card-bg);
    border-radius: 0 0 var(--c888-radius) var(--c888-radius);
    border-left: none;
    padding: 20px;
    margin: 0;
    text-align: center;
    position: relative;
}

.sidebar .featsites::before {
    content: "RECOMMAND\00c9";
    position: absolute;
    top: 14px;
    right: -8px;
    background: linear-gradient(135deg, var(--c888-gold), #f7c948);
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
    z-index: 2;
}

.sidebar .featsites::after {
    content: "";
    position: absolute;
    top: 28px;
    right: -8px;
    border-left: 8px solid #c4851c;
    border-bottom: 4px solid transparent;
    border-top: 0;
}

.sidebar .featsites .midtop {
    text-align: center;
    margin-bottom: 14px;
}

.sidebar .featsites .midtop a {
    display: inline-block;
}

.sidebar .featsites .midtop img,
.sidebar .featsites img.casinologo {
    max-width: 160px;
    height: auto;
    border-radius: var(--c888-radius-sm);
    box-shadow: var(--c888-shadow);
    display: block;
    margin: 0 auto;
}

.sidebar .featsites h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--c888-dark);
    text-align: center;
    margin: 14px 0 8px;
}

.sidebar .featsites span.hilite {
    display: block;
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
}

.sidebar .featsites a.visbutton.fullbutton {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
}

.sidebar .featsites a.revlink {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
}

/* Category posts widget */
.sidebar .fly_cat {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c888-border);
    transition: background 0.2s ease;
}

.sidebar .fly_cat:hover {
    background: #fafcff;
}

.sidebar .fly_cat:last-child {
    border-bottom: none;
}

.sidebar .fly_cat img.thumb {
    border-radius: var(--c888-radius-sm);
}

.sidebar .fly_cat h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Banner widget */
.sidebar .bannerwidget {
    padding: 16px;
}

.sidebar .bannerwidget img {
    border-radius: var(--c888-radius-sm);
    max-width: 100%;
}

/* =========================================================================
   14. REVIEW PAGES (.reviewouter)
   ========================================================================= */

/* ---- REVIEW PAGE — Premium casino review layout ---- */

.reviewouter {
    background: #fafbfc;
    border-radius: var(--c888-radius);
    padding: 0;
    border: 1px solid var(--c888-border);
    margin-bottom: 30px;
    box-shadow: var(--c888-shadow);
    overflow: hidden;
}

/* Review header with title + rating */
.reviewtop {
    background: linear-gradient(135deg, var(--c888-dark) 0%, #1e2a3a 100%);
    border-radius: 0;
    padding: 20px 25px;
    border-bottom: 3px solid var(--c888-primary);
    overflow: hidden;
}

.reviewtop h1 {
    color: #fff;
    font-size: 1.6rem;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    float: left;
}

.reviewtop .rate.reviewrate {
    float: right;
    margin-top: 5px;
}

.reviewtop .ratevalue {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
    float: right;
    margin-left: 10px;
    line-height: 1.8rem;
}

/* Review top content — 3-column: logo | bonus | CTA */
.review-topcontent {
    background: var(--c888-card-bg);
    float: left;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 20px;
    overflow: hidden;
    border-bottom: 1px solid var(--c888-border);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.review-topcontent img.reviewlogo {
    display: block;
    width: 150px;
    height: auto;
    border-radius: var(--c888-radius-sm);
    box-shadow: var(--c888-shadow);
    flex-shrink: 0;
    float: none;
}

.review-topcontent > a {
    flex-shrink: 0;
}

.review-topcontent .review-middle {
    flex: 1 1 200px;
    padding: 5px 0;
    float: none;
    width: auto;
}

.review-topcontent .review-middle h3 {
    font-size: 20px;
    color: var(--c888-primary);
    margin: 0 0 6px;
    font-weight: 700;
    text-align: left;
}

.review-topcontent .review-right {
    flex-shrink: 0;
    float: none;
    width: auto;
    margin: 0;
    text-align: center;
}

/* Review CTA buttons — PREMIUM green */
.review-topcontent a.visbutton,
.reviewouter a.visbutton {
    background: var(--c888-cta-green) !important;
    color: #fff !important;
    padding: 14px 24px;
    font-size: 15px !important;
    font-weight: 700;
    border-radius: 10px;
    min-width: 0;
    text-align: center;
    box-shadow: var(--c888-shadow-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
    white-space: nowrap;
}

.review-topcontent a.visbutton:hover,
.reviewouter a.visbutton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.5);
}

/* Review center content — screenshot + features */
.rev-cencontent {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--c888-border);
}

.rev-image-info {
    float: left;
    display: block;
    width: 48%;
}

.rev-image-info img {
    max-width: 100%;
    height: auto;
    border-radius: var(--c888-radius-sm);
    box-shadow: var(--c888-shadow);
}

.rev-image-info .weburl-link {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--c888-text-light);
}

.rev-rightcontent {
    float: right;
    width: 48%;
    padding: 0 0 0 20px;
}

.rev-rightcontent h3 {
    font-size: 20px;
    color: var(--c888-dark);
    margin: 0 0 14px;
    text-align: left;
    font-weight: 600;
}

.rev-rightcontent ul {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
    width: 100%;
}

.rev-rightcontent ul li {
    margin-bottom: 10px;
    padding: 0 0 0 22px;
    color: var(--c888-text);
    list-style: none;
    position: relative;
    font-weight: 500;
    font-size: 14px;
}

.rev-rightcontent ul li:before {
    content: '\f14a';
    font-family: 'FontAwesome';
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--c888-accent);
}

/* Pros and cons — side by side */
.rev-widget-pros {
    float: left;
    width: 48%;
    box-sizing: border-box;
    background: var(--c888-card-bg);
    border-radius: var(--c888-radius-sm);
    border: 1px solid var(--c888-border);
    box-shadow: var(--c888-shadow);
    padding: 20px 15px;
    position: relative;
    margin: 0 0 25px 0;
}

.rev-widget-pros.rev-widget-cons,
.rev-widget-cons {
    float: right;
}

.rev-widget-pros .pro-cons-icon {
    margin: -40px auto 0 auto;
    width: 56px;
    height: 56px;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #f7fafc;
    box-shadow: var(--c888-shadow);
}

.rev-widget-pros .pro-cons-icon i {
    text-align: center;
    font-size: 24px;
    display: block;
    line-height: 44px;
}

.pro-cons-icon .fa-thumbs-up::before,
.rev-widget-pros ul li:before {
    color: var(--c888-accent);
}

.pro-cons-icon .fa-thumbs-down::before,
.rev-widget-cons ul li:before {
    color: #e53e3e;
}

.rev-widget-pros h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--c888-dark);
    margin: 10px 0;
    border: none;
    display: block;
    padding: 0;
}

.rev-widget-pros ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rev-widget-pros ul li {
    display: block;
    margin: 0 0 6px;
    padding: 0 0 0 22px;
    color: var(--c888-text);
    position: relative;
    font-size: 14px;
}

.rev-widget-pros ul li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    font-size: 13px;
    position: absolute;
    left: 2px;
    top: 4px;
}

.rev-widget-cons ul li:before {
    content: '\f00d';
    font-family: 'FontAwesome';
    font-size: 13px;
    position: absolute;
    left: 2px;
    top: 4px;
    color: #e53e3e;
}

/* Bottom review section — info table + CTA */
.bottomrev {
    background: var(--c888-card-bg);
    padding: 20px;
    width: 100%;
    margin-top: 25px;
    clear: both;
    overflow: hidden;
    border-top: 1px solid var(--c888-border);
}

.bottomrev h2.altheading {
    background: var(--c888-dark);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--c888-radius-sm);
    font-size: 1.2rem;
    margin: 0 0 15px;
    border-bottom: 3px solid var(--c888-primary);
}

.bottomrev a.visbutton {
    background: var(--c888-cta-green) !important;
    color: #fff !important;
    padding: 16px 36px;
    font-size: 16px !important;
    min-width: 220px;
}

/* Review summary table */
.reviewsummary {
    border-radius: var(--c888-radius-sm);
    overflow: hidden;
    border: 1px solid var(--c888-border);
    width: 100%;
}

.reviewsummary th {
    background: #f7fafc;
    font-weight: 600;
    color: var(--c888-dark);
    padding: 12px 16px;
    border-color: var(--c888-border);
    width: 36%;
    text-align: left;
}

.reviewsummary td {
    padding: 12px 16px;
    border-color: var(--c888-border);
    color: var(--c888-text);
    width: 64%;
}

/* Review entry content below the review box */
.single-casino .entry-content {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--c888-border);
}

/* Bottom CTA block on casino review pages */
.c888-review-bottom-cta {
    background: linear-gradient(135deg, #1b1e2b 0%, #2a1520 50%, #1b1e2b 100%);
    border-radius: var(--c888-radius);
    padding: 40px 30px;
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
    overflow: hidden;
}

.c888-review-bottom-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 166, 35, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.c888-review-cta-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    border: none;
    padding: 0;
    background: none;
    display: block;
}

.c888-review-cta-bonus {
    color: var(--c888-gold);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.c888-review-cta-btn {
    display: inline-block;
    background: var(--c888-cta-green);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 42px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.c888-review-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.5);
    color: #fff;
}

.c888-review-cta-trust {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 16px 0 0;
    position: relative;
    z-index: 1;
}

/* Hide empty pros/cons — if ul has no li items */
.rev-widget-pros:empty,
.rev-widget-cons:empty {
    display: none;
}

/* Hide pros/cons that only contain empty list items */
.rev-widget-pros ul:empty,
.rev-widget-cons ul:empty {
    display: none;
}

/* =========================================================================
   14b. ARCHIVE / CATEGORY PAGES
   ========================================================================= */

.archive .main-content,
.category .main-content,
.tag .main-content,
.search .main-content {
    background: var(--c888-card-bg);
    border-radius: var(--c888-radius);
    box-shadow: var(--c888-shadow);
    padding: 30px;
}

.archive h1.entry-title,
.archive h1.altheading,
.category h1,
.tag h1 {
    background: linear-gradient(135deg, var(--c888-dark) 0%, #1e2a3a 100%);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--c888-radius-sm);
    font-size: 1.5rem;
    margin: 0 0 20px;
    border-bottom: 3px solid var(--c888-primary);
}

.articleexcerpt {
    padding: 20px;
    border: 1px solid var(--c888-border);
    margin-bottom: 16px;
    transition: var(--c888-transition);
    border-radius: var(--c888-radius-sm);
    background: var(--c888-card-bg);
    overflow: hidden;
}

.articleexcerpt:hover {
    box-shadow: var(--c888-shadow-md);
    border-color: rgba(196, 30, 58, 0.2);
}

.articleexcerpt .articleimg {
    float: left;
    margin: 0 18px 8px 0;
}

.articleexcerpt .articleimg img {
    border-radius: var(--c888-radius-sm);
    box-shadow: var(--c888-shadow);
    transition: transform 0.2s ease;
    width: 150px;
    height: auto;
}

.articleexcerpt:hover .articleimg img {
    transform: scale(1.03);
}

.articleexcerpt h2 {
    display: block;
    border-bottom: none;
    padding: 0;
    margin: 0 0 8px;
}

.articleexcerpt h2 a {
    color: var(--c888-dark);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: none;
    display: inline;
    transition: color 0.2s ease;
}

.articleexcerpt h2 a:hover {
    color: var(--c888-primary);
}

.bylines {
    font-size: 13px;
    color: var(--c888-text-light);
    margin-bottom: 8px;
}

.bylines a {
    color: var(--c888-text-light);
}

.bylines a:hover {
    color: var(--c888-primary);
}

/* =========================================================================
   15. GAME PAGES
   ========================================================================= */

.game_wrap {
    background: #fafbfc;
    border-radius: var(--c888-radius);
    padding: 15px;
    border: 1px solid var(--c888-border);
}

.game_wrap h1 {
    background: linear-gradient(135deg, var(--c888-dark) 0%, #16213e 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--c888-radius-sm);
    font-size: 1.4rem;
    margin: 0 0 15px;
    border-bottom: 3px solid var(--c888-primary);
}

.game_detblock {
    border-radius: var(--c888-radius-sm);
    border: 1px solid var(--c888-border);
    overflow: hidden;
}

.game_screen {
    background: var(--c888-dark);
    border-radius: var(--c888-radius-sm) var(--c888-radius-sm) 0 0;
}

.gamefeat_site {
    background: #f7fafc;
    border-radius: var(--c888-radius-sm);
    border: 1px solid var(--c888-border);
}

.game_demoblock {
    border-radius: var(--c888-radius-sm);
    border: 1px solid var(--c888-border);
    overflow: hidden;
}

/* =========================================================================
   16. BLOG & ARCHIVE PAGES
   ========================================================================= */

.articleexcerpt {
    padding: 20px 0;
    border-bottom: 1px solid var(--c888-border);
    margin-bottom: 0;
}

.articleexcerpt:last-child {
    border-bottom: none;
}

.articleexcerpt .articleimg img {
    border-radius: var(--c888-radius-sm);
}

.articleexcerpt h2 a {
    color: var(--c888-dark);
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: none;
    display: inline;
}

.articleexcerpt h2 a:hover {
    color: var(--c888-primary);
}

.bylines {
    font-size: 13px;
    color: var(--c888-text-light);
    margin-bottom: 8px;
}

.bylines a {
    color: var(--c888-text-light);
}

.bylines a:hover {
    color: var(--c888-primary);
}

/* =========================================================================
   17. FOOTER — Full-width premium dark design
   ========================================================================= */

footer.main-footer {
    background: linear-gradient(180deg, var(--c888-dark) 0%, var(--c888-darker) 100%);
    padding: 50px 0 30px;
    margin-top: 40px;
    width: calc(100% + 32px);
    margin-left: -16px;
    color: #cbd5e0;
}

footer.main-footer > .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footerwidget {
    flex: 1 1 22%;
    min-width: 200px;
    padding: 0;
}

.footerwidget h3 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c888-primary);
    background: none;
}

.footerwidget a {
    color: #a0b0c0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footerwidget a:hover {
    color: #fff;
    padding-left: 3px;
}

.footerwidget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footerwidget ul li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0;
    font-size: 14px;
}

.footerwidget ul li:last-child {
    border-bottom: none;
}

.footerwidget p {
    font-size: 14px;
    line-height: 1.7;
    color: #8899aa;
}

.bottomfooter {
    background: var(--c888-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
    font-size: 13px;
    color: #667788;
    text-align: center;
    width: calc(100% + 32px);
    margin-left: -16px;
}

.bottomfooter > .wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.bottomfooter a {
    color: #667788;
    transition: color 0.2s ease;
}

.bottomfooter a:hover {
    color: #fff;
}

/* =========================================================================
   18. SEARCH FORM
   ========================================================================= */

.searchform {
    display: flex;
    gap: 8px;
}

.searchinput {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--c888-border);
    border-radius: var(--c888-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
    outline: none;
}

.searchinput:focus {
    border-color: var(--c888-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.searchsubmit {
    background: var(--c888-cta-gradient);
    color: #fff;
    border: none;
    border-radius: var(--c888-radius-sm);
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--c888-transition);
}

.searchsubmit:hover {
    filter: brightness(1.08);
}

/* =========================================================================
   19. PAGINATION
   ========================================================================= */

.wp-pagenavi,
.pagination {
    text-align: center;
    margin: 30px 0;
}

.wp-pagenavi a,
.wp-pagenavi span,
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: var(--c888-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--c888-text);
    background: var(--c888-card-bg);
    border: 1px solid var(--c888-border);
    transition: var(--c888-transition);
}

.wp-pagenavi a:hover,
.pagination a:hover {
    background: var(--c888-primary);
    color: #fff;
    border-color: var(--c888-primary);
}

.wp-pagenavi span.current,
.pagination span.current {
    background: var(--c888-primary);
    color: #fff;
    border-color: var(--c888-primary);
}

/* =========================================================================
   20. COMMENTS
   ========================================================================= */

#comments {
    margin-top: 30px;
}

.commentsheading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--c888-dark);
    margin-bottom: 20px;
}

.commentlist li {
    padding: 16px;
    margin-bottom: 12px;
    background: #f7fafc;
    border-radius: var(--c888-radius-sm);
    border: 1px solid var(--c888-border);
}

#respond input[type="text"],
#respond textarea {
    border: 1px solid var(--c888-border);
    border-radius: var(--c888-radius-sm);
    padding: 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s ease;
    width: 100%;
}

#respond input[type="text"]:focus,
#respond textarea:focus {
    border-color: var(--c888-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    outline: none;
}

#respond input[type="submit"] {
    background: var(--c888-cta-gradient);
    color: #fff;
    border: none;
    border-radius: var(--c888-radius-sm);
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--c888-transition);
}

#respond input[type="submit"]:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* =========================================================================
   21. STICKY MOBILE CTA BAR
   ========================================================================= */

.c888-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 60px;
    background: var(--c888-cta-green);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
}

.c888-sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.02em;
}

.c888-sticky-cta-btn:hover {
    color: #fff;
}

/* Hide sticky CTA on desktop */
@media (min-width: 768px) {
    .c888-sticky-cta {
        display: none !important;
    }
}

/* =========================================================================
   22. FEATURED CASINO SHORTCODE
   ========================================================================= */

.featuredsite {
    background: var(--c888-card-bg);
    border: 1px solid var(--c888-border);
    border-radius: var(--c888-radius);
    box-shadow: var(--c888-shadow);
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.featuredsite .feat_heading h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c888-dark);
    margin: 0 0 8px;
    padding: 0;
    background: none;
    border: none;
}

.featuredsite img {
    border-radius: var(--c888-radius-sm);
}

/* =========================================================================
   23. BOXES SHORTCODE
   ========================================================================= */

div.fly_box {
    border-radius: var(--c888-radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
    border: 1px solid;
}

div.fly_box.info {
    background: #ebf8ff;
    border-color: #bee3f8;
    color: #2b6cb0;
}

div.fly_box.alert {
    background: #fffff0;
    border-color: #fefcbf;
    color: #975a16;
}

div.fly_box.error {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
}

div.fly_box.check {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #276749;
}

div.fly_box.download {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #276749;
}

/* =========================================================================
   24. SLIDER (template-slider.php)
   ========================================================================= */

.top-slider {
    border-radius: var(--c888-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--c888-shadow-md);
}

.top-slider .flex-control-paging li a {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.top-slider .flex-control-paging li a.flex-active {
    background: #fff;
}

.slide-item .banner-content {
    padding: 20px;
}

.slide-item .visbutton.lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* =========================================================================
   25. RESPONSIVE — TABLET (max-width: 1143px)
   ========================================================================= */

@media (max-width: 1143px) {
    #outerwrap {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .wrap {
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    /* Full-width elements: reset to container width on mobile */
    header.main-header,
    nav.navbar,
    footer.main-footer,
    .bottomfooter {
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }

    header.main-header > .wrap,
    nav.navbar > .wrap,
    footer.main-footer > .wrap,
    .bottomfooter > .wrap {
        padding: 0 12px;
    }

    #main > .wrap {
        flex-direction: column;
    }

    .main-content {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .sidebar {
        flex: 1 1 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hide desktop nav, show mobile */
    nav.navbar {
        display: none;
    }

    #mobile-menu-btn {
        display: block;
        position: absolute;
        right: 2px;
        top: 5px;
        z-index: 10000;
        padding: 0 3px;
        background: var(--c888-primary);
        border: none;
        cursor: pointer;
        border-radius: var(--c888-radius-sm);
    }

    #mobile-menu-btn i {
        display: block;
        width: 22px;
        height: 3px;
        background: #fff;
        margin: 5px 3px;
        padding: 0;
        border-radius: 2px;
    }

    #mobile-menu {
        display: none;
        position: relative;
        top: 0;
        right: 0;
        z-index: 9999;
        width: 100%;
        background: var(--c888-dark);
        box-shadow: var(--c888-shadow-lg);
    }

    #mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #mobile-menu ul li {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        position: relative;
        padding: 10px;
        margin: 0;
    }

    #mobile-menu ul li a {
        color: #e2e8f0;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2em;
    }

    #mobile-menu a:hover {
        color: var(--c888-primary);
    }

    #mobile-menu .menu-item-has-children .arrow {
        display: block;
        position: absolute;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        top: 0;
        right: 0;
        color: #fff;
        padding: 10px;
        cursor: pointer;
    }

    #mobile-menu ul ul {
        display: none;
        padding-left: 15px;
    }

    #mobile-menu .open {
        display: block;
    }

    .c888-hero {
        margin: -30px -30px 30px;
    }

    .c888-hero-title {
        font-size: 2.25rem;
    }

    /* Table stays table on tablet, just tighter */
    table.comptable td {
        padding: 16px 10px 28px;
    }

    a.visbutton {
        padding: 13px 20px;
        min-width: 160px;
        font-size: 14px !important;
    }

    /* Quick compare stacks at 2 cols */
    .c888-qc-card {
        flex: 1 1 calc(50% - 10px);
    }
}

/* =========================================================================
   26. RESPONSIVE — SMALL TABLET (max-width: 992px)
   ========================================================================= */

@media (max-width: 992px) {
    .main-content {
        width: auto;
        padding: 20px;
    }

    .sidebar {
        width: auto;
        padding: 0;
    }

    .c888-hero {
        padding: 65px 16px;
        margin: -20px -20px 20px;
    }

    .c888-hero-title {
        font-size: 2rem;
    }

    .c888-trust-badges {
        margin: 0 -20px 20px;
        gap: 16px;
        padding: 20px 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* =========================================================================
   27. RESPONSIVE — MOBILE (max-width: 767px)
   ========================================================================= */

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .main-content {
        padding: 16px;
        border-radius: var(--c888-radius-sm);
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    /* HERO mobile */
    .c888-hero {
        padding: 50px 16px;
        margin: -16px -16px 20px;
        border-radius: var(--c888-radius-sm) var(--c888-radius-sm) 0 0;
    }

    .c888-hero-title {
        font-size: 1.75rem;
    }

    .c888-hero-subtitle {
        font-size: 1rem;
    }

    .c888-hero-cta {
        padding: 16px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* TRUST BADGES mobile */
    .c888-trust-badges {
        margin: 0 -16px 20px;
        gap: 12px;
        padding: 16px 12px;
        flex-direction: column;
        align-items: center;
    }

    .c888-trust-badge {
        width: 100%;
        max-width: 280px;
    }

    /* ============================================
       TABLE -> MOBILE CARD transformation
       ============================================ */

    table.comptable,
    table.comptable thead,
    table.comptable tbody,
    table.comptable tr,
    table.comptable td,
    table.comptable th {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    table.comptable {
        border-spacing: 0;
        table-layout: auto;
        max-width: 100%;
    }

    /* Hide desktop header row */
    table.comptable tr.topcomp {
        display: none;
    }

    /* Each casino = a card */
    table.comptable tr:not(.topcomp) {
        margin-bottom: 20px !important;
        padding: 24px 16px 16px !important;
        border-radius: var(--c888-radius) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
        background: #fff !important;
        position: relative;
        border: 1px solid #ddd !important;
        border-top: 4px solid var(--c888-accent) !important;
        text-align: center;
        transform: none !important;
    }

    /* Gold/silver/bronze top border */
    table.comptable tr:nth-child(2):not(.topcomp) {
        border-top-color: var(--c888-gold);
    }
    table.comptable tr:nth-child(3):not(.topcomp) {
        border-top-color: var(--c888-silver);
    }
    table.comptable tr:nth-child(4):not(.topcomp) {
        border-top-color: var(--c888-bronze);
    }

    /* Badge on first casino */
    table.comptable tr:nth-child(2):not(.topcomp)::before {
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 10px;
        padding: 4px 14px;
    }

    /* Trust signals at bottom of card */
    table.comptable tr:not(.topcomp)::after {
        position: relative;
        bottom: auto;
        display: block;
        text-align: center;
        padding: 12px 0 0;
        margin-top: 8px;
        font-size: 10px;
        border-top: 1px solid var(--c888-border);
    }

    /* All cells: centered, block, FULL WIDTH (override desktop column widths) */
    table.comptable td,
    table.comptable td.rankcol,
    table.comptable td.casinocol,
    table.comptable td.bonuscol,
    table.comptable td.depcol,
    table.comptable td.visitcol,
    table.comptable th.rankcol,
    table.comptable th.casinocol,
    table.comptable th.bonuscol,
    table.comptable th.depcol,
    table.comptable th.visitcol {
        display: block;
        width: 100% !important;
        padding: 6px 0;
        text-align: center;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
    }

    /* Rank — small badge at top */
    table.comptable td.rankcol {
        padding-bottom: 8px;
    }

    .comptable .rankcir {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 1rem;
        margin: 0 auto;
    }

    /* Casino logo — centered, bigger */
    table.comptable td.casinocol {
        padding: 8px 0 12px;
    }

    .comptable img.logocomp {
        max-width: 140px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* Bonus text — prominent */
    table.comptable td.bonuscol,
    table.comptable td:nth-child(3) {
        padding: 4px 0 12px;
    }

    .comptable span.hilite {
        font-size: 1.15em;
        font-weight: 700;
        display: block;
        padding: 4px 0;
        color: var(--c888-primary);
    }

    /* Hide rating/note column on mobile */
    table.comptable td.depcol {
        display: none;
    }

    /* CTA button — full width, BIG, green */
    table.comptable td.visitcol {
        padding-top: 8px;
    }

    .comptable a.visbutton,
    a.visbutton {
        width: 100% !important;
        display: block !important;
        padding: 16px 20px !important;
        min-width: auto !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Review link under button */
    table.comptable td.visitcol a.revlink {
        display: block !important;
        margin-top: 8px;
        font-size: 13px;
    }

    /* Quick compare stacks to 1 col */
    .c888-quick-compare {
        flex-direction: column;
    }

    .c888-qc-card {
        flex: 1 1 100%;
    }

    /* SECTION CTA mobile */
    .c888-section-cta {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .c888-section-cta-btn {
        width: 100%;
        justify-content: center;
    }

    /* FAQ mobile */
    .c888-faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .c888-faq-answer {
        padding: 0 16px 14px;
        padding-top: 14px;
    }

    /* REVIEW PAGES mobile */
    .reviewouter {
        padding: 0;
        border-radius: var(--c888-radius-sm);
    }

    .reviewtop {
        padding: 14px 16px;
    }

    .reviewtop h1 {
        font-size: 1.2rem;
        float: none;
    }

    .reviewtop .rate.reviewrate {
        float: none;
        margin-top: 8px;
    }

    .reviewtop .ratevalue {
        float: none;
        display: inline;
    }

    .review-topcontent {
        padding: 16px;
        text-align: center;
    }

    .review-topcontent img.reviewlogo {
        float: none;
        margin: 0 auto 15px;
        width: 150px;
    }

    .review-topcontent .review-middle {
        float: none;
        width: 100%;
        padding: 0 0 10px;
    }

    .review-topcontent .review-middle h3 {
        text-align: center;
        font-size: 18px;
    }

    .review-topcontent .review-right {
        float: none;
        width: 100%;
        margin: 0;
    }

    .review-topcontent a.visbutton,
    .reviewouter a.visbutton {
        width: 100%;
        display: block;
    }

    .rev-cencontent {
        padding: 16px;
    }

    .rev-image-info,
    .rev-rightcontent {
        float: none;
        width: 100%;
        padding: 0;
    }

    .rev-rightcontent {
        margin-top: 15px;
    }

    .rev-widget-pros,
    .rev-widget-cons {
        float: none;
        width: 100%;
        margin-bottom: 15px;
    }

    .bottomrev {
        padding: 16px;
    }

    /* ARCHIVE / CATEGORY mobile */
    .articleexcerpt {
        padding: 16px 0;
    }

    .articleexcerpt .articleimg {
        float: none;
        margin: 0 0 12px;
    }

    .articleexcerpt .articleimg img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* SIDEBAR mobile */
    .sidebar .widget {
        margin-bottom: 18px;
    }

    /* FEATURED SITE mobile */
    .featuredsite {
        padding: 16px;
    }

    /* FOOTER mobile */
    .footerwidget {
        width: 100%;
        float: none;
        padding: 0 0 20px;
    }

    /* Add padding for sticky CTA bar */
    body {
        padding-bottom: 60px;
    }

    /* Providers wrap */
    .c888-providers-list {
        gap: 8px;
    }

    .c888-provider-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* =========================================================================
   28. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================================================= */

@media (max-width: 480px) {
    #outerwrap {
        padding: 0 8px;
    }

    .main-content {
        padding: 12px;
        margin: 0 0 16px;
    }

    .c888-hero {
        padding: 40px 12px;
        margin: -12px -12px 16px;
    }

    .c888-hero-title {
        font-size: 1.5rem;
    }

    .c888-hero-subtitle {
        font-size: 0.9rem;
    }

    table.comptable tr:not(.topcomp) {
        padding: 16px;
        margin-bottom: 12px;
    }

    .comptable .rankcir {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1rem;
    }

    .comptable img.logocomp {
        max-width: 100px;
    }

    .c888-trust-badges {
        margin: 0 -12px 16px;
    }
}

/* =========================================================================
   29. UTILITY CLASSES
   ========================================================================= */

.c888-text-center { text-align: center; }
.c888-text-muted { color: var(--c888-text-light); }
.c888-mt-0 { margin-top: 0; }
.c888-mb-0 { margin-bottom: 0; }
.c888-mb-1 { margin-bottom: 0.5rem; }
.c888-mb-2 { margin-bottom: 1rem; }
.c888-mb-3 { margin-bottom: 1.5rem; }
.c888-mb-4 { margin-bottom: 2rem; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(26, 115, 232, 0.2);
    color: var(--c888-dark);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--c888-primary);
    outline-offset: 2px;
}

/* =========================================================================
   30. PRINT STYLES
   ========================================================================= */

@media print {
    .c888-hero,
    .c888-trust-badges,
    .c888-sticky-cta,
    .sidebar,
    footer.main-footer,
    .bottomfooter,
    nav.navbar,
    #mobile-menu-btn {
        display: none !important;
    }

    .main-content {
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }

    a.visbutton {
        border: 1px solid #333 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #333 !important;
    }

    table.comptable tr:not(.topcomp)::before,
    table.comptable tr:not(.topcomp)::after {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
