/* =========================================
       1. GLOBAL RESET & LAYOUT
       ========================================= */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    .nhra-section-header h2 {display: none;}

    .nhra-slider-wrapper {
        font-family: 'Roboto', sans-serif;
        color: white;
        padding: 40px; 
        width: 100%;
        max-width: 100vw; 
        position: relative; 
        overflow-x: hidden; 
        background-size: cover;
    background-position: center;
    background-color: #00468f;
    background-image: url(/sites/default/files/2026-02/NHRA%20HP%2075th%20BG%202026%20copy%20%281%29.jpg);
    background-blend-mode: multiply;
    filter: contrast(105%) saturate(80%);
    }

    .nhra-split-layout {
        display: flex;
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
        align-items: flex-start;
    }

    /* =========================================
       2. HERO COLUMN (LEFT)
       ========================================= */
    .hero-image-col {
        flex: 0 0 300px;
        width: 300px;
        height: 360px; 
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #333;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    .hero-img {
        width: 100%;
        height: 100%; 
        object-fit: cover; 
        position: absolute;
        top: 0; left: 0;
        z-index: 1;
        /*filter: brightness(0.6);*/ 
    }

    .hero-overlay {
    position: absolute;
    z-index: 2;
    width: 100%;
    display: block;
    text-align: center;
    padding: 20px;
    background: #2b2b2b;
    bottom: 0px;
    }

    .hero-label {
        font-family: 'Oswald', sans-serif;
        color: white;
        font-size: 2rem;
        text-transform: uppercase;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    /* Hero Countdown */
    .hero-countdown-box {
        display: flex;
        gap: 10px; 
        margin-bottom: 15px;
        width: 100%; 
        justify-content: center;
    }
    .h-time-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(0,0,0,0.6);
        padding: 8px 4px;
        border-radius: 4px;
        border: 1px solid #333;
        flex: 1; 
        min-width: 0;
    }
    .h-time-val {
        font-family: 'Oswald', sans-serif;
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
        color: #29b6f6; /* Blue Accent */
    }
    .h-time-label {
        font-size: 1rem;
        color: #ccc;
        text-transform: uppercase;
        margin-top: 2px;
    }

    /* =========================================
       3. SLIDER COLUMN (RIGHT)
       ========================================= */
    .slider-col {
        flex: 1; 
        min-width: 0; 
        position: relative;
        padding-left: 50px; 
        padding-right: 50px; 
    }

    .nhra-section-header {
        margin-bottom: 20px;
        border-left: 4px solid #e31837; 
        padding-left: 15px;
    }

    .nhra-section-header h2 {
        font-family: 'Oswald', sans-serif;
        font-size: 1.8rem;
        text-transform: uppercase;
        margin: 0;
        line-height: 1;
        color: white;
    }

    /* Swiper Setup */
    
    .swiper {
        width: 100%;
        height: auto; 
        padding-bottom: 20px !important;
        overflow: hidden;
    }

    .swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100%;
        height: 100%;
    }
    
    .swiper-pagination { display: none;}
    
    /* CMS FIX: Hide auto-injected tags that break layout */
    .swiper-wrapper > p, .swiper-wrapper > br { display: none !important; }
    
    .swiper-slide {
        flex-shrink: 0 !important;
        display: block !important;
        height: auto; 
    }

    /* =========================================
       4. RACE CARD STYLES
       ========================================= */
    .race-card {
        position: relative;
        width: 100%;
        height: 360px; /* Fixed height on desktop */
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: #000;
        border: 1px solid #333;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        transition: transform 0.3s ease;
    }

   /* .race-card:hover { transform: translateY(-5px); border-color: #555; } */

    .race-image-container {
        width: 100%;
        height: 225px; 
        overflow: hidden;
        /*flex-shrink: 0;*/
    background-size: cover;
    background-blend-mode: darken;
    background-color: rgba(0, 0, 0, 0.4);
    }

    .race-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.6s ease;
        backdrop-filter: brightness(0.8);
    }

    /* .race-card:hover .race-image { transform: scale(1.1); } */

    .race-content {
        padding: 15px;
        background-color: #2b2b2b; 
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .race-text-wrapper { margin-bottom: auto; }

    .race-meta {
        display: flex; 
        justify-content: flex-start; 
        align-items: center;
        margin-bottom: 8px;
    }

    .race-date { color: #29b6f6; font-weight: 700; font-size: 1.8rem; text-transform: uppercase; }

    .race-title {
        font-family: 'Oswald', sans-serif;
        font-size: 1.2rem;
        line-height: 1.1; margin: 0 0 4px 0;
        text-transform: uppercase; color: white;
    }

    .race-location {
        color: #bbb; font-size: 1.2rem;
        margin-bottom: 2px; 
        font-weight: 400;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .race-city {
        color: #888; font-size: 1rem; margin-bottom: 15px; 
        font-weight: 700; text-transform: uppercase; padding-left: 0; 
    }

    .race-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

    .nhra-btn {
        display: block; padding: 8px 0;
        text-align: center; text-decoration: none; text-transform: uppercase;
        font-family: 'Oswald', sans-serif; font-weight: bold;
        border-radius: 3px; font-size: 1.5rem;
        transition: all 0.2s ease;
    }

    .btn-tickets { background: white; color: black; }
    .btn-tickets:hover { background: #29b6f6; color: white; }

    .btn-details { border: 1px solid rgba(255,255,255,0.4); color: white; }
    .btn-details:hover { background: rgba(255,255,255,0.1); border-color: white; }

    /* =========================================
       5. NAVIGATION ARROWS
       ========================================= */
    .nhra-next-btn, .nhra-prev-btn {
        color: #29b6f6; 
        background: rgba(0,0,0,0.9);
        width: 44px; height: 44px; 
        border-radius: 50%;
        border: 1px solid #333;
        position: absolute;
        z-index: 999; 
        top: 50%;
        transform: translateY(-50%);
        display: flex; justify-content: center; align-items: center;
        cursor: pointer;
        transition: all 0.2s;
    }
    .nhra-next-btn:hover, .nhra-prev-btn:hover { background: #29b6f6; color: black; }
    
    .nhra-next-btn::after, .nhra-prev-btn::after { 
        font-family: 'swiper-icons'; 
        font-size: 18px; 
        font-weight: bold;
        content: 'next';
    }
    .nhra-prev-btn::after { content: 'prev'; }
    
    /* Desktop Positions */
    .nhra-next-btn { right: 0; }
    .nhra-prev-btn { left: 0; }

    /* =========================================
       6. MOBILE RESPONSIVE TWEAKS
       ========================================= */
    @media (max-width: 1024px) {
        .nhra-split-layout { display: block; }
        
        /* 1. Hero Banner: Short & Solid Background */
        .hero-image-col { 
            position: relative;
            width: 100%; 
            height: 150px; /* Shorter banner */
            margin-bottom: 25px; 
            display: block;
            flex: auto;
            background: #000; /* Solid background */
        }
        
        .hero-overlay {
            padding: 10px;
            background: none;
        }

        .hero-img { display: none; } /* Hide image on mobile */
        
        /* 2. Slider Column: Full Width */
        .slider-col { 
            width: 100%;
            display: block;
            padding-left: 0;
            padding-right: 0;
        }
        
        /* 3. Arrow Positioning: Centered over Slide Image */
        .nhra-next-btn, .nhra-prev-btn { 
            display: flex; 
            width: 36px; height: 36px;
            background: rgba(0,0,0,0.8);
            /* This positions the arrow approx over the center of the image area */
            top: 50%; 
            transform: translateY(-50%);
            z-index: 100;
        }
        
        .nhra-next-btn { right: 0 !important; }
        .nhra-prev-btn { left: 0 !important; }
        
        /* 4. Card Sizing */
        .race-card { 
            height: auto; 
            min-height: 360px; 
        }

        /* 5. Typography Adjustment */
        .h-time-val { font-size: 1.4rem; }
        
        .nhra-slider-wrapper { 
            padding: 20px 10px; 
            height: auto; 
            overflow-x: hidden; 
        }
        .race-image-container {
        	height: 200px;
        }
        .race-image { 
            height: 200px; 
            object-fit: contain; 
            transform: none;
        }
        
    .race-text-wrapper {
    margin-bottom: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
}

        .hero-label,.race-date,.race-location,.race-city,.nhra-btn {font-size: 1.5rem;}
        

    }
    
    
.hero-nav__item {
    transform: unset; 
    background: #2c3540;
    display: flex;
    align-content: center;
    justify-content: center;
    border: solid black 1px;
}

li.hero-nav__item:hover {
    background: darkslategray;
}

.button--slanted {
    transform: unset; 
    left: unset;
}


/* Container styling */
  .nhra-widget-container26 {
    font-family: "Arial", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: #f4f4f4;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 10px 0 10px; 
  }

  /* Navigation Bar */
  .nhra-tabs26 {
    display: flex;
    flex-wrap: wrap;
    background-color: transparent;
    gap: 5px;
    margin-bottom: 5px; 
  }

  /* Buttons */
  .nhra-tab-link26 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 10px 10px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 900;
    font-size: 12px;
    color: white;
    background: #002d62;
    background: linear-gradient(180deg, #004e8c 0%, #002d62 100%);
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .nhra-tab-link26 img { height: 30px; width: auto; object-fit: contain; }

  .nhra-tab-link26:hover {
    background: linear-gradient(180deg, #0060b0 0%, #003366 100%);
    border-color: #fff;
  }

  .nhra-tab-link26.active26[data-index="0"] {
    background: linear-gradient(180deg, #003366 0%, #002d62 100%);
    border-color: #002d62;
    border-bottom: 5px solid #E31837;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
  }
  .nhra-tab-link26.active26[data-index="1"] {
    background: linear-gradient(180deg, #ff4d4d 0%, #E31837 100%);
    border-color: #E31837;
    border-bottom: 5px solid #000;
  }
  .nhra-tab-link26.active26[data-index="2"] {
    background: linear-gradient(180deg, #444 0%, #000 100%);
    border-color: #000;
    border-bottom: 5px solid #002d62;
  }

  /* --- ANIMATION CONTAINER --- */
  /* This wrapper handles the smooth height transition */
  .nhra-carousel-wrapper26 {
      /* Start with a specific height or auto. 
         We control this via JS for the animation. */
      height: auto;
      overflow: hidden;
      /* Cubic-bezier makes it start fast and slow down at the end (smooth feel) */
      transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
      opacity: 1;
  }
  
  /* Class applied when closed */
  .nhra-carousel-wrapper26.closed {
      height: 0 !important;
      opacity: 0;
  }

  /* Content Area (Visuals only, not animation) */
  .nhra-carousel-content26 {
    position: relative;
    min-height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom: none; 
    border-radius: 4px 4px 0 0; 
    opacity: 1;
  }
  
  /* Add a simple fade-in once the JS is actually ready */
.nhra-carousel-content26.slick-initialized {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

  /* --- Toggle Bar (Bottom) --- */
  .nhra-toggle-bar26 {
    text-align: center;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none; 
    border-radius: 0 0 4px 4px; 
  }

  /* Prominent Button Style */
  .nhra-toggle-btn26 {
    background: #002d62; 
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px; 
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px; 
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  .nhra-toggle-btn26:hover { background: #E31837; }

  /* CSS Triangle Arrow */
  #nhraBtnArrow26 {
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 8px solid white; 
      transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .arrow-rotate-down { transform: rotate(180deg); }

  .nhra-slide26 {
    display: none;
    padding: 25px;
    animation: fadeEffect26 1.0s;
  }
  .nhra-slide26:first-child { display: block; }

  @keyframes fadeEffect26 { from { opacity: 0; } to { opacity: 1; } }

  @media screen and (max-width: 600px) {
    .nhra-tab-link26 { flex-direction: column; font-size: 12px; }
  }
  
  .button--primary {
      display: inline-block;
      padding: 10px 20px;
      background: #E31837;
      color: white;
      text-decoration: none;
      border-radius: 4px;
      font-weight: bold;
  }
  
  
  /* Target the specific ad container at the bottom of your HTML list */
.large-med-rect-ad {
  position: -webkit-sticky; /* Safari support */
  position: sticky;
  
  /* The distance from the top of the screen where it will 'stick' */
  top: 20px; 
  
  /* Ensures the banner stays on top of other scrolling elements */
  z-index: 10; 

  /* Fix for Flexbox: prevents the banner from stretching to full column height */
  align-self: start; 
  
  /* Optional: adds some breathing room above the banner when it sticks */
  margin-top: 10px;
}

/* Ensure the sidebar container allows sticky behavior */
#latest.column--sidebar {
  overflow: visible !important;
  height: 100%;
}