/* === ORIGINAL WIDGET STYLES === */
.odds-widget-container-fullwidth { display: flex; overflow-x: auto; padding-bottom: 15px; scrollbar-width: thin; scrollbar-color: #a0aec0 #e2e8f0; }
.odds-widget-container-fullwidth::-webkit-scrollbar { height: 8px; }
.odds-widget-container-fullwidth::-webkit-scrollbar-track { background: #e2e8f0; }
.odds-widget-container-fullwidth::-webkit-scrollbar-thumb { background-color: #a0aec0; border-radius: 6px; }
.odds-widget-container-page .odds-widget-item { display: flex; flex-direction: column; }
.odds-widget-container-fullwidth .odds-widget-item { width: 320px; margin-right: 1.5em; flex-shrink: 0; }
.odds-widget-container-sidebar .odds-widget-item { width: 100%; border: 1px solid #eee; }
.read-preview-button { display: block!important; background-color: #2d3748; color: #ffffff!important; text-align: center; padding: 12px; font-size: 14px; font-weight: bold; text-decoration: none; transition: background-color 0.2s ease; }
.read-preview-button:hover { background-color: #4a5568; color: #ffffff; }
.logo-container { width: 28px; height: 28px; margin-right: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-color: #ffffff; border-radius: 50%; border: 1px solid #e2e8f0; }
.logo-container img { max-width: 80%; max-height: 80%; width: auto; height: auto; }
.prop-bet-sidebar-body { display: flex; flex-direction: column; padding: 20px 15px; text-align: center; align-items: center; }
.prop-bet-odds-line { display: flex; justify-content: center; align-items: baseline; font-size: 16px; font-weight: bold; }
.odds-separator { color: #cbd5e0; margin: 0 15px; font-size: 14px; font-weight: normal; }
.prop-bet-odds-line span { color: #718096; font-weight: normal; margin-right: 8px; }

/* === NEW STYLES FOR ADVANCED POST MODULE === */
.elementor-widget-advanced_post_odds .advanced-odds-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    margin-bottom: 2em;
}
.elementor-widget-advanced_post_odds .advanced-odds-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    text-align: left;
    padding-left: 1rem;
    border-left: 4px solid #111827;
    line-height: 1.2;
    margin: 0;
    flex-grow: 1;
}
.elementor-widget-advanced_post_odds .odds-ajax-filter-nav {
    flex-shrink: 0;
}
.advanced-odds-widget-wrapper { container-type: inline-size; position: relative; }
.odds-widget-container { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); position: relative; }
.no-posts-found { background-color: #f7fafc; border: 1px solid #e2e8f0; padding: 20px; text-align: center; border-radius: 8px; grid-column: 1 / -1; }

/* START: OPTIMIZED CARD STYLES */
.advanced-post-odds-module {
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease-out;
    position: relative;
    will-change: transform;
}
.advanced-post-odds-module::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: -1;
}
@media (hover: hover) {
    .advanced-post-odds-module:hover {
        transform: translateY(-5px);
    }
    .advanced-post-odds-module:hover::after {
        opacity: 1;
    }
}
/* END: OPTIMIZED CARD STYLES */

.module-image-wrapper { position: relative; flex-shrink: 0; }
.module-image-link { display: block; background-size: cover; background-position: center; background-color: #e2e8f0; }
.module-content-wrapper { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.module-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; margin-bottom: 12px; font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }
.module-meta-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.module-meta-category { text-decoration: none; color: #4a5568; background-color: #edf2f7; padding: 3px 8px; border-radius: 6px; transition: background-color .2s; }
.module-meta-category:hover { background-color: #e2e8f0; }
.module-meta-date { color: #718096; }
.module-title { font-size: 1.18888rem; font-weight: 700; margin: 0 0 10px 0; line-height: 1.3; }
.module-title a { text-decoration: none; color: #1a202c; }
.module-title a:hover { color: #2d3748; }
.module-excerpt { font-size: 0.95rem; color: #4a5568; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; }
.module-odds-display { margin-top: auto; }
.read-preview-button.standalone { border-radius: 8px; }

/* Module Pick Level Flair */
.module-pick-flair {
    display: inline-flex;
    gap: 0.25em;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    text-transform: none; /* Override parent uppercase */
}
.module-pick-flair .flair-icon {
    font-size: 12px;
}
.module-pick-flair.pick-level-1 { background-color: #4A90E2; }
.module-pick-flair.pick-level-2 { background-color: #F5A623; }
.module-pick-flair.pick-level-3 { background-color: #C0392B; }

/* LAYOUT VARIATIONS */
.layout-default .module-image-wrapper { padding-top: 56.25%; }
.layout-default .module-image-link { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.layout-overlay { background-color: transparent; }
.layout-overlay .overlay-background { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 350px; flex-grow: 1; background-size: cover; background-position: center; overflow: hidden; border-top-left-radius: inherit; border-top-right-radius: inherit; }
.layout-overlay .advanced-post-odds-module { border-radius: inherit; }
.layout-overlay .module-odds-display { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.layout-overlay .overlay-background::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(26,32,44,0.5); z-index: 1; transition: opacity 0.3s ease; }
.layout-overlay:hover .overlay-background::before { opacity: 0.8; }
.layout-overlay .overlay-link { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; }
.layout-overlay .module-content-wrapper { position: relative; z-index: 3; background: transparent; }
.layout-overlay .module-meta-category { color: #1a202c; background-color: rgba(255,255,255,0.9); }
.layout-overlay .module-meta-date, .layout-overlay .module-title a, .layout-overlay .module-excerpt { color: #fff; }
.layout-overlay .module-title a:hover { color: #cbd5e0; }
.layout-overlay .module-odds-display { background-color: #fff; }
.layout-overlay .module-pick-flair { color: #ffffff; }
.layout-overlay .module-meta { margin-bottom: 12px; }

/* SLIDER STYLES */
.odds-slider-wrapper .swiper-container { position: relative; width: 100%; margin-left: auto; margin-right: auto; overflow: hidden; padding-bottom: 50px; }
.odds-slider-wrapper .swiper-slide { height: auto; display: flex; }
.odds-slider-wrapper .swiper-slide > .advanced-post-odds-module { width: 100%; }
.odds-slider-wrapper .swiper-button-next, .odds-slider-wrapper .swiper-button-prev { color: #fff; background-color: rgba(45, 55, 72, 0.5); width: 44px; height: 44px; border-radius: 50%; transition: background-color 0.2s ease; }
.odds-slider-wrapper .swiper-button-next:hover, .odds-slider-wrapper .swiper-button-prev:hover { background-color: rgba(45, 55, 72, 0.8); }
.odds-slider-wrapper .swiper-button-next::after, .odds-slider-wrapper .swiper-button-prev::after { font-size: 20px; font-weight: bold; }
.odds-slider-wrapper .swiper-pagination { bottom: 10px !important; }
.odds-slider-wrapper .swiper-pagination-bullet { background: #a0aec0; opacity: 0.8; width: 10px; height: 10px; }
.odds-slider-wrapper .swiper-pagination-bullet-active { background: #2d3748; opacity: 1; }

/* HERO BANNER STYLES (STATIC) */
.hero-banner-module {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #2d3748;
    width: 100%;
    min-height: 306px;
}

/* HERO BANNER STYLES (CAROUSEL) */
.hero-slider-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 306px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-slider-wrapper .hero-banner-module {
    height: 100%;
    width: 100%;
    border-radius: 0;
}

/* START: OPTIMIZED HERO SLIDER CONTAINER */
.hero-slider-wrapper .swiper-container {
    width: 100%;
    height: 100%;
}
/* END: OPTIMIZED HERO SLIDER CONTAINER */

.hero-slider-wrapper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Arrows */
.hero-slider-wrapper .swiper-button-next,
.hero-slider-wrapper .swiper-button-prev {
    color: #fff;
    background-color: rgba(26, 32, 44, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.hero-slider-wrapper .swiper-button-next:focus,
.hero-slider-wrapper .swiper-button-prev:focus {
    outline: 1px solid #2b2703;
}
.hero-slider-wrapper .swiper-button-next:active,
.hero-slider-wrapper .swiper-button-prev:active {
    background-color: rgba(26, 32, 44, 0.7);
}
.hero-slider-wrapper .swiper-button-next::after,
.hero-slider-wrapper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}
/* Dots */
.hero-slider-wrapper .swiper-pagination {
    bottom: 10px !important;
    position: absolute;
}
.hero-slider-wrapper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 8px;
    height: 8px;
}
.hero-slider-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* SHARED HERO STYLES */
.hero-banner-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    object-fit: cover!important;
    -o-object-fit: cover!important;
    -webkit-object-fit: cover!important;
    z-index: 0;
}
.hero-banner-module::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}
.hero-banner-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
}
.hero-banner-content {
    position: relative;
    z-index: 3;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
}
.hero-banner-text {
    margin-bottom: 14px;
}
.hero-banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-meta-left-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
/* New Pick Level Flair Styles */
.hero-pick-flair {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.hero-pick-flair .flair-icon {
    font-size: 1.1em;
}
.hero-pick-flair.pick-level-1 { background-color: #4A90E2; }
.hero-pick-flair.pick-level-2 { background-color: #F5A623; }
.hero-pick-flair.pick-level-3 { background-color: #C0392B; }

.hero-banner-category {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    opacity: 0.9;
    white-space: nowrap;
}
.hero-banner-category:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    opacity: 1;
}
.hero-banner-time {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.82;
    display: flex;
    align-items: center;
    gap: 0.4em;
    color: lightgoldenrodyellow;
}
h3.hero-banner-title {margin: 0.75em 0px}
.hero-banner-title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.hero-banner-title a:hover {
    text-decoration: underline;
}
.hero-banner-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 8px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-banner-odds {
    background-color: rgba(45, 55, 72, 0.8);
    border-radius: 8px;
    padding: 0px 10px;
    font-size: 0.8rem;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}
.hero-odds-header, .hero-odds-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    min-height: 36px;
}
.hero-odds-header {
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.hero-odds-col.team {
    text-align: left;
    display: flex;
    align-items: center;
}
.hero-team-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    object-fit: contain;
}
.hero-odds-col {
    text-align: right;
}
.hero-odds-total-value {
    color: #ffffff;
    font-weight: 400;
}

.hero-odds-label-spread::before { content: 'SPREAD'; }
.hero-odds-label-moneyline::before { content: 'MONEYLINE'; }

/* AJAX FILTER STYLES */
.odds-ajax-filter-nav { margin: 0; }
.odds-ajax-filter-buttons { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.odds-filter-button { background-color: #edf2f7; color: #4a5568; border: 1px solid #e2e8f0; padding: 8px 16px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.odds-filter-button:hover { background-color: #e2e8f0; border-color: #cbd5e0; }
.odds-filter-button.active { background-color: #2d3748; color: #fff; border-color: #2d3748; }
.odds-ajax-filter-dropdown { display: none; width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background-color: #fff; font-size: 1rem; }
.odds-widget-container.odds-loading { opacity: 0.4; transition: opacity 0.3s ease; }

/* PAST PREVIEWS CONTAINER */
.past-previews-title {
    text-align: center;
    margin-top: 2.5em;
    margin-bottom: 1.5em;
    font-size: 1.2rem;
    color: #4a5568;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5em;
}
.past-odds-widget-container .no-posts-found {
    margin-top: 0;
}

/* RESPONSIVENESS */
@media (max-width: 767px) {
    .elementor-widget-advanced_post_odds .advanced-odds-widget-header {
        flex-direction: column;
        align-items: stretch;
    }
    .elementor-widget-advanced_post_odds.odds-layout-overlay .advanced-odds-widget-header {
        flex-direction: row;
        align-items: baseline;
        gap: 1em;
        display: flex;
    }
    .elementor-widget-advanced_post_odds.odds-layout-overlay .odds-ajax-filter-dropdown {
        width: auto;
        min-width: 120px;
        flex-shrink: 0;
    }
    .elementor-widget-advanced_post_odds:not(.odds-layout-slider) .odds-widget-container-wrapper { position: relative; }
    .elementor-widget-advanced_post_odds:not(.odds-layout-slider) .odds-widget-container {
        display: flex;
        overflow-x: auto;
        margin: 0;
        padding: 0 10px 20px 10px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .elementor-widget-advanced_post_odds:not(.odds-layout-slider) .odds-widget-container::-webkit-scrollbar { display: none; }
    .elementor-widget-advanced_post_odds:not(.odds-layout-slider) .odds-widget-item {
        width: 85%;
        max-width: 320px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }
    .elementor-widget-advanced_post_odds:not(.odds-layout-slider) .odds-widget-container .no-posts-found {
        width: 100%;
        flex-shrink: 0;
    }
    .hero-banner-module, .hero-slider-wrapper { min-height: 275px; }
    .hero-banner-content { justify-content: center; padding: clamp(10px, 4vw, 12px) clamp(12px, 4vw, 15px); }
    .hero-banner-title a { font-size: 1rem; }
    .hero-banner-excerpt { font-size: 0.8rem; line-height: 1.3; margin-top: 5px; }
    .hero-odds-row { font-size: 0.7rem; }
    .hero-odds-label-spread::before { content: 'SPRD'; }
    .hero-odds-label-moneyline::before { content: 'ML'; }

    .odds-ajax-filter-buttons { display: none; }
    .odds-ajax-filter-dropdown {
        display: block;
        background-color: #edf2f7;
        color: #4a5568;
        border: 1px solid #e2e8f0;
        padding: 0px 32px 0px 16px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 12px;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234a5568'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 1.5em 1.5em;
        width: 100%;
    }
    .mobile-scroll-nav {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        background-size: 20px;
        background-position: center;
        background-repeat: no-repeat;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
        z-index: 10;
        cursor: pointer;
    }
    .mobile-scroll-prev {
        left: -10px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232d3748'%3E%3Cpath fill-rule='evenodd' d='M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
    }
    .mobile-scroll-next {
        right: -10px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232d3748'%3E%3Cpath fill-rule='evenodd' d='M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
    }
    .embedded-odds-table table { font-size: 0.8em !important; }
    .embedded-odds-table .logo-container { width: 28px !important; height: 28px !important; margin-right: 8px !important; }
}

/* Specific fixes for small mobile devices like iPhone SE (375px width) with retina display */
@media (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-banner-module, .hero-slider-wrapper {
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-banner-content {
        padding: clamp(8px, 2.5vw, 10px) clamp(10px, 3vw, 12px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }
    .hero-banner-title a {
        font-size: clamp(0.8rem, 3.5vw, 0.85rem);
        line-height: 1.2;
    }
    .hero-banner-excerpt {
        font-size: clamp(0.6rem, 3vw, 0.65rem);
        line-height: 1.2;
        margin-top: 4px;
    }
    .hero-banner-meta {
        gap: 8px;
        margin-bottom: 6px;
    }
    .hero-pick-flair {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    .hero-banner-category {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
    .hero-banner-time {
        font-size: 0.7rem;
    }
    .hero-odds-header, .hero-odds-row {
        gap: 4px;
        min-height: 28px;
        font-size: 0.6rem;
    }
    .hero-odds-header {
        font-size: 0.6rem;
    }
    .hero-team-logo {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
    .hero-banner-odds {
        padding: 0 8px;
    }
}

/* AJAX LOAD MORE BUTTON */
.odds-ajax-load-more-wrapper {
    text-align: center;
    margin-top: 2.5em;
    margin-bottom: 1em;
}
.odds-load-past-games-button {
    background-color: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    line-height: 1.5;
}
.odds-load-past-games-button:hover:not(:disabled) {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
}
.odds-load-past-games-button.loading,
.odds-load-past-games-button:disabled {
    background-color: #2d3748;
    color: #fff;
    border-color: #2d3748;
    cursor: not-allowed;
    opacity: 0.6;
}