.carousel {
  padding-top: 80px;
}

/* Carousel Indicators as Bars */
.carousel-indicators {
  bottom: 40px !important;
  z-index: 999 !important;
  margin: 0 !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px 20px !important;
  width: auto !important;
}

.carousel-indicators [data-bs-target] {
  width: 60px !important;
  height: 4px !important;
  border-radius: 4px !important;
  background-color: rgba(218, 218, 218, 0.7) !important;
  border: none !important;
  opacity: 1 !important;
  margin: 0 8px !important;
  transition: all 0.3s ease !important;
  text-indent: 0 !important;
}

.carousel-indicators .active {
  background-color: var(--orange) !important;
  height: 4px !important;
}

/* Carousel 1 Styling */
.carousel-1 .carousel-left {
  flex: 1 1 60%;
  position: relative;
}

.carousel-1 .carousel-astronaut {
  width: 100%;
  height: auto;
}

.carousel-1 .carousel-right {
  flex: 1 1 50%;
  position: absolute;
  right: 100px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 56px 48px 32px;
  z-index: 2;
  max-width: 600px;
  min-width: 340px;
}

.carousel-1 .carousel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.carousel-1 .carousel-trophy img {
  width: 45px;
  height: auto
}

.carousel-1 .carousel-tagline {
  font-size: 1rem;
  color: var(--black);
  font-weight: 500;
}

.carousel-1 .carousel-divider {
  width: 130px;
  border: 1.5px solid var(--black);
  margin-top: var(--line-spacing-top);
  margin-bottom: var(--line-spacing-bottom);
}

.carousel-1 .carousel-heading {
  font-size: var(--text-heading-size, 40px);
  font-weight: var(--text-heading-weight, 700);
  color: var(--black);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.carousel-1 .carousel-subheading {
  font-size: var(--text-subtext-size, 24px);
  font-weight: var(--text-subtext-weight, 300);
  color: #444;
  margin-bottom: 28px;
}

#mainCarousel {
  border-radius: var(--dummy-radius, 12px);
  overflow: hidden;
}

.carousel-caption {
  background: rgba(0,0,0,0.3);
  border-radius: var(--dummy-radius, 12px);
  padding: 1.5rem;
}

.carousel-astronaut {
  max-width: 67%;
  height: auto;
}

@media (max-width: 768px) {
  /* Stack layout */
  .carousel-1 .carousel-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    position: relative;
  }
  /* Text section becomes normal flow */
  .carousel-1 .carousel-right {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;

    width: 100%;
    max-width: 100%;
    min-width: unset;

    padding: 24px 20px;
    border-radius: 0;
  }
  /* Image section goes to bottom */
  .carousel-1 .carousel-left {
    width: 100%;
    flex: none;
    display: flex;
    justify-content: flex-start;
    padding: 0 0 10px 0;
  }
  .carousel-1 .carousel-astronaut {
    width: 100%;
    max-width: 800px;
    min-width: 180px;
    height: auto;
    margin-left: 0;
    display: block;
    object-fit: cover;
  }
  /* Optional: smaller text for mobile */
  .carousel-1 .carousel-heading {
    font-size: var(--mobile-title-size, 33px);
    line-height: 1.1;
  }
  .carousel-1 .carousel-subheading {
    font-size: var(--mobile-subtext-size);
  }
  .carousel-1 .carousel-divider {
    width: 100px;
    margin-top: var(--mobile-line-spacing-top);
    margin-bottom: var(--mobile-line-spacing-bottom);
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  /* Stack layout */
  .carousel-1 .carousel-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    position: relative;
  }
  /* Text section becomes normal flow */
  .carousel-1 .carousel-right {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;

    width: 100%;
    max-width: 100%;
    min-width: unset;

    padding: 24px 50px;
    border-radius: 0;
  }
  /* Image section goes to bottom */
  .carousel-1 .carousel-left {
    width: 100%;
    flex: none;
    display: flex;
    justify-content: flex-start;
    padding: 0 0 10px 0;
  }
  .carousel-1 .carousel-astronaut {
    width: 120%;
    max-width: 1000px;
    min-width: 220px;
    height: auto;
    margin-left: 0;
    display: block;
    object-fit: cover;
  }
  /* Optional: smaller text for mobile */
  .carousel-1 .carousel-heading {
    font-size: var(--tablet-title-size, 33px);
    line-height: 1.1;
  }
  .carousel-1 .carousel-subheading {
    font-size: var(--tablet-subtext-size);
  }
  .carousel-1 .carousel-divider {
    width: 100px;
    margin-top: var(--tablet-line-spacing-top);
    margin-bottom: var(--tablet-line-spacing-bottom);
  }
}
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .carousel-1 .carousel-divider {
    width: 130px;
    border: 1.5px solid var(--black);
    margin-top: var(--tablet-line-spacing-top);
    margin-bottom: var(--tablet-line-spacing-bottom);
  }

  .carousel-1 .carousel-heading {
    font-size: var(--tablet-heading-size, 40px);
    font-weight: var(--tablet-heading-weight, 700);
    color: var(--black);
    margin-bottom: 18px;
    text-transform: uppercase;
  }

  .carousel-1 .carousel-subheading {
    font-size: var(--tablet-subtext-size, 24px);
    font-weight: var(--text-subtext-weight, 300);
    color: #444;
    margin-bottom: 28px;
  }
  .carousel-1 .carousel-right {
    right: 0;
    transform: translateY(-30px);
  }
}


