@import url("https://fonts.googleapis.com/css?family=Catamaran:400,500,600,700|Source+Sans+Pro:400,600,700");

.blog-page {
  background: #f4f7fb;
  color: #2c3440;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4,
.blog-page h5,
.blog-page h6 {
  font-family: "Catamaran", sans-serif;
  text-transform: none;
  letter-spacing: 0;
  color: #13213b;
}

.blog-page section {
  padding: 0;
}

.blog-page .text-center {
  display: block;
  text-align: center;
}

.top-bar {
  background: #167aed;
  color: #fff;
  padding: 8px 0;
  font-size: 15px;
  text-align: center;
}

.main-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
  padding: 10px 0;
  position: relative;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10px;
  position: relative;
}

.logo-container {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
}

.blog-page .logo {
  width: auto;
  height: 120px;
  max-height: none;
  display: block;
}

.header-divider {
  display: none;
}

.header-contact {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f8fc;
  padding: 7px 14px;
  border-radius: 22px;
  font-size: 15px;
  color: #243044;
}

.header-contact a {
  color: #167aed;
  font-weight: 700;
  text-decoration: none;
}

.header-contact i,
.top-bar i {
  color: inherit;
}

.header-contact i {
  color: #167aed;
}

.header-quote {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.quote-button,
.blog-page .quote-button:hover {
  background: #167aed;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
}

.quote-button:hover {
  background: #1262c4;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #167aed;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 16px;
}

.main-navbar {
  background: #23272b;
  position: sticky;
  top: 0;
  z-index: 20;
}

.main-navbar .container {
  display: flex;
  justify-content: center;
}

.navbar-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar-menu > li {
  position: relative;
}

.navbar-menu > li > a {
  display: block;
  color: #fff;
  padding: 16px 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.navbar-menu > li > a:hover,
.navbar-menu > li.active > a {
  background: #167aed;
  color: #fff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #23272b;
  min-width: 280px;
  left: 0;
  top: 100%;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu,
.dropdown.open > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: #fff;
  padding: 12px 18px;
  display: block;
  text-decoration: none;
  text-transform: none;
  font-weight: 600;
}

.dropdown-menu li a:hover {
  background: #167aed;
  color: #fff;
}

.page-banner {
  background:
    linear-gradient(rgba(19, 33, 59, 0.72), rgba(19, 33, 59, 0.78)),
    url("../images/commercial.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 64px 16px 52px;
}

.page-banner h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.page-banner p {
  color: #e7eef8;
  max-width: 740px;
  margin: 0 auto;
  font-size: 18px;
}

.crumbs {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crumbs a {
  color: #fff;
  text-decoration: none;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.blog-wrap {
  padding: 42px 0 20px;
}

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

.blog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.blog-tools input[type="search"] {
  flex: 1 1 220px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #243044;
  background: #fff;
}

.filter-btn {
  border: 1px solid #c9d7ea;
  background: #fff;
  color: #13213b;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: #167aed;
  border-color: #167aed;
  color: #fff;
}

.result-count {
  color: #5c6b80;
  margin: 0 0 14px;
  font-size: 14px;
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 33, 59, 0.08);
}

.post-card.featured {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.post-list.is-filtered .post-card,
.post-list.is-filtered .post-card.featured {
  grid-template-columns: 220px minmax(0, 1fr);
}

.post-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.post-card.featured .post-media img {
  min-height: 280px;
}

.post-copy {
  padding: 22px 22px 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #5c6b80;
  font-size: 14px;
  margin: 0 0 8px;
}

.cat {
  color: #167aed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.post-copy h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.post-copy h2 a {
  color: #13213b;
  text-decoration: none;
}

.post-copy h2 a:hover {
  color: #167aed;
}

.post-copy p {
  color: #3d4a5c;
  margin: 0 0 14px;
  font-size: 17px;
}

.more-link {
  color: #167aed;
  font-weight: 700;
  text-decoration: none;
}

.more-link:hover {
  color: #0d5cbf;
}

.empty-note {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  color: #3d4a5c;
  box-shadow: 0 8px 20px rgba(19, 33, 59, 0.06);
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 74px;
}

.side-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(19, 33, 59, 0.08);
}

.side-card h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.side-card p,
.side-card li {
  color: #3d4a5c;
  font-size: 16px;
}

.side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-card li + li {
  margin-top: 8px;
}

.side-card a {
  color: #167aed;
  text-decoration: none;
  font-weight: 700;
}

.side-card a:hover {
  color: #0d5cbf;
}

.call-card {
  background: #13213b;
}

.call-card h2,
.call-card p {
  color: #fff;
}

.call-card a.phone {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
}

.blog-page section.estimate-bar {
  background: #13213b;
  margin-top: 36px;
  padding: 28px 0;
}

.estimate-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.estimate-bar h2,
.estimate-bar p {
  color: #fff;
  margin: 0;
}

.estimate-bar h2 {
  font-size: 26px;
}

.estimate-bar a {
  color: #ff5a5a;
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
}

.estimate-bar img {
  max-width: 180px;
  height: auto;
}

.article-layout {
  padding-top: 36px;
}

.article-body {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px 36px;
  box-shadow: 0 10px 28px rgba(19, 33, 59, 0.08);
}

.article-kicker {
  color: #167aed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.article-body h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.byline {
  color: #5c6b80;
  margin: 0 0 18px;
}

.hero-photo {
  width: 100%;
  border-radius: 12px;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 22px;
}

.article-body p,
.article-body li {
  color: #2c3440;
  font-size: 18px;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 28px;
  margin: 28px 0 10px;
}

.article-body a {
  color: #167aed;
  font-weight: 700;
  text-decoration: none;
}

.article-body a:hover {
  color: #0d5cbf;
}

.article-list {
  margin: 0 0 16px 1.2rem;
  padding: 0;
  list-style: disc;
}

.article-list li {
  margin: 0 0 8px;
}

.callout {
  background: #f4f8fc;
  border-left: 4px solid #167aed;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}

.callout strong {
  display: block;
  color: #13213b;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
}

.related {
  margin-top: 22px;
}

.related h2 {
  margin-bottom: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.related a {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(19, 33, 59, 0.08);
  color: #13213b;
  font-weight: 700;
}

.related img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.related span {
  display: block;
  padding: 12px 14px 14px;
}

.footer {
  background: #111;
  color: #fff;
  padding-top: 36px;
  margin-top: 0;
}

.footer p,
.footer li,
.footer a {
  color: #fff;
}

.footer .foote_bottom_ul_amrc li a {
  color: #ff4d4d;
}

.footer .headin5_amrc {
  color: #ff4d4d;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-logo {
  max-width: 160px;
  height: auto;
}

@media (max-width: 991px) {
  .blog-tools input[type="search"] {
    flex: 1 1 100%;
  }

  .blog-page .logo {
    height: 84px;
    margin: 0 auto 8px;
  }

  .logo-container,
  .header-quote {
    justify-content: center;
    width: 100%;
  }

  .header-flex {
    flex-direction: column;
    padding-top: 8px;
  }

  .header-divider {
    display: block;
    width: 80%;
    border: 0;
    border-top: 1px solid #e0e7ef;
    margin: 8px auto;
  }

  .header-contact {
    flex-direction: column;
  }

  .quote-button {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar-menu.show {
    display: flex;
  }

  .main-navbar .container {
    display: block;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
  }

  .blog-layout,
  .post-card,
  .post-card.featured,
  .post-list.is-filtered .post-card,
  .post-list.is-filtered .post-card.featured,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .page-banner h1,
  .article-body h1 {
    font-size: 32px;
  }

  .estimate-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .article-body {
    padding: 22px 18px 28px;
  }
}
