/* =========================================================
   home.css
   CSS extracted from carethrive.css and health-videos.css
   for elements within .entry-content.single-content
   on home.html
   ========================================================= */


/* ── CSS VARIABLES ─────────────────────────────────────── */

:root {
  /* Colors */
  --primary-teal: #4ECDC4;
  --primary-dark: #3DBDB3;
  --primary-light: #7EDDD7;
  --secondary-lavender: #9B59B6;
  --secondary-sage: #8FA998;
  --dark-blue: #134d87;
  --black: #000000;
  --green: #1c7c4d;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F7FAFC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-600: #4A5568;
  --gray-800: #2D3748;
  --gray-900: #1A202C;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
}


/* ── GLOBAL RESETS (affect all elements) ─────────────────── */

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
  margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

p:empty {
  display: none;
}

html {
  scroll-behavior: smooth;
}


/* ── CONTAINER & SECTION ─────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/*section {
  padding: var(--spacing-xl) 0;
}*/


/* ── BUTTONS (carethrive.css) ────────────────────────────── */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
  background: var(--primary-teal);
  color: var(--white);
}

.btn-outline {
  background: var(--dark-blue);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-teal);
  outline-offset: 2px;
}


/* ── UTILITY CLASSES ─────────────────────────────────────── */

.top-5 {
  top: 1.25rem;
}

.left-5 {
  left: 1.25rem;
}

.absolute {
  position: absolute;
}

.tag-white {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.overflow-hidden {
  overflow: hidden;
}

.h-48 {
  height: 12rem;
}

.relative {
  position: relative;
}

.left-3 {
  left: 0.75rem;
}

.bottom-3 {
  bottom: 2.1rem;
}

.text-\[\#5C5C5C\] {
  --tw-text-opacity: 1;
  color: rgb(92 92 92 / var(--tw-text-opacity, 1));
}

.leading-relaxed {
  line-height: 1.625;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}


/* ── HERO IMAGE SECTION ──────────────────────────────────── */

.carethrive-hero-image {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.carethrive-hero-image .hero-image-wrapper {
  min-height: 80vh;
  background-image: url("https://carethrive.org/wp-content/uploads/2026/06/carethrive_hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  animation: heroSlowZoom 18s ease-in-out infinite alternate;
}

.carethrive-hero-image .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.99) 25%,
      rgba(255, 255, 255, 0.80) 39%,
      rgba(255, 255, 255, 0.11) 52%,
      rgba(255, 255, 255, 0.001) 72%,
      transparent 100%
    );
  z-index: 0;
}

.carethrive-hero-image .hero-content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}

.carethrive-hero-image .hero-title,
.carethrive-hero-image .hero-subtitle,
.carethrive-hero-image .hero-credential {
  color: var(--balck);
}

.carethrive-hero-image .hero-subtitle {
  color: var(--black);
}

/* Updated hero section */
.carethrive-hero-image .hero-image-wrapper {
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

/* Image layer for smooth animation */
.carethrive-hero-image .hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("http://localhost/carethrive/wp-content/uploads/2026/05/carethrive_hero-1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  animation: heroSlowZoom 18s ease-in-out infinite alternate;
  z-index: 0;
}

.carethrive-hero-image .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.99) 25%,
      rgba(255, 255, 255, 0.80) 39%,
      rgba(255, 255, 255, 0.11) 52%,
      rgba(255, 255, 255, 0.001) 72%,
      transparent 100%
    );
  z-index: 1;
}

.carethrive-hero-image .hero-content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.carethrive-hero-image .hero-container {
  max-width: 800px;
  /*padding: 0 var(--spacing-md);*/
  padding-left: 150px;
  padding-top: 70px;
  overflow: hidden;
}

/* Text colors */
.carethrive-hero-image .hero-title,
.carethrive-hero-image .hero-subtitle,
.carethrive-hero-image .hero-credential {
  color: var(--black);
}

/* Text animation */
.carethrive-hero-image .hero-title,
.carethrive-hero-image .hero-subtitle,
.carethrive-hero-image .hero-cta,
.carethrive-hero-image .hero-credential {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUpHero 0.9s ease forwards;
}

.carethrive-hero-image .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  animation-delay: 0.1s;
}

.carethrive-hero-image .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  animation-delay: 0.25s;
}

.carethrive-hero-image .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
  animation-delay: 0.4s;
}

.carethrive-hero-image .hero-credential {
  font-size: 0.95rem;
  font-weight: 500;
  animation-delay: 0.55s;
}

