/*
 * 8XBET TOP Custom CSS v12.0
 * Optimized Theme Styles for 8xbet.top
 * Last Updated: 2025
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #4c9eea;
    --primary-dark: #3a8cd8;
    --fs-color-primary: #4c9eea;
    --fs-color-secondary: #4c9eea;
    --fs-color-success: #7a9c59;
    --fs-color-alert: #b20000;
    --fs-experimental-link-color: #4c9eea;
    --fs-experimental-link-color-hover: #037bec;
    --transition-speed: 0.25s;
}

.tooltipster-base {
    --tooltip-color: #fff;
    --tooltip-bg-color: #000;
}

.off-canvas-right .mfp-content, .off-canvas-left .mfp-content {
    --drawer-width: 300px;
}

/* ===== CONTAINER WIDTH ===== */
.container-width, .full-width .ubermenu-nav, .container, .row {
    max-width: 1250px;
}
.row.row-collapse {
    max-width: 1220px;
}
.row.row-small {
    max-width: 1242.5px;
}
.row.row-large {
    max-width: 1280px;
}

/* ===== BACKGROUND ===== */
.sticky-add-to-cart--active, #wrapper, #main, #main.dark {
    background-color: #f5f5f5;
}

/* ===== HEADER ===== */
.header-main {
    height: 70px;
}
#logo img {
    max-height: 70px;
}
#logo {
    width: 200px;
}
.header-bottom {
    min-height: 55px;
    background-color: #ffffff;
}
.header-top {
    min-height: 30px;
}
.transparent .header-main {
    height: 90px;
}
.transparent #logo img {
    max-height: 90px;
}
.has-transparent + .page-title:first-of-type,
.has-transparent + #main > .page-title,
.has-transparent + #main > div > .page-title,
.has-transparent + #main .page-header-wrapper:first-of-type .page-title {
    padding-top: 140px;
}
.header.show-on-scroll, .stuck .header-main {
    height: 70px !important;
}
.stuck #logo img {
    max-height: 70px !important;
}
.header-bg-color {
    background-color: #ffffff;
}
.header-main .nav > li > a {
    line-height: 16px;
}
.header-bottom-nav > li > a {
    line-height: 16px;
}

@media (max-width: 849px) {
    .header-main {
        height: auto !important;
        min-height: 0 !important;
    }
    .header.show-on-scroll .header-main,
    .stuck .header-main {
        height: auto !important;
    }
    #logo img {
        max-height: 70px;
    }
}
@media (max-width: 549px) {
    #logo img {
        max-height: 60px;
    }
}

