/* ═══════════════════════════════════════════════════
   gyno-categories.css
   BestDoctorsIn — Gynecomastia Categories Section
   <link rel="stylesheet" href="gyno-categories.css"/>
═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --gc-green:       #1a6b4a;
  --gc-green-dark:  #124d36;
  --gc-green-light: #eaf5f0;
  --gc-accent:      #e63946;
  --gc-text:        #1a1a2e;
  --gc-muted:       #6b7280;
  --gc-border:      #e8ecf0;
  --gc-radius:      12px;
  --gc-shadow:      0 3px 16px rgba(0,0,0,0.08);
  --gc-shadow-hover:0 16px 48px rgba(0,0,0,0.16);
  --gc-transition:  0.28s cubic-bezier(0.4,0,0.2,1);
}

/* ── Section ── */
.gc-section {
  padding: 72px 0 88px;
  background: #f7f9f8;
  position: relative;
  overflow: hidden;
}

.gc-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,74,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.gc-header {
  text-align: center;
  margin-bottom: 52px;
}

.gc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--gc-text);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

/* Decorative divider with dot */
.gc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.gc-divider span {
  display: block;
  width: 72px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gc-border));
}

.gc-divider span:last-child {
  background: linear-gradient(to left, transparent, var(--gc-border));
}

.gc-divider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gc-green);
  display: block;
  box-shadow: 0 0 0 4px rgba(26,107,74,0.15);
}

.gc-subtitle {
  font-size: 15px;
  color: var(--gc-muted);
  margin: 0;
  font-style: italic;
}

/* ── Grid — 4 columns, wraps to 2 ── */
.gc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto 44px;
}

/* ── Card ── */
.gc-card {
  background: #fff;
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow);
  border: 1px solid var(--gc-border);
  overflow: hidden;
  transition: transform var(--gc-transition), box-shadow var(--gc-transition);
  display: flex;
  flex-direction: column;
  /* Staggered entrance via JS */
  opacity: 0;
  transform: translateY(24px);
}

.gc-card.gc-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow var(--gc-transition);
}

.gc-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--gc-shadow-hover);
}

/* ── Image wrapper ── */
.gc-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #dde;
}

.gc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gc-card:hover .gc-img {
  transform: scale(1.07);
}

/* Subtle green tint on hover */
.gc-img-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(18, 77, 54, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gc-card:hover .gc-img-tint {
  opacity: 1;
}

/* Badge */
.gc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gc-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

/* ── Card body ── */
.gc-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gc-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gc-text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.gc-card-text {
  font-size: 13px;
  color: var(--gc-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Learn More link ── */
.gc-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-green);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
  width: fit-content;
}

.gc-learn-more svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.gc-learn-more:hover {
  color: var(--gc-green-dark);
  border-bottom-color: var(--gc-green);
  gap: 10px;
}

.gc-learn-more:hover svg {
  transform: translateX(3px);
}

/* ── Bottom CTA ── */
.gc-cta-row {
  text-align: center;
}

.gc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gc-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--gc-transition), transform var(--gc-transition), box-shadow var(--gc-transition);
  box-shadow: 0 4px 20px rgba(26,107,74,0.30);
}

.gc-cta-btn:hover {
  background: var(--gc-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,107,74,0.40);
  color: #fff;
}

.gc-cta-btn i {
  font-size: 16px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .gc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gc-section {
    padding: 48px 0 60px;
  }

  .gc-card-text {
    display: none; /* hide on small cards for cleaner mobile look */
  }

  .gc-body {
    padding: 14px 14px 16px;
  }
}

@media (max-width: 480px) {
  .gc-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .gc-card-text {
    display: -webkit-box; /* restore on single column */
  }
}
