/* Banner */
.subpage-header {
  background: #a52a2a;
  padding: 5px 20px;
  text-align: center;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
}

/* Hero Section Layout */
.hero-section {
  position: relative; /* required for absolute positioning of buttons */
  display: flex;
  min-height: 85vh;
  overflow: hidden;
}

/* Image side */
.hero-image {
  flex: 4;
  background: url('../images/activites/main-activities.jpg') center/cover no-repeat;
  border-top-left-radius: 80% 100%;
  border-bottom-left-radius: 80% 100%;
  min-height: 100%;
  position: relative;
  z-index: 1; /* behind buttons */
}

/* Buttons side - Desktop adjustments */
.hero-buttons {
  flex: 1;
  background: #fff; /* solid background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* align buttons to left */
  gap: 40px;
  padding: 40px; /* spacing around buttons */
  position: relative;
  right: 0; /* no overlap on image */
  z-index: 2;
}

/* Activity Button - Desktop */
.activity-btn {
  background: rgba(255,255,255,0.35); /* glass effect */
  backdrop-filter: blur(12px);
  padding: 25px 40px; /* bigger height and width */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* icon & text spacing */
  cursor: pointer;
  width: 300px;  /* fixed width to match both buttons */
  height: 80px;  /* fixed height for both buttons */
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  right: 0; /* no overlap */
}

.activity-btn img {
  width: 40px;
  height: 40px;
  order: 1; /* icon on the opposite side */
}

.activity-btn span {
  font-size: 1.4rem; /* bigger text */
  font-weight: bold;
  color: #a52a2a;
  order: 0;
  text-align: center;
}
.activity-btn:hover {
  transform: translateX(-10px);
  background: rgba(165,42,42,0.15);
}

/* Overlay for activities */
.activities-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  overflow-y: auto;
  z-index: 999;
  padding: 50px 20px;
  text-align: center;
}

.activities-overlay h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

#close-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: red;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.activity-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  text-align: right;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ---------------- MOBILE RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .subpage-header {
    padding: 5px 5px;
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .hero-section {
    flex-direction: column;
    min-height: 400px; /* enough to show image and buttons */
  }

  .hero-image {
    width: 100%;
    height: 300px;
    padding: 5px ;
    border-radius: 0;
    clip-path: none;
    background: url('../images/activites/main-activities.jpg') center/cover no-repeat;
    z-index: 0;
  }

  .hero-buttons {
    width: 100%;
    padding: 20px;
    gap: 20px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    background:none;
    backdrop-filter: none;
  }

  .activity-btn {
    max-width: 250px;
    width: 90%;
    padding: 12px 15px;
    gap: 10px;
    right: 0;
    background: rgba(255,255,255,0.35); /* more visible */
  }

  .activity-btn img {
    width: 35px;
    height: 35px;
  }

  .activity-btn span {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .subpage-header {
    padding: 30px 15px;
    font-size: 1.2rem;
  }

  .hero-image {
    height: 220px;
  }

  .activity-btn {
    padding: 10px 12px;
    gap: 8px;
  }

  .activity-btn img {
    width: 30px;
    height: 30px;
  }

  .activity-btn span {
    font-size: 0.9rem;
  }
}
