/*
Theme Name: Fastgist Modern
Theme URI: https://fastgist.com/
Author: Fastgist
Description: A modern, mobile-first news portal theme for Fastgist covering entertainment, finance, sports, and trends.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: fastgist-modern
*/

:root {
  --fg-ink: #111827;
  --fg-muted: #667085;
  --fg-subtle: #f4f6f8;
  --fg-card: #ffffff;
  --fg-line: #e4e7ec;
  --fg-navy: #162452;
  --fg-red: #c83f3a;
  --fg-green: #207a59;
  --fg-gold: #d99a22;
  --fg-shadow: 0 16px 42px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fg-subtle);
  color: var(--fg-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
body.fgm-body { min-width: 320px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg-red); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fgm-wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.fgm-site-header {
  background: #fff;
  border-bottom: 1px solid var(--fg-line);
}
.fgm-masthead {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fgm-brand {
  display: inline-flex;
  flex-direction: column;
}
.fgm-brand__name {
  color: var(--fg-ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .82;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-brand__tagline {
  margin-top: 9px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}
.fgm-primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 900;
}
.fgm-primary-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
}
.fgm-primary-nav a:hover {
  background: #f0f2f6;
}
.fgm-ticker {
  background: var(--fg-navy);
  color: #fff;
}
.fgm-ticker__inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fgm-ticker__label {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: var(--fg-red);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-ticker__links {
  min-width: 0;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.fgm-ticker__links::-webkit-scrollbar { display: none; }
.fgm-ticker__links a {
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 800;
}
.fgm-main { padding: 30px 0 58px; }
.fgm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .76fr);
  gap: 24px;
  align-items: start;
}
.fgm-card,
.fgm-headline-panel,
.fgm-sidebar-panel,
.fgm-empty,
.fgm-page-card {
  background: var(--fg-card);
  border: 1px solid var(--fg-line);
  border-radius: 8px;
}
.fgm-feature {
  overflow: hidden;
  box-shadow: var(--fg-shadow);
}
.fgm-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 36, 82, .92), rgba(200, 63, 58, .76)),
    #dce2ea;
}
.fgm-thumb::after {
  content: "FASTGIST";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  font-weight: 950;
  z-index: 0;
}
.fgm-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fgm-feature .fgm-thumb { aspect-ratio: 16 / 9; }
.fgm-feature__body { padding: 22px; }
.fgm-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #edf3ef;
  color: var(--fg-green);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fgm-feature h1,