/* ===== NAVIGATION DROPDOWN ===== */
.nav-dropdown-has-arrow.nav-dropdown-has-border li.has-dropdown:before {
    border-bottom-color: #777777;
}
.nav .nav-dropdown {
    border-color: #777777;
    background-color: #ffffff;
}
.nav-dropdown {
    font-size: 100%;
}
.nav-dropdown-has-arrow li.has-dropdown:after {
    border-bottom-color: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
body {
    color: #777777;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h1, h2, h3, h4, h5, h6, .heading-font {
    color: #4c9eea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.nav > li > a, .mobile-sidebar-levels-2 .nav > li > ul > li > a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.alt-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* ===== HEADER BOTTOM NAV ===== */
.header:not(.transparent) .header-bottom-nav.nav > li > a {
    color: #777777;
}
.header:not(.transparent) .header-bottom-nav.nav > li > a:hover,
.header:not(.transparent) .header-bottom-nav.nav > li.active > a,
.header:not(.transparent) .header-bottom-nav.nav > li.current > a,
.header:not(.transparent) .header-bottom-nav.nav > li > a.active,
.header:not(.transparent) .header-bottom-nav.nav > li > a.current {
    color: #4c9eea;
}
.header-bottom-nav.nav-line-bottom > li > a:before,
.header-bottom-nav.nav-line-grow > li > a:before,
.header-bottom-nav.nav-line > li > a:before,
.header-bottom-nav.nav-box > li > a:hover,
.header-bottom-nav.nav-box > li.active > a,
.header-bottom-nav.nav-pills > li > a:hover,
.header-bottom-nav.nav-pills > li.active > a {
    color: #FFF !important;
    background-color: #4c9eea;
}

/* ===== FOOTER ===== */
.absolute-footer, html {
    background-color: #ffffff;
}
.nav-vertical-fly-out > li + li {
    border-top-width: 1px;
    border-top-style: solid;
}

/* ===== MENU LABELS ===== */
.label-new.menu-item > a:after { content: "Mới"; }
.label-hot.menu-item > a:after { content: "Nổi bật"; }
.label-sale.menu-item > a:after { content: "Giảm giá"; }
.label-popular.menu-item > a:after { content: "Phổ biến"; }

/* ===== CUSTOM PADDING ===== */
.padding-bot-0 {
    padding-bottom: 0 !important;
}
.padding-bot-15 {
    padding-bottom: 15px !important;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
    color: #777;
    font-size: 110%;
    text-align: left;
}

/* ===== BLOG ARCHIVE ===== */
.blog-archive .taxonomy-description {
    text-align: left;
}

/* ===== COMMENTS ===== */
.comment-form label, .comment-form span {
    color: #fff !important;
}

/* ===== TABLE ===== */
table td {
    color: #777;
}

/* ===== BADGE ===== */
.badge.post-date {
    top: 0%;
    left: auto;
    right: 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 5px 0;
}
.rank-math-breadcrumb > p {
    margin-bottom: 0px;
}
.rank-math-breadcrumb > p > a {
    color: #777;
    font-weight: bold;
}
.rank-math-breadcrumb > p > a:hover {
    color: #777;
}
.rank-math-breadcrumb .separator {
    color: #777 !important;
    opacity: .5;
}
.rank-math-breadcrumb .last {
    color: #999;
}

/* ===== LIST NHA CAI (HERO BANNER) ===== */
.list-nha-cai {
    background: #fff;
    border: 1px solid #0260df;
    padding-top: 5px;
    padding-bottom: 0;
    border-radius: 0px;
}
.list-nha-cai .testimonial-meta {
    display: none;
}
.list-title p {
    font-size: 200%;
    margin-bottom: 0;
}
.list-btn, .list-sub p, .list-link p {
    margin-bottom: 0;
    font-weight: 600;
}

/* ===== MIN HEIGHT CONTENT BOX ===== */
.min-height {
    max-height: 600px;
    padding: 10px 15px;
    overflow: auto;
    word-wrap: break-word;
    background: #fff;
    border: 1px solid #4c9eea;
}
.min-height::-webkit-scrollbar {
    width: 7px;
}
.min-height::-webkit-scrollbar-thumb {
    background-color: #4c9eea;
}
.min-height::-webkit-scrollbar-track {
    background-color: #777777;
}

/* ===== HOVER SHINE EFFECT ===== */
.hover-shine .img-inner {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}
.hover-shine .img-inner:before {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: -100%;
    z-index: 2;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
    background: transparent;
    background: linear-gradient(90deg, hsla(0, 0%, 100%, 0) 0, hsla(0, 0%, 100%, .5));
    width: 50%;
    transform: skew(-25deg);
}
.hover-shine:hover .img-inner:before {
    animation: shine 1s;
}
@keyframes shine {
    to {
        left: 125%;
    }
}

/* ===== ACCORDION ===== */
h3.accordion-title {
    cursor: pointer;
}

/* ===== FOOTER TITLE ===== */
.text-title-footer p {
    position: relative;
    color: #777777;
    text-transform: uppercase;
    font-size: 110%;
    margin-bottom: 15px;
    padding-bottom: 3px;
}
.text-title-footer p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #777777;
}

/* ===== FL-ICONS FONT ===== */
@font-face {
    font-family: "fl-icons";
    font-display: block;
    src: url('../fonts/fl-icons.eot');
    src:
        url('../fonts/fl-icons.eot') format("embedded-opentype"),
        url('../fonts/fl-icons.woff2') format("woff2"),
        url('../fonts/fl-icons.ttf') format("truetype"),
        url('../fonts/fl-icons.woff') format("woff"),
        url('../fonts/fl-icons.svg') format("svg");
}

/* ===== SECTION PADDING ===== */
.section {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* ===== IMAGE WIDTH 100% ===== */
.img {
    width: 100%;
}

/* ===== 8XBET TOP UNIQUE STYLES v12.0 ===== */

/* Enhanced Button Animations */
.button.primary,
.button.secondary {
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 158, 234, 0.35);
}

.button.primary:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.box,
.post-item,
.col-inner {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.box:hover,
.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Smooth Link Transitions */
a {
    transition: color var(--transition-speed) ease;
}

/* Navigation Enhancement */
.nav-dropdown {
    border-radius: 8px;
    overflow: hidden;
}

/* Footer Spacing */
#footer {
    margin-top: 30px;
}

/* Mobile Menu Enhancement */
@media (max-width: 849px) {
    .mobile-nav-list > li > a {
        padding: 16px 22px;
    }
    
    #mobile-sidebar {
        border-radius: 0 12px 12px 0;
    }
}

/* Performance Optimizations */
img {
    content-visibility: auto;
}

/* Accessibility Improvements */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-wrapper,
    #footer,
    .sidebar {
        display: none !important;
    }
}
