/* Expandable Activity Areas Styles */

.expandable-activity-areas {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  padding: 3rem 1rem;
}

.expandable-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
.expandable-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.expandable-tag {
  display: inline-block;
  background-color: #fff;
  color: #1eaaf1;
  font-size: 1rem; /* Increased from 0.875rem */
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.expandable-tag:after {
  content: "";
  position: absolute;
  top: 2px;
  right: -11px;
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-top: 1px solid #f3f4f6;
  border-right: 1px solid #f3f4f6;
  transform: rotate(45deg);
  z-index: -1;
  border-radius: 4px;
}

.expandable-title {
  font-size: 2.25rem; /* Increased from 2rem */
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Cards Container */
.expandable-cards-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.expandable-cards {
  display: flex;
  width: 100%;
  position: relative;
  transition: all 0.3s ease;
  gap: 0; /* Remove gaps between cards */
}

/* Card Styles - Enhanced with new effects */
.expandable-card {
  flex: 1;
  height: 100%;
  margin: 0;
  border-radius: 0; /* Remove border radius for file-like appearance */
  overflow: hidden;
  position: relative;
  transition: all 0.5s ease;
  cursor: pointer;
}

/* First and last card should have rounded corners */
.expandable-card:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.expandable-card:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.expandable-card.active {
  flex: 3;
  z-index: 10;
}

.expandable-card-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.5s ease;
}

/* Gradient Overlay - Enhanced for better text readability */
.expandable-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

/* Vertical Title - Repositioned as requested */
.expandable-vertical-title {
  position: absolute;
  bottom: 10%; /* Center vertically when inactive */
  left: 72px;
  z-index: 2;
  transition: all 0.5s ease;
}

.expandable-card.active .expandable-vertical-title {
  bottom: auto;
  top: 20px;
  left: 20px; /* Changed to left as requested */
  transform: rotate(0deg);
}

.expandable-vertical-text {
  color: white;
  font-size: 1.5rem; /* Increased from 1.25rem */
  font-weight: 500; /* Less bold for more regular appearance */
  letter-spacing: 0.5px; /* Add letter spacing for diversity */
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: bottom left;
  transition: transform 0.5s ease;
}

.expandable-card.active .expandable-vertical-text {
  transform: rotate(0deg);
  font-size: 1.75rem; /* Increased from 1.5rem */
  font-weight: 600; /* Slightly bolder when active */
  letter-spacing: 0; /* Remove letter spacing when active */
}

/* Card Content */
.expandable-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem; /* Increased from 1.5rem */
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.expandable-card.active .expandable-card-content {
  opacity: 1;
  transform: translateY(0);
}

.expandable-card-details {
  color: white;
}

.expandable-card-title {
  font-size: 1.75rem; /* Increased from 1.5rem */
  font-weight: 700;
  margin: 0 0 1rem 0;
  font-family: "Georgia", serif; /* Different font for diversity */
}

.expandable-card-stat {
  font-size: 2.25rem; /* Increased from 2rem */
  font-weight: 700;
  margin-bottom: 0.5rem;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  font-family: "Arial", sans-serif; /* Different font for diversity */
}

.expandable-card.active .expandable-card-stat {
  opacity: 1;
  transform: translateY(0);
}

.expandable-card-stat-label {
  font-size: 1.4rem; /* Increased from 1.25rem */
  font-weight: 600;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
  font-style: italic; /* Italic for diversity */
}

.expandable-card.active .expandable-card-stat-label {
  opacity: 1;
  transform: translateY(0);
}

.expandable-card-link {
  margin-top: 1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.expandable-card.active .expandable-card-link {
  opacity: 1;
  transform: translateY(0);
}

.expandable-button {
  display: inline-flex;
  align-items: center;
  color: white;
  font-size: 1.1rem; /* Increased from 0.95rem */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase; /* Uppercase for diversity */
  letter-spacing: 1px; /* Letter spacing for button */
}

.expandable-button:hover {
  opacity: 0.8;
  transform: translateX(5px);
}

.expandable-icon {
  width: 22px; /* Increased from 20px */
  height: 22px; /* Increased from 20px */
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.expandable-button:hover .expandable-icon {
  transform: translateX(3px);
}

/* Mobile Styles */
.expandable-mobile {
  display: none;
}

.expandable-mobile-card {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.expandable-mobile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.75rem; /* Increased from 1.5rem */
  z-index: 2;
  color: white;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.expandable-mobile-title {
  font-size: 1.75rem; /* Increased from 1.5rem */
  font-weight: 700;
  margin: 0 0 1rem 0;
  font-family: "Georgia", serif; /* Different font for diversity */
}

.expandable-mobile-stat {
  font-size: 2rem; /* Increased from 1.75rem */
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Arial", sans-serif; /* Different font for diversity */
}

.expandable-mobile-stat-label {
  font-size: 1.25rem; /* Increased from 1.125rem */
  font-weight: 600;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-style: italic; /* Italic for diversity */
}

.expandable-mobile-link {
  margin-top: 1rem;
}

/* Swiper Customization */
.expandable-swiper {
  padding-bottom: 2.5rem;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
  background: #fff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .max-lg\:hidden {
    display: none;
  }

  .lg\:hidden {
    display: block;
  }

  .expandable-mobile {
    display: block;
  }
}

@media (min-width: 1025px) {
  .max-lg\:hidden {
    display: block;
  }

  .lg\:hidden {
    display: none;
  }
}

@media (max-width: 768px) {
  .expandable-activity-areas {
    padding: 2rem 1rem;
  }

  .expandable-title {
    font-size: 1.75rem; /* Increased from 1.5rem */
  }

  .expandable-mobile-card {
    height: 350px;
  }

  .expandable-mobile-stat {
    font-size: 1.75rem; /* Increased from 1.5rem */
  }

  .expandable-mobile-stat-label {
    font-size: 1.15rem; /* Increased from 1rem */
  }
}

@media (max-width: 480px) {
  .expandable-mobile-card {
    height: 300px;
  }

  .expandable-mobile-title {
    font-size: 1.5rem; /* Increased from 1.25rem */
  }

  .expandable-mobile-stat {
    font-size: 1.5rem; /* Increased from 1.25rem */
  }
}
