/*
Theme Name: Trusted Health Guide
Template: generatepress
Description: Light, fast child theme for trustedhealthguide.in (GeneratePress).
Version: 1.0.0
Text Domain: thg
*/

:root {
  --thg-primary: #0f766e;
  --thg-primary-dark: #115e59;
  --thg-accent: #15803d;
  --thg-ink: #1f2937;
  --thg-muted: #6b7280;
  --thg-line: #e5e7eb;
  --thg-soft: #f0fdfa;
  --thg-warn-bg: #fffbeb;
  --thg-warn-line: #f59e0b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--thg-ink);
  font-size: 18px;
  line-height: 1.75;
  background: #fff;
}
a { color: var(--thg-primary); }
a:hover, a:focus { color: var(--thg-primary-dark); }

h1, h2, h3, h4 { color: #0b1f1d; line-height: 1.3; font-weight: 700; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.entry-content table { font-size: .95rem; }
.entry-content th { background: var(--thg-soft); }

/* Header */
.site-header { border-bottom: 1px solid var(--thg-line); }
.main-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.main-title a { color: #0b1f1d; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.main-title a::before {
  content: "";
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--thg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10 4h4v6h6v4h-6v6h-4v-6H4v-4h6z'/%3E%3C/svg%3E") center/18px no-repeat;
  flex: 0 0 auto;
}
.site-description { color: var(--thg-muted); font-size: .9rem; }
.main-navigation .main-nav ul li a { font-weight: 600; font-size: 15px; }

.main-navigation .main-nav ul li a { padding-left: 14px; padding-right: 14px; }
.inside-header { gap: 1rem; }

/* Sidebar */
.widget-area .widget { padding: 1.25rem; border: 1px solid var(--thg-line); border-radius: 10px; }
.widget-area .widget-title, .widget-area .wp-block-search__label { font-size: 1.05rem; font-weight: 700; }
.widget-area ul li { font-size: .95rem; line-height: 1.45; margin-bottom: .6rem; }
.widget-area a { text-decoration: none; }

/* Buttons */
.wp-block-search__button, .search-form .search-submit { background: var(--thg-primary) !important; color: #fff !important; border: 0; }
.button, button, input[type="submit"], .wp-block-button__link {
  background: var(--thg-primary); color: #fff; border-radius: 8px; border: 0;
}
.button:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background: var(--thg-primary-dark); color: #fff;
}

/* Article trust line (author / reviewer / updated) */
.thg-trust {
  display: flex; flex-wrap: wrap; gap: .35rem 1.25rem;
  font-size: .9rem; color: var(--thg-muted);
  border-top: 1px solid var(--thg-line); border-bottom: 1px solid var(--thg-line);
  padding: .6rem 0; margin: .75rem 0 1.5rem;
}
.thg-trust strong { color: var(--thg-ink); font-weight: 600; }
.thg-trust .thg-reviewed { color: var(--thg-accent); font-weight: 600; }
.thg-trust .thg-reviewed::before { content: "\2714\00a0"; }

/* Key points box: add class "thg-keypoints" to a Group block */
.thg-keypoints {
  background: var(--thg-soft); border-left: 4px solid var(--thg-primary);
  padding: 1rem 1.25rem; border-radius: 6px; margin: 1.5rem 0;
}
.thg-keypoints ul { margin-bottom: 0; }
.entry-content .thg-keypoints { padding: 1rem 1.25rem !important; }
.thg-keypoints > *, .thg-keypoints .wp-block-group__inner-container > * { margin-top: 0; }
.thg-keypoints h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
@media (max-width: 768px) { .entry-title { font-size: 1.9rem; } }

/* Disclaimer under every article */
.thg-disclaimer {
  background: var(--thg-warn-bg); border: 1px solid #fde68a; border-left: 4px solid var(--thg-warn-line);
  border-radius: 6px; padding: .9rem 1.1rem; font-size: .9rem; line-height: 1.6; margin: 2rem 0 1rem;
}
.thg-disclaimer strong:first-child { display: block; margin-bottom: .2rem; }

/* Home page */
.thg-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border-radius: 14px; padding: 2.5rem 1.5rem; text-align: center; margin-bottom: 2rem;
}
.thg-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.thg-hero p { color: #374151; max-width: 640px; margin: 0 auto 1.25rem; }
.thg-hero .wp-block-search { max-width: 560px; margin: 0 auto; }
.thg-hero .wp-block-search__input { border-radius: 8px 0 0 8px; border: 1px solid #cbd5e1; padding: .7rem .9rem; }
.thg-hero .wp-block-search__button { border-radius: 0 8px 8px 0; margin-left: 0; }

.thg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.thg-cats li { margin: 0; }
.thg-cats a {
  display: block; padding: .9rem 1rem; border: 1px solid var(--thg-line); border-radius: 10px;
  font-weight: 600; color: var(--thg-ink); text-decoration: none; background: #fff; line-height: 1.4;
}
.thg-cats a:hover { border-color: var(--thg-primary); color: var(--thg-primary); }
.thg-cats .count { display: block; font-weight: 400; font-size: .8rem; color: var(--thg-muted); }

.thg-latest .wp-block-post { border: 1px solid var(--thg-line); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
.thg-latest .wp-block-post-title { font-size: 1.1rem; margin: .3rem 0; }
.thg-latest .wp-block-post-title a { color: #0b1f1d; text-decoration: none; }
.thg-latest .wp-block-post-excerpt { font-size: .95rem; color: #4b5563; }
.thg-latest .wp-block-post-terms { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

.home .entry-header, .home .page-header { display: none; }

/* Blog/archive cards */
.blog .inside-article, .archive .inside-article, .search .inside-article { border: 1px solid var(--thg-line); border-radius: 10px; }

/* Ad slots: breathing room so ads never look like content */
ins.adsbygoogle { margin: 1.5rem auto !important; }

/* Footer */
.site-info { background: #0b1f1d; color: #cbd5e1; font-size: .875rem; }
.site-info a { color: #e2e8f0; }
.thg-footer-links { margin: 0 0 .35rem; }
.thg-footer-links a { margin: 0 .5rem; display: inline-block; }

@media (max-width: 768px) {
  body { font-size: 17px; }
  .thg-hero { padding: 1.75rem 1rem; }
}
