/*
Theme Name: Anahata
Theme URI: https://www.anahata.hu/
Description: Az Anahata központ gyerektémája a Twenty Twenty-Five alá. Blokkos (Gutenberg) sablonok, saját színek, Hanken Grotesk betű.
Author: Összkép Design
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: anahata
License: GNU General Public License v2 or later
*/

/* ---------- Alapok ---------- */
:root {
	--anh-zold: var(--wp--preset--color--zold);
	--anh-zold-2: var(--wp--preset--color--zold-2);
	--anh-zsalya: var(--wp--preset--color--zsalya);
	--anh-halvany: var(--wp--preset--color--zold-halvany);
	--anh-kozep: var(--wp--preset--color--zold-kozep);
	--anh-tinta: var(--wp--preset--color--tinta);
	--anh-szoveg: var(--wp--preset--color--szoveg);
	--anh-szurke: var(--wp--preset--color--szurke);
	--anh-vonal: var(--wp--preset--color--vonal);
	--anh-max: 1240px;
}
a { text-underline-offset: 5px; }
.anh-wrap { max-width: var(--anh-max); margin-left: auto !important; margin-right: auto !important; width: 100%; }

/* ---------- Fejléc ---------- */
.anh-utilbar { background: var(--anh-zold); color: #E4ECE6; font-size: 14px; }
.anh-utilbar p { margin: 0; }
.anh-utilbar a { color: #E4ECE6; text-decoration: none; }
.anh-header { border-bottom: 2px solid var(--anh-zold); background: #fff; }
.anh-header .wp-block-site-logo img { width: 52px; height: auto; }
.anh-header .wp-block-site-title { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.anh-header .wp-block-site-title a { color: var(--anh-tinta); text-decoration: none; }
.anh-header .wp-block-navigation a { text-decoration: none; color: var(--anh-tinta); }
.anh-header .wp-block-navigation a:hover,
.anh-header .wp-block-navigation .current-menu-item > a,
.anh-header .wp-block-navigation [aria-current="page"] { color: var(--anh-zold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.anh-header .wp-block-navigation__submenu-container { border: 1px solid var(--anh-vonal) !important; padding: 8px 0; }
.anh-header .wp-block-navigation__submenu-container a { padding: 8px 18px !important; }
@media (max-width: 781px) { .anh-utilbar { display: none; } }

/* ---------- Zöld nyitósáv ---------- */
.anh-hero { position: relative; overflow: hidden; background: var(--anh-zold); color: #fff; }
.anh-hero h1, .anh-hero .wp-block-post-title { color: #fff !important; font-weight: 300; margin: 0; }
.anh-hero p { color: #E4ECE6; }
.anh-hero a { color: #CFDDD3; }
.anh-hero--mandala::after {
	content: ""; position: absolute; right: -90px; top: -40px; width: 600px; height: 670px;
	background: url("assets/img/anahata-logo-feher.png") no-repeat center / contain; opacity: .09; pointer-events: none;
}
.anh-hero > * { position: relative; z-index: 1; }
.anh-hero__lead { font-size: clamp(19px, 1.6vw, 21px); font-weight: 300; line-height: 1.5; max-width: 760px; }
.anh-crumbs { font-size: 15px; color: #CFDDD3; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.anh-crumbs a { color: #CFDDD3; }
.anh-kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.anh-kicker .anh-datum { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .85; }
.anh-tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--anh-zsalya); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }

/* ---------- Szekciófej ---------- */
.anh-sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--anh-zold); }
.anh-sectionhead h2 { margin: 0; }
.anh-sectionhead a { font-size: 17px; font-weight: 500; }
.anh-tint { background: var(--anh-halvany); }

/* ---------- Programlista (főoldal, archívum) ---------- */
.anh-proglist .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.anh-proglist .wp-block-post { border-bottom: 1px solid var(--anh-vonal); margin: 0 !important; }
.anh-tint .anh-proglist .wp-block-post { border-bottom-color: #C9D3CC; }
.anh-progrow { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 30px 0; align-items: flex-start; }
.anh-progrow__datum { flex: 0 0 160px; display: flex; flex-direction: column; }
.anh-progrow__honap { font-size: 32px; font-weight: 300; line-height: 1.1; color: var(--anh-zold); }
.anh-progrow__ido { font-size: 15px; color: var(--anh-szurke); }
.anh-progrow__body { flex: 1 1 460px; min-width: 0; }
.anh-progrow__body .wp-block-post-title { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 8px; }
.anh-progrow__body .wp-block-post-title a { color: var(--anh-tinta); text-decoration: none; }
.anh-progrow__body .wp-block-post-title a:hover { text-decoration: underline; }
.anh-progrow__body .wp-block-post-excerpt { color: var(--anh-szurke); margin: 0; }
.anh-progrow__body .wp-block-post-excerpt__more-link { display: none; }
.anh-progrow__tipus { flex: 0 0 auto; align-self: center; font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--anh-zold); }
.anh-proglist--kompakt .anh-progrow { padding: 18px 0; gap: 6px 32px; }
.anh-proglist--kompakt .anh-progrow__honap { font-size: 20px; }
.anh-proglist--kompakt .wp-block-post-title { font-size: 19px; }

/* ---------- Írások (Gondolatok, Hírek) ---------- */
.anh-postcard { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--anh-vonal); height: 100%; }
.anh-tint .anh-postcard { border-bottom-color: #C9D3CC; }
.anh-postcard .wp-block-post-featured-image { margin: 0 0 6px; }
.anh-postcard .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.anh-postcard .wp-block-post-title { font-size: 24px; font-weight: 400; line-height: 1.25; margin: 0; }
.anh-postcard .wp-block-post-title a { text-decoration: none; }
.anh-postcard .wp-block-post-excerpt { margin: 0; color: var(--anh-szoveg); font-size: 17px; }
.anh-postcard .wp-block-post-excerpt__more-link { font-weight: 600; display: inline-block; margin-top: 8px; }
.anh-postcard--nagy .wp-block-post-title { font-size: clamp(28px, 3vw, 38px); font-weight: 300; }
.anh-postcard--nagy .wp-block-post-featured-image img { aspect-ratio: 16 / 10; }
.anh-postcard--nagy .wp-block-post-excerpt { font-size: 19px; }
.anh-meta { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--anh-zold); margin: 0; }
.anh-meta .anh-datum { font-weight: 500; color: var(--anh-szurke); text-transform: none; letter-spacing: 0; }

/* ---------- Szűrőgombok ---------- */
.anh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.anh-chips a { display: inline-block; padding: 9px 16px; font-size: 16px; font-weight: 500; text-decoration: none; color: var(--anh-zold); border: 1px solid #C9D3CC; background: #fff; }
.anh-chips a:hover { border-color: var(--anh-zold); }
.anh-chips a.is-active { background: var(--anh-zold); border-color: var(--anh-zold); color: #fff; }

/* ---------- Infobox (program, segítő) ---------- */
.anh-infobox { background: var(--anh-zold-2); color: #fff; padding: 26px 26px 28px; box-shadow: 0 14px 34px rgba(22, 33, 26, .18); }
.anh-infobox__cim { font-size: 22px; font-weight: 300; margin: 0 0 10px; }
.anh-infobox dl { margin: 0; }
.anh-infobox dl > div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.anh-infobox dt { font-size: 14px; color: #C5D8CA; }
.anh-infobox dd { margin: 0; font-size: 18px; line-height: 1.4; color: #fff; }
.anh-infobox dd a { color: #fff; }
.anh-infobox .anh-gomb { display: block; margin-top: 18px; padding: 14px 22px; background: #fff; color: var(--anh-zold-2); font-weight: 600; text-align: center; text-decoration: none; }
.anh-infobox .anh-gomb:hover { background: var(--anh-halvany); }
.anh-portre img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }

/* ---------- Szerzői doboz ---------- */
.anh-szerzo { background: var(--anh-halvany); padding: 26px 26px 28px; }
.anh-szerzo__fej { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; }
.anh-szerzo__fej img { width: 56px; height: 56px; object-fit: cover; }
.anh-szerzo__nev { font-size: 20px; font-weight: 500; display: block; }
.anh-szerzo__szerep { font-size: 15px; color: var(--anh-szurke); display: block; }
.anh-szerzo dl { margin: 0; }
.anh-szerzo dl > div { padding: 14px 0; border-top: 1px solid #C9D3CC; }
.anh-szerzo dt { font-size: 14px; color: var(--anh-szurke); }
.anh-szerzo dd { margin: 0; font-size: 18px; }

/* ---------- Almenü (aloldalak) ---------- */
.anh-almenu { display: flex; flex-direction: column; font-size: 17px; }
.anh-almenu__cim { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--anh-zold); padding-bottom: 10px; border-bottom: 2px solid var(--anh-zold); }
.anh-almenu a { padding: 11px 0; border-bottom: 1px solid var(--anh-vonal); color: var(--anh-tinta); text-decoration: none; }
.anh-almenu a:hover { color: var(--anh-zold); }
.anh-almenu a[aria-current="page"] { padding-left: 12px; background: var(--anh-halvany); color: var(--anh-zold); font-weight: 600; }

/* ---------- Kétoszlopos tartalom (bal: doboz, jobb: szöveg) ---------- */
.anh-kethasab { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; }
.anh-kethasab > .anh-oldalsav { flex: 1 1 280px; min-width: 0; max-width: 360px; }
.anh-kethasab > .anh-tartalom { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.anh-oldalsav:empty { display: none; }

/* ---------- Folyószöveg ---------- */
.anh-prose { font-size: 19px; line-height: 1.75; color: var(--anh-szoveg); }
.anh-prose > * { margin-top: 0 !important; margin-bottom: 22px !important; }
.anh-prose h2 { margin-top: 48px !important; margin-bottom: 16px !important; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; color: var(--anh-zold); }
.anh-prose h3 { margin-top: 36px !important; margin-bottom: 10px !important; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--anh-tinta); }
.anh-prose strong, .anh-prose b { color: var(--anh-tinta); font-weight: 600; }
.anh-prose ul, .anh-prose ol { padding-left: 22px; }
.anh-prose li { margin-bottom: 10px; padding-left: 4px; }
.anh-prose li::marker { color: var(--anh-zold); }
.anh-prose blockquote, .anh-prose .wp-block-quote { margin: 36px 0 !important; padding: 32px 36px; background: var(--anh-zold); border-left: 4px solid var(--anh-zsalya); color: #fff; font-size: clamp(24px, 2.6vw, 30px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; }
.anh-prose blockquote p { margin: 0; }
.anh-prose blockquote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #CFDDD3; }
.anh-prose img { max-width: 100%; height: auto; }
.anh-prose .alignleft { float: left; margin: 6px 28px 16px 0 !important; max-width: 45%; }
.anh-prose .alignright { float: right; margin: 6px 0 16px 28px !important; max-width: 45%; }
.anh-prose .aligncenter { display: block; margin-left: auto !important; margin-right: auto !important; }
.anh-prose::after { content: ""; display: table; clear: both; }
.anh-prose .gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.anh-prose .gallery-item { flex: 1 1 220px; margin: 0; }
.anh-prose .gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; }
.anh-prose iframe { max-width: 100%; }
@media (max-width: 600px) { .anh-prose .alignleft, .anh-prose .alignright { float: none; max-width: 100%; margin: 0 0 16px !important; } }

/* ---------- Számozott lista (Kinek segít?) ---------- */
.anh-szamlista { list-style: none; margin: 0; padding: 0; counter-reset: anh; }
.anh-szamlista li { counter-increment: anh; border-bottom: 1px solid var(--anh-vonal); }
.anh-szamlista li a { display: flex; gap: 28px; align-items: baseline; padding: 22px 0; color: var(--anh-tinta); text-decoration: none; }
.anh-szamlista li a::before { content: counter(anh, decimal-leading-zero); flex: 0 0 28px; font-size: 15px; font-weight: 600; color: var(--anh-zold); }
.anh-szamlista__cim { display: block; font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; color: var(--anh-zold); }
.anh-szamlista__leiras { display: block; font-size: 17px; color: var(--anh-szurke); }

/* ---------- Sötét szekció ---------- */
.anh-sotet { background: var(--anh-zold); color: #fff; }
.anh-sotet h2, .anh-sotet h3, .anh-sotet a { color: #fff; }
.anh-sotet p { color: #CFDDD3; }
.anh-sotet .anh-linklista li { border-bottom-color: rgba(255, 255, 255, .22); }
.anh-linklista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 40px; }
.anh-linklista li { flex: 1 1 260px; border-bottom: 1px solid #C9D3CC; }
.anh-linklista a { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; text-decoration: none; font-size: 20px; }
.anh-linklista small { font-size: 16px; color: #CFDDD3; }
.anh-bigquote { font-weight: 300; font-size: clamp(30px, 4vw, 50px); line-height: 1.18; letter-spacing: -0.02em; margin: 0; border: 0; padding: 0; background: none; }

/* ---------- GYIK (Details blokk) ---------- */
.anh-gyik .wp-block-details { border-bottom: 1px solid var(--anh-vonal); padding: 20px 0; margin: 0 !important; }
.anh-gyik .wp-block-details summary { cursor: pointer; font-size: 22px; color: var(--anh-zold); }
.anh-gyik .wp-block-details p { margin: 12px 0 0; color: var(--anh-szoveg); max-width: 720px; }

/* ---------- Segítő kártyák ---------- */
.anh-segitokartya .wp-block-post-featured-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.anh-segitokartya .wp-block-post-title { font-size: 26px; font-weight: 400; margin: 12px 0 4px; }
.anh-segitokartya .wp-block-post-title a { text-decoration: none; }
.anh-segitokartya .wp-block-post-excerpt { color: var(--anh-szurke); font-size: 17px; margin: 0; }

/* ---------- Lapozás, kereső ---------- */
.wp-block-query-pagination { gap: 6px; padding-top: 32px; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid #C9D3CC; text-decoration: none; color: var(--anh-zold); }
.wp-block-query-pagination .page-numbers.current { background: var(--anh-zold); color: #fff; border-color: var(--anh-zold); }
.anh-hero .wp-block-search__input { height: 52px; border: 0; border-radius: 0; font-size: 18px; padding: 0 16px; }
.anh-hero .wp-block-search__button { height: 52px; border: 1px solid #fff; background: transparent; color: #fff; border-radius: 0; font-weight: 600; margin-left: 10px; }
.anh-hero .wp-block-search__inside-wrapper { border: 0; padding: 0; max-width: 720px; }
.anh-talalat .wp-block-post { border-bottom: 1px solid var(--anh-vonal); padding: 26px 0; margin: 0 !important; }
.anh-talalat .wp-block-post-title { font-size: 24px; font-weight: 400; margin: 4px 0; }
.anh-talalat .wp-block-post-title a { text-decoration: none; }

/* ---------- Lábléc ---------- */
.anh-footer { background: var(--anh-zold); color: #E4ECE6; }
.anh-footer h2 { color: #fff; }
.anh-footer a { color: #fff; }
.anh-footer .anh-label { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.anh-footer p { margin: 0; }
.anh-footer__also { border-top: 1px solid rgba(255, 255, 255, .35); font-size: 15px; }
.anh-footer .wp-block-site-logo img { width: 34px; filter: brightness(0) invert(1); }

/* ---------- Térközök, elrendezés ---------- */
.anh-main { margin: 0; }
.anh-sec { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.anh-sec--top0 { padding-top: 0; }
.anh-sec-hero { padding-top: 56px; padding-bottom: 64px; }
.anh-sec-hero > * + * { margin-top: 18px !important; }
.anh-fooldal > .anh-hero.anh-sec-hero { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(72px, 8vw, 104px); }
.anh-sec > * + * { margin-top: 32px !important; }
.anh-utilbar__in { padding: 8px 0; gap: 24px; }
.anh-header__in { padding: 18px 0; gap: 32px; }
.anh-brand { gap: 14px; }
.anh-hero .wp-block-query-title, .anh-hero h1 { color: #fff; font-weight: 300; }
.anh-hero .wp-block-post-excerpt__more-link { display: none; }
.anh-hero .wp-block-post-excerpt__excerpt { margin: 0; }

/* Írások a főoldalon: egy nagy + két kicsi */
.anh-irasok { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.anh-irasok > .anh-irasok-nagy { flex: 3 1 520px; min-width: 0; }
.anh-irasok > .anh-irasok-kicsi { flex: 2 1 360px; min-width: 0; }
.anh-irasok-kicsi .wp-block-post-template { display: flex; flex-direction: column; gap: 28px; }

/* Lábléc oszlopok */
.anh-footer__cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.anh-footer__col { flex: 1 1 240px; min-width: 0; }
.anh-footer__col--fo { flex: 2 1 380px; }
.anh-footer__col--fo p { font-size: 20px; }
.anh-footer__also { padding-top: 24px; margin-top: 56px !important; gap: 16px; }
.anh-footer__also p { margin: 0; }
.anh-linklista--egyoszlop { flex-direction: column; max-width: 720px; border-top: 2px solid var(--anh-zold); }
.anh-linklista--egyoszlop li { flex: none; border-bottom: 1px solid var(--anh-vonal); }
.anh-irasracs .wp-block-post-template, .anh-q-irasok .wp-block-post-template { gap: 48px 40px; }
.anh-bevezeto { font-size: clamp(20px, 2vw, 22px) !important; font-weight: 300; line-height: 1.5 !important; color: var(--anh-tinta) !important; }
.anh-hero__linkek a { color: #fff !important; font-weight: 500; margin-right: 28px; }
.anh-hero .anh-kicker { color: #CFDDD3; font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: 16px; }
.anh-sotet .anh-bigquote { color: #fff; max-width: 980px; }
.anh-idezet-forras { margin-top: 14px !important; font-size: 16px; color: #CFDDD3; }
.anh-sotet .anh-kethasab { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 32px; margin-top: 56px !important; }
.anh-szamlista li a > span { display: flex; flex-direction: column; gap: 4px; }
.anh-oldalsav.wp-block-heading { margin: 0; }
.anh-hero__lead, .anh-bigquote { margin-right: auto !important; margin-left: max(0px, calc((100% - var(--anh-max)) / 2)) !important; }
/* Régi tartalom inline formázásainak szelídítése */
.anh-prose p, .anh-prose div, .anh-prose span { text-align: left !important; }
.anh-prose u { text-decoration: none; font-weight: 600; color: var(--anh-zold); }
.anh-prose span[style*="font-size"] { font-size: inherit !important; }
.anh-prose [style*="font-family"] { font-family: inherit !important; }
.anh-prose [style*="color"] { color: inherit !important; }
