/* ==========================================================================
   THEMES SECTION (PREMIUM MEDICAL BENTO)
   ========================================================================== */
#themes {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary, #10191e);
  padding: 100px 0;
}

.themes-ambient-glow {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 191, 165, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.themes-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.themes-bento-card {
  background: linear-gradient(140deg, rgba(19, 30, 37, 0.92) 0%, rgba(11, 18, 23, 0.97) 100%);
  border: 1px solid rgba(0, 191, 165, 0.16);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55), 
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.themes-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00BFA5 35%, #1DE9B6 65%, transparent);
  opacity: 0.35;
  transition: opacity 0.4s ease, height 0.3s ease;
  z-index: 3;
}

.themes-bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 165, 0.4);
  box-shadow: 0 24px 50px -12px rgba(0, 191, 165, 0.2), 
              0 0 0 1px rgba(0, 191, 165, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.themes-bento-card:hover::before {
  opacity: 1;
  height: 4px;
}

.themes-bento-card__shine {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 165, 0.15) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.themes-bento-card:hover .themes-bento-card__shine {
  opacity: 1;
}

.themes-bento-watermark {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04);
  line-height: 0.8;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 1;
}

.themes-bento-card:hover .themes-bento-watermark {
  -webkit-text-stroke: 1.5px rgba(0, 191, 165, 0.2);
  transform: scale(1.05) translate(-4px, 4px);
}

.themes-bento-card__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.themes-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 191, 165, 0.1);
  color: #1DE9B6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(0, 191, 165, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.themes-bento-card:hover .themes-icon-box {
  background: linear-gradient(135deg, #00BFA5 0%, #1DE9B6 100%);
  color: #070d10;
  border-color: #1DE9B6;
  transform: rotate(8deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
}

.themes-bento-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.themes-bento-card__body {
  position: relative;
  z-index: 2;
}

.themes-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.themes-bento-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.themes-bento-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.themes-list-icon {
  color: #00BFA5;
  font-size: 12px;
  margin-top: 4px;
}

.themes-cta-wrapper {
  text-align: center;
  margin-top: 56px;
  position: relative;
  z-index: 2;
}

.themes-cta-btn {
  background: linear-gradient(135deg, #00BFA5 0%, #1DE9B6 100%) !important;
  color: #070d10 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.3);
}

.themes-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 191, 165, 0.45);
  filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 991px) {
  .themes-bento-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .themes-list-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .themes-bento-card {
    padding: 32px;
  }
}

@media (max-width: 575px) {
  #themes {
    padding: 60px 0;
  }
  .themes-bento-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .themes-bento-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .themes-icon-box {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }
  .themes-bento-title {
    font-size: 18px;
  }
  .themes-bento-watermark {
    font-size: 56px;
    top: 16px;
    right: 20px;
  }
  .themes-bento-list li {
    font-size: 13.5px;
  }
  .themes-cta-wrapper {
    margin-top: 40px;
  }
  .themes-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
