/* ============================
   MEXIAHEALTH — BLOG STYLES
   Inherits from ../css/style.css
   ============================ */

/* ── BLOG NAV OVERRIDE ── */
/* Blog pages use relative paths, so nav logo needs updating */
.blog-nav-logo { text-decoration: none; display: flex; align-items: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.18); transition: box-shadow 0.35s ease, opacity 0.35s ease; }
.blog-nav-logo:hover { opacity: 0.92; box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.blog-nav-logo img { height: 80px; width: auto; object-fit: contain; display: block; filter: none !important; }

/* ── BLOG HERO ── */
.blog-hero {
  background: var(--navy);
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,127,168,0.2) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(46,196,196,0.1) 0%, transparent 60%);
}
.blog-hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.blog-hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aqua-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blog-hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(46,196,196,0.4), transparent);
  max-width: 120px;
}
.blog-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.blog-hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.75;
}

/* ── BLOG GRID INDEX ── */
.blog-index-wrap { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }

/* Featured post — full width */
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(26,47,74,0.1);
  margin-bottom: 4rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,47,74,0.15); }

.blog-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }

.blog-featured-body {
  padding: 3rem 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-tag {
  display: inline-block;
  background: var(--aqua-dim);
  color: var(--aqua);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}
.blog-featured-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.blog-excerpt {
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.04em;
}
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pale); }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: gap 0.25s ease, color 0.25s ease;
}
.blog-read-more:hover { gap: 0.85rem; color: var(--brand); }
.blog-read-more svg { width: 14px; height: 14px; }

/* Post grid — 3 columns */
.blog-section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,47,74,0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(26,47,74,0.13); }

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
  margin: 0.6rem 0 0.75rem;
}
.blog-card-body .blog-excerpt {
  font-size: 0.84rem;
  flex: 1;
}
.blog-card-body .blog-meta { margin-top: 1rem; }
.blog-card-body .blog-read-more { margin-top: 1rem; }

/* ── NEWSLETTER BOX (index page) ── */
.blog-subscribe-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  border-radius: 16px;
  padding: 3.5rem;
  margin: 4rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.blog-subscribe-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.blog-subscribe-text p { color: rgba(255,255,255,0.6); font-size: 0.92rem; line-height: 1.7; }

.subscribe-form-wrap { display: flex; flex-direction: column; gap: 0.9rem; }

.subscribe-input-row {
  display: flex;
  gap: 0.75rem;
}
.subscribe-input-row input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(107,159,196,0.3);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.subscribe-input-row input:focus { border-color: var(--aqua); background: rgba(46,196,196,0.08); }
.subscribe-input-row input::placeholder { color: rgba(255,255,255,0.35); }

.subscribe-input-row button {
  background: var(--aqua);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
}
.subscribe-input-row button:hover { background: var(--aqua-light); transform: translateY(-1px); }

.subscribe-name-row input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(107,159,196,0.3);
  border-radius: 6px;
  padding: 0.8rem 1.1rem;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.subscribe-name-row input:focus { border-color: var(--aqua); }
.subscribe-name-row input::placeholder { color: rgba(255,255,255,0.35); }

.subscribe-privacy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}
#subscribeSuccess {
  background: rgba(46,196,196,0.15);
  border: 1px solid rgba(46,196,196,0.3);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  color: var(--aqua-light);
  font-size: 0.9rem;
  display: none;
}

/* ── SINGLE POST PAGE ── */
.post-hero {
  background: var(--navy);
  padding: 9rem 2rem 0;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 70% 40%, rgba(74,127,168,0.22) 0%, transparent 65%);
}
.post-hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.post-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.25s ease;
}
.post-hero-back:hover { color: var(--aqua-light); }
.post-hero-back svg { width: 14px; height: 14px; }

.post-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: #fff;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  padding-bottom: 2.5rem;
}
.post-hero-img {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  height: 440px;
  margin-top: 2rem;
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── POST BODY ── */
.post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--mid);
}
.post-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.post-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--steel);
  margin: 2rem 0 0.75rem;
}
.post-body p { margin-bottom: 1.35rem; }
.post-body strong { color: var(--navy); font-weight: 500; }
.post-body em { color: var(--aqua); font-style: italic; }

