@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&display=swap');
/*
Theme Name: SportyTrader Clone
Theme URI: http://localhost
Author: You & Gemini
Description: A custom, 100% dynamic WordPress theme cloning SportyTrader.
Version: 1.0
Text Domain: sportyclone
*/

/* ==========================================================================
   GLOBAL VARIABLES (The Design System)
   ========================================================================== */
:root {
    /* Exact Brand Colors */
    --color-primary-blue: #162a43;    
    --color-accent-green: #119337;    
    --color-accent-yellow: #f89e00;   
    --color-text-body: #4a5568;       
    
    /* Backgrounds & Borders */
    --color-bg-light: #f5f6f9;        
    --color-bg-white: #ffffff;        
    --color-border: #e2e6ea;          
    
    /* Typography */
    --font-main: 'Roboto', 'Inter', sans-serif;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 22px;
    
    /* Layout */
    --container-max: 1200px;
    --border-radius: 6px;
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-primary-blue);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: var(--font-main);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px; /* Slightly taller to match original */
}

/* Pushes Logo and Nav to the left, Actions to the right */
.site-logo {
    margin-right: 10px; /* Gap between Logo and Predictions */
}

.main-navigation {
    margin-right: auto; /* Magic trick: Pushes the action buttons to the far right! */
}

/* Logo Styling */
.site-logo .logo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-badge {
    background: #e53935; /* Solid brand red */
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    font-style: italic;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: -0.5px;
}

.logo-text {
    font-size: 18px; /* Made slightly larger */
    font-weight: 900;
    color: var(--color-primary-blue);
    letter-spacing: -0.5px;
}

/* Navigation Menu */
.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li a {
    color: var(--color-primary-blue);
    font-size: 13px; 
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.main-navigation .nav-menu li a:hover {
  color: var(--color-primary-blue);
}

/* Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px; /* Clean spacing between buttons */
}

.action-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 1.50 and Language Pill Buttons */
.pill-btn {
    border: 1px solid var(--color-border);
    padding: 0 12px;
    border-radius: 20px;
    gap: 6px;
    height: 36px;
    background-color: var(--color-bg-white);
    transition: border-color 0.2s, background-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.pill-btn:hover {
    border-color: #c5cbd3;
    background-color: var(--color-bg-light);
}

.action-text {
    font-size: 13px;
    font-weight: 600;
}

/* Icons inside Pill Buttons */
.icon-chevron {
    width: 12px;
    height: 12px;
    stroke: var(--color-text-body); /* Subtle grey chevron */
    stroke-width: 2;
    display: block;
}

.icon-globe {
    width: 17px;
    height: 17px;
    stroke: #119337; /* The exact bright green */
    stroke-width: 1.5;
}

/* Gift Button & Notification Cutout */
.gift-btn {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--color-primary-blue);
}

.icon-gift {
    width: 22px;
    height: 22px;
    stroke-width: 1.5; /* Thinner strokes to match original */
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #e53935;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff; /* This creates the white cutout effect! */
    line-height: 1;
}

/* ==========================================================================
   OFFERS 2-CARD STEP CAROUSEL
   ========================================================================== */
.offers-slider-section {
    background-color: var(--color-bg-light);
    padding: 16px 20px 8px 20px;
    border-bottom: 1px solid var(--color-border);
}

