/**
 * Homepage V2 Styles
 *
 * Loaded only on pages using the Custom Homepage Template V2.
 * Add styles specific to the homepage v2 layout and sections below.
 */

.home-programme-band-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-color: var(--black-color);
  }
  
  .programme-band-col {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .programme-band-col .programme-band-link {
    display: inline-block;
    background-color: var(--white-color);
    padding: 1.5rem 1.5rem 1rem;
    width: 100%;
    text-align: center;
    border-bottom: 0.5rem solid var(--primary-color);
    color: var(--main-text-color);
    text-decoration: none;
    font-family: "source-sans-pro", Arial, Helvetica, sans-serif !important;
    transition: all 0.3s ease-in-out;
  }
  
  .programme-band-col .programme-band-link:hover {
    background-color: var(--primary-color);
    color: var(--aubergine-color);
    text-decoration: underline;
  }
  
  .programme-band-link .programme-band-link-head {
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
  }
  
  .programme-band-link .programme-band-link-text {
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
  }
  
  @media only screen and (min-width: 992px) {
    .programme-band-col {
      gap: 2rem;
      align-items: center;
      flex-wrap: nowrap;
    }
    .programme-band-col .programme-band-link {
      width: calc(50% - 1rem);
    }
    .programme-band-link .programme-band-link-head {
      font-size: 1.25rem !important;
      line-height: 1.75rem !important;
    }
    .programme-band-link .programme-band-link-text {
      font-size: 1.125rem !important;
      line-height: 1.75rem !important;
    }
  }
  
  .discover-video-section,
  .home-student-life-section,
  .home-news-events-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .student-life-block-col {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .student-life-block-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .student-life-block-card-image {
    line-height: 0;
  }

  .student-life-block-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .student-life-block-card-content {
    padding: 1.25rem;
  }

  .student-life-block-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .student-life-block-card-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--main-text-color, #333);
  }

  .student-life-block-card-desc p:last-child {
    margin-bottom: 0;
  }

  @media only screen and (min-width: 576px) {
    .student-life-block-card {
      flex: 1 1 calc(50% - 0.75rem);
      max-width: calc(50% - 0.75rem);
    }
  }

  @media only screen and (min-width: 992px) {
    .student-life-block-card {
      flex: 1 1 calc(33.333% - 1rem);
      max-width: calc(33.333% - 1rem);
    }
  }
  
  .discover-video-wrapper {
    position: relative;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background-color: var(--black-color);
  }
  
  .discover-video-wrapper picture.discover-video-picture {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
  }
  .discover-video-wrapper picture.discover-video-picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center top;
    object-position: center top;
  }
  
  .discover-video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    object-fit: cover;
    object-position: center center;
  }
  @media only screen and (min-width: 768px) and (max-width: 1199px) {
    .discover-video-wrapper {
      aspect-ratio: 16/9;
    }
    .discover-video-wrapper picture.discover-video-picture {
      aspect-ratio: 16/9;
      min-height: auto !important;
      max-height: 100% !important;
    }
  }
  
  @media only screen and (min-width: 1200px) {
    .discover-video-wrapper {
      aspect-ratio: initial;
    }
    .discover-video-wrapper iframe {
      min-height: 100%;
      max-height: 100%;
    }
    .discover-video-wrapper picture.discover-video-picture {
      aspect-ratio: initial;
    }
  }
  
  .discover-video-wrapper .discover-yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2.75rem;
    aspect-ratio: 7/5;
    z-index: 1;
  }
  
  .discover-video-wrapper .discover-yt-play-btn img {
    width: 2.75rem;
    aspect-ratio: 7/5;
  }
  
  @media only screen and (min-width: 576px) {
    .discover-video-wrapper .discover-yt-play-btn,
    .discover-video-wrapper .discover-yt-play-btn img {
      width: 6.875rem;
    }
  }
  
  .student-life-section.home-student-life-section
    .student-life-card-col
    .student-life-card
    .student-life-card-head {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .home-discover-section, .home-why-choose-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .discover-content-wrapper .discover-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .discover-content-wrapper .discover-list li {
    font-family: "source-sans-pro", Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    padding-bottom: 0.5rem;
    color: var(--white-color);
  }
  .discover-content-wrapper .discover-list li:last-child {
    padding-bottom: 0;
  }
  
  @media only screen and (min-width: 992px) {
    .discover-content-wrapper .discover-list li {
      font-size: 1.125rem !important;
      line-height: 1.75rem !important;
    }
  }
  
  .news-events-section.home-news-events-section
    .news-events-card-col
    a.news-events-card,
  .news-events-section.home-news-events-section
    .news-events-card-col
    a.news-events-card
    .card-body {
    background-color: var(--grey-extra-light-color);
  }
  
  .news-events-section.home-news-events-section.section-w-bg
    .news-events-card-col
    a.news-events-card,
  .news-events-section.home-news-events-section.section-w-bg
    .news-events-card-col
    a.news-events-card
    .card-body {
    background-color: var(--white-color);
  }
  
  .news-events-section.home-news-events-section
    .news-events-card-col
    a.news-events-card:hover,
  .news-events-section.home-news-events-section
    .news-events-card-col
    a.news-events-card:hover
    .card-body {
    background-color: var(--primary-color);
  }
  
  .news-events-section.home-news-events-section
    .news-events-card-col
    .news-events-card
    picture,
  .news-events-section.home-news-events-section
    .news-events-card-col
    .news-events-card
    picture
    img {
    aspect-ratio: 12 / 7;
  }
  
  .news-events-section
    .news-events-card-col
    .news-events-card:hover
    .news-events-card-date {
    color: var(--aubergine-color);
  }
  
  .news-text-link {
    font-family: "source-sans-pro", Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    color: var(--primary-dark-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .news-text-link .link-text {
    text-decoration: underline;
  }
  .news-text-link:hover .link-text {
    text-decoration: none;
  }
  
  @media only screen and (min-width: 992px) {
    .news-text-link {
      font-size: 1.125rem !important;
      line-height: 1.75rem !important;
    }
  }
  
  /* Homepage new rules end */


  /* DWB-1728 */
.discover-section .discover-col .discover-image-wrapper img {
  aspect-ratio: 12/7;
}
.student-life-section .student-life-card-col .student-life-card picture, .student-life-section .student-life-card-col .student-life-card picture img {
  aspect-ratio: 12/7 !important;
} 