/**
 * Homepage CSS v5 — Premium sports betting design
 * + GP overrides pour TOUTES les pages du plugin
 *
 * @since 3.8.0
 */

/* ═══════════════════════════════════════════
   GENERATEPRESS OVERRIDES — TOUTES LES PAGES DU PLUGIN
   ═══════════════════════════════════════════ */

body:has(.rems-widget) .entry-header,
body:has(.rems-match-header-premium) .entry-header,
body:has(.rems-league-header) .entry-header,
body:has(.rems-homepage) .entry-header,
body:has(.rems-expert-page) .entry-header,
body:has(.rems-widget) .page-header-content,
body:has(.rems-match-header-premium) .page-header-content,
body:has(.rems-homepage) .page-header-content {
    display: none !important;
}

body:has(.rems-widget) .inside-article,
body:has(.rems-match-header-premium) .inside-article,
body:has(.rems-homepage) .inside-article,
body:has(.rems-expert-page) .inside-article {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* All plugin pages: prevent horizontal scroll from overflowing tables/grids */
body:has(.rems-widget),
body:has(.rems-match-header-premium),
body:has(.rems-league-header),
body:has(.rems-homepage),
body:has(.rems-expert-page),
body:has(.rems-bkr-page) {
    overflow-x: hidden !important;
}


/* ═══════════════════════════════════════════
   GENERATEPRESS HEADER & FOOTER — Dark
   ═══════════════════════════════════════════ */

body:has(.rems-widget) .site-header,
body:has(.rems-match-header-premium) .site-header,
body:has(.rems-homepage) .site-header,
body:has(.rems-expert-page) .site-header,
body:has(.rems-widget) .site-header .inside-header,
body:has(.rems-homepage) .site-header .inside-header,
body:has(.rems-match-header-premium) .site-header .inside-header,
body:has(.rems-expert-page) .site-header .inside-header,
body:has(.rems-widget) .main-navigation,
body:has(.rems-homepage) .main-navigation,
body:has(.rems-match-header-premium) .main-navigation,
body:has(.rems-expert-page) .main-navigation,
body:has(.rems-widget) .navigation-branding,
body:has(.rems-homepage) .navigation-branding,
body:has(.rems-match-header-premium) .navigation-branding,
body:has(.rems-expert-page) .navigation-branding,
body:has(.rems-widget) .inside-navigation,
body:has(.rems-homepage) .inside-navigation,
body:has(.rems-match-header-premium) .inside-navigation,
body:has(.rems-expert-page) .inside-navigation {
    background: #0f172a !important;
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: none !important;
}

body:has(.rems-widget) .site-header .main-title a,
body:has(.rems-widget) .site-header .site-title a,
body:has(.rems-widget) .site-header a,
body:has(.rems-homepage) .site-header a,
body:has(.rems-match-header-premium) .site-header a,
body:has(.rems-expert-page) .site-header a {
    color: #f1f5f9 !important;
}

body:has(.rems-widget) .site-header .site-description,
body:has(.rems-homepage) .site-header .site-description {
    color: #64748b !important;
}

body:has(.rems-widget) .main-navigation .main-nav > ul > li > a,
body:has(.rems-homepage) .main-navigation .main-nav > ul > li > a,
body:has(.rems-match-header-premium) .main-navigation .main-nav > ul > li > a,
body:has(.rems-expert-page) .main-navigation .main-nav > ul > li > a {
    color: #e2e8f0 !important;
}

body:has(.rems-widget) .main-navigation .main-nav > ul > li > a:hover,
body:has(.rems-homepage) .main-navigation .main-nav > ul > li > a:hover {
    color: #ffffff !important;
}

body:has(.rems-widget) .main-navigation .main-nav ul ul,
body:has(.rems-homepage) .main-navigation .main-nav ul ul,
body:has(.rems-match-header-premium) .main-navigation .main-nav ul ul,
body:has(.rems-expert-page) .main-navigation .main-nav ul ul,
body:has(.rems-widget) .main-navigation .main-nav .sub-menu,
body:has(.rems-homepage) .main-navigation .main-nav .sub-menu,
body:has(.rems-match-header-premium) .main-navigation .main-nav .sub-menu,
body:has(.rems-expert-page) .main-navigation .main-nav .sub-menu {
    background: #1e293b !important;
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

body:has(.rems-widget) .main-navigation .main-nav ul ul li a,
body:has(.rems-homepage) .main-navigation .main-nav ul ul li a,
body:has(.rems-match-header-premium) .main-navigation .main-nav ul ul li a,
body:has(.rems-expert-page) .main-navigation .main-nav ul ul li a {
    color: #cbd5e1 !important;
    border-bottom-color: #334155 !important;
}

body:has(.rems-widget) .main-navigation .main-nav ul ul li a:hover,
body:has(.rems-homepage) .main-navigation .main-nav ul ul li a:hover,
body:has(.rems-match-header-premium) .main-navigation .main-nav ul ul li a:hover,
body:has(.rems-expert-page) .main-navigation .main-nav ul ul li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body:has(.rems-widget) .main-navigation .main-nav ul ul li.current-menu-item > a,
body:has(.rems-homepage) .main-navigation .main-nav ul ul li.current-menu-item > a {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.15) !important;
}

body:has(.rems-widget) .menu-toggle,
body:has(.rems-homepage) .menu-toggle {
    color: #f1f5f9 !important;
}

body:has(.rems-widget) .main-navigation.toggled .main-nav > ul,
body:has(.rems-homepage) .main-navigation.toggled .main-nav > ul {
    background: #1e293b !important;
}

body:has(.rems-widget) .site-footer,
body:has(.rems-match-header-premium) .site-footer,
body:has(.rems-homepage) .site-footer,
body:has(.rems-expert-page) .site-footer {
    background: #0f172a !important;
    color: #94a3b8 !important;
    border-top: 1px solid #1e293b !important;
}

body:has(.rems-widget) .site-footer a,
body:has(.rems-homepage) .site-footer a,
body:has(.rems-match-header-premium) .site-footer a,
body:has(.rems-expert-page) .site-footer a {
    color: #cbd5e1 !important;
}

body:has(.rems-widget) .site-footer a:hover,
body:has(.rems-homepage) .site-footer a:hover {
    color: #ffffff !important;
}

body:has(.rems-widget) .site-footer .copyright-bar,
body:has(.rems-homepage) .site-footer .copyright-bar {
    background: rgba(0,0,0,0.2) !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

body:has(.rems-widget) .footer-widgets,
body:has(.rems-homepage) .footer-widgets {
    background: #0f172a !important;
}

body:has(.rems-widget) .footer-widgets .widget-title,
body:has(.rems-homepage) .footer-widgets .widget-title {
    color: #f1f5f9 !important;
}


/* ═══════════════════════════════════════════
   HOMEPAGE v5 — CONTAINER
   ═══════════════════════════════════════════ */

.rems-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}


/* ═══════════════════════════════════════════
   HERO v5.1 — Compact, no emoji, clean
   ═══════════════════════════════════════════ */

.rems-hp-hero {
    background: linear-gradient(145deg, #0a0f1e 0%, #111827 50%, #0f172a 100%);
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.rems-hp-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rems-team-a, #6366f1), #a855f7, var(--rems-team-b, #f97316));
}

/* Partner — inline pill */
.rems-hp-hero-partner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.rems-hp-hero-partner:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rems-hp-hero-partner-label {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fbbf24;
    font-family: 'Barlow Condensed', sans-serif;
}

.rems-hp-hero-partner-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
}

/* H1 */
.rems-hp-hero-h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    line-height: 1.15;
    text-transform: uppercase;
}

