/* -------------------------------------------------
   PMHX Light Theme — Huberman-style Layout
   ------------------------------------------------- */

/* ========== Base Reset + Typography ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  height: 100%;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ========== Layout Containers ========== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
section {
  width: 100%;
  padding: 100px 0;
}
section .inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   HEADER — Huberman-style (Centered Nav, Mobile Hamburger)
   ========================================================= */
.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Brand */
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-box {
  border: 2px solid var(--color-primary, #2563eb);
  color: var(--color-primary, #2563eb);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.brand-box:hover {
  color: #1e40af;
  border-color: #1e40af;
}

/* Centered Navigation */
.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.header-nav a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.header-nav a:hover {
  color: var(--color-primary, #2563eb);
}

/* Hamburger Button */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  display: none;
  color: #0f172a;
  cursor: pointer;
  transition: color 0.2s ease;
}
.menu-toggle:hover {
  color: var(--color-primary, #2563eb);
}

/* Mobile Dropdown Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  padding: 0 32px;
}
.mobile-menu a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.2s ease;
}
.mobile-menu a:hover {
  color: var(--color-primary, #2563eb);
}
body.menu-open .mobile-menu {
  display: flex;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding: 16px 32px;
}

/* ========== Hero Section (Full Width) ========== */
.hero {
  width: 100%;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  text-align: center;
  padding: 160px 20px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}
.hero p {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.hero .btn {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}
.hero .btn:hover {
  background: #1e40af;
}

.hero-pmhx-bg {
  background-image: url("/../assets/img/PastMedicalHistory_pageHeroBG.jpg");
  background-color: #cccccc;
  height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========== Section Base Typography ========== */
section h2 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 24px;
  text-align: center;
}
section p {
  color: #475569;
  max-width: 700px;
  margin: 0 auto 24px auto;
  text-align: center;
}

/* ========== About Section ========== */
.about {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}
.about .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ========== Episodes Section ========== */
.episodes {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}
.episodes .inner {
  max-width: 1100px;
}
.episodes .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.episodes .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 30px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.episodes .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}
.episodes .card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #0f172a;
}
.episodes .card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.episodes .card a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}
.episodes .card a:hover {
  text-decoration: underline;
}

/* ========== Newsletter Section ========== */
.newsletter {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
.newsletter form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  gap: 10px;
}
.newsletter input {
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-width: 250px;
}
.newsletter button {
  border: none;
  background: #2563eb;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter button:hover {
  background: #1e40af;
}

/* ========== Footer ========== */
footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 60px 0 40px 0;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 32px;
}
footer h4 {
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
footer a {
  display: block;
  color: #475569;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
footer a:hover {
  color: #2563eb;
}
footer .copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

/* ========== Social Icons ========== */
.social-icons i {
  font-size: 1.3rem;
  color: #475569;
  transition: color 0.25s ease, transform 0.25s ease;
}
.social-icons i:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

/* -------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------- */
@media (max-width: 900px) {
  .header-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 100px 20px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section {
    padding: 60px 0;
  }
  footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  footer a {
    display: inline-block;
  }
}
