  .stats-table { 
    max-width:1240px; 
    margin:auto; 
  }

  .team-wrapper.loser {
    opacity: 0.4;
  }

  /* --- Tabs --- */
  .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 8px;
  }
  .tab-content.active {
    display: block;
    //border-radius: 1rem;
    border: 1px solid var(--tln-light-grey);
    overflow: hidden;
  }
  .tab-button { 
    padding:.5rem 1rem; 
    cursor:pointer; 
    background: #e6e7e8;
    flex: 1;
    max-width: 240px;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
  }
  .tab-button.active {
    background: #e1221b;
    color: #fff;
  }
  .tab-content { display:none; }
  .tab-content.active { display:block; }


   /* --- Filters --- */
   .filters { 
    display:flex; 
    gap:1rem; 
    margin: 2rem 0; 
    align-items:center; 
    flex-direction: column; 
  }
  #filter-wrapper label {
    font-size: 18px;
  }
  #filter-type-select {
    padding: 0.2rem 1rem;
    border-radius: 8px;
    color: var(--tln-dark-grey);
    font-weight: 600;
  }
  #filter-value-select {
    width: 50%;
    text-align: center;
    padding: 0.3rem 0;
    font-weight: 600;
    color: var(--tln-dark-grey);
    border-radius: 8px;
    background: var(--tln-light-grey);
  }
  .filters label { 
    font-weight:bold; 
    display: inline; 
  }
  #filter-value-select { 
    display:none; 
  }

  /* --- Carousel Wrapper & Arrows --- */
  .filter-carousel-wrapper {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    padding: 0 1rem;
  }
  .carousel-arrow {
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 1.8rem 1.8rem;
    border-radius: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38%;
    background-color: var(--tln-light-grey);
    text-decoration: none !important;
 }

  .carousel-arrow:hover {
    text-decoration: none !important;
  }

  /* --- Carousel Track --- */
  #filter-carousel {
    max-width: 50%;
    display: flex;
    gap: 1rem;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .filter-carousel-item {
    min-width: 100%;
    flex: 0 0 auto;
    padding: .6rem 1rem;
    background: #f0f0f0;
    border-radius: .25rem;
    cursor: pointer;
    white-space: nowrap;
    scroll-snap-align: start;
    font-weight: 600;
    color: var(--tln-dark-grey);
    text-align: center;
    pointer-events: none;
  }
  /* .filter-carousel-item.active { background: var(--tln-dark-grey); color: #fff; } */

  button#filter-carousel-prev {
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-left.svg);
  }
  button#filter-carousel-next {
    background-image: url(https://tln.ca/wp-content/fontawesome/svgs/solid/chevron-right.svg);
  }

  /* --- Tables --- */
  .stats-table table { 
    width:100%; 
    border:none; 
    margin: 0 0 2rem; 
  }
  .stats-table thead { 
    box-shadow:0 4px 10px -4px grey; 
  }
  .stats-table th,
  .stats-table td { 
    border:none; 
    text-align:center; 
    vertical-align: middle; 
  }
  .stats-header { 
    background:var(--tln-red); 
  }
  .stats-header th { 
    color:var(--tln-white); 
  }
  .stats-date-header { 
    text-align:center; 
    padding:1rem; 
    margin:0!important; 
    color:var(--tln-dark-grey); 
    background:var(--tln-light-grey); 
  }
  .round { 
    width:15%; 
  }
  .time { 
    width:15%; 
  }
  .channel {
    width: 25%;
  }
  .next-match { 
    width:25%; 
  }
  .stat {
    min-width: 45px;
  }

  .match-group { 
    display:flex; 
    flex-direction:row; 
    align-items:center; 
    justify-content:flex-start; 
    width:280px; 
    margin:auto; 
    gap:2rem; 
    text-align:left!important; 
  }
  .match-group img { 
    width: 6vw;
    max-width: 50px;
  }
  .match-wrapper { 
    display:flex; 
    flex-direction: row;
    align-items:center; 
    justify-content:space-between; 
    gap:2rem; 
    padding:1.5rem 1rem; 
    width:100%; 
  }
  .team-wrapper { 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    gap:.5rem; 
    text-align:center; 
    width:40%; 
    min-width:100px; 
  }
  .team-wrapper img { 
    width:6vw; 
    max-width:50px; 
    object-fit:contain; 
  }

  .score, .vs {
    display: block;
    min-width: 65px;
  }

  @media(max-width:768px) {
    .next-match {
        display: none;
    }
    .round, .team-wrapper { 
      width:25%; 
    }
    .time, .team-name, .round, .channel, .team-wrapper span { 
      font-size:14px; 
    }
  }
  @media(max-width:580px) {
    /* COLUMN SIZES */
    .time, .channel { 
      width:25%;
    }
    .match-wrapper {
        min-width: 50%;
        padding: 1.5rem 0;
        gap: 10px;
        justify-content: space-evenly;
    }
    .tabs {
	margin-bottom: 2rem;
    }
    /*  */
    .team-wrapper {
        min-width: 35%;
    }
    .team-wrapper img {
        width: 10vw;
        max-width: 50px;
        object-fit: contain;
    }
    .team-name {
      display: none;
    }
    .score, .vs {
      display: block;
      min-width: 50px;
  }
  .stat {
      min-width: 40px;
  }
    .filters {
      margin: 0 0 2rem;
    }
    .tab-content.active {  
      border: none;
    }
    .stats-table table { 
      margin-bottom:0; 
    }
    .carousel-arrow { 
      background-size: 30%; 
    }
    .match-group { 
      flex-direction:column; 
      justify-content: center; 
      width:100px; 
      min-height: 95px; 
      gap: 0.5rem; 
      text-align:center!important; 
    }
    .match-group img {
        max-width: 100%;
        width: 12vw;
    }
    .match-row { 
      border:1px solid #e6e7e8!important; 
    }
    .match-wrapper {
        gap: 0px;
    }
    .match-group, .time, .team-name, .round, .next-match, .team-wrapper span { 
      font-size:14px; 
    }
    .tab-button {
	display: block;
    }
    .word-break {
	display: block
    }
}
  /* --- Standings --- */
  .standings-table th, .standings-table td { 
    text-align:center; 
  }


  /* =========================================================
   PAGE STYLES — moved from style block in php file
   ========================================================= */
  section {
    position: relative;
    width: 100%;
    margin: auto;
    padding: 4rem;
  }
  .section-title {
    margin: auto auto 4rem !important;
    text-align: center;
  }
  @media (max-width: 768px) {
    section {
      padding: 2rem;
    }
    .section-title {
      margin: auto auto 2rem !important;
    }
  }
  
  /*========================================================
  ******* A D  L E A D E R B O A R D  S E C T I O N ********
  =========================================================*/
  .ad-block {
    width: 100%;
    display: block;
    padding: 3rem;
    background: radial-gradient(#ffffff, var(--tln-light-grey));
  }
  .ad-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  .ad-slot {
    width: 100%;
    max-height: 90px;
    max-width: 728px;
  }
  
  .ad-block iframe {
    width: 100% !important;
    box-shadow: 0px 0px 12px -8px black;
  }
  
  @media (max-width: 768px) { /* mobile */
    .ad-block {
      padding: 1.5rem 2rem;
    }
    .ad-row {
      gap: 1rem;
    }
    .ad-slot {
      max-height: 50px;
      max-width: 300px;
    }  /* 320x50 / 300x50 */
  }
  
  /*========================================================
  *************** H E A D E R  S E C T I O N ****************
  =========================================================*/
  
  /* Section wrapper */
  #slider-section {
    overflow: hidden;
    padding: 0 !important;
  }
  
  /* Relative container so arrows/progress/overlay can absolutely position */
  #slider-section .slider-wrapper {
    position: relative;
    width: 100%;
  }
  
  /* Images fill the frame */
  #slider-section picture,
  #slider-section img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    margin: 0;
    border: 0;
    box-sizing: border-box;
  }
  
  /* ======================================================
     Content overlay (for "slide--banner" with text fields)
     ------------------------------------------------------
     Desktop (>=1100px): left panel ~50% width, full height
     Mobile/Tablet: compact pill at bottom-left
     ====================================================== */
  
  /* Base overlay styles shared across breakpoints */
  #slider-section .slide-overlay {
    position: absolute;
    pointer-events: auto;        /* allows button/links inside overlay */
    color: #fff;
    z-index: 2;                  /* above image, below arrows */
  }
  
  /* Typography + spacing tokens */
  #slider-section .slide-tag {
    display: block;
    font-size: 2vw;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tln-white);
    margin-bottom: 1rem;
  }
  #slider-section .slide-title {
    color: var(--tln-light-grey);
    font-weight: 800;
    font-size: 4vw;
    line-height: 1;
    margin: 0 !important;
    padding-right: .5rem;
    text-transform: capitalize;
  }
  
  /* Readability on busy art */
  #slider-section .slide-title {
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
  }
  
  /* Clamp long text to keep overlays tidy */
  #slider-section .slide-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* 2 lines max */
    -webkit-box-orient: vertical;
    /*overflow: hidden;*/
  }
  
  /* DESKTOP — cover ~50% of the LEFT side, full height */
  @media (min-width: 768px) {
    #slider-section .slide-overlay {
      top: 0;
      bottom: 0;
      left: 0;
      right: auto;
      width: 50vw;
      padding: 4rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: flex-start;
      gap: 1rem;
      background: linear-gradient(90deg, rgba(5, 15, 23, 1), rgba(5, 15, 23, .80), rgba(5, 15, 23, .55), rgba(5, 15, 23, 0.01));
    }
  }
  
  /* MOBILE & TABLET — float as a small pill near bottom-left */
  @media (max-width: 767.99px) {
    #slider-section picture,
    #slider-section img {
      object-position: center;
    }
    #slider-section .slide-overlay {
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 4rem 2rem;
      display: grid;
      gap: 1rem;
  
      background: linear-gradient(
        0deg,
        rgba(5, 15, 23, 1),
        rgba(5, 15, 23, .80),
        rgba(5, 15, 23, .55),
        rgba(5, 15, 23, 0.01)
      );
    }
    #slider-section .slide-tag {
      font-size: 3vw;
    }
    /* Tighten typography on small screens */
    #slider-section .slide-title {
      font-weight: 800;
      font-size: 6vw;
      line-height: 1.15;
    }
  }
  
  @media (max-width: 580px) {
    #slider-section .slide-overlay {
      padding: 4rem 2rem;
    }
    #slider-section .slide-tag {
      font-size: 4vw;
    }
    #slider-section .slide-title {
      font-size: 8vw;
    }
  }
  
  /* ======================================================
     ********* D E S C R I P T I O N  S E C T I O N *********
     ====================================================== */
  .promo-section:nth-of-type(even) .promo-card {
    flex-direction: row-reverse;
  }
  .promo-card {
    max-width: 1240px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    justify-content: center;
  }
  
  .promo-media {
    width: 50%;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0px 0px 15px -5px black;
  }
  
  .promo-copy {
    width: 90%;
  }
  
  .promo-copy p {
    margin: 0;
  }
  
  .show-mobile { display: none; }
  .show-desktop {
    display: block;
    font-size: 1.8rem;
    text-align: center;
  }
  
  .promo-separator {
    display: block;
    width: calc(100% - 8rem);
    max-width: 1240px;
    height: 5px;
    margin: auto;
    background: var(--tln-light-grey);
  }
  
  @media (max-width: 1100px) {
    .promo-card, .promo-section:nth-of-type(even) .promo-card { flex-direction: column; }
    .promo-media, .promo-copy { width: 100%; }
  }
  
  @media (max-width: 768px) {
    .show-desktop { display: none; }
    .show-mobile { display: block; }
  }
  
  /* ======================================================
     ************ N E W S L E T T E R  (GOAL) **************
     ====================================================== */
  .newsletter {
    position: relative;
    overflow: hidden;
    background-color: #04533d;
    padding: 44px !important;
    text-align: center;
    color: white;
  }
  
  .newsletter.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  .newsletter-container {
    position: relative;
    z-index: 1; /* Ensure content is above the background logo */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Space between elements */
    max-width: 800px; /* Limit width of content */
    margin: 0 auto;
  }
  
  .newsletter-logo {
    max-width: 400px;
    height: auto;
  }
  
  .newsletter h2 {
    font-size: 80px;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 14px;
    color: #eff3e4;
  }
  
  .background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(1) translateY(100px);
    opacity: 0;
    z-index: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: drop-shadow(3px 2px 10px black);
    transition: opacity 2s ease-out, transform 2s ease-out;
  }
  
  /* Subscribe Button */
  .subscribe-btn {
    display: inline-block;
    background-color: #c7f267;
    color: #034d37;
    padding: 6px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 23px;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    border: 2px solid #c7f267;
  }
  
  .subscribe-btn:hover {
    background-color: transparent;
    color: #c7f267;
    border: 2px solid #c7f267;
  }
  
  .newsletter.active .background-logo {
    opacity: 1; /* Fade in to its desired subtle opacity */
    transform: translate(-50%, -40%) scale(1) translateY(0); /* Slide up to its original position */
  }
  
  @media (max-width: 480px) {
    .newsletter-logo {
      max-width: 165px;
    }
    .newsletter h2 {
      font-size: 28px;
      letter-spacing: 8px;
    }
    .subscribe-btn {
      font-size: 19px;
    }
    .background-logo {
      transform: translate(-50%, -40%) scale(1.5) translateY(100px);
    }
    .newsletter.active .background-logo {
      transform: translate(-50%, -40%) scale(1.5) translateY(0);
    }
  }
  
