/* ===============================
   COMMITTEES SECTION
================================= */

.committees-section {
  position: relative;
  width: 100%;
  padding: 120px 20px;

  background-image: url("../assets/images/hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay */
.committees-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 15, 0.75);
  z-index: 1;
}

/* Title */
.committees-title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ff8bb3;
  margin-bottom: 80px;
}

/* ===============================
   GRID (FLEX BASED)
================================= */

.committees-grid {
  position: relative;
  z-index: 2;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;

  max-width: 1300px;
  margin: 0 auto;
}

/* ===============================
   CARD
================================= */

.committee-card {
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Committee Image */
.committee-card img {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(255, 90, 170, 0.2);

  transition: transform 0.3s ease;
}

.committee-card img:hover {
  transform: translateY(-6px);
}

/* ===============================
   BUTTON
================================= */

.committee-btn {
  margin-top: 26px;
  padding: 16px 48px;
  border-radius: 50px;

  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;

  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(90deg, #7a2c52, #8d365e);

  box-shadow:
    0 12px 30px rgba(255, 90, 170, 0.35);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

.committee-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 50px rgba(255, 90, 170, 0.6);
}

/* ===============================
   MODAL BACKDROP
================================= */

.committee-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(10px);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.committee-modal.active {
  display: flex;
}

/* ===============================
   MODAL BOX
================================= */

.committee-modal-content {
  width: 92%;
  max-width: 1100px;

  max-height: 90vh;
  overflow-y: auto;

  background: radial-gradient(
    circle at top left,
    #2a1635 0%,
    #0b0612 75%
  );

  border-radius: 22px;
  padding: 48px;

  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;

  color: #ffffff;
  position: relative;
}

/* Close Button */
.committee-close {
  position: absolute;
  top: 18px;
  right: 22px;

  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===============================
   MODAL LEFT COLUMN
================================= */

.committee-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.committee-logo {
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
}

.committee-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  margin-bottom: 24px;
}

/* Tags */
.committee-tags span {
  display: inline-block;
  background: #8d3a5d;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  margin: 6px;
}

/* ===============================
   MODAL RIGHT COLUMN
================================= */

.committee-right p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 900px) {

  .committee-modal {
    align-items: flex-start;
  }

  .committee-modal-content {
    margin-top: 24px;
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .committee-logo {
    max-width: 300px;
  }

  .committee-name {
    font-size: 2rem;
  }

  .committee-right p {
    font-size: 0.95rem;
  }

}

@media (max-width: 640px) {

  .committee-card {
    width: 100%;
    max-width: 420px;
  }

  .committees-title {
    font-size: 2.2rem;
  }

}