/* ==========================================================================
   AffirmedRx News — hand-written stylesheet
   Replaces 17 generated Elementor/WordPress stylesheets (14 <link> per page).
   Design system mined 1:1 from the original rendered output:
     navy #253774 / deep #113075 / primary #253573 / green #4CBB17 / orange #E86B32
     bg #EEF1F4 · display font Figtree · body stack Roboto/-apple-system
   Breakpoints mirror Elementor: desktop >=1025px, tablet <=1024px, mobile <=767px.
   ========================================================================== */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

img { border: 0; max-width: 100%; }

a {
  color: #253573;
  text-decoration: none;
}

ul, ol { margin: 0; padding: 0; }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #333;
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 24px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Site-owner custom rules preserved from the original inline block */
.flex-1 { flex: 1 !important; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: #EEF1F4;
  z-index: 9997;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 23px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo img {
  display: block;
  width: 320px;
  height: 60px;
}

/* Main (horizontal) navigation — desktop only */
.site-nav-main ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.site-nav-main a {
  display: inline-block;
  padding: 5px 0;
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  color: #113075;
  transition: color 0.3s;
}

.site-nav-main a:hover,
.site-nav-main a:focus,
.site-nav-main a[aria-current="page"] {
  color: #4CBB17;
}

/* Burger toggle (tablet + mobile) */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #4CBB17;
  cursor: pointer;
}
.menu-toggle svg {
  display: block;
  width: 37px;
  height: 37px;
  fill: #4CBB17;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Full-width dropdown panel (opened by the toggle) */
.site-nav-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: calc(100% + 38px);
  background: #113075;
  border-radius: 10px;
  list-style: none;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.site-nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.site-nav-dropdown a {
  display: block;
  padding: 15px 30px;
  font-family: "Figtree", sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
}
.site-nav-dropdown li:first-child a { border-radius: 10px 10px 0 0; }
.site-nav-dropdown li:last-child a { border-radius: 0 0 10px 10px; }

@media (max-width: 1024px) {
  .site-nav-main { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 767px) {
  .site-logo img { width: 200px; height: 38px; }
  .site-nav-dropdown { top: calc(100% + 18px); }
}

/* ---------- Shared text block ----------
   Mirrors the owner's custom rule:
   .elementor-widget-text-editor p:last-of-type { margin-block-end: 0 !important; } */
.text-block p { margin: 0 0 12px; }
.text-block p:last-child { margin-bottom: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 540px;
  padding: 60px 15px;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/_assets/84ddd35b3cb6.jpg") top center / cover no-repeat;
}
.hero h1,
.hero .text-block {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 {
  margin: 0 auto;
  font-family: "Figtree", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 120%;
  color: #fff;
}
.hero .text-block {
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 180%;
  color: #fff;
}

@media (max-width: 1024px) {
  .hero { gap: 20px; padding: 50px 15px; }
  .hero h1 { font-size: 36px; }
  .hero .text-block { font-size: 15px; }
  .hero .text-block p { margin-bottom: 10px; }
}
@media (max-width: 767px) {
  .hero { gap: 16px; padding: 40px 15px; }
  .hero h1 { font-size: 30px; }
  .hero .text-block { font-size: 14px; }
  .hero .text-block p { margin-bottom: 8px; }
}

/* ---------- Cards (home press + articles) ---------- */
.cards {
  background: #EEF1F4;
  padding: 60px 15px;
}
.cards-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.card-row {
  display: flex;
  align-items: center;
  width: 100%;
}
.card-row--reverse { flex-direction: row-reverse; }

.card-media { flex: 0 0 50%; width: 50%; }
.card-media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center center;
  border-radius: 20px;
}

.card-body {
  flex: 0 0 50%;
  width: 50%;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-row--reverse .card-body {
  padding-left: 0;
  padding-right: 24px;
}

.card-body h2 {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 130%;
  color: #253774;
}
.card-body h2 a { color: inherit; }

.card-body .text-block {
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 180%;
  color: #000;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  background: #253573;
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  padding: 15px 30px;
  transition: background 0.3s, color 0.3s;
}
.btn:hover, .btn:focus { background: #E86B32; color: #fff; }

@media (max-width: 1024px) {
  .card-media img { height: 290px; border-radius: 18px; }
  .card-body { gap: 14px; padding-left: 20px; }
  .card-row--reverse .card-body { padding-left: 0; padding-right: 20px; }
  .card-body h2 { font-size: 22px; }
  .card-body .text-block { font-size: 15px; }
  .card-body .text-block p { margin-bottom: 10px; }
  .btn { font-size: 15px; }
}
@media (max-width: 767px) {
  .cards { padding: 40px 15px; }
  .cards-inner { gap: 20px; }
  .card-row, .card-row--reverse { flex-direction: column; gap: 20px; }
  .card-media { flex: 0 0 100%; width: 100%; }
  .card-media img { height: 260px; border-radius: 16px; }
  .card-body {
    flex: 0 0 100%;
    width: 100%;
    gap: 12px;
    padding: 0;
  }
  .card-body h2 { font-size: 20px; }
  .card-body .text-block { font-size: 14px; }
  .card-body .text-block p { margin-bottom: 8px; }
  .btn { font-size: 14px; }
}

/* ---------- About ---------- */
.about {
  padding: 0;
  text-align: center;
}
.about h1 {
  margin: 0 0 24px;
  font-family: "Figtree", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 120%;
  color: #253573;
}
.about .text-block {
  max-width: 1140px;
  margin: 0 auto 60px;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 180%;
  color: #000;
}

@media (max-width: 1024px) {
  .about h1 { margin-bottom: 20px; font-size: 36px; }
  .about .text-block { font-size: 15px; }
  .about .text-block p { margin-bottom: 10px; }
}
@media (max-width: 767px) {
  .about h1 { margin-bottom: 16px; font-size: 30px; }
  .about .text-block { font-size: 14px; }
  .about .text-block p { margin-bottom: 8px; }
}

/* ---------- Post (article) ---------- */
.post {
  padding: 60px 15px;
  background: #fff;
}
.post-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post-inner > img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
}
.post h1 {
  margin: 0;
  font-family: "Figtree", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 120%;
  color: #113075;
}
.post-content {
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 180%;
  color: #000;
}
.post-content p { margin: 0 0 0.9rem; }
.post-content h2 {
  margin: 1em 0 0.5em;
  font-family: "Figtree", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 120%;
  color: #253573;
}
.post-content a { color: #253573; }

@media (max-width: 1024px) {
  .post { padding: 50px 15px; }
  .post-inner > img { height: 380px; }
  .post h1 { font-size: 36px; }
}
@media (max-width: 767px) {
  .post { padding: 40px 15px; }
  .post-inner > img { height: auto; max-height: 300px; }
  .post h1 { font-size: 30px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #253774;
  padding: 0 15px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo img {
  display: block;
  height: 64px;
  width: auto;
}
.copyright {
  margin: 0;
  text-align: center;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 29px;
  color: #fff;
}
.copyright a {
  color: #fff;
  transition: color 0.3s;
}
.copyright a:hover, .copyright a:focus { color: #4CBB17; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.84);
  transition: background-color 0.3s;
}
.social-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: #4CBB17;
}
.social-icon:hover { background: #fff; }

@media (max-width: 1024px) {
  .footer-inner { padding: 45px 0; }
}
@media (max-width: 767px) {
  .footer-inner { padding: 40px 0; }
  .footer-logo img { width: 240px; height: 45px; }
  .copyright { font-size: 14px; line-height: 24px; }
}