.offers-slider-container {
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.offers-slider-track {
    display: flex;
    gap: 24px;
}

.offers-slide {
    flex: 0 0 calc(50% - 12px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .offers-slide {
        flex: 0 0 100%; 
    }
}

.offer-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 10px 18px;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.offer-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.offer-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-text-logo {
    font-weight: 900;
    font-size: 17px;
    color: #111;
}

.brand-bg-1xbet {
    background-color: #144974;
}

.brand-text-white {
    color: #ffffff;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.brand-bg-melbet {
    background-color: #000000;
}

.brand-text-yellow {
    color: #f7a600;
    font-weight: 900;
    font-size: 12px;
}

.brand-bg-betwinner {
    background-color: #0b5e39;
}

.offer-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.offer-card__label {
    font-size: 16px; 
    font-weight: 400; 
    color: var(--color-primary-blue);
    line-height: 1.1;
    margin-bottom: 4px;
}

.offer-card__value {
    font-size: 18px; 
    font-weight: 800; 
    color: var(--color-primary-blue);
    line-height: 1.1;
}

.highlight-val {
    color: var(--color-accent-yellow);
    font-weight: 900; 
    font-size: 20px;  
}

.offer-card__arrow {
    width: 32px;  
    height: 32px; 
    background-color: var(--color-accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-card__arrow svg {
    width: 16px; 
    height: 16px;
    stroke: #ffffff;
}

.marquee-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #8c96a3;
    margin-top: 10px;
}

/* ==========================================================================
   GREEN PROMO BAR
   ========================================================================== */
.green-promo-bar {
    background-color: #007a56; 
    color: #ffffff;
    padding: 8px 20px; 
    font-size: 14px; 
    font-weight: 700;
    width: 100%;
    display: block;
}

.green-promo-bar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; 
}

.green-promo-bar__link {
    color: #ffd800; 
    text-decoration: underline;
    text-decoration-thickness: 1px; 
    font-weight: 800;
}

.green-promo-bar__link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   NAVIGATION DROPDOWN (SUB-MENU) - ULTIMATE BULLETPROOF FIX
   ========================================================================== */
/* 1. Make the parent item full height to create a solid bridge for the mouse */
.main-navigation .nav-menu > li {
    position: relative; 
    display: flex;
    align-items: center;
    height: 44px; 
    padding: 0 12px; 
    transition: background-color 0.2s ease;
}

/* 2. The Main Dropdown Arrow (ONLY targets top-level header links) */
.main-navigation .nav-menu > li.menu-item-has-children > a::after,
.main-navigation .nav-menu > li.page_item_has_children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-top: -2px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.main-navigation .nav-menu > li:hover,
.main-navigation .nav-menu > li:focus-within {
    background-color: var(--color-bg-light);
}

/* Arrow rotation on hover */
.main-navigation .nav-menu li.menu-item-has-children:hover > a::after,
.main-navigation .nav-menu li.page_item_has_children:hover > a::after {
    transform: rotate(-135deg); 
}

/* 3. The Dropdown Box (Catches sub-menu AND WP fallback children) */
.main-navigation .nav-menu .sub-menu,
.main-navigation .nav-menu .children {
    display: block !important; 
    position: absolute;
    top: 44px; 
    left: 0;
    background-color: var(--color-bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 230px;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 999999 !important; 
    border-radius: 0 0 6px 6px;
    border: 1px solid var(--color-border);
    border-top: none;
    pointer-events: none; 
}

/* 4. Show Dropdown on Hover (The Nuclear Option) */
.main-navigation .nav-menu li:hover > .sub-menu,
.main-navigation .nav-menu li:hover > .children,
.main-navigation .nav-menu li:focus-within > .sub-menu,
.main-navigation .nav-menu li:focus-within > .children {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* 5. Dropdown Items Styling */
.main-navigation .nav-menu .sub-menu li,
.main-navigation .nav-menu .children li {
    border-bottom: 1px solid var(--color-border);
    width: 100%;
}

.main-navigation .nav-menu .sub-menu li:last-child,
.main-navigation .nav-menu .children li:last-child {
    border-bottom: none;
}

/* 6. Dropdown Links */
.main-navigation .nav-menu .sub-menu li a,
.main-navigation .nav-menu .children li a {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary-blue);
    width: 100%;
    transition: background-color 0.15s;
}

.main-navigation .nav-menu .sub-menu li a:hover,
.main-navigation .nav-menu .children li a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary-blue);
}

/* 7. Right-facing Arrow for Dropdown Items (ONLY shows if the item has a sub-menu) */
.main-navigation .nav-menu .sub-menu li.menu-item-has-children > a::after,
.main-navigation .nav-menu .children li.menu-item-has-children > a::after,
.main-navigation .nav-menu .sub-menu li.page_item_has_children > a::after,
.main-navigation .nav-menu .children li.page_item_has_children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #111;
    border-top: 1.5px solid #111; 
    transform: rotate(45deg);
    transition: border-color 0.15s ease;
}

/* Hover color for the inner arrows */
.main-navigation .nav-menu .sub-menu li.menu-item-has-children:hover > a::after,
.main-navigation .nav-menu .children li.menu-item-has-children:hover > a::after,
.main-navigation .nav-menu .sub-menu li.page_item_has_children:hover > a::after,
.main-navigation .nav-menu .children li.page_item_has_children:hover > a::after {
    border-color: var(--color-accent-yellow); 
}

/* 8. Nested Dropdowns (Level 3 Flyout to the Right) */
/* Anchor the flyout to the specific list item being hovered */
.main-navigation .nav-menu .sub-menu li,
.main-navigation .nav-menu .children li {
    position: relative; 
}

/* Override the 44px drop and push it to the right */
.main-navigation .nav-menu .sub-menu .sub-menu,
.main-navigation .nav-menu .children .children {
    top: -1px !important; 
    left: 100% !important; 
    border-radius: 0 6px 6px 6px !important; 
    transform: translateX(10px) !important; 
}

