/*
 * Responsive Styles for AK Circus Theme
 * Mobile-first approach organized by component for easier development
 */

/* ==========================================================================
   TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (min-width: 992px) and (max-width: 1339px) {
  .primary-menu {
    gap:var(--space-lg)
  }

  .section-main {
    flex: 1 1 clamp(610px, 60%, 810px);
    min-width: 610px;
  }

  .section-sidebar {
    flex: 1 1 clamp(160px, calc((100% - 810px - 3rem) / 2), 239px);
    min-width: 160px;
    max-width: 240px;
  }

  .site-content, .ticker-tips-container {
    max-width:calc(100% - 1rem)
  }

  .site-layout {
    gap:var(--space-lg);
    justify-content:center;
  }  

  .sidebar-widget {
    padding:1.8rem .88rem;
  }

  .sidebar-content h1 {
    font-size: 1.7rem;
  }

  h1 .highlight {
    font-size: .939rem;
  }

  .highlight, .sidebar-content h2, .sidebar-content h3 {
    font-size:1rem;
  }

  .sidebar-posts-articles li:first-child .article-title a {
    font-size:.875rem;
    line-height: 1.37rem;
  }

  .sidebar-posts-articles li:first-child .article-excerpt {
    font-size: 0.75rem;
    line-height: 1.07rem;
    letter-spacing: -0.0225rem;
  }

  .sidebar-posts-articles li:not(:first-child) {
    gap:.22rem
  }

  .sidebar-posts-articles li:not(:first-child) img {
    width:48px;
    height:48px;
  }

  .sidebar-posts-articles li:not(:first-child) .article-title a {
    font-size: .625rem;
    line-height: .75rem;
  }
  
}

@media (min-width: 992px) and (max-width: 1174px)  {
  .featured-article {
    height:auto;
    flex-direction: column-reverse;
  }
}

/* ==========================================================================
   HEADER RESPONSIVE STYLES
   ========================================================================== */
/* Tablet - 768px and up */
@media (min-width: 1150px) {  
  .banner-area {
    display: block;
    padding: var(--space-xl) 0;
  }
  
  .banner-placeholder {
    width: 728px;
    height: 90px;
  }
  
  .main-header-container {
    gap: var(--space-2xl);
    flex-wrap: nowrap;
    height: 80px;
    align-items: stretch;
  }

  .main-navigation {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    flex:2;
  }
  
  .primary-menu {
    flex-direction: row;
    padding: 0;
  }
  
  .primary-menu a {
    padding: var(--space-sm) 0;
    border-bottom: none;
    display: inline-block;
  }
  
  .mobile-menu-toggle {
    display: none;
  }

  /* Sticky header - only applied via JS for non-touch devices */
  .main-header-wrapper.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .top-bar-container {
    padding: var(--space-sm) 0;
  }
  
}

