/* Responsive iframe for YouTube */
  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
  }
  .video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  /* Responsive card images */
  .card-img-top {
    width: 100%;
    height: auto;
    
    object-fit: cover;
  }
  /* Ensure cards stack on small screens */
  @media (max-width: 576px) {
    .all-cards .col-sm-6, .all-cards .col-lg-4 {
      max-width: 100%;
     
      flex: 0 0 100%;
    }
    .carousel-caption h1, .carousel-caption .teaser {
      font-size: 16px;
      line-height: 18px;
    }
    .carousel-caption {
      padding: 0.5em;
    }
    /* Ensure footer social icons wrap on small screens */
    .social-media-links--platforms {
      flex-wrap: wrap;
      justify-content: center;
    }
    .social-media-links--platforms li {
      margin: 0.5em;
    }

    /* Responsive: move carousel-caption below video on mobile */
    .carousel-caption {
      position: static !important;
      background: #e0dcdc !important;
      color: #222;
      margin-top: 1em;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      border-radius: 0.5em;
    }
    .carousel-caption a, .carousel-caption h1, .carousel-caption .teaser {
      color: inherit !important;
    }

    .row {
      margin-left: 0;
    }
    .card-body h5 {
      font-size: 1.25rem;
    }

    .mb-5, .my-5 {
      margin-bottom: 1rem !important;
      margin-top: 1rem !important;
    }

    p.card-text {
        font-size: 16px;
        line-height: 18px;
    }

    .accordion .card-body {
        padding: 0;
    }

    #collapsingNavbar {
          padding-top: 66px;
     }
    #collapsingNavbar .nav-link {
      padding: 0;
      margin: 0;
      font-size: 18px;
    }

    .carousel-caption .read-more {
        height: 35px;
    }

   .accordion h3 {
      font-size: 1.35rem;
      padding: 5px;
      margin: 0;
    }

    .card .card-header {
      padding: 0.2rem;
    }

    .card-img-top {
      max-height: 200px;
    }
    
    a.play-youtube-img .img-thumbnail {
      width: 85%;
    }
  }

  @media screen and (max-width: 480px) {
    .container-fluid {
        margin: 0;
        padding-left: 0;
        padding-right: 0;

    }
    .img-wrapper {
        height: auto;
    }
    .col-sm-6, .col-lg-4 {
      padding: 0;
    }

    .card-body h5 {
        font-size: 1.15rem;
    }


}

#collapsingNavbar {
    background: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
