﻿body {
  background-image: url("https://dancevision.com/static/css/static/img/new-homepage/dummy-img-1.jpg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1 {
  font-size: 2.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 2.75rem;
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 2rem;
  color: #101828;
}

h3 {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.75rem;
  margin-bottom: 0.45rem;
}

h4 {
  font-weight: 600;
}

p {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
}

.text-red {
  color: #da1e28;
}

.hero-section {
  display: none;
}

.hero-section-mobile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1rem 1rem 4rem 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.section-container {
  padding: 3rem 1rem 4rem 1rem;
}

.container-body-row {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  justify-content: center;
}

.featured-section {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.container-body-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  justify-content: center;
}

.row-reverse {
  flex-direction: column-reverse !important;
}

.column-reverse {
  flex-direction: column-reverse !important;
}

.container-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.full-width {
  width: 100% !important;
}

.container-content > img {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  object-fit: contain;
}

.hero-img {
  width: 100% !important;
}

span {
  width: fit-content;
}

.mobile-hide {
  display: none;
}

.benefits-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefits-card {
  display: flex;
  /* width: 50%; */
  flex-direction: column;
  gap: 1rem;
}

.benefits-card article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefits-card h4 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #101828;
}

.benefits-card img {
  width: 50%;
  margin: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 1000%;
}

.featured-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-radius: 1rem;
  overflow: hidden; /* Prevents overflow */
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit; /* Use the same background image */
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  z-index: 0; /* Ensure it sits below the dark backdrop */
  transition: transform 0.3s ease-in-out; /* Smooth scaling animation */
}

.featured-card:hover::before {
  transform: scale(1.1);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.featured-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: start;
  padding: 2rem;
}

.featured-card-content article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-card h2,
.featured-card p {
  color: #ffffff;
}

.featured-card h2 {
  width: 100;
  max-width: 300px;
}

.text-w-full {
  width: 100% !important;
}

.featured-update-section {
  display: none;
}

.featured-update-section-mobile {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.featured-update-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-update-content > h2 {
  margin-bottom: 1rem;
}

.featured-update-content > img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* .featured-update-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
} */

.carousel-action-buttons-group {
  display: flex;
  gap: 1rem;
  flex-direction: row;
}