/* Button animation */
.carethrive-hero-image .btn,
.carethrive-hero-image .hero-btn,
.carethrive-hero-image a {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease;
}

.carethrive-hero-image .btn:hover,
.carethrive-hero-image .hero-btn:hover,
.carethrive-hero-image a:hover {
  transform: translateY(-3px);
}

.hero-subtitle {
  max-width: 620px;
}

.highlight {
  color: var(--green);
}

.hero-tagline {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--black);
  max-width: 560px;
  margin: 0;
}

/* Keyframes */
@keyframes fadeUpHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSlowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

/* Accessibility - reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carethrive-hero-image .hero-image-wrapper::before,
  .carethrive-hero-image .hero-title,
  .carethrive-hero-image .hero-subtitle,
  .carethrive-hero-image .hero-cta,
  .carethrive-hero-image .hero-credential {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Mobile responsive – hero */
@media (max-width: 768px) {
  .carethrive-hero-image .hero-image-wrapper {
    min-height: 720px;
  }

  .carethrive-hero-image .hero-image-wrapper::before {
    background-position: center right;
    animation: none;
  }

  .carethrive-hero-image .hero-content-overlay {
    align-items: flex-start;
    padding-top: 70px;
  }

  .carethrive-hero-image .hero-container {
    padding: 0 24px;
  }

  .carethrive-hero-image .hero-title {
    font-size: 2.6rem;
    max-width: 95%;
  }

  .carethrive-hero-image .hero-subtitle {
    font-size: 1.1rem;
    max-width: 92%;
  }

  .carethrive-hero-image .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .carethrive-hero-image .hero-image-wrapper {
    min-height: 40vh;
    background-position: center top;
  }

  .carethrive-hero-image .hero-content-overlay {
    padding: 1rem 1rem;
    position: relative;
    inset: auto;
  }
}


/* ── ARTICLE / INSIGHTS SECTION ──────────────────────────── */

.ct-insights {
  background: #faf8f4;
  padding: 70px 24px;
  color: #0d2b45;
  font-family: Inter, Arial, sans-serif;
}

.ct-insights-container {
  max-width: 1180px;
  margin: 0 auto;
}

.ct-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.ct-section-header h2 {
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1;
  margin: 0 0 10px;
  color: #06334f;
}

.ct-section-header p {
  margin: 0;
  color: #5f6f7a;
  font-size: 1.05rem;
}

.ct-outline-btn,
.ct-small-btn {
  border: 1px solid #b7ccd6;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  color: #06334f;
  font-weight: 700;
  background: white;
}

.ct-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 5px rgba(13, 43, 69, 0.08);
  margin-bottom: 24px;
}

.ct-featured-image {
  min-height: 370px;
  background-image: url("https://carethrive.org/wp-content/uploads/2026/01/tired-woman.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.ct-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ct-featured-content {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.ct-category {
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
}

.sleep     { background: rgba(0, 106, 100, 0.09); color: #006a64; }
.lifestyle { background: #fff0dc; color: #9a5a00; }
.mental    { background: #eee9ff; color: #5e45a8; }
.nutrition { background: #e2f6e8; color: #207a42; }

.ct-featured-content h3 {
  font-size: 1.875rem;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #06334f;
}

.ct-featured-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #596875;
  margin-bottom: 24px;
}

.img-featured {
  object-fit: cover;
}

.ct-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #596875;
  margin-bottom: 28px;
}

.ct-card-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ct-primary-btn {
  background: linear-gradient(135deg, #00ffb7, #00fff1);
  color: white;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 0.875rem;
  font-weight: 300;
}

.ct-save {
  color: #006b73;
  font-weight: 700;
  text-decoration: none;
}

.ct-article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}

.ct-article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 5px rgba(13, 43, 69, 0.08);
  transition: 0.25s ease;
}

.ct-article-card:hover {
  transform: translateY(-5px);
}

.ct-article-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.ct-card-body {
  padding: 18px;
}

.ct-card-body h4 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 12px;
  color: #06334f;
}

.ct-card-body p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #61717b;
}
.ct-card-body h2 {
  font-size: 1.5rem !important;
}
.ct-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #61717b;
  position: absolute;
  gap: 30px;
  bottom: 20px;
}

.ct-card-footer a {
  color: #06334f;
  text-decoration: none;
}

.ct-bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ct-trust-box,
.ct-resource-box {
  background: #eef8f7;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  gap: 22px;
  align-items: center;
}

.ct-trust-box h4,
.ct-resource-box h4 {
  margin: 0 0 10px;
  color: #06334f;
}

.ct-trust-box p,
.ct-resource-box p {
  color: #50636f;
  line-height: 1.55;
}