/* Animate the 3rd level flyout */
.main-navigation .nav-menu .sub-menu li:hover > .sub-menu,
.main-navigation .nav-menu .children li:hover > .children,
.main-navigation .nav-menu .sub-menu li:focus-within > .sub-menu,
.main-navigation .nav-menu .children li:focus-within > .children {
    transform: translateX(0) !important;
}

/* ==========================================================================
   MAIN LAYOUT (2-Column Grid)
   ========================================================================== */
.site-content {
    padding: 12px 20px 60px 20px;
    background-color: var(--color-bg-light);
}

.main-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.content-left {
    flex: 1; 
    min-width: 0; 
}

.sidebar-right {
    width: 320px; 
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }
    .sidebar-right {
        width: 100%;
    }
}

/* ==========================================================================
   CONTENT BOXES & QUICK LINKS (Matching Original Horizontal Layout)
   ========================================================================== */
.content-box {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.box-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: 12px;
}


/*============================
header section
===============================*/

/* Language Dropdown Container */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Box */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: none; /* Hidden by default */
    flex-direction: column;
    padding: 8px 0;
    z-index: 1000;
}

/* Shown state handled by JS */
.lang-dropdown-menu.is-open {
    display: flex;
}

/* Individual Language Options */
.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.lang-option:hover {
    background-color: var(--color-bg-light);
}

.lang-option .flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
/* ==========================================================================
   PERMANENT GOOGLE TRANSLATE BANNER ANNIHILATION
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate > iframe {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

/* Force body back to the top and lock it */
body {
    top: 0px !important;
    position: static !important;
}

/* Hide tooltips and translation highlights */
#goog-gt-tt, 
.goog-tooltip {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   HIDE NATIVE GOOGLE TRANSLATE WIDGET BOX & BRANDING
   ========================================================================== */
#google_translate_element,
.goog-te-gadget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   HIDE GOOGLE TRANSLATE LOADING ARTIFACTS
   ========================================================================== */

/* Hides any lingering Google translate gadgets or loading spinners on the right */
.goog-te-gadget-simple, 
.goog-te-spinner,
.goog-logo-link {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Suppress any default Google translation flash highlights */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   ODDS FORMAT DROPDOWN SELECTOR STYLES
   ========================================================================== */
.odds-dropdown {
    position: relative;
    display: inline-block;
}

.odds-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1000;
}

.odds-dropdown-menu.is-open {
    display: flex;
}

.odds-option {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.odds-option:hover {
    background-color: var(--color-bg-light);
}

.odds-option.is-active {
    font-weight: 700;
    color: var(--color-primary-blue);
}
/* KHMER LANGUAGE FONT OVERRIDES */

/* This only activates when the HTML has the Khmer class */
html.lang-km body {
    font-family: 'Battambang', sans-serif !important;
    font-size: 0.95rem !important; /* Slightly adjusted so it matches English proportions */
    line-height: 1.8 !important;   /* Essential: Prevents Khmer tails from being cut off */
}

/* ==========================================================================
   KHMER — FULL COVERAGE (extends font + fixes layout for ALL elements)
   ========================================================================== */

/* 1. Force Khmer font on every element, not just body/headings */
html.lang-km * {
    font-family: 'Battambang', sans-serif !important;
}

/* 2. Give fixed-height nav/button containers room to breathe */
html.lang-km .header-inner {
    height: auto;
    min-height: 56px;
}

html.lang-km .main-navigation .nav-menu > li {
    height: auto;
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
}

html.lang-km .pill-btn {
    height: auto;
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* 3. Allow nav text to wrap instead of forcing single-line + fixing tight tracking */
html.lang-km .main-navigation .nav-menu li a {
    white-space: normal;
    letter-spacing: normal;
}

html.lang-km .logo-text {
    letter-spacing: normal;
}

/* 4. Slightly looser line-height on buttons/pills specifically, since 1.8 body-wide can overflow small components */
html.lang-km .action-text,
html.lang-km .odds-option,
html.lang-km .lang-option {
    line-height: 1.4;
}

/* Make headers bold in Khmer */
html.lang-km h1, 
html.lang-km h2, 
html.lang-km h3, 
html.lang-km .page-title {
    font-family: 'Battambang', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   FULL-WIDTH GRID STRETCH FIX (< 993px and up)
   ========================================================================== */
@media (min-width: 993px) {
    .site-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .main-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important; /* Adds a tiny breathing room so edge content doesn't literally touch monitor bezels, or set to 0 if you want it flush */
    }
}


/* ==========================================================================
   HIDE ODDS DROPDOWN ON MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .odds-dropdown {
        display: none !important;
    }
}
