/* ═══════════════════════════════════════════════════
   gyno-signs.css
   BestDoctorsIn — Signs of Gynecomastia Section
   <link rel="stylesheet" href="gyno-signs.css"/>
═══════════════════════════════════════════════════ */

/* ── Section ── */
.gs-section {
  padding: 64px 0 80px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Subtle background grid texture */
.gs-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,74,122,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,74,122,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Header ── */
.gs-header {
  margin-bottom: 52px;
}

.gs-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── 4-column grid ── */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  max-width: 1060px;
  margin: 0 auto 48px;
  align-items: start;
}

/* ── Each sign item ── */
.gs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Entrance animation — triggered by JS */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.gs-item.gs-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SVG illustration container ── */
.gs-illustration {
  width: 160px;
  height: 180px;
  margin-bottom: 20px;
  position: relative;
  flex-shrink: 0;
}

.gs-illustration svg {
  width: 100%;
  height: 100%;
  /* Draw-in animation on load */
  transition: filter 0.3s ease;
}

.gs-item:hover .gs-illustration svg {
  filter: drop-shadow(0 6px 18px rgba(45,74,122,0.18));
}

/* SVG path animation — stroke draw effect */
.gs-illustration svg path,
.gs-illustration svg ellipse,
.gs-illustration svg circle,
.gs-illustration svg rect,
.gs-illustration svg line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 0s; /* overridden by JS */
}

.gs-item.gs-animated .gs-illustration svg path,
.gs-item.gs-animated .gs-illustration svg ellipse,
.gs-item.gs-animated .gs-illustration svg circle,
.gs-item.gs-animated .gs-illustration svg rect,
.gs-item.gs-animated .gs-illustration svg line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s ease;
}

/* Filled shapes don't need dasharray */
.gs-illustration svg ellipse[fill*="#c8d"],
.gs-illustration svg path[fill*="#c8d"],
.gs-illustration svg rect[fill*="#dce"] {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

/* ── Label ── */
.gs-label {
  font-family: 'Source Serif Pro', 'Georgia', serif;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
  line-height: 1.55;
  margin: 0;
  max-width: 160px;
}

/* ── Hover: lift card feel ── */
.gs-item {
  padding: 20px 12px 24px;
  border-radius: 16px;
  cursor: default;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.gs-item:hover {
  background: #f0f5fb;
  box-shadow: 0 8px 32px rgba(45,74,122,0.10);
  transform: translateY(-6px) !important;
}

/* ── Footer CTA ── */
.gs-footer {
  text-align: center;
}

.gs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #2d4a7a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(45,74,122,0.28);
}

.gs-cta-btn:hover {
  background: #1e3360;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45,74,122,0.38);
  color: #fff;
}

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

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .gs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

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

  .gs-illustration {
    width: 130px;
    height: 146px;
  }

  .gs-label {
    font-size: 13px;
  }

  .gs-section {
    padding: 44px 0 56px;
  }
}