/* Carousel Slide 2 Styling */
/* Carousel 2 Styles */
.carousel-2 {
  position: relative;
}
.carousel-2 .carousel-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 95vh;
  min-height: 95vh;
  overflow: hidden;
}
.carousel-2-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.carousel-2-left {
  flex: 1 1 60%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 2;
  height: 100%;
  padding-left: 4vw;
  position: relative;
}
.carousel-2-astronaut {
  width: 60%;
  height: auto;
  left: 10vh;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18));
  position: relative;
  z-index: 2;
}
.carousel-2-line-pattern {
  position: absolute;
  top: 6vh;
  left: 4vw;
  width: 80%;
  min-width: 320px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}
.carousel-2-right {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
  padding-right: 7vw;
  padding-left: 2vw;
}
.carousel-2-heading {
  font-size: var(--text-heading-size);
  font-weight: var(--text-heading-weight, 700);
  color: var(--black);
  text-transform: uppercase;
  margin-top: 24px;
}
.carousel-2-heading .orange {
  color: #EF4D25;
}


/* Overlay and right-aligned text for carousel-1 */
.carousel-1 .carousel-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 95vh;
  min-height: 95vh;
}

@media (max-width: 768px) {

  /* Make slide 2 stack vertically */
  .carousel-2 .carousel-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 70vh !important;
    min-height: unset !important;
    padding: 24px 20px 0 20px;
  }

  /* Text at the top */
  .carousel-2-right {
    order: 1;
    width: 100%;
    flex: none;
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 3;
    margin-top: 100px;
  }

  .carousel-2-heading {
    font-size: var(--mobile-heading-size, 33px);
    margin-top: 16px;
  }

  /* Astronaut section under the text */
  .carousel-2-left {
    order: 2;
    width: 100%;
    flex: none;
    height: auto;
    padding-left: 0;
    margin-top: auto; /* pushes astronaut section to bottom */
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    z-index: 2;
  }

  /* Pattern behind astronaut */
  .carousel-2-line-pattern {
    top: 0;
    left: 0;
    width: 100%;
    min-width: unset;
    opacity: 0.9;
    z-index: 1;
  }

  /* Astronaut bigger + aligned left */
  .carousel-2-astronaut {
    width: 85%;
    max-width: 340px;
    height: auto;
    left: 0;
    z-index: 2;
    position: relative;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {

  /* Make slide 2 stack vertically */
  .carousel-2 .carousel-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 70vh !important;
    min-height: unset !important;
    padding: 24px 50px 0 50px;
  }

  /* Text at the top */
  .carousel-2-right {
    order: 1;
    width: 100%;
    flex: none;
    padding: 0;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 3;
    margin-top: 100px;
  }

  .carousel-2-heading {
    font-size: var(--tablet-heading-size, 33px);
    font-weight: var(--tablet-heading-weight, 700); 
    margin-top: 16px;
  }

  /* Astronaut section under the text */
  .carousel-2-left {
    order: 2;
    width: 100%;
    flex: none;
    height: auto;
    padding-left: 0;
    margin-top: auto; /* pushes astronaut section to bottom */
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    z-index: 2;
  }

  /* Pattern behind astronaut */
  .carousel-2-line-pattern {
    top: -150px;
    left: 0;
    width: 80%;
    min-width: unset;
    opacity: 0.9;
    z-index: 1;
  }

  /* Astronaut bigger + aligned left */
  .carousel-2-astronaut {
    width: 55%;
    height: auto;
    left: 0;
    z-index: 2;
    position: relative;
    top: -100px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .carousel-2-heading {
    font-size: var(--tablet-heading-size, 40px);
    font-weight: var(--tablet-heading-weight, 700);
    color: var(--black);
    text-transform: uppercase;
    margin-top: 24px;
  }

  .carousel-2-astronaut {
    top: -90px;
  }
}


/* Carousel Slide 3 Styling */
.carousel-3-bg-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}
/* Carousel 3 Styles */
.carousel-3 {
  position: relative;
}
.carousel-3 .carousel-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 95vh;
  min-height: 95vh;
  overflow: hidden;
}
.carousel-3-left {
  flex: 1 1 50%;
  position: relative;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding-left: 5vw;
  padding-top: 4vh;
  z-index: 2;
}
.carousel-3-tape {
  position: absolute;
  left: -160px;
  bottom: -60px;
  width: 110%;
  max-width: none;
  height: auto;
  z-index: 1; 
  pointer-events: none;
}

.carousel-3-info {
  position: relative;
  z-index: 3;
  transform: translate(400px, -200px);
}

