/* THEME SECTION */

.theme-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 40px 60px;
  background-color: white;
}

/* HEADING */

.theme-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.theme-main-heading {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: rgb(19, 19, 20);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.theme-sub-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0;
  text-align: center;
}

/* TABS */

.theme-tabs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.theme-tab {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 3px;
  border: 1px solid #ccc;
  background-color: white;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-tab:hover {
  border-color: #1e1e1f;
  color: #1e1e1f;
}

.theme-tab.active {
  background-color: #1e1e1f;
  color: white;
  border-color: #1e1e1f;
}

/* IMAGE PANELS */

.theme-images-container {
  width: 100%;
  max-width: 1100px;
  min-width: 1020px;
}

.theme-images {
  display: none;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
}

.theme-images.active {
  display: flex;
}

.theme-img {
  flex: 1;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  min-width: 0;
  transition: transform 0.3s ease;
}

.theme-img:hover {
  transform: scale(1.02);
  cursor: pointer;
}

/* SIGN UP NUDGE */

.theme-signup-nudge {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #2a9d8f;
  letter-spacing: 0.3px;
  margin-top: 20px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.theme-signup-nudge::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #2a9d8f;
  transition: width 0.2s ease;
}

.theme-signup-nudge:hover::after {
  width: 100%;
}

/* ================================
   THEME SECTION — MOBILE
   ================================ */


@media (max-width: 768px) {

  .theme-section {
    padding: 48px 24px;
  }

  .theme-main-heading {
    font-size: 30px;
  }

  .theme-sub-heading {
    font-size: 14px;
  }

  /* TABS — 2 per row, wrapping */
  .theme-tab {
    min-width: 140px;
    text-align: center;
  }

  .theme-images-container {
    min-width: 330px;
    max-width: 550px;
  }

  /* GALLERY — hide 5th image, 2x2 grid */
  .theme-img:last-child {
    display: none;
  }

  .theme-images.active {
    flex-wrap: wrap;
  }

  .theme-img {
    flex: 0 0 calc(50% - 5px);
    height: 240px;
  }

}

