/*
Theme Name: BioMindZone
Theme URI: https://biomindzone.com/
Author: BioMindZone
Author URI: https://biomindzone.com/
Description: A clean YouTube-first landing theme for a science, health, mind, and longevity channel.
Version: 1.1.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biomindzone
*/

:root {
  --bmz-bg: #fbfaf7;
  --bmz-surface: #ffffff;
  --bmz-surface-soft: #f2f5ed;
  --bmz-text: #131617;
  --bmz-muted: #5d6660;
  --bmz-line: #e5e5df;
  --bmz-green: #34572a;
  --bmz-green-dark: #243c1e;
  --bmz-green-soft: #e8efdf;
  --bmz-gold: #b88d46;
  --bmz-shadow: 0 18px 55px rgba(38, 45, 37, 0.08);
  --bmz-radius: 8px;
  --bmz-container: 1180px;
  --bmz-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bmz-bg);
  color: var(--bmz-text);
  font-family: var(--bmz-font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bmz-container {
  width: min(100% - 40px, var(--bmz-container));
  margin: 0 auto;
}

.bmz-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 229, 223, 0.9);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.bmz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 28px;
}

.bmz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.bmz-logo-mark {
  width: 42px;
  height: 42px;
  color: var(--bmz-green);
}

.bmz-main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bmz-main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #202522;
  font-weight: 650;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.bmz-main-nav a:hover,
.bmz-main-nav .current-menu-item > a,
.bmz-main-nav .current_page_item > a {
  color: var(--bmz-green);
  border-bottom-color: var(--bmz-green);
}

.bmz-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bmz-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bmz-line);
  border-radius: var(--bmz-radius);
  background: var(--bmz-surface);
  color: var(--bmz-text);
}

.bmz-menu-toggle span,
.bmz-menu-toggle::before,
.bmz-menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
}

.bmz-button,
.bmz-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--bmz-radius);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.bmz-button {
  border: 1px solid var(--bmz-green-dark);
  background: var(--bmz-green-dark);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(36, 60, 30, 0.18);
}

.bmz-button:hover,
.bmz-button:focus-visible {
  transform: translateY(-1px);
  background: #172813;
  box-shadow: 0 18px 38px rgba(36, 60, 30, 0.25);
}

.bmz-button-outline {
  border: 1px solid #bfc5bd;
  background: rgba(255, 255, 255, 0.72);
  color: var(--bmz-text);
}

.bmz-button-outline:hover,
.bmz-button-outline:focus-visible {
  border-color: var(--bmz-green);
  color: var(--bmz-green);
}

.bmz-youtube-icon {
  width: 19px;
  height: 14px;
  margin-right: 10px;
  flex: 0 0 auto;
}

.bmz-cta-icon .bmz-youtube-icon,
.bmz-socials .bmz-youtube-icon {
  margin-right: 0;
}

.bmz-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bmz-line);
  background: linear-gradient(180deg, #fffefa 0%, #f8f7f1 100%);
}

.bmz-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  min-height: 560px;
  gap: 48px;
  padding: 54px 0 46px;
}

.bmz-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  color: #667e4c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bmz-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.bmz-hero-copy {
  max-width: 570px;
  margin: 24px 0 0;
  color: var(--bmz-muted);
  font-size: 18px;
}

.bmz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.bmz-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 470px;
}

.bmz-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  filter: saturate(0.92);
  mix-blend-mode: multiply;
  animation: bmz-float 8s ease-in-out infinite;
}

.bmz-section {
  padding: 46px 0 10px;
}

.bmz-featured-video {
  padding: 42px 0 18px;
  background: #f6f7f0;
}

.bmz-featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
  gap: 34px;
  padding: 28px;
  border: 1px solid #e0e6d8;
  border-radius: var(--bmz-radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 52px rgba(45, 56, 43, 0.08);
}

.bmz-featured-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--bmz-radius);
  background: #dfe6d8;
}

.bmz-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.bmz-featured-thumb:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.bmz-play-large {
  width: 76px;
  height: 76px;
}

