/* Import League Spartan font for titles */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&display=swap');

#mainCarouselCaptions {
  width: 100%;
  top: 0;
  position: relative;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 80vh; 
  max-height: 800px; 
  min-height: 400px; 
  overflow: visible; 
}

#mainCarouselCaptions {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible; 
}

#mainCarouselCaptions .carousel-inner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden; 
}

.carousel-tabs {
  position: absolute;
  bottom: 0 !important;
  left: 50%;
  transform: translateX(-50%);
  right: auto; 
  max-width: 1200px;
  width: 100%;
  padding: 12px 5%;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  background: transparent; 
  z-index: 10 !important;
  min-height: 40px; 
}

.carousel-tab {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2); 
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.75rem; 
  font-weight: 400;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px; 
  white-space: nowrap; 
}

/* Small dot indicator */
.carousel-tab::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.carousel-tab:hover {
  color: #fff;
  border-top: 1.5px solid rgba(255, 255, 255, 0.5); 
}

.carousel-tab:hover::before {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-tab.active {
  color: #fff;
  font-weight: 400; 
  border-top: 2px solid rgba(255, 255, 255, 0.9); 
}

.carousel-tab.active::before {
  background: #009384; 
  width: 6px;
  height: 6px;
}

.carousel-tab .tab-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mainCarouselCaptions .carousel-item.main-carousel-item {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

#mainCarouselCaptions .main-carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Dark overlay for better text visibility */
.main-carousel-item:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18vh;
  top: auto;
  text-align: left;
  max-width: 1200px;
  width: 100%;
  padding: 0 5%;
  box-sizing: border-box;
}

.carousel-caption h2,
.carousel-caption p,
.carousel-caption h3,
.carousel-caption .btn-carousel {
  max-width: 600px;
}

.carousel-caption h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 15px 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Subtitle styling */
.carousel-caption p,
.carousel-caption h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 20px 0;
  padding: 0;
}

.carousel-caption .btn-carousel {
  display: inline-block;
  padding: 12px 28px;
  background-color: #009384;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.carousel-caption .btn-carousel:hover {
  background-color: #007a6d;
  color: #fff;
}

/* About section and Highlights box (two-column layout) */
.about-highlights-section {
  position: relative;
  z-index: 6;
  padding: 30px 0;
  margin-top: -80px; 
}

.about-highlights-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.about-text-section {
  padding-right: 40px;
}

.about-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 30px;
  padding-top: 12vh;
}

.about-text p {
  margin-bottom: 1.2em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Spotlight Buttons */
.spotlight-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-spotlight {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #009384;
  background: transparent;
  border: 2px solid #009384;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-spotlight:hover {
  background: #009384;
  color: #ffffff;
  text-decoration: none;
}

.highlights-wrapper {
  display: flex;
  justify-content: flex-end;
}

.highlights-box {
  position: relative;
  z-index: 7;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 20px;
}

.highlights-title {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.highlight-item .highlight-link {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.highlight-media {
  flex: 0 0 72px; 
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.highlight-content {
  flex: 1 1 auto;
  min-width: 0; 
}

.highlight-item-title {
  font-weight: 600;
  color: #111111;
  margin: 0 0 4px 0;
}

.highlight-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #444444;
  line-height: 1.3;
}

.highlight-link:hover .highlight-item-title {
  text-decoration: underline;
}

/* Responsive styles for About/Highlights section */
@media (max-width: 1200px) {
  .about-highlights-section .container {
    padding: 0 4%;
  }
  
  .about-text-section {
    padding-right: 30px;
  }
}

@media (max-width: 992px) {
  .about-highlights-section {
    margin-top: 0;
    padding-top: 40px;
  }
  
  .about-highlights-section .container {
    padding: 0 4%;
  }
  
  .about-text-section {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .highlights-wrapper {
    justify-content: center;
  }
  
  .highlights-box {
    max-width: 100%;
  }
  
  .spotlight-buttons {
    gap: 15px;
  }
  
  .btn-spotlight {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .about-highlights-section {
    margin-top: 0;
    padding-top: 20px;
  }
  
  .about-highlights-section .container {
    padding: 0 4%;
  }
  
  .about-text {
    font-size: 0.95rem;
    padding-top: 20px;
  }
  
  .spotlight-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-spotlight {
    width: 100%;
    text-align: center;
  }
}

/* Responsive design */
@media (max-width: 1200px) {
  .carousel-caption h2 {
    font-size: 2rem;
  }
  
  .carousel-caption p,
  .carousel-caption h3 {
    font-size: 1rem;
  }
  
  .carousel-container {
    height: 0vh;
    max-height: 800px;
  }
  
  .highlights-section {
    margin-top: -60px; 
  }
}

@media (max-width: 768px) {
  .carousel-container {
    height: 50vh;
    max-height: 500px;
    min-height: 350px;
  }

  .carousel-caption {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 65px; 
    max-width: 100%;
    padding: 0 4%;
  }
  
  /* Maintain caption width constraint on tablet */
  .carousel-caption h2,
  .carousel-caption p,
  .carousel-caption h3,
  .carousel-caption .btn-carousel {
    max-width: 500px;
  }
  
  .carousel-tabs {
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 4%;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p,
  .carousel-caption h3 {
    font-size: 0.9rem;
  }
  
  .carousel-caption .btn-carousel {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .carousel-tabs {
    min-height: 38px;
    padding: 10px 0;
    max-width: 60%; 
  }
  
  .carousel-tab {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 45vh;
    min-height: 300px;
  }
  
  .carousel-caption {
    bottom: 60px;
  }
  
  /* Maintain caption width constraint on mobile */
  .carousel-caption h2,
  .carousel-caption p,
  .carousel-caption h3,
  .carousel-caption .btn-carousel {
    max-width: 100%; 
  }
  
  .carousel-caption h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  
  .carousel-caption p,
  .carousel-caption h3 {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .carousel-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    min-height: 36px;
    padding: 8px 4%;
    max-width: 100%;
  }
  
  .carousel-caption {
    padding: 0 4%;
  }
  
  .carousel-tab {
    font-size: 0.55rem;
    padding: 4px 5px;
    min-width: auto;
    white-space: nowrap;
  }
  
  .carousel-tab::before {
    width: 3px;
    height: 3px;
  }
  
  .carousel-tab.active::before {
    width: 5px;
    height: 5px;
  }
  
  .about-highlights-section {
    margin-top: 0;
    padding-top: 15px;
  }
  
  .about-text {
    padding-top: 15px;
  }
}

/* Carousel navigation arrows */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: none;
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

