/*
Theme Name: Find a Hypnotist Blog
Theme URI: https://findahypnotist.co.za/blog/
Description: Child theme of Twenty Twenty-Five that gives the Find a Hypnotist blog the same look as the directory site, with contributor names and dates on every article.
Author: Find a Hypnotist
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.6
Text Domain: fah-blog
*/

:root {
  --fah-navy: #211D3C;
  --fah-blue: #1E7FC1;
  --fah-gold: #F5C518;
  --fah-paper-alt: #F5F7FA;
  --fah-border: #E1E5EB;
  --fah-text: #26272B;
  --fah-muted: #5B6270;
}

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
body { background: #fff; color: var(--fah-text); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* Header */
.fah-header { background: #fff; border-bottom: 1px solid var(--fah-border); }
.fah-wrap { max-width: 1140px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fah-logo { display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none; font-family: "Playfair Display", Georgia, serif; font-size: 22px; line-height: 1; }
.fah-logo .l-find { color: var(--fah-blue); border: 1.5px solid var(--fah-blue); padding: 4px 8px; border-radius: 3px; font-weight: 600; }
.fah-logo .l-a { color: var(--fah-blue); font-style: italic; }
.fah-logo .l-hyp { background: var(--fah-blue); color: #fff; padding: 5px 9px; border-radius: 3px; font-weight: 600; }
.fah-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.fah-nav a { color: var(--fah-navy); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.fah-nav a:hover, .fah-nav a.active { border-bottom-color: var(--fah-gold); }
.fah-nav a.fah-cta { background: var(--fah-gold); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; }
.fah-nav a.fah-cta:hover { filter: brightness(0.95); }

/* Banner (blog index + single posts) */
.fah-hero { background: linear-gradient(135deg, #211D3C 0%, #2E2858 100%); color: #fff; padding: 64px 24px 56px; }
.fah-hero-inner { max-width: 1140px; margin: 0 auto; }
.fah-eyebrow { color: var(--fah-gold); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.fah-hero h1, .fah-hero .wp-block-post-title, .fah-hero .wp-block-query-title { color: #fff; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 16px; max-width: 860px; }
.fah-hero p { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 720px; margin: 0; line-height: 1.6; }

/* Byline: "By Name · date" */
.fah-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0; font-size: 0.9rem; color: var(--fah-muted); margin: 0; }
.fah-byline > * { margin: 0 !important; }
.fah-byline .wp-block-post-author-name, .fah-byline .wp-block-post-author-name a, .fah-byline .wp-block-post-author__byline, .fah-byline .wp-block-post-author__name { color: inherit; font-weight: 600; text-decoration: none; }
.fah-byline .wp-block-post-author { display: flex; flex: 0 0 auto; width: auto; align-items: center; }
.fah-byline .wp-block-post-author__content { margin: 0; display: flex; flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 5px; white-space: nowrap; }
.fah-byline .wp-block-post-author__byline { font-size: inherit !important; opacity: 1 !important; font-weight: 400; margin: 0 !important; flex: 0 0 auto !important; width: auto !important; }
.fah-byline .wp-block-post-author__name { font-size: inherit; flex: 0 0 auto !important; width: auto !important; }
.fah-byline .wp-block-post-author::after { content: "\00b7"; margin: 0 9px; opacity: 0.7; font-weight: 700; }
.fah-hero .fah-byline { color: rgba(255,255,255,0.8); margin-top: 18px; font-size: 1rem; }
.fah-hero .fah-byline a { color: #fff; }

/* Blog grid */
.fah-blog-list { max-width: 1140px; margin: 0 auto; padding: 60px 24px 80px; }
.fah-blog-list .wp-block-post-template { gap: 30px; }
.blog-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fah-border); border-top: 4px solid var(--fah-blue); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(33,29,60,0.07); }
.blog-card .wp-block-post-featured-image { margin: 0; }
.blog-card .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; display: block; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card .wp-block-post-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; line-height: 1.3; margin: 0 0 10px; }
.blog-card .wp-block-post-title a { color: var(--fah-navy); text-decoration: none; }
.blog-card .wp-block-post-title a:hover { color: var(--fah-blue); }
.blog-card .fah-byline { margin-bottom: 12px; width: 100%; align-self: stretch; }
.blog-card .wp-block-post-excerpt { margin: 0; color: var(--fah-muted); font-size: 0.95rem; line-height: 1.6; }
.blog-card .wp-block-post-excerpt__more-link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--fah-blue); text-decoration: none; }
@media (max-width: 900px) { .fah-blog-list .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .fah-blog-list .wp-block-post-template { grid-template-columns: 1fr !important; } }
.wp-block-query-pagination { margin-top: 40px; justify-content: center; gap: 14px; }

/* Single post */
.fah-article { max-width: 760px; margin: 0 auto; padding: 48px 24px 70px; }
.fah-back { display: inline-block; margin-bottom: 26px; color: var(--fah-blue); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.fah-article .wp-block-post-featured-image { margin: 0 0 34px; }
.fah-article .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; border-radius: 12px; display: block; }
.fah-article .wp-block-post-content { font-size: 1.05rem; line-height: 1.8; }
.fah-article .wp-block-post-content h2 { font-family: "Playfair Display", Georgia, serif; color: var(--fah-navy); margin-top: 2.2rem; }
.fah-article .wp-block-post-content h3, .fah-article .wp-block-post-content h4 { color: var(--fah-navy); margin-top: 1.8rem; }
.fah-article .wp-block-post-content a { color: var(--fah-blue); overflow-wrap: anywhere; }
.fah-article .wp-block-post-content blockquote { border-left: 4px solid var(--fah-gold); margin: 1.6rem 0; padding: 4px 0 4px 20px; color: var(--fah-muted); }

/* "In this article" jump list (long articles) */
.fah-toc { background: var(--fah-paper-alt); border: 1px solid var(--fah-border); border-left: 4px solid var(--fah-blue); border-radius: 10px; padding: 18px 22px; margin: 0 0 32px; }
.fah-toc-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; font-weight: 600; color: var(--fah-navy); margin: 0 0 8px; }
.fah-toc ol { margin: 0; padding-left: 20px; font-size: 0.98rem; line-height: 1.8; }
.fah-toc a { color: var(--fah-blue); text-decoration: none; }
.fah-toc a:hover { text-decoration: underline; }
.fah-article .wp-block-post-content h2[id] { scroll-margin-top: 24px; }

/* Comments */
.fah-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--fah-border); }
.fah-comments .wp-block-comments-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; color: var(--fah-navy); }
.fah-comments .comment-reply-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; color: var(--fah-navy); margin: 0 0 12px; }
.fah-comments .wp-block-comment-template { list-style: none; padding: 0; margin: 0 0 30px; }
.fah-comments .wp-block-comment-template li { padding: 18px 0; border-bottom: 1px solid var(--fah-border); }
.fah-comments .wp-block-comment-author-name { font-weight: 600; color: var(--fah-navy); }
.fah-comments .wp-block-comment-date { font-size: 0.85rem; color: var(--fah-muted); }
.fah-comments .comment-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.fah-comments .comment-form input[type=text],
.fah-comments .comment-form input[type=email],
.fah-comments .comment-form input[type=url],
.fah-comments .comment-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--fah-border); border-radius: 10px; font: inherit; }
.fah-comments .comment-form .submit { background: var(--fah-gold); color: var(--fah-navy); border: 0; border-radius: 999px; padding: 13px 28px; font-weight: 600; cursor: pointer; }
.fah-comments .comment-notes, .fah-moderation-note { font-size: 0.88rem; color: var(--fah-muted); line-height: 1.6; }
.fah-comments .comment-form-cookies-consent { font-size: 0.88rem; color: var(--fah-muted); }
.fah-comments .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Submit-an-article band */
.fah-cta-band { background: var(--fah-paper-alt); border-top: 1px solid var(--fah-border); padding: 56px 24px; text-align: center; }
.fah-cta-band h2 { font-family: "Playfair Display", Georgia, serif; color: var(--fah-navy); font-size: 1.7rem; margin: 0 0 12px; }
.fah-cta-band p { max-width: 640px; margin: 0 auto 22px; color: var(--fah-muted); line-height: 1.6; }
.fah-btn { display: inline-block; background: var(--fah-gold); color: var(--fah-navy); border-radius: 999px; padding: 13px 28px; font-weight: 600; text-decoration: none; }

/* Footer */
.fah-footer { background: var(--fah-navy); color: rgba(255,255,255,0.75); padding: 56px 24px 26px; }
.fah-footer-inner { max-width: 1140px; margin: 0 auto; }
.fah-footer-grid { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.fah-footer-grid > div:first-child { flex: 1 1 280px; }
.fah-footer .fah-logo .l-find { color: #fff; border-color: #fff; }
.fah-footer .fah-logo .l-a { color: #fff; }
.fah-footer .fah-logo .l-hyp { background: #fff; color: var(--fah-navy); }
.fah-footer p { font-size: 14px; line-height: 1.6; margin: 14px 0 0; max-width: 320px; }
.fah-footer h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.9px; margin: 0 0 16px; }
.fah-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fah-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; }
.fah-footer a:hover { color: #fff; }
.fah-footer-bottom { padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