.bmz-featured-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
}

.bmz-featured-copy p:not(.bmz-eyebrow) {
  margin: 14px 0 20px;
  color: var(--bmz-muted);
  font-size: 17px;
}

.bmz-trending {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e1e7d8;
}

.bmz-trending h3 {
  margin: 0 0 12px;
  color: var(--bmz-green-dark);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.bmz-trending-list {
  display: grid;
  gap: 10px;
}

.bmz-trending-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #dde5d4;
  border-radius: var(--bmz-radius);
  background: rgba(255, 255, 255, 0.78);
  color: #263126;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bmz-trending-list a:hover {
  transform: translateX(3px);
  border-color: #c6d3bd;
  background: #ffffff;
}

.bmz-trending-list svg {
  width: 16px;
  height: 16px;
  color: var(--bmz-green);
}

.bmz-topic-strip {
  overflow: hidden;
  border-top: 1px solid var(--bmz-line);
  border-bottom: 1px solid var(--bmz-line);
  background: #fbfaf7;
}

.bmz-topic-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 14px 0;
  animation: bmz-marquee 28s linear infinite;
}

.bmz-topic-track span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #d8dfcf;
  border-radius: 999px;
  background: #ffffff;
  color: var(--bmz-green-dark);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(40, 50, 38, 0.05);
}

.bmz-section + .bmz-section {
  padding-top: 58px;
}

.bmz-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bmz-section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.bmz-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--bmz-green);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.bmz-link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.bmz-link-arrow:hover svg {
  transform: translateX(3px);
}

.bmz-video-grid,
.bmz-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.bmz-video-grid {
  margin-bottom: 64px;
}

.bmz-video-card {
  min-width: 0;
  transition: transform 180ms ease;
}

.bmz-video-card:hover {
  transform: translateY(-4px);
}

.bmz-video-thumb,
.bmz-post-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--bmz-radius);
  background: #dde4d6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.bmz-video-thumb {
  aspect-ratio: 16 / 9;
}

.bmz-video-thumb img,
.bmz-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.bmz-video-card:hover img,
.bmz-post-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.bmz-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bmz-green-dark);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.bmz-play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.bmz-video-date {
  display: inline-flex;
  margin-top: 12px;
  color: #6c746e;
  font-size: 13px;
  font-weight: 700;
}

.bmz-card-title {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.bmz-card-title a:hover {
  color: var(--bmz-green);
}

.bmz-video-meta,
.bmz-post-meta {
  margin: 8px 0 0;
  color: #6a716c;
  font-size: 14px;
}

.bmz-post-card {
  overflow: hidden;
  border: 1px solid var(--bmz-line);
  border-radius: var(--bmz-radius);
  background: var(--bmz-surface);
  box-shadow: 0 12px 38px rgba(42, 48, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bmz-post-card:hover {
  transform: translateY(-4px);
  border-color: #d5ddcc;
  box-shadow: 0 18px 48px rgba(42, 48, 42, 0.11);
}

.bmz-post-thumb {
  aspect-ratio: 16 / 8.2;
  border-radius: var(--bmz-radius) var(--bmz-radius) 0 0;
}

.bmz-post-content {
  padding: 18px 18px 20px;
}

.bmz-category {
  color: #667e4c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bmz-post-excerpt {
  margin: 12px 0 0;
  color: #515a54;
  font-size: 15px;
}

.bmz-cta-band {
  margin: 60px auto 34px;
}

.bmz-cta-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 54px;
  border: 1px solid #e7eadf;
  border-radius: var(--bmz-radius);
  background: linear-gradient(90deg, #eef4e8 0%, #fbfaf7 58%, #edf3e8 100%);
  box-shadow: 0 18px 54px rgba(45, 56, 43, 0.06);
}

.bmz-cta-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 999px;
  background: var(--bmz-green);
  color: #ffffff;
  animation: bmz-soft-pulse 2.8s ease-in-out infinite;
}

.bmz-cta-icon svg {
  width: 28px;
  height: 28px;
}

.bmz-cta-inner h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.bmz-cta-inner p {
  margin: 8px 0 0;
  color: #4e5851;
}

.bmz-site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--bmz-line);
  background: #f8f7f2;
}