.fgm-feature h2 {
  margin: 0;
  max-width: 780px;
  color: var(--fg-ink);
  font-size: clamp(34px, 5vw, 60px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 950;
}
.fgm-feature p {
  max-width: 690px;
  margin: 14px 0 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.55;
}
.fgm-meta {
  margin-top: 12px;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
}
.fgm-headline-panel { padding: 16px; }
.fgm-block-title,
.fgm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.fgm-block-title {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fg-line);
}
.fgm-block-title span,
.fgm-section-head h2 {
  margin: 0;
  color: var(--fg-ink);
  font-weight: 950;
  letter-spacing: 0;
}
.fgm-block-title span {
  font-size: 15px;
  text-transform: uppercase;
}
.fgm-block-title a,
.fgm-section-head a {
  flex: 0 0 auto;
  color: var(--fg-red);
  font-size: 13px;
  font-weight: 950;
}
.fgm-headline {
  border-bottom: 1px solid var(--fg-line);
}
.fgm-headline:last-child { border-bottom: 0; }
.fgm-headline a {
  display: block;
  padding: 14px 0;
}
.fgm-headline small {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-headline strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}
.fgm-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--fg-line);
  border-radius: 8px;
  background: var(--fg-line);
}
.fgm-promise-grid div {
  min-height: 118px;
  padding: 18px;
  background: #fff;
}
.fgm-promise-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--fg-red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-promise-grid strong {
  display: block;
  max-width: 330px;
  font-size: 20px;
  line-height: 1.16;
  font-weight: 950;
}
.fgm-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.fgm-section-head {
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--fg-ink);
}
.fgm-section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}
.fgm-section-head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 700;
}
.fgm-feed-item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fg-line);
}
.fgm-feed-item:first-of-type { padding-top: 0; }
.fgm-feed-item .fgm-thumb,
.fgm-compact-card .fgm-thumb { aspect-ratio: 16 / 9; }
.fgm-feed-item h2,
.fgm-feed-item h3,
.fgm-compact-card h3 {
  margin: 0;
  color: var(--fg-ink);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 950;
}
.fgm-feed-item h2,
.fgm-feed-item h3 { font-size: clamp(22px, 3vw, 32px); }
.fgm-feed-item p {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.5;
}
.fgm-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  margin-top: 34px;
}
.fgm-sidebar-panel { padding: 16px; }
.fgm-sidebar-panel > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--fg-line);
  color: var(--fg-ink);
  font-size: 16px;
  font-weight: 950;
}
.fgm-sidebar-panel > a:last-child { border-bottom: 0; }
.fgm-sidebar-panel--dark {
  background: var(--fg-navy);
  color: #fff;
  border-color: var(--fg-navy);
}
.fgm-sidebar-panel--dark span {
  display: block;
  margin-bottom: 10px;
  color: #f5c45d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-sidebar-panel--dark strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}
.fgm-sidebar-panel--dark a {
  display: inline-flex;
  width: auto;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}
.fgm-ad-unit {
  margin: 24px 0;
  padding: 18px;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
  background: #fff;
  color: var(--fg-ink);
}
.fgm-ad-unit span {
  display: block;
  margin-bottom: 8px;
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-ad-unit strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 950;
}
.fgm-ad-unit p {
  margin: 0 0 12px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.45;
}
.fgm-ad-unit a,
.fgm-newsletter a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--fg-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}
.fgm-ad-unit a:hover,
.fgm-newsletter a:hover {
  color: #fff;
  background: var(--fg-red);
}
.fgm-ad-unit--leaderboard {
  min-height: 96px;
  display: grid;
  align-content: center;
  text-align: center;
}
.fgm-ad-unit--sidebar {
  margin: 0;
}
.fgm-ad-unit--article {
  margin: 34px 0;
}
.fgm-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
  padding: 22px;
  border-radius: 8px;
  background: var(--fg-navy);
  color: #fff;
}
.fgm-newsletter span {
  display: block;
  margin-bottom: 8px;
  color: #f5c45d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-newsletter h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  font-weight: 950;
}
.fgm-newsletter p {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.5;
}
.fgm-newsletter a {
  flex: 0 0 auto;
  background: #fff;
  color: var(--fg-navy);
}
.fgm-newsletter a:hover {
  background: #f5c45d;
  color: var(--fg-ink);
}
.fgm-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.fgm-compact-card {
  min-width: 0;
  overflow: hidden;
}
.fgm-compact-card__body { padding: 14px; }
.fgm-compact-card h3 { font-size: 18px; }
.fgm-archive-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--fg-ink);
}
.fgm-archive-header span {
  display: block;
  margin-bottom: 8px;
  color: var(--fg-red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-archive-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  font-weight: 950;
}
.fgm-archive-header p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.5;
}
.fgm-pagination {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 900;
}
.fgm-pagination .nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fgm-pagination a,
.fgm-pagination span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--fg-line);
  border-radius: 6px;
  background: #fff;
}
.fgm-pagination .current {
  background: var(--fg-navy);
  color: #fff;
  border-color: var(--fg-navy);
}
.fgm-article {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}
.fgm-article__header {
  margin-bottom: 22px;
}
.fgm-article__header h1 {
  margin: 0;
  color: var(--fg-ink);
  font-size: clamp(38px, 6vw, 70px);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 950;
}
.fgm-article__excerpt {
  margin: 16px 0 0;
  color: #475467;
  font-size: 20px;
  line-height: 1.5;
}
.fgm-article__image {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dce2ea;
}
.fgm-article__image img {
  width: 100%;
}
.fgm-article__content {
  color: #202633;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.78;
}
.fgm-article__content figure,
.fgm-article__content .wp-block-image,
.fgm-article__content img {
  display: none !important;
}
.fgm-article__content p { margin: 0 0 1.25em; }
.fgm-article__content a {
  color: var(--fg-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.fgm-article__content h2,
.fgm-article__content h3 {
  margin: 1.4em 0 .55em;
  color: var(--fg-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.08;
  font-weight: 950;
}
.fgm-article__content h2 { font-size: 32px; }
.fgm-article__content h3 { font-size: 25px; }
.fgm-source-box,
.fgm-related {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--fg-line);
  border-radius: 8px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.fgm-source-box strong,
.fgm-related h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--fg-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
}
.fgm-source-box p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}
.fgm-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fgm-related li {
  padding: 11px 0;
  border-bottom: 1px solid var(--fg-line);
}
.fgm-related li:last-child { border-bottom: 0; }
.fgm-related a {
  font-size: 16px;
  font-weight: 950;
}
.fgm-page-card {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px;
}
.fgm-page-card h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 950;
}
.fgm-page-card .entry-content {
  color: #202633;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
}
.fgm-empty {
  padding: 24px;
  color: var(--fg-muted);
}
.fgm-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-ink);
  font-size: 20px;
  font-weight: 950;
}
.fgm-site-footer {
  padding: 28px 0;
  background: #fff;
  border-top: 1px solid var(--fg-line);
}
.fgm-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: var(--fg-muted);
  font-size: 14px;
}
.fgm-footer__inner span {
  display: block;
  margin-top: 5px;
}
.fgm-footer__inner strong {
  color: var(--fg-ink);
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}
.fgm-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px 14px;
  flex-wrap: wrap;
  max-width: 640px;
  font-size: 13px;
  font-weight: 850;
}
@media (max-width: 1020px) {
  .fgm-hero,
  .fgm-content-grid {
    grid-template-columns: 1fr;
  }
  .fgm-sidebar {
    position: static;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fgm-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .fgm-wrap,
  .fgm-article,
  .fgm-page-card {
    width: min(100% - 24px, 1200px);
  }
  .fgm-masthead {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0 14px;
    gap: 14px;
  }
  .fgm-brand__name { font-size: 48px; }
  .fgm-primary-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .fgm-primary-nav::-webkit-scrollbar { display: none; }
  .fgm-primary-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }
  .fgm-ticker__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
    gap: 8px;
  }
  .fgm-main { padding-top: 18px; }
  .fgm-feature__body { padding: 16px; }
  .fgm-feature h1,
  .fgm-feature h2 { font-size: 34px; }
  .fgm-feature p { font-size: 16px; }
  .fgm-promise-grid,
  .fgm-sidebar {
    grid-template-columns: 1fr;
  }
  .fgm-newsletter {
    align-items: flex-start;
    flex-direction: column;
  }
  .fgm-feed-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
  .fgm-feed-item h2,
  .fgm-feed-item h3 { font-size: 20px; }
  .fgm-feed-item p { display: none; }
  .fgm-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .fgm-category-grid { grid-template-columns: 1fr; }
  .fgm-compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .fgm-compact-card__body { padding: 12px; }
  .fgm-compact-card h3 { font-size: 18px; }
  .fgm-article__header h1 { font-size: 36px; }
  .fgm-article__excerpt { font-size: 18px; }
  .fgm-article__content,
  .fgm-page-card .entry-content {
    font-size: 18px;
    line-height: 1.72;
  }
  .fgm-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .fgm-footer-links {
    justify-content: flex-start;
  }
}
@media (max-width: 390px) {
  .fgm-wrap,
  .fgm-article,
  .fgm-page-card {
    width: min(100% - 18px, 1200px);
  }
  .fgm-brand__name { font-size: 40px; }
  .fgm-feature h1,
  .fgm-feature h2 { font-size: 30px; }
  .fgm-feed-item,
  .fgm-compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .fgm-feed-item h2,
  .fgm-feed-item h3,
  .fgm-compact-card h3 {
    font-size: 17px;
  }
}
