/* Dark-mode overrides for search, postpartum, video and about sections. */
html.dark-mode .ss-results li button:hover,
html.dark-mode .ss-results li button:focus,
html.dark-mode .top-menu-content a:hover,
html.dark-mode .top-menu-content button.theme-item:hover {
  background: #3a2b33 !important;
}

html.dark-mode .ss-results li button,
html.dark-mode .top-menu-content a,
html.dark-mode .top-menu-content button.theme-item {
  color: var(--text) !important;
  border-bottom-color: var(--border);
}

html.dark-mode [style*="background: white"],
html.dark-mode [style*="background:white"],
html.dark-mode [style*="background: #fff"],
html.dark-mode [style*="background:#fff"],
html.dark-mode [style*="background: #ffffff"],
html.dark-mode [style*="background:#ffffff"] {
  background: var(--white) !important;
}

html.dark-mode [style*="color: #5c404c"],
html.dark-mode [style*="color:#5c404c"],
html.dark-mode [style*="color: #333"],
html.dark-mode [style*="color:#333"],
html.dark-mode [style*="color: #555"],
html.dark-mode [style*="color:#555"],
html.dark-mode [style*="color: #666"],
html.dark-mode [style*="color:#666"],
html.dark-mode [style*="color: #777"],
html.dark-mode [style*="color:#777"],
html.dark-mode [style*="color: #999"],
html.dark-mode [style*="color:#999"] {
  color: var(--muted) !important;
}

html.dark-mode [style*="background:#fff3e0"],
html.dark-mode [style*="background: #fff3e0"],
html.dark-mode [style*="background:#fff8e1"],
html.dark-mode [style*="background: #fff8e1"] {
  background: #44351f !important;
}

html.dark-mode .modal-overlay {
  background: rgba(0, 0, 0, .78);
}

html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  caret-color: #f8bbd0;
}

/* Postpartum problems section: light styling moved to css/brand-system.css (medical card system). */
/* Video section */
.vids-bg {
  background: linear-gradient(145deg, #321127 0%, #4a1740 52%, #24152f 100%) !important;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vids-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 15%, rgba(240, 98, 146, .2), transparent 30%),
    radial-gradient(circle at 92% 85%, rgba(156, 39, 176, .2), transparent 32%);
}

.vids-bg .sec-inner {
  position: relative;
  z-index: 1;
}

.vids-bg .sec-pill {
  background: rgba(248, 187, 208, .18);
  color: #ffd6e5;
  border: 1px solid rgba(248, 187, 208, .2);
}

.vids-bg .sec-title {
  color: #fff !important;
}

.vids-bg .sec-sub {
  color: rgba(255, 255, 255, .76) !important;
}

.vids-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.vid-card {
  min-width: 0;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.vid-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .16);
  border-color: rgba(248, 187, 208, .7);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .26);
}

.vid-card:focus-visible {
  outline: 3px solid #ffd6e5;
  outline-offset: 4px;
}

.vid-thumb {
  min-height: 148px;
  flex: 0 0 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 54px;
  background:
    linear-gradient(135deg, rgba(240, 98, 146, .42), rgba(136, 14, 79, .58)),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .18), transparent 55%);
}


.vid-card:nth-child(2) .vid-thumb {
  background: linear-gradient(135deg, rgba(126, 87, 194, .48), rgba(74, 20, 110, .7));
}

.vid-card:nth-child(3) .vid-thumb {
  background: linear-gradient(135deg, rgba(255, 167, 91, .48), rgba(173, 54, 91, .68));
}

.vid-card:nth-child(4) .vid-thumb {
  background: linear-gradient(135deg, rgba(66, 165, 245, .45), rgba(38, 76, 120, .72));
}

.play-btn {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 4px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  transition: transform .25s ease, background .25s ease;
}

.vid-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fce4ec;
}

.play-btn svg {
  width: 21px;
  height: 21px;
  fill: #a11558;
  margin-right: -3px;
}

.vid-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 17px 18px 19px;
  text-align: right;
}

.vid-title {
  margin: 0;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.vid-ch {
  color: rgba(255, 255, 255, .68) !important;
  font-size: 12px;
}

html.dark-mode .vids-bg {
  background: linear-gradient(145deg, #120b17 0%, #281329 52%, #100f1c 100%) !important;
}

html.dark-mode .vid-card {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(248, 187, 208, .24);
}

html.dark-mode .vid-card:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(248, 187, 208, .62);
}

@media (max-width: 1000px) {
  .vids-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .vids-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vid-card {
    min-height: 220px;
  }

  .vid-thumb {
    min-height: 132px;
    flex-basis: 132px;
  }
}

/* About section */
.about-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fce4ec 0%, #fff8e1 100%) !important;
}

.about-section .sec-inner {
  position: relative;
  z-index: 1;
}

.about-section .about-header p,
.about-section .about-copy p {
  color: var(--text);
}

.about-section .about-header p {
  line-height: 1.8;
}

.about-section .about-copy {
  color: var(--text);
}

.about-section .about-copy a {
  color: var(--teal-deeper);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.about-section .team-card {
  min-width: 0;
  background: rgba(255, 255, 255, .9);
}

.about-section .team-card h3,
.about-section .team-role,
.about-section .team-role small {
  overflow-wrap: anywhere;
}

.about-section .team-role small {
  font-size: .9em;
  font-weight: 600;
}

.about-section .about-copy > div[style*="background: white"],
.about-section .about-copy > div[style*="background: white"] {
  color: var(--teal-deeper) !important;
}

.about-section .about-copy > div[style*="background: rgba(255,255,255,0.7)"] {
  background: rgba(255, 255, 255, .72) !important;
  color: var(--navy) !important;
  border: 1px solid rgba(240, 98, 146, .2);
}

html.dark-mode .about-section {
  background: linear-gradient(135deg, #241620 0%, #302b1d 100%) !important;
}

html.dark-mode .about-section .about-header p,
html.dark-mode .about-section .about-copy,
html.dark-mode .about-section .about-copy p {
  color: #f0e5e9 !important;
}

html.dark-mode .about-section .about-header p strong,
html.dark-mode .about-section .about-copy strong {
  color: #ffe0eb;
}

html.dark-mode .about-section .team-card {
  background: #292229 !important;
  border-color: #5f4652 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

html.dark-mode .about-section .team-card h3 {
  color: #ffe6ef !important;
}

html.dark-mode .about-section .team-role,
html.dark-mode .about-section .team-role small {
  color: #f3b8cb !important;
}

html.dark-mode .about-section .about-copy a {
  color: #ffb6d0 !important;
}

html.dark-mode .about-section .about-copy > div[style*="background: white"],
html.dark-mode .about-section .about-copy > div[style*="background:white"] {
  background: #392a32 !important;
  color: #ffd8e6 !important;
  border: 1px solid #624654;
}

html.dark-mode .about-section .about-copy > div[style*="background: rgba(255,255,255,0.7)"] {
  background: #30252c !important;
  color: #ffe6ef !important;
  border-color: #694c59;
}

@media (max-width: 600px) {
  .about-section .about-header p {
    font-size: 14px;
  }

  .about-section .about-copy p {
    font-size: 14px !important;
  }
}

/* Footer styling moved to css/brand-system.css (.site-footer). */
