/* Fonts */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-v15-latin-regular.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/roboto-v20-latin-300.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/roboto-v20-latin-300italic.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-v20-latin-500.woff2') format('woff2'); }

:root {
  --red: #e11b22; --red-light: #e63d43; --blue: #0054a4; --blue-dark: #003f7c;
  --text: #363636; --muted: #6f6f6f; --line: #dedede; --soft: #f5f5f5;
  --w: 1140px; --gap: 15px; --head: 65px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 10px); }
body { margin: 0; padding-top: var(--head); color: var(--text); background: #fff; font: 300 17px/1.6 Roboto, Arial, sans-serif; }
img, iframe, video { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus { color: var(--blue); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); font-weight: 300; line-height: 1.25; }
strong, b { font-weight: 500; }
.container { max-width: var(--w); margin: 0 auto; padding: 0 var(--gap); }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 var(--gap); }
.center { text-align: center; }
.screen-reader-text, .skip-link { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed !important; z-index: 2000; top: 0; left: 0; width: auto; height: auto; clip: auto; padding: .5rem 1rem; background: #fff; }
.btn { display: inline-block; background: var(--red); color: #fff; font: 400 13px/1.5 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: .03em; padding: 12px 30px 11px; transition: background-color .3s ease; }
.btn:hover, .btn:focus { background: var(--blue-dark); color: #fff; text-decoration: none; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1015; height: var(--head); background: var(--blue); box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.header-inner { position: relative; display: flex; align-items: center; height: var(--head); }
.logo { position: absolute; top: 0; left: var(--gap); z-index: 1017; display: flex; flex-direction: column; justify-content: center; width: 265px; height: 92px; padding: 0 18px; background: #fff; box-shadow: 0 1px 7px -2px rgba(0, 0, 0, .3); text-align: center; }
.logo:hover { text-decoration: none; }
.logo-name { font: 400 31px/1.1 Montserrat, sans-serif; color: var(--red); letter-spacing: .01em; }
.logo-name b { color: var(--blue); font-weight: 400; }
.logo-tag { display: block; margin-top: 4px; border-top: 1px solid var(--blue); padding-top: 4px; font-size: 11px; line-height: 1.3; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.primary-nav { margin-left: calc(265px + 25px); }
.primary-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li > a { display: block; height: var(--head); line-height: var(--head); padding: 0 18px; color: #fff; font-size: 17px; font-weight: 400; }
.primary-nav .menu > li > a:hover, .primary-nav .current-menu-item > a { background: var(--blue-dark); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .6); color: #fff; font-size: 20px; cursor: pointer; }

/* Home: hero, banner, communities, blog, about */
.hero { margin-top: calc(-1 * var(--head)); min-height: 560px; padding: 245px 0 120px; background: #34495e center / cover no-repeat; text-align: center; color: #fff; }
.hero h1 { margin: 0; color: #fff; font: 400 54px/1.15 Montserrat, sans-serif; text-shadow: 1px 2px 3px rgba(0, 0, 0, .5); }
.hero-sub { margin: 14px auto 0; max-width: 760px; font-size: 19px; font-weight: 400; text-shadow: 1px 2px 3px rgba(0, 0, 0, .6); }
.banner { background: var(--blue); color: #fff; font-size: 17px; padding: 15px 0; text-align: center; }
.banner strong { font-weight: 500; }
.banner .btn { margin-left: 10px; }
.communities { display: flex; align-items: stretch; background: var(--blue); color: #fff; }
.communities-img { flex: 0 0 33%; min-height: 560px; background: center / cover no-repeat; }
.communities-list { flex: 1; padding: 60px 50px 50px; }
.communities h2 { margin: 0 0 30px; color: #fff; font-size: 36px; }
.communities ul { columns: 3; column-gap: 30px; margin: 0; padding: 0; list-style: none; }
.communities li { padding: 6px 0; break-inside: avoid; font-size: 16px; }
.communities a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.communities a:hover { color: #fff; opacity: .8; }
.home-blog { padding: 60px 0; }
.home-blog h2, .related h2 { margin: 0 0 45px; font-size: 36px; text-align: center; }
.blog-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.blog-items-3 { grid-template-columns: repeat(3, 1fr); }
.blog-items-2 { grid-template-columns: repeat(2, 1fr); }
.about { position: relative; padding-bottom: 40px; }
.about-bg { height: 450px; background: center / cover no-repeat; }
.about-box { position: relative; max-width: var(--w); margin: -145px auto 10px; padding: 40px 55px; background: #fff; box-shadow: -35px -40px 40px -60px rgba(0, 0, 0, .5), 35px -40px 40px -60px rgba(0, 0, 0, .5); }
.about-box h2:first-child { margin-top: 0; font-size: 38px; }

/* Cards */
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.card-image { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-info { flex: 1; padding: 15px 18px 5px; }
.card-cat { margin: 0 0 4px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.card-title { margin: 0 0 8px; font-size: 19px; font-weight: 400; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--red); }
.card-excerpt { margin: 0; font-size: 15px; color: var(--muted); }
.card-meta { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Inner pages */
.site-main > .container, .site-main > article.container { padding-top: 35px; padding-bottom: 50px; }
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.breadcrumb { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumb span { margin: 0 4px; }
.breadcrumb a { display: inline-block; padding: 4px 0; }
.entry-title, .page-title { margin: 0 0 12px; font-size: 34px; }
.entry-meta { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.entry-content { line-height: 1.7; }
.entry-content h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 6px 10px; }
.entry-post { max-width: var(--w); }
.subpages { margin: 30px 0 0; padding: 20px 25px; background: var(--soft); list-style: none; columns: 2; }
.subpages li { padding: 4px 0; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 15px; }
.related { margin-top: 40px; }
.side-col .box { margin-bottom: 30px; border: 1px solid var(--line); }
.blog-nav h3 { margin: 14px 18px 6px; font-size: 14px; font-weight: 500; }
.blog-nav ul { list-style: none; margin: 0; padding: 0 18px 8px; font-size: 14px; line-height: 1.5; }
.blog-nav li { padding: 3px 0; }
.blog-nav a { display: inline-block; padding: 2px 0; color: var(--red); }
.box-title { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 16px; font-weight: 500; }
.two-col, .side-posts { margin: 0; padding: 12px 18px; list-style: none; font-size: 15px; }
.two-col li, .side-posts li { padding: 6px 0; }
.side-posts span { display: block; color: var(--muted); font-size: 13px; }
.archive-header { margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.pagination .page-numbers { display: inline-block; min-width: 44px; min-height: 44px; line-height: 44px; text-align: center; border: 1px solid var(--line); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.search-form { display: flex; gap: 8px; margin: 1rem 0 2rem; }
.search-form input[type=search] { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); font: inherit; }
.search-form button, .search-form input[type=submit] { min-height: 44px; padding: 0 22px; border: 0; background: var(--red); color: #fff; font: 400 13px Montserrat, sans-serif; text-transform: uppercase; cursor: pointer; }

/* Footer */
.site-footer { margin-top: 20px; padding: 55px 0 25px; border-top: 4px solid var(--red); background: var(--blue); color: rgba(255, 255, 255, .85); font-size: 15px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 30px; }
.site-footer h3 { margin: 0 0 12px; color: var(--red-light); font: 400 16px/1.3 Montserrat, sans-serif; text-transform: uppercase; }
.footer-list, .footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-list li { padding: 3px 0; }
.site-footer a { color: rgba(255, 255, 255, .9); }
.site-footer a:hover { color: #fff; }
.copyright { margin: 45px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .7); font-size: 13px; }
.copyright p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1100px) {
  .blog-items { grid-template-columns: repeat(2, 1fr); }
  .communities ul { columns: 2; }
}
@media (max-width: 991px) {
  :root { --head: 64px; }
  .logo { position: static; width: auto; height: var(--head); padding: 0 12px; background: none; box-shadow: none; text-align: left; }
  .logo-name { color: #fff; font-size: 24px; }
  .logo-name b { color: #fff; }
  .logo-tag { display: none; }
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; top: var(--head); left: 0; right: 0; margin: 0; background: var(--blue-dark); }
  .primary-nav.open { display: block; }
  .primary-nav .menu { flex-direction: column; }
  .primary-nav .menu > li > a { height: auto; line-height: 1.4; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
  .hero { min-height: 0; padding: 150px 0 90px; }
  .hero h1 { font-size: 38px; }
  .communities { display: block; }
  .communities-img { display: none; }
  .communities-list { padding: 45px 20px; }
  .layout { grid-template-columns: 1fr; }
  .cards, .blog-items-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-col-wide { grid-column: 1 / -1; }
  .about-box { margin: -120px 15px 10px; padding: 30px 25px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 17px; }
  .banner .btn { display: block; width: 160px; margin: 10px auto 0; }
  .communities h2, .home-blog h2, .related h2 { font-size: 27px; }
  .communities ul { columns: 2; column-gap: 16px; }
  .communities li { font-size: 15px; }
  .blog-items, .blog-items-3, .blog-items-2, .cards { grid-template-columns: 1fr; }
  .entry-title, .page-title { font-size: 28px; }
  .about-bg { height: 300px; }
  .about-box h2:first-child { font-size: 28px; }
  .footer-cols { grid-template-columns: 1fr; }
  .subpages { columns: 1; }
}