@media (max-width: 1149px) {
  /* Main Header */
  .main-header-container {
    padding: var(--space-md) var(--space-lg); /* Add back vertical padding on mobile */
    height: auto;
    align-items: center;
    position:relative
  }
  
  .site-branding {
    flex: 1;
  }
  

  
  .mobile-navigation-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-secondary);
    order: 4;
    flex-basis: 100%;
    z-index: 1000; /* Ensure it appears above other content */
    padding:.7rem .62rem 0;
    width: 100vw;
    height: calc(100vh - 100%);
    /* Prefer dynamic viewport height so bottom bar is excluded */
    /* Most modern Chrome/Safari */
    height: calc(100dvh - 100%);
    /* Prevent the overlay content from being hidden behind OS/home indicators */
    padding-bottom: calc(0.62rem + env(safe-area-inset-bottom, 0px));
    overflow: hidden;                /* let the inner panel scroll */
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  .mobile-navigation-overlay.is-open {
    display: flex;
    flex-direction: column;
    visibility: visible; 
    opacity: 1;
  }

  .header-search {
    background: var(--color-brand-orange);
    padding: 1.23rem 1.48rem;
    position:relative;
    order: 1;
  }

  .main-navigation {
    display:block;
    order:2;
    flex: 1 1 auto;
    overflow-y: auto;             /* Enable vertical scrolling for menu items */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    max-height: 100vh;            /* Prevent menu from extending outside viewport */
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;     /* nicer scroll containment */
  }
  
  .primary-menu {
    flex-direction: column;
    gap: 0;
    padding: var(--space-lg) 1.44rem;
    align-items:normal
  }
  
  .primary-menu a {
    padding: var(--space-lg) 0;
    display: block;
    font-size: 1.43rem;
    line-height: normal;
    letter-spacing: .043rem;
    position:relative;
    border-bottom:0;
  }

  .primary-menu .caret-down{
    border: 0;
    background: transparent;
    font-family: "FontAwesome";
    content: '\f054';
    position: absolute;
    color: var(--color-brand-orange);
    right: 0;
    display: block;
    width: 62px;
    line-height: 62px;
    text-align: right;
    top: 0;
  }

  .sub-menu .caret-down {
    line-height:24px;
  }

  .primary-menu  li.is-open > .caret-down svg {
    transform: rotate(180deg);
  }

 .primary-menu > li > a::after {
    bottom: 10px;
    width: 30px;
    height: 4px;
    left: 0;
    transform: translate(0, 0);
    opacity: 1;
    transition: opacity .3s ease;
  }

  .primary-menu > li.is-open > a:after {
    opacity: 0;
  }
  
  .primary-menu li:last-child a {
    border-bottom: none;
  }

  .primary-menu > li > .sub-menu {
    border:0;
    border-left: 4px solid var(--color-brand-orange);
    padding: 0 0 0 .62rem;
    margin:.5rem 0 1.12rem;
    display: none;
  }

  .primary-menu > li.is-open > .sub-menu {
    display: block;
  }

  .sub-menu > li > a {
    color: var(--color-text-tertiary);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.0375rem;
  }

  .primary-menu .sub-menu li .sub-menu {
    padding: 0 0 0 1rem;
    border: 0;
    margin: 1.12rem 0 0;
    display: none;
  }

  .primary-menu .sub-menu li.is-open .sub-menu {
    display: block;
  }

  .sub-menu li .sub-menu li {
    margin-bottom:.5rem;
  }

  .sub-menu li .sub-menu li a {
    font-size:1rem
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }
  
  .search-toggle {
    background: none;
    border: 0;
    color: #fff;
    font-size: 1rem;
    position: absolute;
    right: 1.44rem;
    top: 50%;
    transform: translate(0, -50%);
  }

  .search-form-label {
    display:none
  }

  input[type="search"] {
    line-height: normal;
  }

  input[type="search"]::placeholder {
    color:var(--color-brand-white);
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.0375rem;
  }

  .mobile-horizontal-navigation {
    padding:.8rem .4rem 0;
  }

  .mobile-top-menu {
    display:flex;
    padding:0;
    margin:0;
    list-style-type: none;
    gap:.2rem;
  }
  
  .mobile-top-menu li {
    padding:.47rem .78rem;
    display: flex;
    align-content: center;
    border:2px solid var(--color-border-thin);
    border-radius: 65px;
    color:var(--color-gray-500);
  }

  .mobile-top-menu li.current-menu-item {
    border-color: #E63D00;
    background: var(--color-brand-orange);
    color: var(--color-brand-white);
  }


  .mobile-top-menu a {
    color:inherit;
    white-space: nowrap;
    font-size: 0.78125rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.02344rem;
  }
}

@media (max-width:991px) {
  .ticker-tips-container {
    padding:.8rem 0 0;
  }

  .ticker-tips-showall {
    flex:0 0 42px;
  }

  .top-bar .mobile-hidden, .ticker-tips-container .mobile-hidden {
    display:none;
  }

  .ticker-tips-container .desktop-hidden {
    display:block;
  }

  .ticker-tips-showall i {
    color:#Fff;
  }

  .promo-ticker {
    max-width:50px;
  }

  .top-bar-social-theme.desktop-hidden {
    display: flex;
    gap: var(--space-md);
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding:.62rem 1rem 0;
    color: var(--color-text-primary);
  }
}