.rems-hp-hero-sub {
    font-family: 'Barlow', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 auto 18px;
    max-width: 500px;
    line-height: 1.4;
}

/* KPIs — inline compact */
.rems-hp-hero-kpis {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.rems-hp-hero-kpi {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.rems-hp-hero-kpi strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
}

.rems-hp-hero-kpi span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Competition logos — compact row */
.rems-hp-hero-logos {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rems-hp-hero-logos a,
.rems-hp-hero-logos .rems-hp-hero-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: all 0.15s ease;
}

.rems-hp-hero-logos a:hover,
.rems-hp-hero-logos .rems-hp-hero-logo-item:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rems-hp-hero-logos img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


/* ═══════════════════════════════════════════
   TABS v5 — Pill style
   ═══════════════════════════════════════════ */

.rems-hp-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.rems-hp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rems-hp-tab:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.rems-hp-tab.active {
    background: var(--rems-team-a, #1a56db);
    color: #fff;
    border-color: var(--rems-team-a, #1a56db);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.25);
}

.rems-hp-tab-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.rems-hp-tab-name {
    white-space: nowrap;
}

.rems-hp-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
}

.rems-hp-tab.active .rems-hp-tab-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* Panels */
.rems-hp-panel { display: none; }
.rems-hp-panel.active { display: block; }


/* ═══════════════════════════════════════════
   CUP ROUND PILL
   ═══════════════════════════════════════════ */

.rems-cup-round-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #e2e8f0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════════
   MATCH GRID v5 — Betting card design
   ═══════════════════════════════════════════ */

.rems-mg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.rems-mg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.rems-mg-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* Card header */
.rems-mg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.rems-mg-date {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rems-mg-round {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 10px;
    background: #f5f3ff;
    border-radius: 6px;
}

/* Teams row */
.rems-mg-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 44px;
}

.rems-mg-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.rems-mg-team--away {
    flex-direction: row-reverse;
    text-align: right;
}

.rems-mg-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.rems-mg-team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rems-mg-team.is-fav .rems-mg-team-name {
    color: #0f172a;
}

.rems-mg-vs {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* Probability bar */
.rems-mg-proba {
    margin-bottom: 12px;
}

.rems-mg-proba-bar {
    display: flex;
    height: 24px;
    border-radius: 8px;
    overflow: hidden;
    gap: 2px;
}

.rems-mg-proba-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    transition: width 0.3s ease;
}

.rems-mg-proba-seg span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.rems-mg-proba-home {
    background: linear-gradient(135deg, var(--rems-team-a, #1a56db), color-mix(in srgb, var(--rems-team-a, #1a56db) 80%, #fff));
    border-radius: 8px 0 0 8px;
}

.rems-mg-proba-draw {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.rems-mg-proba-away {
    background: linear-gradient(135deg, var(--rems-team-b, #ea580c), color-mix(in srgb, var(--rems-team-b, #ea580c) 80%, #fff));
    border-radius: 0 8px 8px 0;
}

/* Odds row */
.rems-mg-odds {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
}

.rems-mg-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.rems-mg-odd.is-fav {
    background: #eff6ff;
    border-color: #93c5fd;
}

.rems-mg-odd-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rems-mg-odd-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.rems-mg-odd.is-fav .rems-mg-odd-val {
    color: #1a56db;
}

/* CTA */
.rems-mg-cta {
    text-align: center;
}

.rems-mg-cta-btn {
    display: block;
    padding: 10px 16px;
    background: var(--rems-team-a, #1a56db);
    color: #ffffff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.rems-mg-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

.rems-mg-cta-pending {
    display: block;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #94a3b8;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
}


/* See more link under match grids */
.rems-hp-see-more {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.rems-hp-see-more a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rems-team-a, #1a56db);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rems-hp-see-more a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════
   SEO TEXT BLOCKS
   ═══════════════════════════════════════════ */

.rems-hp-seo-text {
    padding: 20px 24px;
    margin-bottom: 24px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.rems-hp-seo-text p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.75;
    margin: 0;
}

.rems-hp-seo-text strong {
    color: #1e293b;
}


/* ═══════════════════════════════════════════
   MID-PAGE BOOKMAKER CTA
   ═══════════════════════════════════════════ */

.rems-hp-midcta {
    margin: 24px 0;
}

.rems-hp-midcta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rems-hp-midcta-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rems-hp-midcta-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbbf24;
}

.rems-hp-midcta-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.rems-hp-midcta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.rems-hp-midcta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4);
}


/* ═══════════════════════════════════════════
   STANDINGS TABLE v5
   ═══════════════════════════════════════════ */

.rems-standings-wrap {
    overflow-x: auto;
}

.rems-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
}

.rems-standings-table thead th {
    padding: 10px 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.rems-standings-table thead th.rems-st-team {
    text-align: left;
}

.rems-standings-table tbody td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.85rem;
}

.rems-standings-table tbody td.rems-st-team {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.rems-standings-table tbody td.rems-st-pts {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}

.rems-standings-table tbody td.rems-st-pos {
    width: 32px;
    font-weight: 700;
}

/* Zone coloring */
.rems-st-zone-cl td.rems-st-pos {
    color: #1a56db;
    border-left: 3px solid #3b82f6;
}

.rems-st-zone-el td.rems-st-pos {
    color: #f59e0b;
    border-left: 3px solid #f59e0b;
}

.rems-st-zone-rel td.rems-st-pos {
    color: #dc2626;
    border-left: 3px solid #ef4444;
}

.rems-st-team-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    object-fit: contain;
}

/* Expand button */
.rems-st-expand-wrap {
    text-align: center;
    margin-top: 14px;
}

.rems-st-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--rems-team-a, #1a56db);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rems-st-expand-btn:hover {
    background: #f1f5f9;
    border-color: var(--rems-team-a, #1a56db);
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.1);
}

.rems-st-expand-btn.expanded {
    background: var(--rems-team-a, #1a56db);
    color: #ffffff;
    border-color: var(--rems-team-a, #1a56db);
}

.rems-st-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.rems-st-expand-btn.expanded .rems-st-arrow {
    transform: rotate(180deg);
}

.rems-st-league-link {
    text-align: center;
    margin-top: 14px;
}

.rems-st-league-link a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rems-team-a, #1a56db);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rems-st-league-link a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════
   COMPETITION NAV GRID v5
   ═══════════════════════════════════════════ */

.rems-hp-section-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.rems-hp-section-sub:first-of-type {
    margin-top: 0;
}

.rems-hp-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.rems-hp-comp-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rems-hp-comp-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.rems-hp-comp-card--cup {
    border-left: 3px solid var(--rems-accent, #8b5cf6);
}

.rems-hp-comp-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.rems-hp-comp-info {
    flex: 1;
    min-width: 0;
}

.rems-hp-comp-name {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
}

.rems-hp-comp-country {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.rems-hp-comp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: var(--rems-team-a, #1a56db);
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   EXPERTS GRID v5
   ═══════════════════════════════════════════ */

.rems-hp-experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.rems-hp-expert-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    transition: all 0.2s ease;
}

.rems-hp-expert-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.rems-hp-expert-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rems-hp-expert-photo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.rems-hp-expert-photo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rems-team-a, #1a56db);
}

.rems-hp-expert-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.rems-hp-expert-meta {
    flex: 1;
    min-width: 0;
}

.rems-hp-expert-name {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    text-transform: uppercase;
}

.rems-hp-expert-name:hover {
    color: var(--rems-team-a, #1a56db);
}

.rems-hp-expert-spec {
    display: block;
    font-size: 0.75rem;
    color: var(--rems-accent, #8b5cf6);
    font-weight: 700;
}

.rems-hp-expert-bio {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 10px;
}

.rems-hp-expert-leagues {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.rems-hp-expert-league {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.rems-hp-expert-league img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.rems-hp-expert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.rems-hp-expert-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rems-accent, #8b5cf6);
}

.rems-hp-expert-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rems-team-a, #1a56db);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rems-hp-expert-link:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════
   HOW IT WORKS — 3 steps, daily rotation
   ═══════════════════════════════════════════ */

.rems-hp-hiw {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rems-hp-hiw-step {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.rems-hp-hiw-step:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.rems-hp-hiw-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    line-height: 1;
}

.rems-hp-hiw-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--rems-team-a, #1a56db);
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 10px;
}

.rems-hp-hiw-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}

.rems-hp-hiw-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}


/* ═══════════════════════════════════════════
   ENRICHED BOOKMAKER CARDS
   ═══════════════════════════════════════════ */

.rems-hp-bk-list {
    display: grid;
    gap: 16px;
}

.rems-hp-bk-card {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.rems-hp-bk-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.rems-hp-bk-card--leader {
    border-color: var(--rems-team-a, #1a56db);
    border-width: 2px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 40%);
}

.rems-hp-bk-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 14px;
    background: var(--rems-team-a, #1a56db);
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.25);
}

.rems-hp-bk-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rems-hp-bk-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
}

.rems-hp-bk-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rems-hp-bk-meta {
    flex: 1;
    min-width: 0;
}

.rems-hp-bk-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.rems-hp-bk-bonus {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rems-hp-bk-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 14px;
}

.rems-hp-bk-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 10px 24px;
    background: var(--rems-team-a, #1a56db);
    color: #ffffff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.2);
}

.rems-hp-bk-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
}

.rems-hp-bk-card--leader .rems-hp-bk-cta {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.rems-hp-bk-card--leader .rems-hp-bk-cta:hover {
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
}


/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */

.rems-hp-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rems-hp-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.rems-hp-faq-item:hover {
    border-color: #cbd5e1;
}

.rems-hp-faq-item.open {
    border-color: var(--rems-team-a, #1a56db);
}

.rems-hp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    transition: background 0.15s ease;
}

.rems-hp-faq-q:hover {
    background: #f8fafc;
}

.rems-hp-faq-q span:first-child {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.rems-hp-faq-arrow {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.rems-hp-faq-item.open .rems-hp-faq-arrow {
    transform: rotate(180deg);
    color: var(--rems-team-a, #1a56db);
}

.rems-hp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.rems-hp-faq-item.open .rems-hp-faq-a {
    max-height: 500px;
    padding: 0 20px 16px;
}

.rems-hp-faq-a p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}


/* ═══════════════════════════════════════════
   SHARED — Title logo, widget styles
   ═══════════════════════════════════════════ */

.rems-title-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    object-fit: contain;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .rems-homepage {
        padding: 0 10px 32px;
    }

    .rems-hp-hero {
        padding: 22px 16px 18px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .rems-hp-hero-h1 {
        font-size: 1.35rem;
    }

    .rems-hp-hero-sub {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .rems-hp-hero-kpis {
        gap: 14px;
    }

    .rems-hp-hero-kpi strong {
        font-size: 1.1rem;
    }

    .rems-hp-hero-logos a,
    .rems-hp-hero-logos .rems-hp-hero-logo-item {
        width: 32px;
        height: 32px;
    }

    .rems-hp-hero-logos img {
        width: 18px;
        height: 18px;
    }

    .rems-hp-tabs {
        gap: 4px;
    }

    .rems-hp-tab {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .rems-hp-tab-logo {
        width: 16px;
        height: 16px;
    }

    .rems-mg {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rems-mg-team-logo {
        width: 26px;
        height: 26px;
    }

    .rems-mg-team-name {
        font-size: 0.85rem;
    }

    .rems-hp-midcta-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 18px;
    }

    .rems-hp-midcta-text {
        flex-direction: column;
        gap: 4px;
    }

    .rems-hp-hiw {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rems-hp-hiw-step {
        display: grid;
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        gap: 2px 12px;
        text-align: left;
        padding: 14px 16px;
    }

    .rems-hp-hiw-icon {
        grid-row: 1 / 3;
        grid-column: 1;
        font-size: 1.5rem;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rems-hp-hiw-num {
        display: none;
    }

    .rems-hp-hiw-title {
        grid-column: 2;
        font-size: 0.88rem;
        margin-bottom: 0;
    }

    .rems-hp-hiw-desc {
        grid-column: 2;
        font-size: 0.78rem;
    }

    .rems-hp-bk-card {
        padding: 16px;
    }

    .rems-hp-bk-logo {
        width: 48px;
        height: 48px;
    }

    .rems-hp-bk-name {
        font-size: 1rem;
    }

    .rems-hp-faq-q {
        padding: 14px 16px;
    }

    .rems-hp-faq-q span:first-child {
        font-size: 0.88rem;
    }

    .rems-hp-faq-item.open .rems-hp-faq-a {
        padding: 0 16px 14px;
    }

    .rems-hp-comp-grid {
        grid-template-columns: 1fr;
    }

    .rems-hp-experts-grid {
        grid-template-columns: 1fr;
    }

    .rems-hp-expert-card {
        padding: 14px;
    }

    .rems-hp-expert-photo,
    .rems-hp-expert-photo img,
    .rems-hp-expert-avatar {
        width: 44px;
        height: 44px;
    }

    .rems-standings-table {
        font-size: 0.78rem;
    }

    .rems-standings-table thead th,
    .rems-standings-table tbody td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .rems-hp-hero-partner {
        padding: 3px 10px;
        gap: 6px;
    }

    .rems-hp-hero-partner-label {
        font-size: 0.52rem;
    }

    .rems-hp-hero-partner-name {
        font-size: 0.75rem;
    }

    .rems-hp-hero-h1 {
        font-size: 1.15rem;
    }

    .rems-hp-hero-kpis {
        gap: 10px;
    }

    .rems-hp-hero-kpi strong {
        font-size: 1rem;
    }

    .rems-hp-hero-kpi span {
        font-size: 0.6rem;
    }

    .rems-hp-hero-logos a,
    .rems-hp-hero-logos .rems-hp-hero-logo-item {
        width: 28px;
        height: 28px;
    }

    .rems-hp-hero-logos img {
        width: 16px;
        height: 16px;
    }

    .rems-mg-proba-bar {
        height: 20px;
    }

    .rems-mg-proba-seg span {
        font-size: 0.6rem;
    }

    .rems-mg-odd-val {
        font-size: 1rem;
    }

    .rems-hp-bk-header {
        gap: 10px;
    }

    .rems-hp-bk-logo {
        width: 42px;
        height: 42px;
    }

    .rems-hp-bk-name {
        font-size: 0.92rem;
    }

    .rems-hp-bk-desc {
        font-size: 0.8rem;
    }

    .rems-hp-bk-cta {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════
   CUSTOM FOOTER — Dark navy, 3 colonnes
   ═══════════════════════════════════════════ */

body:has(.rems-custom-footer) .site-footer .footer-widgets-container,
body:has(.rems-custom-footer) .site-footer .inside-site-info,
body:has(.rems-custom-footer) .site-footer .copyright-bar,
body:has(.rems-custom-footer) .site-footer .site-info,
body:has(.rems-custom-footer) .site-footer .footer-bar {
    display: none !important;
}

.rems-custom-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 24px 0;
    font-family: var(--rems-font, 'Barlow', sans-serif);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--rems-team-a, #1a56db), var(--rems-accent, #6366f1), var(--rems-team-b, #ea580c)) 1;
}

.rems-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.rems-footer-brand {
    padding-right: 20px;
}

.rems-footer-logo {
    margin-bottom: 14px;
}

.rems-footer-logo-img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.rems-footer-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9 !important;
    text-decoration: none;
    text-transform: uppercase;
}

.rems-footer-description {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.rems-footer-col-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f1f5f9;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.rems-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rems-footer-links li {
    margin-bottom: 6px;
}

.rems-footer-links a {
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-block;
}

.rems-footer-links a:hover {
    color: #ffffff !important;
}

.rems-footer-disclaimer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rems-footer-disclaimer p {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.rems-footer-copyright {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    font-size: 0.8rem;
    color: #334155;
}

@media (max-width: 768px) {
    .rems-custom-footer {
        padding: 32px 16px 0;
    }

    .rems-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rems-footer-brand {
        padding-right: 0;
        text-align: center;
    }

    .rems-footer-logo {
        text-align: center;
    }

    .rems-footer-description {
        text-align: center;
    }

    .rems-footer-col-title {
        text-align: center;
    }

    .rems-footer-links {
        text-align: center;
    }
}


/* ═══════════════════════════════════════════
   HOMEPAGE — INNER CONTENT PADDING FIX
   All widget content areas need breathing room
   ═══════════════════════════════════════════ */

.rems-homepage .rems-widget .rems-content {
    padding: 0 16px 16px;
}
.rems-homepage .rems-widget .rems-header {
    padding: 16px 16px 0;
}

/* ═══════════════════════════════════════════
   HOMEPAGE — SECTION SPACING
   Consistent margin between all major blocks
   ═══════════════════════════════════════════ */

.rems-homepage .rems-widget {
    margin-bottom: 24px;
}

/* Standings overflow fix */
.rems-homepage .rems-standings-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Compare widget inside homepage — full-bleed inside content padding */
.rems-homepage .rems-compare-widget {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Title logo alignment */
.rems-homepage .rems-title-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    object-fit: contain;
}

/* ═══════════════════════════════════════════
   HOMEPAGE — MOBILE FIXES
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
    .rems-homepage {
        padding: 0 14px 36px;
    }
    .rems-homepage .rems-widget .rems-content {
        padding: 0 10px 12px;
    }
    .rems-homepage .rems-widget .rems-header {
        padding: 12px 10px 0;
    }
    .rems-homepage .rems-compare-widget {
        margin-left: -10px;
        margin-right: -10px;
    }
    .rems-hp-hero {
        padding: 20px 16px 18px;
        border-radius: 12px;
    }
    .rems-hp-midcta-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px 16px;
    }
    .rems-hp-hiw {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rems-hp-bk-card {
        padding: 16px;
    }
}
