/*
 Theme Name:   Embracing My Vitality Child
 Template:     astra
*/

/* === Base reset for sidebar and widgets === */
body #secondary,
body #secondary .sidebar-main,
body #secondary .widget {
  margin: 0 !important;
  padding: 0 !important;
}

/* === Default widget spacing (all except Latest Pages) === */
body #secondary .widget:not(.latest-pages) {
  /* Add similar padding to other boxes: 1ch gap */
  padding: 1ch !important;
  margin-bottom: 0.5em !important;
}

/* === Latest Pages widget inner padding only (already handled) === */
body #secondary .widget.latest-pages .latest-pages-inner {
  padding: 1ch !important;
}

/* === Title styling === */
body #secondary .widget.latest-pages .latest-pages-title,
body #secondary .widget:not(.latest-pages) .widget-title,
body #secondary .widget:not(.latest-pages) h2,
body #secondary .widget:not(.latest-pages) h3 {
  margin: 0 0 0.5ch !important;
  padding: 0 !important;
}

/* Remove any outer gap on the Home Intro wrapper */
body .home-intro-area {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tidy up the widget container itself */
body .home-intro-widget {
  margin: 0 !important;
  padding: 0.5em 1ch !important;  /* adjust inner padding as desired */
}

/* If Astra adds a gap between this and the main content, collapse that too */
body .home-intro-area + .entry-content {
  margin-top: 0 !important;
}

/* 1. Collapse the Astra container’s built-in padding on the Home page */
body.home .ast-container:first-of-type {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Remove any margins/padding on our Home Intro wrapper and widget */
.home-intro-area,
.home-intro-widget {
  margin: 0 !important;
  padding: 0 !important;
}

/* 3. Tidy up the gap between the intro box and the main content */
.home-intro-area + .entry-content {
  margin-top: 0 !important;
}

/* 1. Remove padding on the very first Astra container on the homepage */
body.home .site-content > .ast-container:first-child {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Collapse any ast-row/section wrappers around our intro */
body.home .site-content .ast-row,
body.home .site-content .ast-section-wrap,
body.home .site-content .ast-section {
  margin: 0 !important;
  padding: 0 !important;
}

/* 3. Remove default page header spacing */
body.home .entry-header {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* 4. Strip margins/padding off the intro widget area */
.home-intro-area,
.home-intro-widget {
  margin: 0 !important;
  padding: 0 !important;
}

/* 5. Remove gap between intro and main content */
.home-intro-area + .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Force EMV Latest Pages heading size anywhere it renders */
.widget.latest-pages .latest-pages-title {
  font-size: 10pt !important;
  line-height: 1.2 !important;
  margin: 0 0 0.5ch 0 !important;
  padding: 0 !important;
}

.widget.latest-pages .emv-assets-list li,
.widget.latest-pages .emv-assets-list li a {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

.emv-video-expand {
  position: fixed !important;
  inset: 10px !important;
  z-index: 999999 !important;
  background: #fff !important;
  overflow: auto !important;
}

.emv-video-expand video {
  max-height: calc(100vh - 120px) !important;
}

#emv-capbar {
  background-image: url("/d/img/capbar-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 6px;
  border-radius: 6px;
}

.emv-hero {
  width: 100%;
  height: clamp(120px, 20vh, 200px);
  overflow: hidden;
}

.emv-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emv-hero{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  margin: 10px 0;
  position: relative;
}

.emv-hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center; /* center default */
  text-align: center;
  padding: 0 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.25));
}

.emv-hero-title{
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 900px;
}

/* alignment overrides */
.emv-hero-left .emv-hero-overlay{ justify-content: flex-start; text-align: left; }
.emv-hero-right .emv-hero-overlay{ justify-content: flex-end; text-align: right; }

/* hero text variants */
.hero-size-sm { font-size: 20px; }
.hero-size-md { font-size: 24px; }
.hero-size-lg { font-size: 28px; }
.hero-size-xl { font-size: 34px; }

.hero-color-light { color: #fff; }
.hero-color-dark { color: #111; }
.hero-color-muted { color: #ddd; }

.hero-weight-normal { font-weight: 400; }
.hero-weight-bold { font-weight: 700; }

.hero-wrap-normal { max-width: 900px; }
.hero-wrap-tight { max-width: 600px; }
.hero-wrap-wide { max-width: 1200px; }

/* alignment */
.emv-hero-align-center .emv-hero-overlay {
  justify-content: center;
  text-align: center;
}
.emv-hero-align-left .emv-hero-overlay {
  justify-content: flex-start;
  text-align: left;
}
.emv-hero-align-right .emv-hero-overlay {
  justify-content: flex-end;
  text-align: right;
}