/*
Theme Name: Fairgrounds TV
Theme URI: https://fairgroundstv.com/
Author: Fairgrounds TV
Description: A professional American legal, HR, EEO, mediation, and education television network.
Version: 8.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fairgrounds-tv
*/

:root {
  --fgtv-navy: #092f4f;
  --fgtv-navy-2: #123f5d;
  --fgtv-teal: #006f75;
  --fgtv-teal-bright: #15979a;
  --fgtv-gold: #b98b24;
  --fgtv-gold-light: #e2c36d;
  --fgtv-coral: #c59023;
  --fgtv-cream: #faf8f2;
  --fgtv-sky: #edf6f5;
  --fgtv-white: #ffffff;
  --fgtv-text: #12314a;
  --fgtv-muted: #587083;
  --fgtv-line: #d9e7e8;
  --fgtv-width: 1240px;
  --fgtv-radius: 8px;
  --fgtv-shadow: 0 14px 38px rgba(8,47,79,.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--fgtv-text); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
img { 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; }
.fgtv-wrap { width: min(calc(100% - 36px), var(--fgtv-width)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--fgtv-gold); background: rgba(255,255,255,.98); backdrop-filter: blur(18px); box-shadow: 0 5px 22px rgba(9,47,79,.07); }
.admin-bar .site-header { top: 32px; }
.fgtv-network-bar { color: #fff; background: var(--fgtv-teal); font-size: .76rem; font-weight: 800; }
.fgtv-network-bar__inner { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.fgtv-network-bar a { color: var(--fgtv-gold-light); text-decoration: none; }
.fgtv-network-bar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fgtv-network-bar__label { margin-right: auto; color: #c8d8e2; text-transform: uppercase; letter-spacing: .1em; font-size: .67rem; }
.site-header__inner { min-height: 94px; display: flex; align-items: center; gap: 30px; }
.site-branding, .custom-logo-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; text-decoration: none; color: var(--fgtv-navy); font-weight: 950; letter-spacing: -.04em; font-size: 1.26rem; }
.site-branding__mark { display: grid; place-items: center; width: 45px; height: 45px; border: 3px solid var(--fgtv-gold); border-radius: 50%; color: var(--fgtv-navy); background: var(--fgtv-white); font-size: .68rem; letter-spacing: -.03em; }
.custom-logo { display: block; max-height: 58px; width: auto; }
.fgtv-header-logo { display: block; width: 78px; height: 78px; object-fit: contain; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: clamp(12px,1.5vw,24px); list-style: none; padding: 0; margin: 0; }
.main-navigation a { position: relative; color: var(--fgtv-navy); text-decoration: none; font-weight: 800; font-size: .86rem; white-space: nowrap; }
.main-navigation a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 3px; background: var(--fgtv-gold); transition: right .2s ease; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--fgtv-teal); }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { right: 0; }

.fgtv-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 0 24px; border: 2px solid transparent; border-radius: 4px; color: #fff; background: var(--fgtv-teal); box-shadow: 0 8px 20px rgba(0,111,117,.16); font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.fgtv-button:hover { transform: translateY(-1px); background: var(--fgtv-navy); box-shadow: 0 12px 25px rgba(8,47,79,.18); }
.fgtv-button--gold, .fgtv-button--donate { color: var(--fgtv-navy); background: var(--fgtv-gold-light); box-shadow: 0 9px 24px rgba(197,144,35,.2); }
.fgtv-button--ghost { color: var(--fgtv-navy); background: #fff; border-color: rgba(8,47,79,.18); box-shadow: none; }
.fgtv-button--ghost:hover { color: #fff; border-color: var(--fgtv-navy); }
.fgtv-text-link { color: var(--fgtv-teal); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.fgtv-hero { position: relative; overflow: hidden; min-height: 690px; display: flex; align-items: center; padding: 88px 0; color: #fff; background-color: #06182b; background-image: linear-gradient(90deg,rgba(3,18,36,.99) 0%,rgba(5,29,52,.96) 34%,rgba(5,29,52,.64) 55%,rgba(5,29,52,.06) 82%),url("assets/images/adra-rma-tv-american-legal-hero-v1.png"); background-position: center center; background-size: cover; }
.fgtv-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(0,0,0,.08),transparent 55%,rgba(0,0,0,.25)); }
.fgtv-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48%; height: 5px; background: var(--fgtv-gold); }
.fgtv-hero__grid { position: relative; z-index: 1; display: block; }
.fgtv-hero__content { max-width: 735px; padding: 34px 38px 36px 0; }
.fgtv-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--fgtv-teal); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; }
.fgtv-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fgtv-gold-light); box-shadow: 0 0 0 5px rgba(226,195,109,.15); }
.fgtv-hero .fgtv-kicker { color: var(--fgtv-gold-light); }
.fgtv-hero h1 { max-width: 780px; margin: 20px 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem,5.8vw,6rem); font-weight: 700; line-height: .96; letter-spacing: -.045em; text-shadow: 0 3px 22px rgba(0,0,0,.35); }
.fgtv-gradient-text { color: var(--fgtv-navy); }
.fgtv-hero h1 em { display: block; color: var(--fgtv-gold-light); font-style: normal; }
.fgtv-hero p { max-width: 685px; margin: 25px 0 30px; color: #d7e1e8; font-size: clamp(1.05rem,2vw,1.24rem); }
.fgtv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fgtv-hero .fgtv-button { border-color: rgba(255,255,255,.2); }
.fgtv-hero .fgtv-button--gold { border-color: var(--fgtv-gold-light); }
.fgtv-hero .fgtv-button--ghost { color: #fff; background: rgba(4,26,46,.58); border-color: rgba(255,255,255,.4); }
.fgtv-hero__credentials { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(226,195,109,.52); color: #e6edf1; font-size: .74rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.fgtv-hero__credentials span { padding: 3px 17px; border-right: 1px solid rgba(255,255,255,.3); }
.fgtv-hero__credentials span:first-child { padding-left: 0; }
.fgtv-hero__credentials span:last-child { border-right: 0; }
.fgtv-now-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(8,47,79,.1); border-radius: 28px; background: #fff; box-shadow: var(--fgtv-shadow); }
.fgtv-now-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg,var(--fgtv-teal),var(--fgtv-gold),var(--fgtv-coral)); }
.fgtv-now-card__label { color: var(--fgtv-coral); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 950; }
.fgtv-now-card h2 { margin: 13px 0 8px; color: var(--fgtv-navy); font-size: 2rem; line-height: 1.08; }
.fgtv-now-card p { margin: 0 0 20px; color: var(--fgtv-muted); font-size: 1rem; }
.fgtv-now-card__question { margin: 24px -30px -30px; padding: 20px 30px; color: #fff; background: var(--fgtv-navy); }
.fgtv-now-card__question strong { display: block; font-size: 1.12rem; }
.fgtv-now-card__question a { color: var(--fgtv-gold-light); font-weight: 900; }

.fgtv-ticker { display: none; }
.fgtv-ticker__track { display: flex; width: max-content; gap: 30px; padding: 13px 0; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 950; animation: fgtv-ticker 24s linear infinite; }
.fgtv-ticker__track span::after { content: "✦"; margin-left: 30px; color: var(--fgtv-teal); }
@keyframes fgtv-ticker { to { transform: translateX(-50%); } }

.fgtv-engage-strip { border-top: 1px solid rgba(255,255,255,.16); border-bottom: 4px solid var(--fgtv-gold); background: var(--fgtv-navy); color: #fff; }
.fgtv-engage-strip__inner { display: grid; grid-template-columns: repeat(3,1fr); }
.fgtv-engage-strip a { display: flex; min-height: 116px; align-items: center; gap: 15px; padding: 25px 28px; border-right: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.fgtv-engage-strip a:last-child { border-right: 0; }
.fgtv-engage-strip a:hover { background: rgba(0,111,117,.28); }
.fgtv-engage-strip__icon { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border: 1px solid var(--fgtv-gold); border-radius: 0; color: var(--fgtv-gold-light); background: transparent; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; }
.fgtv-engage-strip strong { display: block; font-size: 1.05rem; }
.fgtv-engage-strip span { color: #bed0da; font-size: .88rem; }

.fgtv-player-section { padding: 72px 0; background: #fff; }
.fgtv-player-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 26px; align-items: stretch; }
.fgtv-player-shell { overflow: hidden; border: 1px solid rgba(9,47,79,.14); border-radius: 8px; background: #031522; box-shadow: var(--fgtv-shadow); }
.fgtv-player { position: relative; aspect-ratio: 16/9; background: radial-gradient(circle at center,#164b68,#031522 68%); }
.fgtv-player iframe, .fgtv-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fgtv-player__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #c4d6df; }
.fgtv-player__empty strong { display: block; color: #fff; font-size: clamp(1.6rem,4vw,3.5rem); }
.fgtv-player-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; color: #fff; background: var(--fgtv-navy); }
.fgtv-player-aside { display: flex; flex-direction: column; justify-content: center; padding: 38px; border: 1px solid rgba(0,111,117,.15); border-radius: 8px; background: var(--fgtv-sky); }
.fgtv-player-aside h2 { margin: 8px 0 12px; color: var(--fgtv-navy); font-size: 2rem; line-height: 1.05; }
.fgtv-player-aside p { color: var(--fgtv-muted); }

.fgtv-section { padding: 82px 0; }
.fgtv-section--white { background: #fff; }
.fgtv-section--panel { background: var(--fgtv-sky); }
.fgtv-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.fgtv-section-heading h2 { margin: 0; color: var(--fgtv-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem,4.5vw,4rem); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.fgtv-section-heading p { max-width: 530px; margin: 0; color: var(--fgtv-muted); }
.fgtv-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.fgtv-card { overflow: hidden; border: 1px solid var(--fgtv-line); border-top: 4px solid var(--fgtv-gold); border-radius: var(--fgtv-radius); background: #fff; box-shadow: 0 8px 24px rgba(8,47,79,.06); transition: box-shadow .2s ease; }
.fgtv-card:hover { box-shadow: var(--fgtv-shadow); }
.fgtv-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg,var(--fgtv-teal),#80d9d1 55%,var(--fgtv-gold-light)); }
.fgtv-card__image:empty::after { content: "ADRA RMA TV"; display: grid; width: 100%; height: 100%; place-items: center; color: #fff; font-weight: 950; letter-spacing: .13em; }
.fgtv-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fgtv-card:hover .fgtv-card__image img { transform: scale(1.04); }
.fgtv-card__body { padding: 23px; }
.fgtv-card__eyebrow { color: var(--fgtv-teal); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 950; }
.fgtv-card h2, .fgtv-card h3 { margin: 8px 0; color: var(--fgtv-navy); font-size: 1.35rem; line-height: 1.15; }
.fgtv-card h2 a, .fgtv-card h3 a { text-decoration: none; }
.fgtv-card p { color: var(--fgtv-muted); margin-bottom: 0; }

.fgtv-schedule { display: grid; gap: 11px; }
.fgtv-schedule-item { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 22px; padding: 20px 24px; border: 1px solid var(--fgtv-line); border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(8,47,79,.05); }
.fgtv-schedule-item time { color: var(--fgtv-teal); font-weight: 950; }
.fgtv-schedule-item strong { color: var(--fgtv-navy); font-size: 1.08rem; }
.fgtv-schedule-item strong a { text-decoration: none; }
.fgtv-tag { padding: 6px 11px; border-radius: 999px; color: var(--fgtv-navy); background: var(--fgtv-gold-light); font-size: .7rem; font-weight: 900; text-transform: uppercase; }

.fgtv-connect-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.fgtv-connect-card { min-height: 250px; padding: 30px; border: 1px solid var(--fgtv-line); border-top: 5px solid var(--fgtv-gold); border-radius: 8px; color: var(--fgtv-text); background: #fff; box-shadow: 0 8px 24px rgba(8,47,79,.05); }
.fgtv-connect-card:nth-child(2), .fgtv-connect-card:nth-child(3) { color: var(--fgtv-text); background: #fff; }
.fgtv-connect-card .fgtv-kicker { color: var(--fgtv-teal); }
.fgtv-connect-card h3 { color: var(--fgtv-navy); }
.fgtv-connect-card a { color: var(--fgtv-teal); }
.fgtv-connect-card h3 { margin: 50px 0 10px; font-size: 1.7rem; line-height: 1.05; }
.fgtv-connect-card p { margin: 0 0 20px; opacity: .9; }
.fgtv-connect-card a { font-weight: 950; text-underline-offset: 4px; }

.fgtv-network { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.fgtv-network a { display: flex; min-height: 78px; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--fgtv-line); border-bottom: 4px solid var(--fgtv-gold); border-radius: 5px; color: var(--fgtv-navy); background: #fff; font-weight: 900; text-decoration: none; }
.fgtv-network a:hover { border-color: var(--fgtv-teal); color: var(--fgtv-teal); transform: translateY(-2px); }

.fgtv-support { text-align: center; padding: 95px 0; color: #fff; background: linear-gradient(120deg,var(--fgtv-navy),var(--fgtv-teal)); }
.fgtv-support h2 { max-width: 830px; margin: 0 auto 18px; color: #fff; font-size: clamp(2.5rem,6vw,5.5rem); line-height: .94; letter-spacing: -.055em; }
.fgtv-support p { max-width: 670px; margin: 0 auto 28px; color: #dceef0; }

.site-main { min-height: 55vh; }
.fgtv-content { padding: 74px 0; }
.fgtv-content article:not(.fgtv-card) { max-width: 850px; margin: auto; }
.entry-title { color: var(--fgtv-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem,6vw,5rem); line-height: 1; letter-spacing: -.04em; }
.entry-content { font-size: 1.08rem; }
.entry-content a { color: var(--fgtv-teal); }
.entry-content .wp-block-button__link { color: #fff; background: var(--fgtv-teal); border-radius: 999px; font-weight: 900; }
.entry-content h2 { margin-top: 1.8em; color: var(--fgtv-navy); font-size: clamp(1.7rem,4vw,2.7rem); line-height: 1.05; }
.entry-content li { margin-bottom: .55em; }
.site-footer { padding: 46px 0; color: #c8d8e2; background: #06253e; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.fgtv-footer-network { display: flex; flex-wrap: wrap; gap: 12px 24px; width: 100%; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.fgtv-footer-network strong { color: var(--fgtv-gold-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1080px) {
  .main-navigation { display: none; }
  .site-header__inner > .fgtv-button { margin-left: auto; }
}
@media (max-width: 900px) {
  .fgtv-player-layout { grid-template-columns: 1fr; }
  .fgtv-hero { min-height: 650px; background-position: 62% center; }
  .fgtv-hero::before { background: rgba(3,18,36,.68); }
  .fgtv-hero__content { max-width: 690px; }
  .fgtv-grid, .fgtv-connect-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fgtv-network { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fgtv-engage-strip__inner { grid-template-columns: 1fr; }
  .fgtv-engage-strip a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 46px; }
  .fgtv-network-bar__inner { min-height: 44px; justify-content: center; gap: 10px; font-size: .7rem; }
  .fgtv-network-bar__label { display: none; }
  .site-header__inner { min-height: 70px; }
  .custom-logo { max-width: 135px; max-height: 50px; }
  .fgtv-header-logo { width: 56px; height: 56px; }
  .site-branding__name { display: none; }
  .site-header__inner > .fgtv-button { min-height: 42px; padding-inline: 15px; font-size: .82rem; }
  .fgtv-hero { min-height: 640px; padding: 52px 0; background-position: 65% center; }
  .fgtv-hero h1 { font-size: clamp(2.85rem,15vw,4.5rem); }
  .fgtv-hero__content { padding-right: 0; }
  .fgtv-hero__credentials span { width: 50%; padding: 6px 10px 6px 0; border-right: 0; }
  .fgtv-grid, .fgtv-connect-grid, .fgtv-network { grid-template-columns: 1fr; }
  .fgtv-section-heading, .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .fgtv-schedule-item { grid-template-columns: 1fr; gap: 5px; }
  .fgtv-schedule-item .fgtv-tag { justify-self: start; }
}