/* Mobile - max-width 767px */
@media (max-width: 767px) {

  /* Top Bar - Simplified for mobile */
  .top-bar-container {
    padding: var(--space-xs) var(--space-lg);
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
    
  .top-bar-links {
    order: 1;
    gap: var(--space-md);
  }
  
  .top-bar, .banner-area {
    display: none;
  }
    
}

@media (max-width: 639px) {
  .listing-articles-subarticles {
    grid-template-columns: 1fr;
    gap:0
  }
}

@media (max-width:529px) {
  .share-buttons {
    flex-direction: row-reverse;
  }

  .share-buttons__mainicon {
    max-width: 60px;
  }
  .share-buttons > div {
    font-size: 1.3rem;
    padding: .4rem 1.16rem;
    gap: 1.16rem;
  }
}

@media (min-width: 1150px) and (max-width: 1299px) {
  .primary-menu {
    gap: var(--space-md);
  }

  .primary-menu a {
    font-size:.86rem;
  }

  .main-header-container {
    gap: var(--space-xl);
  }
}

@media (min-width: 1150px) and (max-width: 1199px) {
  .mobile-navigation-overlay {
    gap:.5rem;
  }
  .search-toggle {
    padding-left:1%;
  }
}


/* ==========================================================================
   TYPOGRAPHY RESPONSIVE STYLES
   ========================================================================== */
/* Small devices - 576px and up */
@media (min-width: 400px) {
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: 1.25rem }
  h3 { font-size: 1.125rem; }
  h4 { font-size: 1.06rem; }
}

/* Small devices - 576px and up */
@media (min-width: 800px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
  h4 { font-size: var(--font-size-lg); }
}

/* ==========================================================================
   SIDEBAR TOP RIGHT ARTICLES RESPONSIVE (OPTIMIZED)
   ========================================================================== */

@media (max-width: 991px) {
  .sidebar-posts-articles li:not(:first-child) img {
    width: 60px;
    height: 60px;
  }
  
  .sidebar-posts-articles .article-title {
    font-size: var(--font-size-xs);
  }
  
  .sidebar-posts-articles li {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
  }
}

/* ==========================================================================
   FOOTER RESPONSIVE STYLES
   ========================================================================== */