.post-body ul, .post-body ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.post-body li { padding-left: 0.25rem; }
.post-body ul li::marker { color: var(--aqua); }

.post-pullquote {
  border-left: 3px solid var(--aqua);
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--mist);
  border-radius: 0 10px 10px 0;
}
.post-pullquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: var(--navy);
  line-height: 1.45;
  font-style: italic;
  margin: 0;
}

.post-callout {
  background: linear-gradient(135deg, var(--navy), var(--steel));
  border-radius: 12px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  color: #fff;
}
.post-callout h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 0.6rem; }
.post-callout p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 1rem; }
.post-callout a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--aqua);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}
.post-callout a:hover { background: var(--aqua-light); }

.post-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.88rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,47,74,0.08);
}
.post-comparison-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.post-comparison-table thead th:first-child { width: 35%; }
.post-comparison-table tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
}
.post-comparison-table tbody tr:last-child td { border-bottom: none; }
.post-comparison-table tbody tr:nth-child(odd) { background: var(--bg); }
.post-comparison-table .savings { color: var(--aqua); font-weight: 600; }

/* ── POST SIDEBAR SUBSCRIBE (inside post) ── */
.post-subscribe {
  background: linear-gradient(135deg, var(--navy), var(--steel));
  border-radius: 14px;
  padding: 2.25rem;
  margin: 3rem 0;
  text-align: center;
}
.post-subscribe h3 { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 1.6rem; margin-bottom: 0.5rem; }
.post-subscribe p  { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 1.25rem; }
.post-subscribe .subscribe-input-row { max-width: 420px; margin: 0 auto; }
.post-subscribe #subscribeSuccess2 {
  background: rgba(46,196,196,0.15);
  border: 1px solid rgba(46,196,196,0.3);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--aqua-light);
  font-size: 0.85rem;
  display: none;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

/* ── POST TAGS / SHARE ── */
.post-footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.post-tag {
  background: var(--mist);
  color: var(--brand);
  font-size: 0.72rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.post-share { display: flex; align-items: center; gap: 0.75rem; }
.post-share span { font-size: 0.75rem; color: var(--light); letter-spacing: 0.06em; text-transform: uppercase; }
.share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--brand);
  transition: background 0.25s ease, color 0.25s ease;
}
.share-btn:hover { background: var(--aqua); color: #fff; }
.share-btn svg { width: 14px; height: 14px; }

/* ── RELATED POSTS ── */
.related-posts { background: var(--warm-bg); padding: 4rem 2rem; }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-inner h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 16px rgba(26,47,74,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26,47,74,0.12); }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.related-card:hover .related-card-img img { transform: scale(1.05); }
.related-card-body { padding: 1.25rem; }
.related-card-body .blog-tag { margin-bottom: 0.6rem; }
.related-card-body h3 { font-size: 1rem; color: var(--navy); line-height: 1.35; }
.related-card-body .blog-meta { margin-top: 0.6rem; }

/* ── BLOG FOOTER ── */
.blog-footer {
  background: var(--navy);
  padding: 2.5rem 2rem;
  text-align: center;
}
.blog-footer a { color: var(--aqua-light); text-decoration: none; font-size: 0.82rem; }
.blog-footer a:hover { color: #fff; }
.blog-footer p { color: rgba(255,255,255,0.3); font-size: 0.75rem; margin-top: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 280px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-subscribe-box { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-index-wrap { padding: 3rem 1.25rem; }
  .blog-hero, .post-hero { padding: 8rem 1.25rem 0; }
  .post-hero-img { height: 240px; }
  .post-wrap { padding: 2.5rem 1.25rem 4rem; }
  .post-footer { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-subscribe-box { padding: 2rem 1.5rem; }
  .subscribe-input-row { flex-direction: column; }
}