.bmz-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr 0.85fr 1.1fr;
  gap: 54px;
  padding: 54px 0;
}

.bmz-footer-text {
  max-width: 310px;
  margin: 18px 0 22px;
  color: #59615b;
}

.bmz-socials {
  display: flex;
  gap: 12px;
}

.bmz-socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #151918;
  color: #ffffff;
}

.bmz-socials svg {
  width: 17px;
  height: 17px;
}

.bmz-footer-title {
  margin: 0 0 14px;
  font-size: 16px;
}

.bmz-footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.bmz-footer-links li + li {
  margin-top: 8px;
}

.bmz-footer-links a {
  color: #515a54;
  font-size: 14px;
}

.bmz-footer-links a:hover {
  color: var(--bmz-green);
}

.bmz-mini-video {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.bmz-mini-video + .bmz-mini-video {
  margin-top: 12px;
}

.bmz-mini-video img {
  width: 76px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.bmz-mini-video span {
  display: -webkit-box;
  overflow: hidden;
  color: #2f3531;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bmz-copyright {
  padding: 20px 0 24px;
  border-top: 1px solid var(--bmz-line);
  color: #737b75;
  font-size: 13px;
  text-align: center;
}

.bmz-content-page {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 56px 0;
}

.bmz-content-page h1 {
  margin-top: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
}

.bmz-entry {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 54px 0;
}

.bmz-entry h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
}

.bmz-entry-content {
  color: #303734;
}

.bmz-entry-content a {
  color: var(--bmz-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bmz-placeholder {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #bfcab9;
  border-radius: var(--bmz-radius);
  background: var(--bmz-green-soft);
  color: var(--bmz-green-dark);
  text-align: center;
}

.bmz-blog-archive {
  padding-bottom: 56px;
}

@keyframes bmz-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes bmz-soft-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 87, 42, 0.22);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(52, 87, 42, 0);
  }
}

@keyframes bmz-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .bmz-header-inner {
    min-height: 74px;
  }

  .bmz-menu-toggle {
    display: block;
  }

  .bmz-main-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--bmz-line);
    background: rgba(251, 250, 247, 0.98);
  }

  .bmz-main-nav.is-open {
    display: block;
  }

  .bmz-main-nav ul {
    display: grid;
    gap: 6px;
  }

  .bmz-main-nav a {
    width: 100%;
    min-height: 46px;
  }

  .bmz-header-actions .bmz-button {
    display: none;
  }

  .bmz-hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
    padding: 42px 0 0;
  }

  .bmz-hero-media {
    min-height: 340px;
    margin: 4px -20px 0;
  }

  .bmz-video-grid,
  .bmz-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmz-featured-inner {
    grid-template-columns: 1fr;
  }

  .bmz-cta-inner {
    grid-template-columns: auto 1fr;
    padding: 26px;
  }

  .bmz-cta-inner .bmz-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bmz-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bmz-container {
    width: min(100% - 28px, var(--bmz-container));
  }

  .bmz-brand {
    font-size: 20px;
  }

  .bmz-logo-mark {
    width: 36px;
    height: 36px;
  }

  .bmz-hero h1 {
    font-size: 42px;
  }

  .bmz-hero-copy {
    font-size: 16px;
  }

  .bmz-hero-actions .bmz-button,
  .bmz-hero-actions .bmz-button-outline {
    width: 100%;
  }

  .bmz-hero-media {
    min-height: 260px;
    margin-left: -14px;
    margin-right: -14px;
  }

  .bmz-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .bmz-video-grid,
  .bmz-post-grid,
  .bmz-footer-grid {
    grid-template-columns: 1fr;
  }

  .bmz-featured-inner {
    padding: 14px;
  }

  .bmz-play-large {
    width: 62px;
    height: 62px;
  }

  .bmz-cta-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .bmz-cta-icon {
    width: 58px;
    height: 58px;
  }
}
