/*
Theme Name: Disability Case Support News
Theme URI: https://news.getdisabilitycasesupport.com
Author: Letter Seven LLC
Description: Custom theme matching the Disability Case Support parent site visual identity. Built for the news subdomain so users perceive a single seamless brand.
Version: 1.0.0
License: Proprietary
Text Domain: gdc-news
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1a3a6b;
  --navy-dark: #122a52;
  --navy-light: #2a4e8f;
  --blue-accent: #2076d4;
  --blue-btn: #1a6dc7;
  --blue-btn-hover: #1559a8;
  --gold: #e8a020;
  --gold-dark: #c8881a;
  --text-dark: #1a1a2e;
  --text-mid: #3d4966;
  --text-light: #6b7a99;
  --bg-light: #f4f7fc;
  --bg-white: #ffffff;
  --red-dq: #c0392b;
  --green-ok: #27ae60;
  --border: #d0d9ec;
  --shadow-sm: 0 2px 10px rgba(18,42,82,0.07);
  --shadow-md: 0 8px 32px rgba(18,42,82,0.10);
  --shadow-lg: 0 16px 48px rgba(18,42,82,0.14);
  --radius: 8px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-btn); }
a:hover { color: var(--blue-btn-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER (mirrors parent: navy-dark with logo + blue bottom border) ─── */
.site-header {
  background: var(--navy-dark);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 3px solid var(--blue-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header a.logo { display: inline-block; line-height: 0; }
.site-header img { height: 52px; width: auto; display: inline-block; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 60px 0 64px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero h1 em,
.page-hero h1 .accent,
.page-hero h1 span { font-style: normal; color: var(--gold); }
.page-hero .meta {
  margin-top: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
}

/* ─── MAIN CONTENT WRAP ─── */
.main { padding: 56px 0 72px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

/* ─── ARTICLE / POST CONTENT ─── */
.article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.article h1.article-title {
  font-family: 'Merriweather', serif;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.article-featured {
  margin: 0 -44px 32px;
  overflow: hidden;
}
.article-featured img { width: 100%; }

.article .entry-content > * { margin-bottom: 20px; }
.article .entry-content h2 {
  font-family: 'Merriweather', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 14px;
}
.article .entry-content h3 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 10px;
}
.article .entry-content h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 8px;
}
.article .entry-content p,
.article .entry-content li {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-dark);
}
.article .entry-content ul,
.article .entry-content ol { padding-left: 24px; }
.article .entry-content li { margin-bottom: 8px; }
.article .entry-content a { color: var(--blue-btn); text-decoration: underline; text-underline-offset: 3px; }
.article .entry-content a:hover { color: var(--blue-btn-hover); }
.article .entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  font-family: 'Merriweather', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--text-mid);
}
.article .entry-content img,
.article .entry-content figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px auto;
}
.article .entry-content figcaption {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 8px;
}
.article .entry-content code {
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.article .entry-content pre {
  background: var(--bg-light);
  padding: 18px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.article .entry-content th,
.article .entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.article .entry-content th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--navy);
}

/* ─── POST LIST ─── */
.post-list { display: grid; gap: 24px; }
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-accent);
}
.post-card h2 {
  font-family: 'Merriweather', serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.post-card h2 a { color: var(--text-dark); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue-btn); }
.post-card p { color: var(--text-mid); font-size: 15px; margin-bottom: 16px; }
.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-btn);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card .read-more:hover { color: var(--blue-btn-hover); }
.post-card .read-more::after { content: '→'; transition: transform 0.2s; }
.post-card .read-more:hover::after { transform: translateX(3px); }

/* ─── SIDEBAR ─── */
.sidebar { position: sticky; top: 90px; display: grid; gap: 22px; }
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.widget-title {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; }
.widget li { margin-bottom: 10px; font-size: 14px; }
.widget a { color: var(--text-mid); text-decoration: none; }
.widget a:hover { color: var(--blue-btn); }

.cta-widget {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.cta-widget h3 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #fff;
}
.cta-widget p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.cta-widget .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
}
.cta-widget .btn-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  color: #fff;
}

/* ─── PAGINATION ─── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--blue-btn); color: #fff; border-color: var(--blue-btn); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ─── SEARCH FORM ─── */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--blue-accent); border-color: var(--blue-accent); }
.search-form button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.search-form button:hover { background: var(--blue-btn); }

/* ─── WP CORE BLOCK WIDGETS ─── */
.widget .wp-block-heading,
.widget h2.wp-block-heading,
.widget .widgettitle {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.widget .wp-block-search { display: block; }
.widget .wp-block-search__label {
  font-family: 'Merriweather', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: block;
}
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text-dark);
}
.widget .wp-block-search__input:focus { outline: 2px solid var(--blue-accent); border-color: var(--blue-accent); }
.widget .wp-block-search__button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.widget .wp-block-search__button:hover { background: var(--blue-btn); }
.widget .wp-block-categories,
.widget .wp-block-archives,
.widget .wp-block-latest-posts,
.widget .wp-block-page-list {
  list-style: none; padding: 0; margin: 0;
}
.widget .wp-block-categories li,
.widget .wp-block-archives li,
.widget .wp-block-latest-posts li,
.widget .wp-block-page-list li { margin-bottom: 10px; font-size: 14px; }
.widget .wp-block-categories a,
.widget .wp-block-archives a,
.widget .wp-block-latest-posts a,
.widget .wp-block-page-list a { color: var(--text-mid); text-decoration: none; }
.widget .wp-block-categories a:hover,
.widget .wp-block-archives a:hover,
.widget .wp-block-latest-posts a:hover,
.widget .wp-block-page-list a:hover { color: var(--blue-btn); }

/* ─── FOOTER (mirrors parent) ─── */
.site-footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--blue-accent);
  padding: 32px 24px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.8;
}
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .article { padding: 32px 24px; }
  .article-featured { margin: 0 -24px 24px; }
  .page-hero { padding: 44px 0 50px; }
  .page-hero h1 { font-size: 28px; }
  .article h1.article-title { font-size: 26px; }
}
@media (max-width: 768px) {
  .main { padding: 36px 0 56px; }
  .post-card { padding: 24px 20px; }
  .post-card h2 { font-size: 20px; }
}
@media (max-width: 480px) {
  .article { padding: 24px 18px; }
  .article-featured { margin: 0 -18px 20px; }
  .article .entry-content p,
  .article .entry-content li { font-size: 16px; }
}