.ct-shield {
  font-size: 2.5rem;
}

/* Responsive – article section */
@media (max-width: 900px) {
  .ct-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .ct-featured-card {
    grid-template-columns: 1fr;
  }

  .ct-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-bottom-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ct-article-grid {
    grid-template-columns: 1fr;
  }

  .ct-featured-content {
    padding: 32px 24px;
  }

  .ct-featured-image {
    min-height: 260px;
  }
}


/* ── SCROLL REVEAL ANIMATION ─────────────────────────────── */

.ct-reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.ct-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.ct-delay-1 { transition-delay: 0.08s; }
.ct-delay-2 { transition-delay: 0.16s; }
.ct-delay-3 { transition-delay: 0.24s; }
.ct-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .ct-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── IMAGE ZOOM ──────────────────────────────────────────── */

.img-zoom {
  transition: transform 0.55s ease;
}

.img-zoom:hover {
  transform: scale(1.04);
}


/* ── WHY TRUST CARETHRIVE SECTION ────────────────────────── */

.ct-built-for-you {
  text-align: center;
  padding: 1.8rem 1rem 0.5rem;
  position: relative;
}

.ct-built-for-you::before {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3DBDB3, transparent);
  margin: 0 auto 1.5rem;
}

.ct-built-for-you::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3DBDB3, transparent);
  margin: 1.5rem auto 0;
}

.ct-built-for-you p.ct-built-text {
  font-size: 2.2rem !important;
  font-weight: 600 !important;
  color: #125780 !important;
  font-style: italic !important;
  letter-spacing: 0.01em;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.ct-header-text{
  font-size: 2.2rem !important;
  font-weight: 800 !important;
}

.ct-subheader-text{
  font-size: 1.2rem !important;
  font-weight: 500 !important;
}
.ct-we-offer{
	background-color: #fbf8f2;
	padding-bottom: 10px;
	margin-top: 10px;
}

.ct-trust-section {
  background: #fbf8f2;
  padding: 100px 24px;
  overflow: hidden;
  color: #082b4b;
  position: relative;
}

.ct-trust-image {
  max-width: 1400px;
  display: flex;
  align-items: flex-end;
  inset: 0;
  margin: 0 auto;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.ct-trust-image img {
  display: block;
  width: 47%;
  -webkit-mask-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.9) 8%, rgba(0,0,0,0.95) 58%, rgba(0,0,0,0.5) 78%, transparent 100%);
  mask-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.9) 8%, rgba(0,0,0,0.95) 58%, rgba(0,0,0,0.5) 78%, transparent 100%);
}

.ct-trust-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 34% 66%;
  gap: 70px;
  z-index: 2;
}

.ct-eyebrow {
  color: #07845f;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

.ct-line {
  width: 70px;
  height: 4px;
  background: #07845f;
  border-radius: 20px;
  margin-bottom: 38px;
}

.ct-trust-left h2 {
  font-family: Georgia, serif;
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  line-height: .98;
  margin: 0 0 32px;
  letter-spacing: -0.05em;
}

.ct-trust-left h2 span {
  color: #08795f;
}

.ct-trust-left p {
  max-width: 430px;
  font-size: 1.14rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.ct-trust-right {
  display: flex;
  flex-direction: column;
}

.ct-trust-row {
  display: grid;
  grid-template-columns: 130px 90px 2px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid rgba(7, 132, 95, .24);
}

.ct-trust-row img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(7, 132, 95, .22);
  box-shadow: 0 14px 28px rgba(7, 132, 95, .12);
}

.ct-trust-row strong {
  color: #07845f;
  font-size: 4rem;
  line-height: 1;
}

.ct-vertical {
  width: 2px;
  height: 86px;
  background: #07845f;
  opacity: .65;
}

.ct-trust-row h3 {
  font-size: 1.65rem;
  margin: 0 0 10px;
  font-weight: 850;
}

.ct-trust-row p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}


/* ── SCROLL-TRIGGERED SLIDE-IN ANIMATION ─────────────────── */

.slide-in {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: opacity, transform;
}

.ct-trust-left.slide-in {
  transform: translateX(-60px);
}

