/* =========================================================
   FGCSS News Hub v1.0.2
   Reliable dynamic news page and post cards
   ========================================================= */

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

#latest-news {
  scroll-margin-top: 120px;
}

html body .fgcss-news-hub-page,
html body .fgcss-news-hub-page *,
html body .fgcss-news-hub-category-page,
html body .fgcss-news-hub-category-page * {
  box-sizing: border-box !important;
}

/* Hero */
html body .fgcss-news-hub-hero,
html body .fgcss-news-hub-category-hero {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 120px 24px 110px !important;
  background:
    radial-gradient(circle at top left, rgba(217, 182, 93, 0.26), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 32%),
    linear-gradient(135deg, #101820 0%, #172635 58%, #0f171f 100%) !important;
  color: #ffffff !important;
  text-align: center !important;
}

html body .fgcss-news-hub-hero-inner,
html body .fgcss-news-hub-category-hero-inner {
  max-width: 920px !important;
  margin: 0 auto !important;
}

html body .fgcss-news-hub-eyebrow {
  margin: 0 0 18px !important;
  color: #d9b65d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-hero h1,
html body .fgcss-news-hub-category-hero h1 {
  margin: 0 0 26px !important;
  color: #ffffff !important;
  font-size: clamp(2.6rem, 5.5vw, 5rem) !important;
  line-height: 1.03 !important;
  font-weight: 500 !important;
}

html body .fgcss-news-hub-hero h1 span {
  display: block !important;
}

html body .fgcss-news-hub-hero p:not(.fgcss-news-hub-eyebrow),
html body .fgcss-news-hub-category-hero p:not(.fgcss-news-hub-eyebrow) {
  max-width: 760px !important;
  margin: 0 auto !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 1.12rem !important;
  line-height: 1.78 !important;
}

html body .fgcss-news-hub-hero-actions {
  margin-top: 34px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

html body .fgcss-news-hub-btn {
  display: inline-block !important;
  padding: 15px 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-btn-primary {
  background: #d9b65d !important;
  color: #101820 !important;
}

html body .fgcss-news-hub-btn-secondary {
  background: rgba(255,255,255,0.10) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
}

/* Intro */
html body .fgcss-news-hub-intro {
  padding: 84px 24px !important;
  background:
    radial-gradient(circle at top right, rgba(217, 182, 93, 0.14), transparent 34%),
    linear-gradient(180deg, #f8f5ee 0%, #ffffff 100%) !important;
}

html body .fgcss-news-hub-intro-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 28px !important;
  align-items: stretch !important;
}

html body .fgcss-news-hub-intro-card {
  padding: 42px 38px !important;
  border-radius: 36px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16, 24, 32, 0.08) !important;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.12) !important;
}

html body .fgcss-news-hub-card-eyebrow,
html body .fgcss-news-hub-submit-card span {
  display: block !important;
  margin: 0 0 16px !important;
  color: #9a742f !important;
  text-transform: uppercase !important;
  letter-spacing: 0.14em !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-intro-card h2 {
  margin: 0 0 20px !important;
  color: #101820 !important;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.08 !important;
  font-weight: 500 !important;
}

html body .fgcss-news-hub-intro-card p:not(.fgcss-news-hub-card-eyebrow) {
  margin: 0 !important;
  color: #4f5963 !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

html body .fgcss-news-hub-submit-card {
  padding: 36px 32px !important;
  border-radius: 36px !important;
  background:
    radial-gradient(circle at bottom right, rgba(217, 182, 93, 0.24), transparent 36%),
    linear-gradient(135deg, #101820 0%, #172635 58%, #0f171f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.18) !important;
}

html body .fgcss-news-hub-submit-card h3 {
  margin: 0 0 16px !important;
  color: #ffffff !important;
  font-size: 1.65rem !important;
  line-height: 1.18 !important;
}

html body .fgcss-news-hub-submit-card p {
  margin: 0 0 26px !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

html body .fgcss-news-hub-submit-btn {
  display: inline-block !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  background: #d9b65d !important;
  color: #101820 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}

/* Category cards */
html body .fgcss-news-hub-categories {
  padding: 100px 24px !important;
  background:
    radial-gradient(circle at bottom left, rgba(217, 182, 93, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f5ee 100%) !important;
}

html body .fgcss-news-hub-categories-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
}

html body .fgcss-news-hub-section-heading {
  max-width: 760px !important;
  margin: 0 auto 50px !important;
  text-align: center !important;
}

html body .fgcss-news-hub-section-heading p {
  margin: 0 0 16px !important;
  color: #9a742f !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-section-heading h2 {
  margin: 0 !important;
  color: #101820 !important;
  font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
  line-height: 1.08 !important;
  font-weight: 500 !important;
}

html body .fgcss-news-hub-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

html body .fgcss-news-hub-category-card {
  display: block !important;
  padding: 32px 28px !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16, 24, 32, 0.08) !important;
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.09) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

html body .fgcss-news-hub-category-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 26px 70px rgba(16, 24, 32, 0.15) !important;
  border-color: rgba(217, 182, 93, 0.45) !important;
}

html body .fgcss-news-hub-category-card * {
  text-decoration: none !important;
}

html body .fgcss-news-hub-category-card span {
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(217, 182, 93, 0.18) !important;
  color: #9a742f !important;
  font-weight: 900 !important;
  margin-bottom: 22px !important;
}

html body .fgcss-news-hub-category-card h3 {
  margin: 0 0 14px !important;
  color: #101820 !important;
  font-size: 1.35rem !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-category-card p {
  margin: 0 0 22px !important;
  color: #59636d !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
}

html body .fgcss-news-hub-category-card strong {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #9a742f !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-category-card strong::after {
  content: "\2192" !important;
  font-size: 1rem !important;
}

/* Latest intro */
html body .fgcss-news-hub-latest-intro {
  padding: 92px 24px 54px !important;
  background:
    radial-gradient(circle at top left, rgba(217, 182, 93, 0.13), transparent 34%),
    linear-gradient(180deg, #f8f5ee 0%, #ffffff 100%) !important;
  text-align: center !important;
}

html body .fgcss-news-hub-latest-intro-inner {
  max-width: 820px !important;
  margin: 0 auto !important;
}

html body .fgcss-news-hub-final-eyebrow {
  margin: 0 0 16px !important;
  color: #9a742f !important;
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-latest-intro h2 {
  margin: 0 0 20px !important;
  color: #101820 !important;
  font-size: clamp(2.2rem, 4.8vw, 4rem) !important;
  line-height: 1.06 !important;
  font-weight: 500 !important;
}

html body .fgcss-news-hub-latest-intro p:not(.fgcss-news-hub-final-eyebrow) {
  max-width: 680px !important;
  margin: 0 auto !important;
  color: #59636d !important;
  font-size: 1.06rem !important;
  line-height: 1.72 !important;
}

/* Post grid */
html body .fgcss-news-hub-post-section {
  padding: 0 24px 100px !important;
  background: #ffffff !important;
}

html body .fgcss-news-hub-post-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
}

html body .fgcss-news-hub-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

html body .fgcss-news-hub-post-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 0 !important;
  border-radius: 30px !important;
  background: #ffffff !important;
  border: 1px solid rgba(16, 24, 32, 0.08) !important;
  box-shadow: 0 18px 50px rgba(16, 24, 32, 0.09) !important;
  overflow: hidden !important;
}

html body .fgcss-news-hub-post-image {
  display: flex !important;
  width: 100% !important;
  height: 240px !important;
  align-items: center !important;
  justify-content: center !important;
  background:
    radial-gradient(circle at top left, rgba(217, 182, 93, 0.16), transparent 38%),
    #f8f5ee !important;
  text-decoration: none !important;
}

html body .fgcss-news-hub-post-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body .fgcss-news-hub-post-image-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body .fgcss-news-hub-post-image-placeholder span {
  color: #d9b65d !important;
  letter-spacing: 0.18em !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-post-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 26px 26px 28px !important;
}

html body .fgcss-news-hub-post-body time {
  margin: 0 0 10px !important;
  color: #9a742f !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

html body .fgcss-news-hub-post-body h3 {
  margin: 0 0 14px !important;
  color: #101820 !important;
  font-size: 1.38rem !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-post-body h3 a {
  color: #101820 !important;
  text-decoration: none !important;
}

html body .fgcss-news-hub-post-body h3 a:hover {
  color: #9a742f !important;
}

html body .fgcss-news-hub-post-body p {
  margin: 0 0 24px !important;
  color: #59636d !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
}

html body .fgcss-news-hub-read-more {
  display: inline-block !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  padding: 13px 22px !important;
  border-radius: 999px !important;
  background: #d9b65d !important;
  color: #101820 !important;
  text-decoration: none !important;
  font-weight: 900 !important;
}

html body .fgcss-news-hub-pagination {
  margin-top: 46px !important;
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

html body .fgcss-news-hub-pagination a,
html body .fgcss-news-hub-pagination span {
  padding: 12px 18px !important;
  border-radius: 999px !important;
  background: #f8f5ee !important;
  color: #101820 !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

html body .fgcss-news-hub-pagination .is-current {
  background: #d9b65d !important;
}

html body .fgcss-news-hub-empty {
  padding: 42px 34px !important;
  border-radius: 30px !important;
  background: #f8f5ee !important;
  text-align: center !important;
}

html body .fgcss-news-hub-empty h3 {
  margin: 0 0 12px !important;
  color: #101820 !important;
}

html body .fgcss-news-hub-empty p {
  margin: 0 !important;
  color: #59636d !important;
}

/* Tablet */
@media (max-width: 980px) {
  html body .fgcss-news-hub-intro-inner {
    grid-template-columns: 1fr !important;
  }

  html body .fgcss-news-hub-category-grid,
  html body .fgcss-news-hub-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 680px) {
  html body .fgcss-news-hub-hero,
  html body .fgcss-news-hub-category-hero {
    padding: 72px 20px 76px !important;
  }

  html body .fgcss-news-hub-hero-inner,
  html body .fgcss-news-hub-category-hero-inner {
    max-width: 320px !important;
  }

  html body .fgcss-news-hub-eyebrow {
    font-size: 0.7rem !important;
    letter-spacing: 0.13em !important;
  }

  html body .fgcss-news-hub-hero h1,
  html body .fgcss-news-hub-category-hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }

  html body .fgcss-news-hub-hero p:not(.fgcss-news-hub-eyebrow),
  html body .fgcss-news-hub-category-hero p:not(.fgcss-news-hub-eyebrow) {
    font-size: 0.98rem !important;
    line-height: 1.72 !important;
  }

  html body .fgcss-news-hub-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  html body .fgcss-news-hub-btn,
  html body .fgcss-news-hub-submit-btn {
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .fgcss-news-hub-intro,
  html body .fgcss-news-hub-categories,
  html body .fgcss-news-hub-latest-intro,
  html body .fgcss-news-hub-post-section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  html body .fgcss-news-hub-intro {
    padding-top: 56px !important;
    padding-bottom: 66px !important;
  }

  html body .fgcss-news-hub-intro-card,
  html body .fgcss-news-hub-submit-card,
  html body .fgcss-news-hub-category-card {
    padding: 30px 24px !important;
    border-radius: 28px !important;
  }

  html body .fgcss-news-hub-categories {
    padding-top: 76px !important;
    padding-bottom: 76px !important;
  }

  html body .fgcss-news-hub-category-grid,
  html body .fgcss-news-hub-post-grid {
    grid-template-columns: 1fr !important;
  }

  html body .fgcss-news-hub-latest-intro {
    padding-top: 76px !important;
    padding-bottom: 44px !important;
  }

  html body .fgcss-news-hub-post-section {
    padding-bottom: 80px !important;
  }

  html body .fgcss-news-hub-post-image {
    height: 220px !important;
  }

  html body .fgcss-news-hub-post-card {
    border-radius: 28px !important;
  }
}


/* =========================================================
   v1.0.1 Category subpage layout polish
   ========================================================= */

html body .fgcss-news-hub-category-page {
  background: #ffffff !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero {
  padding: 92px 24px 96px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero-inner {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero h1 {
  margin: 0 0 22px !important;
  padding: 0 !important;
  font-size: clamp(2.8rem, 5vw, 4.6rem) !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  text-wrap: balance !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero p:not(.fgcss-news-hub-eyebrow) {
  margin: 0 auto !important;
  max-width: 720px !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-hero-actions {
  margin-top: 30px !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-post-section {
  padding: 72px 24px 110px !important;
  background:
    radial-gradient(circle at top left, rgba(217, 182, 93, 0.10), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f5ee 100%) !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-post-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

html body .fgcss-news-hub-category-page .fgcss-news-hub-post-card {
  height: 100% !important;
}

@media (max-width: 980px) {
  html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero {
    padding: 78px 22px 82px !important;
  }

  html body .fgcss-news-hub-category-page .fgcss-news-hub-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero {
    padding: 64px 20px 70px !important;
  }

  html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero-inner {
    max-width: 340px !important;
  }

  html body .fgcss-news-hub-category-page .fgcss-news-hub-category-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.85rem) !important;
    line-height: 1.08 !important;
  }

  html body .fgcss-news-hub-category-page .fgcss-news-hub-post-section {
    padding: 52px 18px 82px !important;
  }

  html body .fgcss-news-hub-category-page .fgcss-news-hub-post-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}
