/*
Theme Name: Fotbollscompaniet
Template: astra
Version: 1.1.0
Text Domain: fotbollscompaniet
*/

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-500.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

body {
  margin: 0;
  background: #fff;
  color: #3b3b3b;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
}

body :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
  font-family: inherit;
  font-weight: 300;
}

#thrive-header { background: #f2f2f2; }

.fbc-header-inner, .fbc-footer-inner, .fbc-list, .fbc-content {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.fbc-header-inner, .fbc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fbc-header-inner { padding-block: 20px; }
.fbc-footer-inner { padding-block: 50px 20px; }
.fbc-header-inner img { width: 220px; }
.fbc-footer-inner img { width: 160px; }

.fbc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
}

.fbc-nav a {
  color: #2d2d2d;
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.fbc-nav a:hover, .fbc-nav a[aria-current="page"] {
  text-decoration: underline #88b46a 3px;
  text-underline-offset: 5px;
}

.fbc-hero {
  display: grid;
  place-content: center;
  min-height: 400px;
  padding: 30px 20px;
  background: #343f2f url("assets/soccer-news-image.jpg") center / cover no-repeat;
  background-image: linear-gradient(#0006, #0006), var(--fbc-hero-image, url("assets/soccer-news-image.jpg"));
  color: #f8f8f8;
  text-align: center;
}

.fbc-hero h1, .fbc-hero p { color: inherit; margin: 0; }
.fbc-hero h1 { font-size: clamp(34px, 7vw, 54px); margin-bottom: 12px; }
.fbc-hero p { font-size: 18px; }
.fbc-content { max-width: 800px; padding-block: 45px 65px; }
.fbc-content { font-size: 18px; }
.fbc-content :is(h1, h2, h3, h4) { margin-bottom: .55em; }
.fbc-content :is(h2, h3, h4) { margin-top: 1.15em; }
.fbc-content p { margin-bottom: 1.1em; }
.fbc-content img { max-width: 100%; height: auto; }
.fbc-list { padding-block: 50px; }
.fbc-list > :is(h1, h2) { text-align: center; margin-bottom: 25px; }

.fbc-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 20px;
}

.fbc-post-card { background: #f5f5f5; padding: 22px; }
.fbc-post-card :is(h2, h3) { font-size: 1.25rem; margin-bottom: 12px; }
.fbc-post-card a { color: #293a25; }
.fbc-post-card p { margin-bottom: 0; }

@media (max-width: 620px) {
  .fbc-header-inner img { width: min(180px, 40vw); }
  .fbc-header-inner, .fbc-footer-inner { gap: 12px; }
  .fbc-nav { gap: 5px 12px; font-size: .9rem; }
  .fbc-hero { min-height: 320px; }
}