/* Mobile - max-width 767px */
@media (max-width: 991px) {
  .footer-container, .footer-first-container {
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  }

  .footer-first-section {
   padding: 0;
  }

  .footer-widget {
    flex:1;
    margin-bottom:1.75rem;
  }
  
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  
  .site-info {
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   CUSTOM MEDIA
   ========================================================================== */
@media (max-width: 767px) {
  .custom-media-content, .media-content-flex {
    gap:1.5rem;
    align-items: center;
  }

  .media-text {
    text-align: center;
  }

  .custom-media-content:before {
    left:-1rem;
    width:calc(100% + 2rem)
  }
}

/* ==========================================================================
   UTILITY RESPONSIVE STYLES
   ========================================================================== */

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  .theme-toggle,
  .site-navigation,
  .mobile-menu-toggle,
  .top-bar,
  .banner-area {
    display: none !important;
  }
  
  .sidebar-left,
  .sidebar-right {
    display: none !important;
  }
}

/* ==========================================================================
   HOMEPAGE LAYOUT RESPONSIVE
   ========================================================================== */

/* Mobile - Hide sidebars */
@media (max-width: 991px) {
  .section-sidebar {
    display: none;
  }

  .sidebar-on-mobile {
    display:block;
  }
  
  .section-main {
    flex: 1;
    max-width: 810px;
    margin:0 auto;
  }
  
  .section-container {
    padding: 0 .81rem;
  }
  
  .site-layout {
    display: block;
  }
  
  .section-bottom-sidebars {
    display: none;
  }
}

/* ==========================================================================
   FULL-WIDTH CAROUSEL RESPONSIVE
   ========================================================================== */

/* Mobile - Stack vertically */
@media (max-width: 767px) {
  .featured-article {
    height: auto;
    flex-direction: column-reverse;
  }
  
  .featured-article__image {
    flex: 0 0 100%;
  }
  
  .featured-article__content {
    padding: var(--space-lg);
  }

  .featured-article__content-top {
    flex: 0 0 182px;
  }
  
  .featured-article__title {
    font-size: var(--font-size-xl);
    line-height: 1.875rem;
    letter-spacing: -.025rem;
    -webkit-line-clamp: 2;
  }

  .featured-article__excerpt {
    line-height: 1.25rem;
  }

  .akcircus-carousel--full-width .carousel-item {
    height: auto;
  }


}

/* ==========================================================================
   TOP MATCHES SECTION HOMEPAGE
   ========================================================================== */
@media (min-width: 681px) {
  .table-odds-comparison .bestodds-bookmaker a {
    width: 100%;
    height:23px;
  }
  .table-odds-comparison img.odds-sportsbook-fav { display: none; }
  .table-odds-comparison img.odds-sportsbook-logo {display : block; }
}

@media (max-width: 680px) {
  table tbody td, table thead th {
    padding:1rem .85rem;
  }
  
  .table-odds-comparison img.odds-sportsbook-fav { display: block; }
  .odds-sportsbook-name, .bestodds-bookmaker:after, .table-odds-comparison img.odds-sportsbook-logo { display: none; }

  .bestodds-bookmaker, .table-odds-comparison .bestodds-bookmaker {
    min-width:14px;
    padding:0;
    gap:.5rem;
  }

  .bestodds-bookmaker .odd-text-value {
    line-height: 18px;
    position: relative;
    top: 4px;
  }

  .bestodds-bookmaker a {
    height: 25px;
    margin-bottom: -1px;
    width: calc(100% + 2px);
  }

  .odds-sportsbook-fav {
    max-height: 19px;
  }

  .table--topmatches .table-team img{
    display:none;
  }

  .table-team {
    font-size:.62rem;
  }

  td.oddstext {
    padding:.80rem .125rem;
  }

  table:not(.mobile-vertical-table-block) tbody td:first-child {
    padding-left:.4rem;
  }

  table tbody td:last-child, table th.last-child {
    padding-right:.4rem;
  }
}

@media (min-width: 681px) {
  .odds-sportsbook-fav { display: none; }
}


/* ==========================================================================
   FEATURED SECTION HOMEPAGE
   ========================================================================== */
@media (max-width: 767px) {
  .akcircus-flex-slider--authors .flex-slider-container, .akcircus-featured-section, .featured-section-content .featured-column, .akcircus-flex-slider--large .flex-slider-container {
    margin:0 -.81rem;
  }

  .akcircus-featured-section {
    padding: 4.22rem .80rem;
    position:initial;
  }
  
  .featured-section-container {
    max-width: 100%;
  }
   
  .featured-overlay {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
  }
  
  .featured-title {
    font-size: var(--font-size-lg);
  }
  
  .grid-article {
    flex: 1 1 auto;
  }
  
  .grid-content {
    padding: var(--space-sm);
  }

  .featured-section-title {
    font-size: 1.875rem;
    line-height: 1.875rem;
    letter-spacing: .05rem;
  }

  .featured-column, .featured-image-container {
    height:380px;
  }

  .featured-custom-overlay .featured-title {
    font-size: 1.25rem;
    line-height: 1.687rem;
    letter-spacing: -.025rem;
  }
  
  .featured-custom-overlay .featured-excerpt {
    font-size: .875rem;
    line-height:1.25rem;  
  }

  .featured-custom-overlay .cta-button {
    font-size:.937rem;
  }

  .akcircus-featured-section .grid-title {
    font-size:.937rem;
    line-height: 1.03rem;
  }

  .akcircus-featured-section .grid-date {
    font-size:.75rem;
    line-height: .9rem;
    letter-spacing:-.022rem;
  }
  .akcircus-featured-section  .grid-excerpt {
    font-size:.937rem;
    line-height:1.19rem;
    letter-spacing: -.028rem;
  }
}

@media (max-width: 820px) {
  .featured-section-content {
    flex-direction: column;
    gap: var(--space-xl);
  }
  
  .featured-column {
    min-height: 400px;
  }
  
  .featured-image-container {
    min-height: 400px;
  }
  
  .articles-grid {
    gap:var(--space-md);
  }
 
  .grid-article {
    flex: 0 0 calc(50% - var(--space-md) / 2);
  }

  .grid-article-link img {
    max-height: none;
    object-fit: cover;
  }

  p.grid-excerpt {display:-webkit-box}
}

@media (max-width: 500px) {
  .featured-section-content, .articles-grid {
    gap:1.56rem;
  }
  
  .featured-title {
    font-size: var(--font-size-md);
  }
  
  .featured-excerpt {
    font-size: var(--font-size-sm);
    -webkit-line-clamp: 2;
  }

  .articles-grid {
    flex-direction: column;
  }
}

/* ==========================================================================
   FEATURED CATEGORY/TAG HOMEPAGE
   ========================================================================== */
@media (min-width: 791px) and (max-width: 985px) {
  .list-article__image-link {
    width: 144px;
  }
}
@media (max-width: 790px) {
  .akcircus-category-articles__featured, .akcircus-category-articles__list {
    flex:0 0 100%;
  }

  .akcircus-category-articles__featured .featured-image .featured-overlay {
    display:none;
  }

  .akcircus-category-articles__featured  .featured-overlay {
    padding:.94rem 0 0;
    position:initial;
    background:transparent;
  }

  .akcircus-category-articles__featured .featured-title {
    font-size:1.25rem;
    line-height:1.5rem;
    color:var(--color-brand-black);
  }

  .akcircus-category-articles__featured .featured-overlay .featured-title-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .akcircus-category-articles__featured .featured-meta {
    justify-content: space-between;
  }

  .akcircus-category-articles__featured time {
    color:#a9a9a9;
    font-weight: 400;
  }

}

@media (max-width: 500px) {
  .list-article__content {
    padding:.7rem;
  }
  p.list-article__excerpt {
    display:none;
  }

  .list-article__title {
    -webkit-line-clamp: 3;
  }
}

/* ==========================================================================
   SPORTSBOOK REVIEWS
   ========================================================================== */

@media (max-width: 500px) {
  .page-template-sportsbook-review .flex.flex-wrap, .sportsbook-pros-cons {
    flex-direction: column;
    gap:.5rem
  }

  .sportsbook-pros-cons .flex:last-child h4 {
    margin-top:1.25rem;
  }


  .sportsbook-pros-cons .white-box {
    padding:1.25rem 0 0;
    border:0;
    border-top:1px solid var(--color-border-light);
    margin-bottom:1rem;
  }

  .halflist {
    margin:1.25rem 0;
    max-width: 100%;
  }

  .deposit-methods .flex.gap-sm {
    margin-top: 1rem;
  }
}

/* ==========================================================================
   SUMMARY SPORTSBOOKS
   ========================================================================== */

@media (max-width: 630px) {

  .sportsbook-summary__top {
    padding:2.12rem 1.44rem;
  }

  .sportsbook-summary__content {
    padding:2rem .8rem
  }

  .sportsbook-summary__infos .cta-button {
    max-width: 80%;
    font-size:.98rem;
    line-height: 1.07rem;
  }

  .akcircus-flex-slider-size--large .flex-slider-container {
    padding:.5rem;
    margin: 0 -.81rem;
  }
}

@media (max-width: 500px) {
  .sportsbook-summary__top {
    flex-direction: column-reverse;
    gap:2.4rem;
  }
  
  .sportsbook-summary__logo {
    padding-top:0;
    gap:2.4rem;
  }

  .sportsbook-summary__ctas {
    gap:.7rem;
  }
}
/* ==========================================================================
   SUCCESS STORIES
   ========================================================================== */

  @media (max-width: 767px) {
  .akcircus-flex-slider--large .flex-slider-container {
    padding:.5rem 1rem 2rem;
  }

  .akcircus-flex-slider--large .flex-slider-item {
    flex: 0 0 95%
  }
}

  @media (max-width: 629px) {
    .akcircus-flex-slider-mobile--wrap .flex-slider-track {
      flex-wrap: wrap;
    }

    .akcircus-flex-slider-mobile--wrap .flex-slider-item {
      flex:0 0 100%;
    }

    .akcircus-flex-slider-mobile--wrap .flex-slider-link {
      display:flex;
      height:100%;
    }

    .akcircus-flex-slider-mobile--wrap .flex-slider-image img {
      width:123px;
      height:123px;
    }
    
    .akcircus-flex-slider-mobile--wrap .flex-slider-content {
      flex:1;
      justify-content: center;
    }

    .akcircus-flex-slider-size--medium .flex-slider-article-title {
      font-size:.875rem;
    }
  }
  
/* ==========================================================================
   SINGLE ARTICLE
   ========================================================================== */

@media (max-width: 500px) {
  .section-text {
    padding: 1rem .81rem;
  }

  .entry-meta-content {
    justify-content: center;
    width:100%;
  }

  .featured-image-container img {
    height:215px;
  }

}

/* ==========================================================================
   AUTHOR SECTION
   ========================================================================== */
@media (max-width: 767px) {

  .tags-links {
    margin-top:2.69rem;
  }

  .author-section-container {
    padding:1.9rem 1.41rem;
  }
  
  .author-section--topinfo, .author-section--title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-section--details {
    align-items: center;
  }
}

/* ==========================================================================
   BETFAIR VOLUMEs SECTION
   ========================================================================== */
@media (max-width: 620px) {
  .page-template-betfair-volumes .istabsbox {
    flex-direction: column;
  }

  .hastabsbox.active {
    justify-content: start;
  }
}

/* ==========================================================================
   OFFERS TABLE
   ========================================================================== */

@media (max-width: 767px) {
  .offers-table__item {
    padding:1.25rem .9375rem;
    max-block-size:initial;
    flex-direction: column;
    gap:1.12rem;
  }

  .offers-table__image {
    flex-basis:70px;
    padding:0 .5rem;
  }

  .offers-table__promodetails {
    flex-direction: column;
    align-items:baseline
  }

  .offer-table__featured, .offer-table__featured .offers-table__promotext, .offers-table__promotext, .offers-table__ctas {
    flex-basis:100%
  }

  .offer-table__featured .offers-table__promodetails  {
    font-size:1.125rem;
  }

  .offers-table__ctas {
    flex-direction: column-reverse;
    gap:1.12rem;
    align-self: auto;
    text-align: center;
  }

  .offers-table__ctas .cta-button {
    font-size:.875rem;
  }
}

/* ==========================================================================
   CHECKBOXES AND FILTERS
   ========================================================================== */

  @media (max-width: 640px) {
    .filter-options-results {
        gap:2rem;
    }

    .filter-container {
        flex-shrink: 1;
        min-width: 0;
    }

    .filter-container h4, .filter-sportsbook-content h3 {
        line-height:1.25rem;
    }
  }
  @media (max-width: 540px) {
    .filter-mob-btn {
        display:block;
    }
    .filter-mob-title {
        display:flex;
    }
    .sportsbook-filter__head .flex > svg {
        display:none
    }
    .sportsbook-filter__head {
        flex-direction: column;
        gap: .94rem;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .sportsbook-filter__head > .flex {
        width:100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
    .sportsbook-filter__head .filters-inline div {
        flex:1;
    }
    .single-filters .grid-2-3 {
        grid-template-columns: 100%;
        gap: 0;
    }
    .filter-container {
        display: none;
    }
    .filter-counter {
        width: 16px;
        height: 16px;
        display: block;
        background: #2b2b2b;
        border-radius: 50%;
        line-height: 16px;
        font-size: 9px;
        color: var(--color-brand-white);
    }
    .filter-mob-title {
        padding-bottom:1.02rem;
        margin-bottom: 1.84rem;
        border-bottom:1px solid var(--color-border-light);
    }
    .filter-section {
        margin-bottom:2.25rem;
        padding-bottom:2.25rem;
        border-bottom:1px solid var(--color-border-light)
    }
    .filter-container {
        position: fixed;
        background: var(--color-brand-white);
        border-radius: 30px 30px 0 0;
        left: 0;
        top: 50px;
        padding: 1.56rem 1.16rem;
        min-width: 100vw;
        height: calc(100dvh - 50px);
        box-sizing: border-box;
        z-index: 19999;
        box-shadow: 0px -20px 0px 100px rgba(0, 0, 0, .6);
    }
    .filter-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: calc(100% - 100px - 3.12rem);
    }
  }

  /* ==========================================================================
   STORIES
   ========================================================================== */
  @media (max-width: 767px) {
      /* Full screen modal container */
      .modal-open .stories-full-container {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          transform: none;
          padding: 0;
          background-color: transparent;
          border: none;
          z-index: 1000;
      }
      
      /* Full screen modal outer - with safe area insets */
      .modal-outer-container {
          width: 100vw;
          height: 100vh;
          height: 100dvh; /* Dynamic viewport height που αποκλείει το browser bottom bar */
          background-size: cover;
          background-position: center;
          background-color: #000;
          /* Εξασφάλιση ότι το περιεχόμενο δεν κρύβεται πίσω από notches ή bottom bars */
          padding-top: env(safe-area-inset-top, 0);
          padding-bottom: env(safe-area-inset-bottom, 0);
          padding-left: env(safe-area-inset-left, 0);
          padding-right: env(safe-area-inset-right, 0);
          box-sizing: border-box;
      }
      
      /* Adjust overlay for full screen */
      .modal-open .overlayBack {
          position: fixed;
          height: 100vh;
          height: 100dvh;
      }
      
      /* Full screen inner wrapper */
      .modal-inner-wrapper {
          height: 100%;
          width: 100%;
          display: flex;
          flex-direction: column;
          box-sizing: border-box;
      }
      
      /* Loading bar at the very top - με safe area */
      .loading-bar-container {
          top: env(safe-area-inset-top, 0);
          left: 0;
          right: 0;
          height: 4px;
      }
      
      /* Modal content container με padding για browser bottom bar */
      .modal-content-container {
          padding: 20px;
          padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px));
          /* Προσθέτω extra padding για να μην κρύβεται το κουμπί πίσω από το bottom bar */
          margin-bottom: max(0px, env(safe-area-inset-bottom, 0px));
      }
      
      /* Εναλλακτικά, για ακόμα καλύτερο positioning */
      .modal-arrows-and-content-container {
          padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
          box-sizing: border-box;
      }
      
      .modal-title {
          font-size: 1.5rem;
      }
      
      .modal-content {
          font-size: 1rem;
      }
      
      /* X button repositioned for full screen - με safe area */
      .x-button {
          width:30px;
          height: 30px;
          line-height: 0;
          top: calc(10px + env(safe-area-inset-top, 0px));
          right: calc(10px + env(safe-area-inset-right, 0px));
      }
      
      /* Prevent body scroll on mobile - χωρίς να χάνεται το scroll position */
      body.modal-open {
          touch-action: none;
          -webkit-overflow-scrolling: auto;
          overscroll-behavior: contain;
          height: 100vh;
          height: 100dvh;
      }
  }

  /* ==========================================================================
   SINGLE MATCH TIP
   ========================================================================== */

   @media (max-width: 689px) {
    .single-match-tip__content {
      padding:6.62rem 1rem;
    }

    .single-match-tip__info {
      gap:1.5rem;
    }

    .single-match-tip__tipinfo, .single-match-tip__stats, .votes-container {
      padding:1rem .58rem
    }

    .single-match-tip__league, .single-match-tip__team-name {
      font-size: .875rem;
    }

    .single-match-top__date {
      font-size: 3.05863rem;
    }

    .single-match-tip__team {
      gap:1rem;
    }

    .single-match-tip__team img {
      width:70px;
      height:auto;
    }

    .votes-container {
      flex-wrap:wrap;
      gap:.69rem;
    }

    .votes-button .cta-button {
      width:auto;
    }

    @media (max-width: 500px) { 
      .single-match-top__date .time-colon {
        display:block;
        height:0;
        visibility: hidden;
      }
    }

   }

   /* ==========================================================================
   TIPSTER SUGGESTS
   ========================================================================== */

   @media (max-width: 767px) {
    .tipster-suggests-container {
      background:var(--color-brand-orange);
      padding:1.5rem;
    }

    .tipster-suggests-container, .tipster-suggests__info {
      gap:1.5rem;
      align-items: center;
      text-align: center;
    }

    .tipster-suggests__content {
      width:100%;
      flex-direction: column;
      align-items: center;
    }
    
   }

