/*
 * SeniorBenefitCheck.com
 *
 * Palette and type carried over from the original "balancedfinance" WordPress
 * theme: navy header (#001144), gold accent (#ffcc33) overridden to the blue
 * (#1e73be) the live site actually used for buttons, grey footer (#ededef),
 * Roboto throughout.
 */

:root {
  --navy: #001144;
  --blue: #1e73be;
  --blue-light: #59a9db;
  --gold: #ffcc33;
  --ink: #202124;
  --muted: #70757e;
  --grey-bg: #ededef;
  --border: #e1e1e1;
  --max-width: 1170px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  color: var(--ink);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.container_narrow {
  max-width: 860px;
}

/* ---------------------------------------------------------------- header */

.header_wrapper {
  background: var(--navy);
  padding: 15px 0;
}

.header_inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 25px;
}

.site_logo {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.site_logo a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
}

.site_logo img {
  display: block;
  width: 250px;
  height: auto;
}

.site_nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
}

.site_nav a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site_nav a:hover,
.site_nav a:focus {
  color: var(--gold);
}

.site_nav .is-current a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------------------------------------------------------------- layout */

.main_wrapper {
  padding: 40px 0 100px;
}

.content_with_sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 50px;
  align-items: start;
}

.content_main {
  min-width: 0;
}

/* ---------------------------------------------------------------- typography */

h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.19;
  text-align: center;
  margin-bottom: 25px;
}

.section_title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  margin-bottom: 30px;
}

.home_intro h3,
.main_wrapper .home_intro h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  margin-top: 20px;
}

.single_blog_content h2,
.legal_content h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin: 30px 0 12px;
}

.single_blog_content h3,
.legal_content h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.single_blog_content h4,
.legal_content h4 {
  font-size: 19px;
  font-weight: 700;
  margin: 22px 0 8px;
}

.single_blog_content p,
.legal_content p,
.home_intro p,
.listing_intro p {
  margin-bottom: 20px;
}

.single_blog_content ul,
.single_blog_content ol,
.legal_content ul,
.legal_content ol {
  margin: 0 0 20px 20px;
}

.single_blog_content li,
.legal_content li {
  margin-bottom: 6px;
}

.single_blog_content a,
.legal_content a {
  color: var(--blue);
}

.single_blog_content img,
.legal_content img {
  height: auto;
  margin: 10px 0 20px;
}

.single_blog_content blockquote,
.legal_content blockquote {
  margin: 0 0 20px;
  padding: 12px 20px;
  border-left: 4px solid var(--blue);
  background: #f7f8fa;
}

.single_blog_content table,
.legal_content table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.single_blog_content th,
.single_blog_content td,
.legal_content th,
.legal_content td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
}

.hero_image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 25px;
  border-radius: 5px;
}

/* ---------------------------------------------------------------- buttons */

.insurance {
  margin-top: 35px;
}

.insurance .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}

a.insurance_button {
  display: block;
  margin-bottom: 30px;
  padding: 17px 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 5px;
}

a.insurance_button:hover,
a.insurance_button:focus {
  color: var(--blue-light);
}

a.read_more_button,
button.read_more_button {
  display: inline-block;
  padding: 9px 25px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 5px;
}

a.read_more_button:hover,
a.read_more_button:focus,
button.read_more_button:hover,
button.read_more_button:focus {
  color: var(--blue-light);
}

/* ---------------------------------------------------------------- article grid */

.blog_section {
  margin-top: 20px;
}

.article_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px 30px;
}

.blog_post {
  display: flex;
  flex-direction: column;
}

.blog_post_thumb {
  display: block;
  margin-bottom: 14px;
}

.blog_post_thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.blog_post h3 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.blog_post h3 a {
  color: #000;
  text-decoration: none;
}

.blog_post h3 a:hover,
.blog_post h3 a:focus {
  color: var(--blue);
}

.blog_post p {
  margin-bottom: 20px;
}

.blog_post a.read_more_button {
  align-self: flex-start;
  margin-top: auto;
}

.empty_listing {
  padding: 20px;
  background: #f7f8fa;
  border-radius: 5px;
}

/* ---------------------------------------------------------------- contact form */

.contact_form_wrap {
  margin: 10px 0 30px;
}

.contact_form {
  max-width: 620px;
  padding: 25px 25px 20px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.form_row {
  margin-bottom: 18px;
}

.form_row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 15px;
}

.form_row .req {
  color: #c0392b;
}

.form_row input,
.form_row textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9ced6;
  border-radius: 5px;
}

.form_row input:focus,
.form_row textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(30, 115, 190, 0.25);
  outline-offset: 0;
}

.form_row textarea {
  min-height: 150px;
  resize: vertical;
}

.form_row.has_error input,
.form_row.has_error textarea {
  border-color: #c0392b;
  background: #fff8f7;
}

.field_error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #c0392b;
}

/* Honeypot: kept in the layout for bots, hidden from people and screen readers. */
.hp_field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin-bottom: 18px;
}

.form_actions {
  margin-bottom: 12px;
}

.form_actions button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--blue);
}

.form_smallprint {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

.form_notice {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 5px;
  border-left: 4px solid;
}

.form_notice p {
  margin: 6px 0 0;
  font-size: 15px;
}

.form_notice--ok {
  background: #eef7ee;
  border-left-color: #2e7d32;
  color: #1b5e20;
}

.form_notice--error {
  background: #fdf0ee;
  border-left-color: #c0392b;
  color: #8e2a1e;
}

/* ---------------------------------------------------------------- sidebar */

.sidebar {
  font-size: 15px;
}

.widget {
  margin-bottom: 30px;
  padding: 20px;
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.widget_title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 2px solid var(--blue);
}

.widget ul {
  list-style: none;
}

.widget_categories li {
  border-bottom: 1px solid var(--border);
}

.widget_categories li:last-child {
  border-bottom: 0;
}

.widget_categories a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.widget_categories a:hover,
.widget_categories a:focus {
  color: var(--blue);
}

.recent_list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recent_list li:last-child {
  border-bottom: 0;
}

.recent_thumb img {
  display: block;
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.recent_title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--ink);
  text-decoration: none;
}

.recent_title:hover,
.recent_title:focus {
  color: var(--blue);
}

.widget_disclosure p {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.footer_wrapper {
  padding: 35px 0;
  background: var(--grey-bg);
}

.footer_wrapper p {
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}

.footer_menu {
  text-align: center;
  list-style: none;
}

.footer_menu li {
  display: inline-block;
}

.footer_menu a {
  display: block;
  margin: 0 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.footer_menu a:hover,
.footer_menu a:focus {
  color: var(--blue);
}

.footer_note {
  max-width: 760px;
  margin: 20px auto 0 !important;
  font-size: 13px;
  line-height: 20px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 991px) {
  .content_with_sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  h1 {
    font-size: 34px;
  }

  .section_title {
    font-size: 26px;
    line-height: 34px;
  }
}

@media (max-width: 767px) {
  .header_inner {
    justify-content: center;
    text-align: center;
  }

  .site_nav ul {
    justify-content: center;
    gap: 2px 16px;
  }

  .site_logo img {
    width: 210px;
  }

  .main_wrapper {
    padding: 30px 0 60px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .article_grid,
  .insurance .row {
    grid-template-columns: minmax(0, 1fr);
  }

  a.insurance_button {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .blog_post h3 {
    font-size: 21px;
  }
}