.carousel-action-row button {
  display: flex;
  width: 3rem;
  height: 3rem;
  padding: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  border: 2px solid var(--color-red-primary-500, #da1e28);
  background-color: transparent;
}

.carousel-action-row button:hover {
  background-color: var(--color-red-primary-50, #fff3f3);
}

.carousel-action-row a {
  text-decoration: none;
  display: none;
  max-height: 4rem;
}

.buttons-group {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buttons-center {
  justify-content: center;
  align-items: center;
}

.final-section {
  width: 100%;
}

.featured-card.final-card {
  min-height: 90vh;
}

.closing-card-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.closing-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: start;
}

.closing-card > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.closing-card > div > img {
  width: 50%;
  aspect-ratio: 1/1;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
}

.closing-card > div:nth-child(2) {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: start;
  align-items: start;
}

.closing-card > div > article {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media screen and (min-width: 360px) {
  .benefits-card {
    flex-direction: row;
    gap: 2rem;
  }

  /* .benefits-card article {
    width: 70%;
  } */

  /* .benefits-card article:nth-child(1) {
    width: 30%;
    height: auto;
    margin-bottom: auto;
  } */

  .benefits-card img {
    width: 100%;
    height: auto;
  }

  .closing-card {
    flex-direction: row;
  }

  .closing-card > div {
    width: 50%;
    height: auto;
    margin-bottom: auto;
  }

  .closing-card > div > img {
    width: 100%;
    height: auto;
  }
}

@media screen and (min-width: 445px) {
  .buttons-group {
    gap: 1rem;
  }

  h2 {
    font-size: 1.875rem;
    line-height: 2.5rem;
  }
}

@media screen and (min-width: 768px) {

  .closing-paragraph-text {
    max-width: 500px;
  }

  h2 {
    font-size: 1.875rem;
    line-height: 2.5rem;
  }

  .hero-section {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
    padding: 4rem 1rem;
  }

  .hero-section-mobile {
    display: none;
  }

  .hero-content {
    align-items: start;
    text-align: left;
    gap: 2rem;
  }

  .container-content > img {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .center-y {
    justify-content: center !important;
  }

  .center-x {
    align-items: center !important;
  }

  .hero-img {
    width: 100% !important;
  }

  .section-container {
    padding: 5rem 1.5rem;
  }

  .mobile-hide {
    display: block;
  }

  .container-content {
    gap: 2rem;
    width: 50%;
  }

  .max-width-35 {
    max-width: 35% !important;
  }

  .container-body-row {
    flex-direction: row;
    gap: 3rem;
  }

  .featured-section {
    gap: 5rem;
  }

  .container-body-column {
    gap: 3rem;
  }

  .row-reverse {
    flex-direction: row !important;
  }

  .column-reverse {
    flex-direction: column !important;
  }

  .featured-update-section-mobile {
    display: none;
  }

  .featured-update-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .subsidiary-card-group {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Two columns grid for medium screens and up */
  }

  .featured-content {
    gap: 4rem;
  }

  .featured-card-content {
    padding: 4rem 2rem;
  }

  .benefits-group {
    flex-direction: column;
    /* gap: 4rem; */
    width: 100%;
    padding-bottom: 3rem;
  }

  .benefits-card {
    flex-direction: row;
    gap: 2rem;
  }

  .benefits-card article {
    width: 100%;
  }

  /* .benefits-card article:nth-child(1) {
    width: 30%;
  } */

  .featured-update-section {
    flex-direction: row;
    gap: 3rem;
  }

  .featured-update-section-mobile {
    display: none;
  }

  .featured-update-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .featured-update-content > h2 {
    margin: 0;
  }

  .featured-update-content:nth-child(2) {
    width: 60%;
  }

  .featured-update-links {
    flex-direction: column;
    gap: 1rem;
  }

  .featured-update-content > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
  }

  .featured-card.final-card {
    min-height: 40vh;
  }

  /* .final-section {
    margin-bottom: -2.5rem !important;
  } */

  .closing-card > div {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
  }

  .closing-card {
    width: 90%;
  }

  /* .closing-card > div {
    width: 30%;
  } */
}

@media screen and (min-width: 900px) {
  .closing-card-group {
    flex-direction: row;
  }

  .closing-card > div {
    width: 50%;
  }
}

@media screen and (min-width: 1024px) {
  .section-container {
    padding: 5rem 3rem;
  }

  .container-body-row {
    flex-direction: row;
    gap: 5rem;
  }

  .container-body-column {
    gap: 5rem;
  }

  .container-content > img {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-section {
    flex-direction: row-reverse !important;
  }

  .featured-content {
    width: 50%;
  }

  .benefits-text {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }

  .benefits-group {
    /* padding-top: 2rem; */
    padding-bottom: 4rem;
    flex-direction: column;
    /* gap: 3rem; */
    padding-bottom: 0;
  }

  .benefits-card {
    flex-direction: row;
    gap: 2rem;
  }

  /* .benefits-card article {
    width: 65%;
  } */

  /* .benefits-card article:nth-child(1) {
    width: 35%;
  } */

  .benefits-card h4 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .featured-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
  }
/*
  .featured-card::before {
    background: rgba(0, 0, 0, 0.9);
  } */

  .featured-card-content {
    padding: 4rem;
    height: fit-content;
    gap: 2rem;
  }

  .featured-card-content p {
    font-size: 1.125rem;
    line-height: 1.875rem;
  }

  .subsidiary-card-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .subsidiary-card > img {
    width: 100%;
  }

  .featured-update-content > img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  article .featured-update-content > p {
    font-size: 1.125rem;
    line-height: 1.875rem;
  }
}

@media screen and (min-width: 1300px) {
  h1, h2 {
    font-size: 3.75rem;
    line-height: 4.5rem;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  h4 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .closing-heading-text {
    font-size: 3.75rem;
    line-height: 4.5rem;
  }

  .closing-paragraph-text {
    font-size: 1.25rem;
    line-height: 1.875rem;
    max-width: 500px;
  }

  p {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  /* .benefits-group {
    gap: 5rem;
  } */

  .benefits-card img {
    width: 80%;
    height: auto;
  }
}

@media screen and (min-width: 1440px) {
  /* .final-section {
    margin-bottom: -2.5rem !important;
} */

  .featured-update-links {
    flex-direction: row;
  }

  .featured-card.final-card {
    min-height: auto;
  }

  .benefits-group {
    height: 100%;
    justify-content: space-evenly;
    overflow-y: auto;
    scrollbar-width: none; /* For Firefox */
  }

  .benefits-group::-webkit-scrollbar {
    display: none; /* For WebKit-based browsers (Chrome, Safari, etc.) */
  }
}

@media screen and (min-width: 2560px) {
  .final-section {
    margin-bottom: 0 !important;
}
}