/* ==========================================================================
    ODDS COMPARISON BETSLIP
    ========================================================================== */
@media only screen and (max-device-width: 991px) {
        .tempgreekodds {
            position: fixed;
            border-radius: 30px 30px 0 0;
            left: 0;
            bottom: 0px;
            padding: 1.56rem 1.16rem;
            min-width: 100vw;
            height: calc(100dvh - 50px);
            box-sizing: border-box;
            z-index: 19999;
            border:0;
        }
        #betslip {
          height: calc(100% - 120px - 3.12rem);
        }
        .betslip-results {
          position: fixed;
          left: 0;
          right: 0;
          bottom: 1.56rem;
          height: 145px;
          max-height: calc(100dvh - 1.56rem);
          overflow: hidden;
          display:flex;
          flex-direction: column;
          padding: 0 1.16rem;
          background-color: #000;
        } 
        .betslip-results-content {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            min-height: 0;
        }
        .mobile-betslip {
          width: 48px;
          height: 48px;
          line-height: 46px;
          background: #f8a037;
          text-align: center;
          display: block;
          position: fixed;
          bottom: 50px;
          right: 20px;
          border-radius: 30px;
          border: 2px solid #EFAF63;
          color: #fff;
          z-index: 10;
          border-color: #E63D00;
          background: var(--color-brand-orange);
          font-size: 1.2rem;
      }
    }