:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f3f6fc;
  --text: #172033;
  --muted: #667086;
  --primary: #0b5fff;
  --primary-soft: #eaf1ff;
  --border: #dfe5f2;
  --shadow: 0 10px 30px rgba(18, 35, 74, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --content: 860px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.wrap { width: min(calc(100% - 32px), var(--wrap)); margin: 0 auto; }
.site-main { padding: 24px 0 64px; }
.site-header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
}
.header-inner, .footer-bottom, .meta-row, .section-heading.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-branding { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.site-logo img { max-height: 56px; width: auto; }
.site-title { font-size: 1.4rem; font-weight: 800; display: block; }
.site-tagline { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.main-navigation ul, .site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.main-navigation a { font-weight: 600; }
.header-search { padding: 0 0 16px; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 14px 18px;
  font-size: 1rem;
}
.search-submit, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.menu-toggle { display: none; }
.tgh-breadcrumb { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.tgh-breadcrumb span { margin: 0 8px; }
.hero, .post-card, .widget, .single-article, .category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 28px;
  margin-bottom: 36px;
}
.hero-content h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin: 10px 0 14px; }
.eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.meta-row { color: var(--muted); font-size: .92rem; justify-content: flex-start; flex-wrap: wrap; }
.placeholder {
  min-height: 220px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #dfe7fb, #eff3ff);
}
.section-heading { margin: 0 0 18px; }
.section-heading h1, .section-heading h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-heading p { margin: 0; color: var(--muted); }
.category-grid, .archive-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.archive-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card, .post-card { overflow: hidden; }
.category-card { padding: 22px; }
.category-card h3 { margin-top: 0; font-size: 1.25rem; }
.category-card span { color: var(--primary); font-weight: 700; }
.card-thumb img,
.single-thumbnail img,
.hero-media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-body { padding: 18px; }
.card-title { font-size: 1.3rem; line-height: 1.3; margin: 8px 0 10px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}
.single-layout {
  width: min(100%, var(--content));
  margin: 0 auto;
}
.single-article { padding: 30px; }
.single-header h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.2; margin-bottom: 22px; }
.single-thumbnail { margin: 18px 0 26px; overflow: hidden; border-radius: var(--radius-sm); }
.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; line-height: 1.3; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content .wp-block-group, .entry-content .wp-block-columns { margin: 0 0 1.1em; }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: #f3f7ff;
  border-radius: var(--radius-sm);
}
.entry-content pre,
.entry-content code,
.entry-content .wp-block-code {
  max-width: 100%;
  overflow-x: auto;
}
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content .wp-block-gallery,
.entry-content .wp-block-table,
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text,
.entry-content .wp-block-group,
.entry-content .wp-block-columns {
  margin-top: 1.4em;
  margin-bottom: 1.4em;
}
.post-tags a {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.widget { padding: 22px; margin-bottom: 20px; }
.widget-title { margin-top: 0; margin-bottom: 14px; }
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.88);
  padding: 54px 0 24px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.latest-posts, .quick-links, .category-section { margin-bottom: 42px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1024px) {
  .category-grid, .archive-grid, .archive-grid.three-col, .footer-grid, .hero, .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
  }
  .header-inner { flex-wrap: wrap; }
  .main-navigation { display: none; width: 100%; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; padding-bottom: 14px; }
  .category-grid, .archive-grid, .archive-grid.three-col, .footer-grid, .hero { grid-template-columns: 1fr; }
  .search-form, .section-heading.split, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .single-article { padding: 20px; }
}
