/*
Theme Name: AMJ Community Blocks
Description: A spacious, accessible block theme for the Hungarian Ahmadiyya Muslim community.
Version: 1.3.0
Requires at least: 7.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amj-blocks
*/
:root{
 --amj-ink:#203b31;--amj-muted:#344d40;--amj-green:#174b3b;
 --amj-paper:#fdfcf8;--amj-sage:#eef2ea;--amj-line:#dce4d9;
 --amj-gold:#ddc594;--amj-gutter:clamp(24px,5vw,72px);
 --amj-space:clamp(64px,8vw,112px);--amj-serif:Georgia,"Times New Roman",serif;
}
html{scroll-behavior:smooth;scroll-padding-top:32px}
body{margin:0;background:var(--amj-paper);color:var(--amj-ink);-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
a{text-underline-offset:.23em;text-decoration-thickness:1px}
a,button,input,textarea{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b17c29;outline-offset:5px}
img{max-width:100%;height:auto}
.wp-site-blocks{overflow-x:clip}
.wp-block-heading{font-weight:400;letter-spacing:-.025em;text-wrap:balance}
p{overflow-wrap:break-word}
.amj-header{padding:26px var(--amj-gutter);margin:0!important;border-bottom:1px solid var(--amj-line);background:var(--amj-paper);gap:32px}
.amj-header a{text-decoration:none}
.amj-brand{gap:15px!important;flex-shrink:0}
.amj-brand figure{margin:0}
.amj-brand figure img{mix-blend-mode:multiply}
.amj-brand-name{font-family:var(--amj-serif);font-size:21px;line-height:1.15!important;margin:0!important;max-width:260px;letter-spacing:-.025em}
.amj-brand-country{font-size:10px;line-height:1.4;letter-spacing:.22em;text-transform:uppercase;margin:9px 0 0!important;color:var(--amj-muted)}
.amj-header .wp-block-navigation{font-size:14px;font-weight:500}
.amj-header .wp-block-navigation__container{gap:clamp(18px,2.1vw,32px)}
.amj-header .wp-block-navigation-item__content{padding:10px 0}
.amj-header .wp-block-navigation-item__content:hover{color:#8a672a}
.amj-header .wp-block-navigation-item:last-child .wp-block-navigation-item__content{border:1px solid #bac9ba;border-radius:50px;padding:10px 22px}
.amj-section{padding:var(--amj-space) var(--amj-gutter);margin-top:0!important}
.amj-section>*{max-width:1120px!important}
.amj-section h2{font:400 clamp(30px,3.6vw,48px)/1.18 var(--amj-serif);letter-spacing:-.025em;margin-top:0;margin-bottom:32px}
.amj-section h3{font:400 25px/1.35 var(--amj-serif);letter-spacing:-.015em}
.amj-section .wp-block-columns{gap:clamp(32px,5vw,72px)}
.amj-section p{line-height:1.85}
.amj-section .wp-block-columns:last-child{margin-bottom:0}
.amj-eyebrow{font-size:11px!important;letter-spacing:.19em;text-transform:uppercase;font-weight:600;color:var(--amj-muted);line-height:1.8!important}
.amj-hero{padding:clamp(70px,9vw,128px) var(--amj-gutter)!important;background:radial-gradient(ellipse at 88% 42%,#e0e8d8 0,transparent 53%),#f0f3eb;border-bottom:1px solid var(--amj-line)}
.amj-hero .wp-block-columns{align-items:center;gap:clamp(40px,6vw,100px)}
.amj-hero h1{font:400 clamp(46px,5.7vw,80px)/1.08 var(--amj-serif);letter-spacing:-.045em;margin:24px 0 30px;text-wrap:balance}
.amj-lead{font-size:18px;max-width:470px;color:var(--amj-muted)}
.amj-hero .wp-block-buttons{margin-top:34px}
.amj-hero .wp-block-image{margin:0;display:flex;justify-content:center}
.amj-hero .wp-block-image img{width:min(100%,290px);border-radius:50%;box-shadow:0 0 0 20px #ffffff66,0 0 0 21px #bccdb273,0 32px 70px #29453218;aspect-ratio:1;object-fit:cover;background:white}
.wp-block-button__link{padding:15px 26px;border:1px solid transparent;border-radius:50px;background:var(--amj-green);color:white;font-size:14px;font-weight:600;line-height:1.5;transition:background .2s,box-shadow .2s}
.wp-block-button__link:hover{background:#103d2e;box-shadow:0 6px 18px #163c2918}
#AMJ>.wp-block-columns{margin-top:42px}
#AMJ>.wp-block-image{margin-top:46px}
#AMJ>.wp-block-image img{border-radius:8px}
#AMJ .wp-block-column>h3{font-size:23px;margin-bottom:22px}
#AMJ .wp-block-column>p{font-size:17px;line-height:1.9;color:#43584c}
.amj-tint{background:#f0f2ec}
.amj-banner-link{display:flex;flex-direction:column;padding:0;border-radius:14px;overflow:hidden;background:var(--amj-paper);box-shadow:0 5px 25px #263c2405}
.amj-banner-link figure{margin:0}
.amj-banner-link img{width:100%;display:block;aspect-ratio:3/1;object-fit:cover}
.amj-banner-link>.wp-block-buttons{padding:22px 24px 26px;margin-top:auto!important}
.amj-banner-link .wp-block-button__link{background:transparent;color:var(--amj-green);padding:0;border:0;border-radius:0;text-align:left;line-height:1.6}
.amj-banner-link .wp-block-button__link:after{content:' ↗';padding-left:5px}
.amj-banner-link .wp-block-button__link:hover{box-shadow:none;text-decoration:underline}
#Kiadvanyok .wp-block-columns{align-items:center}
#Kiadvanyok p{max-width:640px;color:var(--amj-muted)}
#Kiadvanyok .wp-block-image{display:flex;justify-content:center}
#Kiadvanyok .wp-block-image img{width:150px;mix-blend-mode:multiply}
/* Video feature: generous inset panel, short reading lines and a visible action. */
#kalifa.amj-dark{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.8fr);column-gap:clamp(36px,6vw,88px);row-gap:24px;align-items:center;max-width:1264px;margin:0 auto!important;padding:clamp(40px,6vw,80px);border-radius:24px;background:#173f32;color:#fffdf6;isolation:isolate}
#kalifa>h2{grid-column:1;grid-row:1;max-width:680px!important;margin:0!important;font:400 clamp(30px,3.4vw,46px)/1.22 var(--amj-serif);letter-spacing:-.025em;color:#fffdf6;text-wrap:balance}
#kalifa>p{grid-column:1;grid-row:2;margin:0!important;color:#d7e3d6;font-size:17px;line-height:1.85}
#kalifa>.wp-block-buttons{grid-column:2;grid-row:1 / 3;justify-self:end;margin:0!important;width:100%;max-width:340px!important;min-height:240px;border:1px solid #56705c;border-radius:16px;display:flex;align-items:center;justify-content:center;padding:28px;background:radial-gradient(ellipse at 50% 25%,#335c46,#204737 72%)}
#kalifa .wp-block-button{width:100%}
#kalifa .wp-block-button__link{display:flex;flex-direction:column;align-items:center;gap:22px;padding:12px 2px;background:none!important;color:#fffdf6;border:0;font-size:14px;line-height:1.65;text-align:center;border-radius:12px}
#kalifa .wp-block-button__link:before{content:'';width:68px;height:68px;flex:none;border-radius:50%;background:var(--amj-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l11 7-11 7z' fill='%23173f32'/%3E%3C/svg%3E") no-repeat center;box-shadow:0 0 0 9px #ddc59412;transition:transform .2s}
#kalifa .wp-block-button__link:hover{box-shadow:none}
#kalifa .wp-block-button__link:hover:before{transform:scale(1.07)}
/* Statistics share a baseline and retain comfortable separation. */
.amj-stats{padding:64px var(--amj-gutter) 76px;background:var(--amj-paper);border:0}
.amj-stats>.wp-block-columns{max-width:1120px!important;gap:0;align-items:center}
.amj-stats .wp-block-column{padding:6px 32px;text-align:center}
.amj-stats .wp-block-column+.wp-block-column{border-left:1px solid var(--amj-line)}
.amj-stats p{margin:0;line-height:1.5}
.amj-stats p.amj-stat-number{font:400 clamp(44px,5vw,64px)/1.15 var(--amj-serif);letter-spacing:-.035em;color:var(--amj-green)}
.amj-stats .amj-stat-number+p{margin-top:14px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.14em;color:var(--amj-muted)}
#Temak>h2{margin-bottom:46px}
#Temak>.wp-block-columns{gap:24px;margin-top:24px}
.amj-card{height:100%;padding:34px;border:1px solid #dce2d5;border-radius:14px;background:var(--amj-paper);box-shadow:0 3px 14px #233b2203}
.amj-card h3{font-size:25px;line-height:1.3;margin-top:28px;margin-bottom:20px}
.amj-card p{font-size:16px;line-height:1.85;color:var(--amj-muted)}
.amj-card .wp-block-image{margin:0}
.amj-card .wp-block-image img{width:48px;height:48px;object-fit:contain;mix-blend-mode:multiply}
.amj-card a{font-weight:600;color:var(--amj-green)}
.amj-card .wp-block-buttons{margin-top:24px}
.amj-publications .wp-block-button{width:100%}
.amj-publications .wp-block-button__link{width:100%;text-align:left;padding:24px;border:1px solid var(--amj-line);border-radius:12px;background:#f0f3eb;color:var(--amj-ink);white-space:normal;line-height:1.6;font-size:16px;font-weight:500}
.amj-publications .wp-block-button__link:hover{background:#e5ecde;box-shadow:none}
.amj-article{padding:72px var(--amj-gutter) 100px;margin-top:0!important}
.amj-article>.wp-block-post-title{max-width:800px;font:400 clamp(36px,4.5vw,62px)/1.18 var(--amj-serif);letter-spacing:-.035em;margin-bottom:48px;text-wrap:balance}
.amj-article .wp-block-post-content{font-size:18px;line-height:1.9;--wp--style--global--content-size:740px}
.amj-article .wp-block-post-content>p{margin-top:1.5em;color:#344c40}
.amj-article h2,.amj-article h3{line-height:1.35;margin-top:2em}
.amj-article .wp-block-image{margin:36px auto}
.amj-article .wp-block-image img{max-height:420px;width:auto;border-radius:10px}
.amj-article .wp-block-group{margin-top:24px}
.amj-contact .wp-block-columns{gap:clamp(40px,8vw,110px)}
.amj-contact .wp-block-column:first-child>p{font-size:16px;color:var(--amj-muted);max-width:380px}
.amj-contact .wp-block-column:last-child{padding:36px 40px;border-radius:18px;background:#f1f4ed;border:1px solid #e2e7dd}
.amj-contact a{overflow-wrap:anywhere}
.amj-form-note{font-size:14px!important;color:var(--amj-muted);margin-top:0}
.wpcf7-form label{display:block;font-size:14px;line-height:1.6;font-weight:600;color:var(--amj-ink)}
.wpcf7-form p{margin-top:24px}
.wpcf7-form input:not([type=submit]),.wpcf7-form textarea{width:100%;padding:13px 15px;margin-top:9px;border:1px solid #c5d1c1;border-radius:8px;background:var(--amj-paper);color:var(--amj-ink);font:inherit;font-weight:400}
.wpcf7-form textarea{height:170px;min-height:150px;resize:vertical}
.wpcf7-form input[type=submit]{padding:15px 26px;border:0;border-radius:50px;background:var(--amj-green);color:white;font:inherit;font-size:14px;font-weight:600;cursor:pointer;min-height:48px}
.wpcf7-form input[type=submit]:hover{background:#103d2e}
.wpcf7-form .wpcf7-response-output{color:var(--amj-ink);background:#fffdf8;font-size:14px;line-height:1.7}
.amj-footer{padding:64px var(--amj-gutter);margin:0!important;background:#132e25;color:#cbd9ce;font-size:14px}
.amj-footer a{color:#e0e9dd;text-decoration:none;line-height:2.2}
.amj-footer a:hover{text-decoration:underline}
.amj-footer h3{font:400 24px/1.35 var(--amj-serif);color:#fffdf6;margin-top:0;margin-bottom:22px}
.amj-footer p{line-height:1.9}
.amj-footer .wp-block-columns{gap:64px;max-width:1120px!important}
.amj-section[id],.amj-section [id]{scroll-margin-top:28px}
@media(min-width:1440px){.amj-header{padding-left:max(72px,calc((100vw - 1264px)/2));padding-right:max(72px,calc((100vw - 1264px)/2))}}
@media(max-width:1320px){#kalifa.amj-dark{margin-left:var(--amj-gutter)!important;margin-right:var(--amj-gutter)!important}}
@media(max-width:1000px){
 .amj-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none}
 .amj-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex;padding:10px}
 .amj-header .wp-block-navigation__responsive-container.is-menu-open{padding:32px;background:var(--amj-paper)}
 .amj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{font-size:22px;gap:22px}
 .amj-card{padding:26px}.amj-card h3{font-size:23px}
 #kalifa.amj-dark{grid-template-columns:1.3fr 1fr;gap:28px;padding:44px}
 #kalifa>.wp-block-buttons{min-height:220px;padding:22px}
 .amj-contact .wp-block-column:last-child{padding:28px}
}
@media(max-width:781px){
 .amj-header{padding:22px 24px}.amj-brand-name{font-size:19px;max-width:220px}.amj-brand{gap:12px!important}.amj-brand figure{max-width:38px}
 .amj-section .wp-block-columns{gap:32px}
 .amj-hero .wp-block-columns{gap:58px}.amj-hero .wp-block-image{justify-content:flex-start;padding:0 14px}.amj-hero .wp-block-image img{width:220px}
 .amj-hero h1{font-size:clamp(43px,7.2vw,60px);max-width:600px}.amj-hero .amj-eyebrow{max-width:330px}
 #kalifa.amj-dark{display:block;padding:38px 30px;border-radius:18px}
 #kalifa>h2{font-size:32px;line-height:1.25;text-wrap:pretty}
 #kalifa>p{margin-top:24px!important;font-size:16px}
 #kalifa>.wp-block-buttons{margin:32px 0 0!important;max-width:none!important;min-height:0;padding:18px 22px;border-radius:12px}
 #kalifa .wp-block-button__link{flex-direction:row;gap:18px;padding:0;text-align:left;font-size:14px}
 #kalifa .wp-block-button__link:before{width:48px;height:48px;box-shadow:none;background-size:20px}
 .amj-stats{padding-top:44px;padding-bottom:54px}
 .amj-stats>.wp-block-columns{display:flex!important;flex-wrap:nowrap!important;gap:0}
 .amj-stats .wp-block-column{flex-basis:0!important;flex-grow:1;padding:4px 12px}
 .amj-stats p.amj-stat-number{font-size:clamp(32px,7vw,46px)}
 .amj-stats .amj-stat-number+p{font-size:10px;letter-spacing:.08em;margin-top:12px}
 .amj-card{padding:30px}.amj-card h3{font-size:25px}
 .amj-article{padding-top:48px;padding-bottom:64px}.amj-article .wp-block-post-content{font-size:17px;line-height:1.85}
 .amj-contact .wp-block-column:last-child{padding:26px 22px}.amj-footer .wp-block-columns{gap:36px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
.amj-article .wp-block-post-content>:first-child{margin-top:0}
@media(max-width:781px){.amj-article>.wp-block-post-title{margin-bottom:36px}}
/* Article cards: present the read-more action as a distinct, accessible button. */
.amj-card a{
 display:inline-flex;align-items:center;justify-content:center;gap:12px;
 min-height:46px;padding:11px 21px;margin-top:22px;
 border:1px solid #b8cbbb;border-radius:50px;
 background:#edf3e9;color:#174b3b;
 font-size:13px;font-weight:600;line-height:1.6;
 letter-spacing:.025em;text-decoration:none;
 transition:background .2s,border-color .2s,color .2s;
}
.amj-card a::after{content:'→';font-size:18px;line-height:1}
.amj-card a:hover{background:#174b3b;border-color:#174b3b;color:#fffdf8;text-decoration:none}

.amj-card .amj-card-action{margin-top:24px;margin-bottom:0}.amj-card .amj-card-action a{margin-top:0}
.amj-card{display:flex;flex-direction:column;align-items:flex-start}
.amj-card .amj-card-action{margin-top:auto;padding-top:24px}

/* Public events calendar: calm framing and a readable agenda on small screens. */
.amj-calendar-page { --wp--style--global--content-size:1120px; }
.amj-calendar-page .amj-calendar-intro { color:var(--amj-muted); margin-top:16px; margin-bottom:40px; }
.amj-calendar { max-width:1120px; }
.amj-calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 32px; background:var(--amj-sage); border:1px solid var(--amj-line); border-radius:18px 18px 0 0; }
.amj-calendar-heading h2 { font-size:28px; margin:0 0 8px; }
.amj-calendar-heading p { font-size:14px; margin:0; color:var(--amj-muted); }
.amj-calendar-heading a { flex-shrink:0; font-size:13px; text-decoration:none; }
.amj-calendar-frame { background:#fff; border:1px solid var(--amj-line); border-top:0; border-radius:0 0 18px 18px; overflow:hidden; padding:20px; }
.amj-calendar iframe { display:block; width:100%; height:620px; border:0; }
.amj-calendar-note { color:var(--amj-muted); font-size:13px; margin-top:16px; }
@media(max-width:700px) {
 .amj-calendar-heading { flex-direction:column; align-items:flex-start; padding:24px 20px; }
 .amj-calendar-heading h2 { font-size:26px; }
 .amj-calendar-frame { padding:8px 0; }
 .amj-calendar iframe { height:620px; }
 .amj-calendar-heading a { white-space:normal; }
}
.amj-calendar-page > .wp-block-post-title { max-width:1120px; }


/* Heritage accents, with dark readable lettering on warm ivory. */
.amj-brand { gap:16px!important; }
.amj-brand figure { padding:9px; border:1px solid #71967a; border-radius:50%; background:#e3eee1; box-shadow:0 2px 8px #203b310a; flex-shrink:0; }
.amj-brand figure a { display:block; line-height:0; }
.amj-brand figure img { display:block; width:38px!important; height:auto; }
.amj-brand-name a { color:#153e30; }
.amj-brand-country { display:flex; align-items:center; gap:9px; font-size:11px; font-weight:650; letter-spacing:.16em; color:#873a3b; line-height:1.6; }
.amj-brand-country::before { content:""; display:block; width:22px; height:13px; flex-shrink:0; border:1px solid #c7ccc2; border-radius:2px; background:linear-gradient(to bottom,#a63540 0 33.33%,#fffdf6 33.33% 66.66%,#24553e 66.66% 100%); }
.amj-header .wp-block-navigation { color:#203b31; }
@media(max-width:700px) {
 .amj-brand { gap:12px!important; }
 .amj-brand figure { padding:7px; max-width:none; }
 .amj-brand figure img { width:32px!important; }
 .amj-brand-name { font-size:19px; }
 .amj-brand-country { font-size:10px; letter-spacing:.13em; gap:7px; }
}


/* Alternating quiet green gradients retain strong contrast across each section. */
.amj-header { background:linear-gradient(90deg,#edf3e9,#fdfcf8 70%); }
.amj-hero { background:linear-gradient(90deg,#f3f6ef 0%,#dce8d5 100%); }
#AMJ { background:linear-gradient(270deg,#fdfcf8 0%,#edf3e7 100%); }
#AMJ .wp-block-column>p { color:var(--amj-muted); }
.amj-tint { background:linear-gradient(90deg,#e2ecdc,#f3f6ee); }
#Kiadvanyok { background:linear-gradient(270deg,#e5eedd,#fdfcf8); }
#kalifa.amj-dark { background:linear-gradient(90deg,#12382b,#24553e); }
#kalifa>p { color:#edf4e9; }
.amj-stats { background:linear-gradient(270deg,#fdfcf8,#eaf1e4); }
#Temak { background:linear-gradient(90deg,#dee9d8,#f0f4eb); }
.amj-card { background:#fffefb; border-color:#c1d0bb; box-shadow:0 5px 20px #203b3107; }
.amj-contact { background:linear-gradient(270deg,#e4eddd,#fdfcf8); }
.amj-contact .wp-block-column:last-child { background:#f9fbf5; border-color:#bccdb6; }
.wpcf7-form input:not([type=submit]),.wpcf7-form textarea { border-color:#8ba18b; background:#fffefb; }
.amj-article { background:linear-gradient(90deg,#edf3e7 0%,#fdfcf8 35%,#fdfcf8 65%,#f0f4eb 100%); }
.amj-calendar-heading { background:linear-gradient(270deg,#e0ebd8,#f3f6ed); }
.amj-footer { background:linear-gradient(270deg,#102c22,#1c4432); color:#e3ecdf; }
.amj-footer a { color:#f5f8ef; }

/* Publications: editorial reading index, rather than a grid of buttons. */
.amj-library { padding:64px var(--amj-gutter) 96px; margin-top:0!important; background:#f8faf4; --wp--style--global--content-size:1120px; }
.amj-library-intro { position:relative; padding:48px 56px; border-left:4px solid #86ad83; background:linear-gradient(110deg,#173e2e,#2d5b40); border-radius:0 20px 20px 0; color:#f5f8ef; overflow:hidden; }
.amj-library-intro::after { content:""; position:absolute; width:250px; height:250px; border:1px solid #ffffff18; border-radius:50%; right:-80px; top:-100px; pointer-events:none; box-shadow:0 0 0 36px #ffffff05,0 0 0 72px #ffffff04; }
.amj-library .amj-library-eyebrow { font-size:11px; font-weight:600; letter-spacing:.2em; color:#dbead4; margin:0 0 18px; }
.amj-library-intro h1 { font:400 clamp(42px,5vw,66px)/1.1 var(--amj-serif); color:#fffef8; margin:0 0 22px; letter-spacing:-.035em; }
.amj-library-intro p:last-child { max-width:580px; font-size:17px; line-height:1.8; margin:0; color:#e7f0df; }
.amj-library-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:48px; counter-reset:publication; margin-top:40px!important; }
.amj-library-list>p { grid-column:1/-1; font-size:14px; color:#42594d; padding-bottom:18px; border-bottom:1px solid #c5d3be; margin:0!important; }
.amj-library-list .amj-publications,.amj-library-list .wp-block-column,.amj-library-list .wp-block-buttons,.amj-library-list .wp-block-button { display:contents; }
.amj-library-list .wp-block-button__link { position:relative; display:flex; align-items:flex-start; min-height:166px; padding:28px 24px 56px 52px; margin:0; border:0; border-bottom:1px solid #c5d3be; border-radius:0; background:transparent; text-align:left; font:400 24px/1.35 var(--amj-serif); color:#173e2e; letter-spacing:-.01em; box-shadow:none; transition:background .2s; }
.amj-library-list .wp-block-button__link::before { counter-increment:publication; content:counter(publication,decimal-leading-zero); position:absolute; left:0; top:32px; font:500 12px/1.5 system-ui,sans-serif; color:#526b55; }
.amj-library-list .wp-block-button__link::after { content:"Olvasás  ↗"; position:absolute; bottom:24px; left:52px; font:600 12px/1.5 system-ui,sans-serif; letter-spacing:.035em; color:#276044; }
.amj-library-list .wp-block-button__link:hover { background:#e8f0e2; color:#123325; box-shadow:none; }
.amj-library-list .wp-block-button__link:focus-visible { outline:3px solid #276044; outline-offset:3px; }
@media(max-width:700px) {
 .amj-library { padding:32px 24px 64px; }
 .amj-library-intro { padding:32px 26px; border-radius:0 14px 14px 0; }
 .amj-library-intro p:last-child { font-size:16px; }
 .amj-library-list { grid-template-columns:minmax(0,1fr); margin-top:30px!important; }
 .amj-library-list .wp-block-button__link { min-height:142px; font-size:23px; padding-left:42px; }
 .amj-library-list .wp-block-button__link::after { left:42px; }
}

/* Mobile menu: consistent left edge with generous inset spacing. */
.amj-header .wp-block-navigation__responsive-container.is-menu-open { padding:32px clamp(28px,6vw,64px); background:#fdfcf8; color:#203b31; }
.amj-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items:flex-start!important; padding-top:64px; }
.amj-header .is-menu-open .wp-block-navigation__container { align-items:flex-start!important; justify-content:flex-start!important; width:100%; gap:20px; }
.amj-header .is-menu-open .wp-block-navigation-item { align-items:flex-start!important; text-align:left; }
.amj-header .is-menu-open .wp-block-navigation-item__content { text-align:left; }
.amj-header .is-menu-open .wp-block-navigation__responsive-container-close { top:0; right:0; padding:8px; }

/* Navigation feedback: readable type and a distinct, quiet hover surface. */
.amj-header .wp-block-navigation-item__content { transition:background-color .18s,color .18s,box-shadow .18s; }
.amj-header .wp-block-navigation-item__content:hover { color:#123e2c; background:#e4efde; border-radius:8px; box-shadow:inset 3px 0 #39744c; }
.amj-header .is-menu-open .wp-block-navigation__container { gap:12px; }
.amj-header .is-menu-open .wp-block-navigation-item { width:min(100%,380px); }
.amj-header .is-menu-open .wp-block-navigation-item__content { display:block; width:100%; padding:15px 20px; border-radius:10px; font-size:24px; font-weight:600; line-height:1.5; letter-spacing:.005em; color:#183d2c; text-decoration:none; }
.amj-header .is-menu-open .wp-block-navigation-item__content:hover,
.amj-header .is-menu-open .wp-block-navigation-item__content:focus-visible { background:#e4efde; color:#103624; box-shadow:inset 4px 0 #39744c; }
.amj-header .is-menu-open .wp-block-navigation-item__content:focus-visible { outline:2px solid #39744c; outline-offset:3px; }
.amj-header .is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content { margin-top:8px; padding:15px 20px; border:1px solid #a3b99c; border-radius:10px; background:#edf4e7; }
.amj-header .is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content:hover { background:#dcebd4; }
@media(prefers-reduced-motion:reduce) { .amj-header .wp-block-navigation-item__content { transition:none; } }
.amj-header .is-menu-open .wp-block-navigation-item__content { padding:15px 20px!important; }

/* Desktop links need their own inset area for hover feedback. */
@media(min-width:1001px) {
 .amj-header .wp-block-navigation__container { gap:clamp(8px,1.1vw,18px); }
 .amj-header .wp-block-navigation-item__content { display:block; padding:11px 15px; border-radius:8px; line-height:1.5; white-space:nowrap; }
 .amj-header .wp-block-navigation-item__content:hover { box-shadow:inset 0 -2px #39744c; }
 .amj-header .wp-block-navigation-item__content:focus-visible { outline:2px solid #39744c; outline-offset:3px; }
 .amj-header .wp-block-navigation-item:last-child .wp-block-navigation-item__content { padding:10px 20px; }
}

/* Phone layout: centered content, with navigation and form entry kept readable. */
@media(max-width:700px) {
 main { text-align:center; }
 .amj-section p,.amj-section h1,.amj-section h2,.amj-section h3 { margin-left:auto; margin-right:auto; }
 .amj-hero .amj-eyebrow,.amj-hero h1,.amj-lead { margin-left:auto; margin-right:auto; }
 .amj-hero .wp-block-image,#Kiadvanyok .wp-block-image { justify-content:center; }
 main .wp-block-buttons { justify-content:center; }
 #kalifa>h2,#kalifa>p { text-align:center; }
 #kalifa .wp-block-button__link { justify-content:center; text-align:center; }
 .amj-card { align-items:center; text-align:center; }
 .amj-card .wp-block-image { margin-left:auto; margin-right:auto; }
 .amj-banner-link .wp-block-button__link { text-align:center; }
 .amj-contact .wp-block-column:first-child>p { margin-left:auto; margin-right:auto; }
 .wpcf7-form { text-align:left; }
 .wpcf7-form p:has(input[type=submit]) { text-align:center; }
 .amj-library-intro { text-align:center; border-left:0; border-top:4px solid #86ad83; border-radius:14px; }
 .amj-library-intro p:last-child { margin-left:auto; margin-right:auto; }
 .amj-library-list .wp-block-button__link { text-align:center; justify-content:center; padding:40px 16px 56px; }
 .amj-library-list .wp-block-button__link::before { top:14px; left:50%; transform:translateX(-50%); }
 .amj-library-list .wp-block-button__link::after { left:50%; transform:translateX(-50%); white-space:nowrap; }
 .amj-calendar-heading { align-items:center; text-align:center; }
 .amj-footer { text-align:center; }
 .amj-footer .wp-block-buttons { justify-content:center; }
}

/* Hungarian tricolour waves mark section transitions without covering content. */
.home .wp-block-post-content > .amj-section { position:relative; }
.home .wp-block-post-content > .amj-section + .amj-section::before {
 content:""; position:absolute; top:0; left:0; right:0; width:100%; max-width:none!important;
 height:48px; transform:translateY(-50%); margin:0!important; z-index:1;
 background:radial-gradient(ellipse 75% 100% at 50% 100%,
  transparent 60%,
  #326443 60% 70%,
  #fffef7 70% 80%,
  #9f3944 80% 90%,
  transparent 90%);
 pointer-events:none;
}
.home .wp-block-post-content > .amj-section:nth-child(odd)::before { transform:translateY(-50%) scaleY(-1); }
@media(max-width:700px) {
 .home .wp-block-post-content > .amj-section + .amj-section::before { height:30px; }
}

/* Featured reading cards: stronger presence and gentle hover emphasis. */
.amj-section:has(.amj-banner-link) { background:linear-gradient(110deg,#d5e5cc,#edf4e6); padding-top:80px; padding-bottom:80px; }
.amj-section:has(.amj-banner-link) .wp-block-columns { gap:32px; align-items:stretch; }
.amj-banner-link { position:relative; height:100%; border:1px solid #b6c9aa; border-radius:18px; background:#fffef9; box-shadow:0 9px 26px #183d2c14; transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.amj-banner-link img { aspect-ratio:3/1; }
.amj-banner-link>.wp-block-buttons { padding:28px 26px 30px; border-top:3px solid #527b47; }
.amj-banner-link .wp-block-button__link { font-size:17px; font-weight:650; line-height:1.55; color:#123d2a; }
.amj-banner-link:focus-within { border-color:#39744c; box-shadow:0 12px 30px #183d2c24; }
@media(hover:hover) and (pointer:fine) {
 .amj-banner-link:hover { transform:translateY(-5px) scale(1.025); border-color:#608950; box-shadow:0 18px 36px #183d2c26; z-index:2; }
}
@media(max-width:700px) {
 .amj-section:has(.amj-banner-link) { padding-top:60px; padding-bottom:60px; }
 .amj-banner-link>.wp-block-buttons { padding:24px; }
}
@media(prefers-reduced-motion:reduce) {
 .amj-banner-link { transition:none; }
 .amj-banner-link:hover { transform:none; }
}


/* Soft, translucent CSS waves with slow alternating drift. */
.home .wp-block-post-content > .amj-section + .amj-section::before {
 background:radial-gradient(ellipse 75% 100% at 50% 100%,
  transparent 58%,rgba(50,100,67,.40) 62%,rgba(50,100,67,.40) 68%,
  rgba(255,254,247,.66) 72%,rgba(255,254,247,.66) 78%,
  rgba(159,57,68,.36) 82%,rgba(159,57,68,.36) 88%,transparent 92%);
 background-size:140% 100%; background-position:30% 50%;
 opacity:.7; filter:blur(.65px);
 animation:amj-wave-flow 16s ease-in-out infinite alternate;
}
.home .wp-block-post-content > .amj-section:nth-child(odd)::before { animation-direction:alternate-reverse; animation-duration:19s; }
@keyframes amj-wave-flow {
 from { background-position:15% 50%; opacity:.58; }
 to { background-position:85% 50%; opacity:.78; }
}
@media(prefers-reduced-motion:reduce) {
 .home .wp-block-post-content > .amj-section + .amj-section::before { animation:none; background-position:50% 50%; opacity:.68; }
}

/* Topic cards: Hungarian tricolour glow stays behind the reading surface. */
#Temak .amj-card { position:relative; transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease; }
#Temak .amj-card:focus-within {
 border-color:#62835c;
 box-shadow:-14px 5px 25px rgba(28,120,61,.46),0 0 20px 5px rgba(255,255,255,.95),14px -5px 25px rgba(166,53,64,.24);
}
@media(hover:hover) and (pointer:fine) {
 #Temak .amj-card:hover {
  transform:translateY(-6px) scale(1.025); z-index:2; border-color:#62835c;
  box-shadow:-16px 6px 28px rgba(28,120,61,.55),0 0 22px 6px rgba(255,255,255,.98),16px -6px 28px rgba(166,53,64,.28);
 }
}
@media(prefers-reduced-motion:reduce) {
 #Temak .amj-card { transition:none; }
 #Temak .amj-card:hover { transform:none; }
}

/* Keep the video panel above neighbouring decorative dividers. */
.home .wp-block-post-content > #kalifa.amj-dark { z-index:3; }
.home .wp-block-post-content > #kalifa.amj-dark::before { content:none; display:none; animation:none; }

/* Readable article context and crawlable topic navigation. */
.amj-breadcrumbs { font-size:13px; line-height:1.7; color:#42594d; margin:0 0 28px; }
.amj-breadcrumbs ol { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; }
.amj-breadcrumbs li+li::before { content:"/"; padding-right:8px; color:#62745f; }
.amj-breadcrumbs a { color:#24553e; }
.amj-article-summary { padding:22px 26px; background:#eaf1e4; border-left:3px solid #527b47; border-radius:0 12px 12px 0; margin:28px 0 36px; }
.amj-article-summary p { margin:0; font-size:16px; line-height:1.8; color:#294735; }
.amj-article-summary p+p { margin-top:8px; }
.amj-related { margin-top:48px; padding-top:28px; border-top:1px solid #b8cbb1; }
.amj-related h2 { font-size:28px; }
.amj-related li { margin:12px 0; }
.amj-related a { color:#174b3b; }
.amj-library-list>.amj-breadcrumbs { grid-column:1/-1; }
@media(max-width:700px) { .amj-breadcrumbs ol { justify-content:center; } .amj-related ul { list-style:none; padding:0; } }

/* Primary actions have a stronger hover lift without affecting text links. */
.amj-hero .wp-block-button__link,#Kiadvanyok .wp-block-button__link,.amj-calendar-heading .wp-element-button,.wpcf7-form input[type=submit] {
 transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease;
}
@media(hover:hover) and (pointer:fine) {
 .amj-hero .wp-block-button__link:hover,#Kiadvanyok .wp-block-button__link:hover,.amj-calendar-heading .wp-element-button:hover,.wpcf7-form input[type=submit]:hover {
  background:#256640; color:#fff; transform:translateY(-3px) scale(1.035);
  box-shadow:0 9px 22px rgba(28,100,56,.32),0 0 0 4px rgba(74,128,62,.14);
 }
}
@media(prefers-reduced-motion:reduce) {
 .amj-hero .wp-block-button__link,#Kiadvanyok .wp-block-button__link,.amj-calendar-heading .wp-element-button,.wpcf7-form input[type=submit] { transition:none; }
 .amj-hero .wp-block-button__link:hover,#Kiadvanyok .wp-block-button__link:hover,.amj-calendar-heading .wp-element-button:hover,.wpcf7-form input[type=submit]:hover { transform:none; }
}