.carousel-3-circle-icon {
  width: 48px;
  height: auto;
  margin-bottom: 16px;
  transform: translateX(-12px);
}
.carousel-3-heading {
  font-size: var(--text-heading-size);
  font-weight: var(--text-heading-weight, 700);
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.carousel-3-btn {
  background: #EF4D25;
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 12px 48px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(239,77,37,0.08);
  transition: background 0.2s;
}
.carousel-3-btn:hover {
  background: #d13e1c;
}
.carousel-3-right {
  flex: 1 1 50%;
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  transform: translateX(200px);
}

.carousel-3-bg-full {
  position: absolute;
  left: 0;
  bottom: 120px;
  width: 55%;
  height: auto;
  z-index: 1;
}

.carousel-3-astronaut {
  position: absolute;
  left: 140px;
  bottom: 0;
  width: 50%;
  height: auto;
  z-index: 2;
}

@media (max-width: 768px) {

  /* Stack vertically */
  .carousel-3 .carousel-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    height: 70vh !important;
    min-height: unset !important;

    padding: 16px 20px 20px 20px;
    box-sizing: border-box;
  }

  /* IMAGE BLOCK FIRST */
  .carousel-3-right {
    order: 1;
    width: 100%;
    flex: none;
    height: 45vh;

    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;

    transform: none; /* remove desktop translate */
    margin-bottom: 12px;
  }

  /* Grid behind astronaut */
  .carousel-3-bg-full {
    position: absolute;
    left: 120px;
    top: auto;

    width: 65%;
    max-width: 380px;
    height: auto;

    z-index: 1;
    opacity: 0.85;
  }

  /* Astronaut in front */
  .carousel-3-astronaut {
    position: relative;
    left: 100px;
    top: auto;
    width: 72%;
    max-width: 320px;
    height: auto;
    z-index: 2;
  }

  /* TEXT UNDER IMAGE */
  .carousel-3-left {
    order: 2;
    width: 100%;
    flex: none;
    height: auto;

    padding-left: 0;
    padding-top: 0;

    justify-content: flex-start;
    align-items: flex-start;
  }

  /* remove big desktop translate */
  .carousel-3-info {
    transform: none;
  }

  .carousel-3-circle-icon {
    width: 40px;
    margin-bottom: 10px;
    transform: none;
  }

  .carousel-3-heading {
    font-size: var(--mobile-heading-size, 33px);
    font-weight: var(--text-heading-weight);
  }

  /* Tape usually breaks mobile layouts */
  .carousel-3-tape {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait)  {

  /* Stack vertically */
  .carousel-3 .carousel-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    height: 70vh !important;
    min-height: unset !important;

    padding: 16px 50px 20px 50px;
    box-sizing: border-box;
  }

  /* IMAGE BLOCK FIRST */
  .carousel-3-right {
    order: 1;
    width: 100%;
    flex: none;
    height: 45vh;

    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;

    transform: none; /* remove desktop translate */
    margin-bottom: 12px;
  }

  /* Grid behind astronaut */
  .carousel-3-bg-full {
    position: absolute;
    transform: translateX(290px) translateY(60px);

    width: 60%;
    height: auto;

    z-index: 1;
    opacity: 0.85;
  }

  /* Astronaut in front */
  .carousel-3-astronaut {
    position: relative;
    right: 0;
    top: auto;
    width: 52%;
    height: auto;
    z-index: 2;
    transform: translateX(310px) translateY(40px);
  }

  /* TEXT UNDER IMAGE */
  .carousel-3-left {
    order: 2;
    width: 100%;
    flex: none;
    height: auto;

    padding-left: 0;
    padding-top: 0;

    justify-content: flex-start;
    align-items: flex-start;
  }

  /* remove big desktop translate */
  .carousel-3-info {
    transform: none;
  }

  .carousel-3-circle-icon {
    width: 40px;
    margin-bottom: 10px;
    transform: none;
  }

  .carousel-3-heading {
    font-size: var(--tablet-heading-size, 33px);
    font-weight: var(--tablet-heading-weight);
  }

  /* Tape usually breaks mobile layouts */
  .carousel-3-tape {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape)  {

  .carousel-3-heading {
    font-size: var(--tablet-heading-size, 40px);
    font-weight: var(--tablet-heading-weight, 700);
    color: var(--black);
    text-transform: uppercase;
    margin-bottom: 22px;
  }
  .carousel-3-info {
    transform: translateX(100px) translateY(-100px);
  }

  .carousel-3-bg-full {
    transform: translateX(-60px) translateY(40px);
  }

  /* Astronaut in front */
  .carousel-3-astronaut {
    transform: translateX(-150px) translateY(-130px);
    width: 60% !important;
  }
}

@media (max-width: 768px) {
  .carousel-1 .carousel-content,
  .carousel-2 .carousel-content,
  .carousel-3 .carousel-content {
    height: 78vh !important;
    min-height: 320px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .carousel-1 .carousel-content,
  .carousel-2 .carousel-content,
  .carousel-3 .carousel-content {
    height: 80vh !important;
    min-height: 320px;
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .carousel-1 .carousel-content,
  .carousel-2 .carousel-content,
  .carousel-3 .carousel-content {
    height: 90vh;
  }
}