.slide-in.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }
.delay-3 { transition-delay: .45s; }
.delay-4 { transition-delay: .6s; }
.delay-5 { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  .slide-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive – trust section */
@media (max-width: 700px) {
  .ct-trust-section {
    padding: 70px 20px;
  }

  .ct-trust-row {
    grid-template-columns: 80px 1fr;
    gap: 18px;
  }

  .ct-trust-row img {
    width: 72px;
    height: 72px;
  }

  .ct-trust-row strong {
    font-size: 2.8rem;
  }

  .ct-vertical {
    display: none;
  }

  .ct-trust-row div:last-child {
    grid-column: 1 / -1;
  }
}


/* ── FINAL CTA SECTION ───────────────────────────────────── */

.final-cta-section {
  background: var(--gray-50);
  text-align: center;
}

.final-cta-section h2 {
  margin-bottom: var(--spacing-md);
}

.final-cta-section p {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
}


/* ── LOADING / FADE-IN ANIMATION ─────────────────────────── */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── HOMEPAGE SPACING FIX ────────────────────────────────── */

body.home .entry-header,
body.home .page-header {
  padding-top: 2rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

body.home .entry-title,
body.home h1.entry-title,
body.home .page-title {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  padding: 0 !important;
}

body.home .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ── EXTRA RESPONSIVE BREAKPOINTS ────────────────────────── */

@media (max-width: 992px) {
  .container { padding: 0 1.25rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 3rem 0; }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-family: Roboto, serif; font-size: 1rem; }
  .hero-cta { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; }
}


/* =============================================================
   HEALTH VIDEOS SECTION
   (from health-videos.css)
   ============================================================= */


/* ── Buttons (health-videos overrides) ───────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #003f61, #006a64);
  color: white;
  font-weight: 600;
  border-radius: 0.875rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 4px 18px rgba(0, 63, 97, 0.22);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 63, 97, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #003f61;
  font-weight: 600;
  border-radius: 0.875rem;
  border: 1.5px solid rgba(0, 63, 97, 0.22);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  background: #003f61;
  color: white;
  border-color: #003f61;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 600;
  border-radius: 0.875rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}


/* ── Card (featured video card) ──────────────────────────── */

.card {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 63, 97, 0.07);
  box-shadow: 0 2px 18px rgba(0, 63, 97, 0.05), 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 12px 40px rgba(0, 63, 97, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}


/* ── Topic filter pills ──────────────────────────────────── */

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
}

.filter-btn.active {
  background: #003f61;
  color: white;
  border-color: #003f61;
}

.filter-btn:not(.active) {
  background: transparent;
  color: #003f61;
  border-color: rgba(0, 63, 97, 0.2);
}

.filter-btn:not(.active):hover {
  background: rgba(0, 63, 97, 0.06);
  border-color: rgba(0, 63, 97, 0.3);
}


/* ── Featured video play button (large) ──────────────────── */

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}


/* ── Quick-insight play button (small) ───────────────────── */

.play-btn-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.play-btn-sm:hover {
  transform: scale(1.1);
}

.videos {
  display: flex;
}


/* ── Video modal – backdrop ──────────────────────────────── */

.ct-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ct-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}


/* ── Video modal – dialog box ────────────────────────────── */

.ct-modal {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: #1c2c38;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: scale(0.93) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ct-modal-backdrop.open .ct-modal {
  transform: scale(1) translateY(0);
}


/* ── Video modal – 16:9 iframe container ─────────────────── */

.ct-modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.ct-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ── Video modal – close button ──────────────────────────── */

.ct-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ct-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* =============================================================
   home-responsive.css — CareThrive Homepage Responsive Fixes
   Covers:
     1. section.carethrive-hero-image
     2. div.ct-article-grid  (4-column persona cards)

   NOTE: Inline styles on .ct-article-grid use !important to
   override the hardcoded grid-template-columns value.
   Link this file in <head> AFTER home.css.
============================================================= */


/* ─────────────────────────────────────────────────────────
   1. MOBILE NAVIGATION
   Hamburger icon → navy
   Drawer panel → slides down from the top, full width,
   large bold links (inspired by care.org style)
───────────────────────────────────────────────────────── */

/* ── Hamburger icon: navy ────────────────────────────── */
.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus {
  color: #134d87 !important;
}

/* ── Drawer panel: full-width, anchored at top ───────── */
#mobile-drawer .drawer-inner {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18) !important;
  /* Hidden: slide up off screen */
  transform: translateY(-105%) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Open state — body class added by Kadence JS */
body.showing-popup-drawer-from-right #mobile-drawer .drawer-inner {
  transform: translateY(0) !important;
}

/* Overlay scrim */
#mobile-drawer .drawer-overlay {
  background: rgba(0, 0, 0, 0.50) !important;
}

/* ── Drawer header row (close button bar) ────────────── */
#mobile-drawer .drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 1rem 1.25rem !important;
  border-bottom: 2px solid #e2e8f0 !important;
  min-height: 62px;
}

/* ── Close button: navy X ────────────────────────────── */
#mobile-drawer .menu-toggle-close {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
}

#mobile-drawer .toggle-close-bar {
  position: absolute !important;
  width: 24px !important;
  height: 2.5px !important;
  background: #134d87 !important;
  border-radius: 2px !important;
  display: block !important;
  top: 50% !important;
  left: 50% !important;
  margin-left: -12px !important;
  margin-top: -1.25px !important;
}

#mobile-drawer .toggle-close-bar:first-child {
  transform: rotate(45deg) !important;
}

#mobile-drawer .toggle-close-bar:last-child {
  transform: rotate(-45deg) !important;
}

/* ── Nav item list ───────────────────────────────────── */
#mobile-drawer .drawer-content {
  padding: 0 !important;
}

#mobile-drawer .mobile-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#mobile-drawer .mobile-navigation ul li {
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-size: 1.4rem !important;
}

/* Large, bold links — full-width row */
#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1.15rem 1.5rem !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #0e2a3f !important;
  background: #ffffff !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}

#mobile-drawer .mobile-navigation ul li > a:hover,
#mobile-drawer .mobile-navigation ul li > a:focus {
  color: #134d87 !important;
  background: #f0f7ff !important;
}

/* Current / active page */
#mobile-drawer .mobile-navigation ul li.current-menu-item > a {
  color: #3DBDB3 !important;
}

/* Sub-menu: indented, slightly smaller */
#mobile-drawer .mobile-navigation ul ul {
  background: #f7fafc !important;
}

#mobile-drawer .mobile-navigation ul ul li {
  font-size: 1.1rem !important;
}

#mobile-drawer .mobile-navigation ul ul li > a {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  padding-left: 2.25rem !important;
  color: #3a4a55 !important;
  background: #f7fafc !important;
}


/* ─────────────────────────────────────────────────────────
   2. HERO IMAGE SECTION + PERSONA CARDS — TABLET (≤1024px)
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Hero: slightly shorter image */
  .carethrive-hero-image .hero-image-wrapper {
    min-height: 62vh;
  }

  /* Reduce headline size */
  .carethrive-hero-image .hero-title {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  /* Narrow the text column so it doesn't run full width */
  .carethrive-hero-image .hero-container {
    max-width: 520px;
    padding: 0 1.5rem;
  }

  /* Persona grid → 2 columns on tablet */
  .ct-article-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}


/* ─────────────────────────────────────────────────────────
   MOBILE  (≤768px)
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Hero Section ───────────────────────────────────── */

  /*
   * Strategy: show a cropped image banner at the top using
   * padding-top as an aspect-ratio stand-in, then let the
   * text content flow below it on a white background.
   */
  .carethrive-hero-image .hero-image-wrapper {
    min-height: 0;
    padding-top: 52vw;             /* image banner height    */
    background-position: center 15%;
    background-size: cover;
  }

  /* Soften the gradient so the banner image is still visible */
  .carethrive-hero-image .hero-overlay {
   /*baground: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0.08) 100%
    );*/
	 background: transparent !important;
    /* height: 100% comes from inset:0 which is already set */
  }

  /*
   * Pull the text content out of the absolute overlay layer
   * so it sits below the image banner as a white block.
   */
  .carethrive-hero-image .hero-content-overlay {
    position: relative;
    inset: auto;
    display: block;
    background: #ffffff;
    padding: 1.75rem 1.25rem 2.25rem;
  }

  .carethrive-hero-image .hero-container {
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

  .carethrive-hero-image .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .carethrive-hero-image .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .carethrive-hero-image .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
  }

  /* Stack the CTA buttons vertically, centered */
  .carethrive-hero-image .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .carethrive-hero-image .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* ── Persona Grid → single column ──────────────────── */
  .ct-article-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Reduce the hardcoded card image height on mobile */
  .ct-article-card > div:first-child {
    height: 200px !important;
  }
}


/* ─────────────────────────────────────────────────────────
   SMALL PHONES  (≤480px)
───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	  .carethrive-hero-image .hero-overlay {
	 background: transparent !important;
   
  }

  .carethrive-hero-image .hero-image-wrapper {
    padding-top: 60vw;             /* taller banner on narrow screens */
  }

  .carethrive-hero-image .hero-title {
    font-size: 1.55rem;
  }

  .carethrive-hero-image .hero-subtitle {
    font-size: 0.9rem;
  }

  .carethrive-hero-image .hero-content-overlay {
    padding: 1.5rem 1rem 2rem;
  }
}

