/* ===== Almásfüzitő – stílusok a TownPress témához =====
   Visszafogott, kék paletta (a címerből): kék #0B5A9E, mély kék #0A3F6E, halvány kék #E8F1F9, keret #DDE5EC */

body{background:#F3F6F9;font-size:15px}
h1,h2,h3,h4{text-wrap:balance}

/* ---------- Fejléc: fent logó + név (fehér), alatta kék menüsáv ---------- */
#header{background:#fff}
#header .header__inner{display:flex!important;flex-direction:column}
#header .header__content{order:1;background:#fff;padding:10px 0}
#header .header-navbar{order:2}
.header-navbar__placeholder{display:none!important}
.header-logo__image{max-height:60px;width:auto}
.af-brand{margin-left:4px}
.af-brand__name{display:block;color:#0A3F6E!important;font-size:25px;line-height:1.05;font-weight:700;text-decoration:none!important}
.af-brand__sub{display:block;font-size:11px;letter-spacing:.15em;text-transform:uppercase;margin-top:4px;color:#4b5963;font-weight:600}
@media (min-width:1101px){
 .header__content-inner{display:flex;align-items:center}
 .header-menu__list>li>a{font-size:13.5px!important;font-weight:600;letter-spacing:.02em;padding-left:15px!important;padding-right:15px!important}
}
@media (max-width:1100px){
 .af-brand__name{font-size:22px}
 .af-brand__sub{font-size:10px}
}

/* ---------- Főoldal: üdvözlő rész ---------- */
.af-hero{align-items:center!important;gap:40px;margin:0!important;padding:18px 0 0}
.af-hero .wp-block-column{margin:0!important}
.af-kicker{margin:0 0 8px;color:#0B5A9E;font-weight:700;font-size:13px;letter-spacing:.02em}
.af-hero h1{margin:0 0 12px;font-size:30px;line-height:1.2;font-weight:700;color:#0A3F6E}
.af-hero p.af-lead{font-size:15.5px;line-height:1.6;color:#4b5963;margin:0 0 20px;max-width:480px}
.af-hero .wp-block-buttons{gap:10px;margin:0}
.af-hero .wp-block-button__link{border-radius:6px;padding:9px 20px;font-weight:600;font-size:14.5px;text-decoration:none}
.af-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link{background:#0B5A9E;color:#fff;border:2px solid #0B5A9E}
.af-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{background:#0A3F6E;border-color:#0A3F6E}
.af-hero .is-style-outline .wp-block-button__link{background:transparent;color:#0B5A9E;border:2px solid #0B5A9E}
.af-hero .is-style-outline .wp-block-button__link:hover{background:#0B5A9E;color:#fff}

.af-show{position:relative}
.af-show__shape{display:none}
.af-show__frame{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#cfd8de}
.af-show__slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease}
.af-show__slide.is-active{opacity:1;animation:af-zoom 12s ease-out forwards}
@keyframes af-zoom{from{transform:scale(1)}to{transform:scale(1.05)}}
.af-show__dots{position:absolute;right:12px;bottom:10px;display:flex;gap:7px;z-index:3}
.af-show__dots button{width:9px;height:9px;border-radius:50%;border:2px solid #fff;background:rgba(255,255,255,.25);padding:0;cursor:pointer}
.af-show__dots button.is-on{background:#fff}
@media (prefers-reduced-motion:reduce){.af-show__slide{transition:none}.af-show__slide.is-active{animation:none}}

/* ---------- Címsorok ---------- */
h2.af-h{font-size:20px;line-height:1.2;font-weight:700;color:#0A3F6E;margin:38px 0 14px}

/* ---------- Gyors ügyintézés ---------- */
.af-quick{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0!important}
.af-quick .wp-block-column,.af-quick .lsvr-feature{background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important;margin:0!important;height:100%}
.af-quick .wp-block-column{flex-basis:auto!important;width:auto!important}
.af-quick .lsvr-feature__inner{position:relative;background:#fff;border:1px solid #DDE5EC;border-radius:8px;padding:14px 10px;height:100%;text-align:center;transition:border-color .15s}
.af-quick .lsvr-feature__inner:hover{border-color:#8FB3D6}
.af-quick .lsvr-feature__icon{display:grid!important;place-items:center;width:38px;height:38px;border-radius:50%;background:#E8F1F9;color:#0B5A9E!important;font-size:18px!important;margin:0 auto 8px!important;position:static!important}
.af-quick .lsvr-feature__title{margin:0;font-size:14px;line-height:1.3}
.af-quick .lsvr-feature__title a{color:#1b2a35;font-weight:600}
.af-quick .lsvr-feature__title a::after{content:"";position:absolute;inset:0}
.af-quick .lsvr-feature__more{display:none}
@media (max-width:1100px){.af-quick{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:600px){.af-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- Hírkártyák ---------- */
ul.wp-block-latest-posts.is-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px;margin:0!important;padding:0;list-style:none}
ul.wp-block-latest-posts.is-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
ul.wp-block-latest-posts.is-grid>li{margin:0!important;width:auto!important;border:1px solid #DDE5EC;border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.wp-block-latest-posts__featured-image{margin:0!important}
.wp-block-latest-posts__featured-image a{display:block}
.wp-block-latest-posts__featured-image img{display:block;width:100%!important;height:auto;aspect-ratio:16/10;object-fit:cover;max-width:100%}
.wp-block-latest-posts.is-grid>li>a:not(.wp-block-latest-posts__featured-image a){display:block;padding:12px 14px 2px;font-size:15px;line-height:1.3;font-weight:700;color:#0A3F6E}
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-date{display:block;padding:4px 14px 0;font-size:12px;color:#66737C}
.wp-block-latest-posts.is-grid .wp-block-latest-posts__post-excerpt{padding:6px 14px 14px;font-size:13.5px;line-height:1.5;margin:0;color:#4b5963}
@media (max-width:1000px){ul.wp-block-latest-posts.is-grid,ul.wp-block-latest-posts.is-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:600px){ul.wp-block-latest-posts.is-grid,ul.wp-block-latest-posts.is-grid.columns-2{grid-template-columns:minmax(0,1fr)!important}}

/* ---------- Hírek + ügyfélfogadás ---------- */
.af-news{gap:20px;align-items:flex-start!important;margin-bottom:0!important}
.af-card{border-radius:8px;padding:18px 20px;margin:0 0 16px}
.af-card h3{margin:0 0 10px;font-size:16px;line-height:1.25;font-weight:700}
.af-card p{margin:0 0 10px;line-height:1.6;font-size:13.5px}
.af-card p:last-child{margin-bottom:0}
.af-card--hours{background:#0A3F6E;color:#fff}
.af-card--hours h3,.af-card--hours strong,.af-card--hours p,.af-card--hours a{color:#fff}
.af-card--plain{background:#fff;border:1px solid #DDE5EC}
.af-card--plain h3{color:#0A3F6E}
.af-card--plain a{color:#0B5A9E;font-weight:600;word-break:break-all}

.af-more{margin:16px 0 0}
.af-more .wp-block-button__link{background:#0B5A9E;color:#fff;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:600}
.af-more .wp-block-button__link:hover{background:#0A3F6E;color:#fff}

/* ---------- Közérdekű információk ---------- */
.af-info{background:#fff;border:1px solid #DDE5EC;border-radius:8px;padding:6px 24px 12px;margin:40px 0 28px}
.af-info h2{font-size:20px;color:#0A3F6E;margin:14px 0 4px}
.af-info h3{font-size:14.5px;color:#0B5A9E;margin:14px 0 6px}
.af-info p{line-height:1.65;font-size:13.5px;margin:0 0 8px}

/* ---------- Támogatott projektek ---------- */
.af-logos{gap:20px;align-items:center!important;margin:0 0 10px!important}
.af-logos figure{margin:0}
.af-logos img{display:block;max-width:100%;height:auto;border-radius:4px}

/* ---------- Lábléc ---------- */
#footer .wp-block-heading,#footer h4,#footer .widget-title{color:#fff!important;font-size:15px}
#footer,#footer p,#footer li{color:#d4dee6;font-size:13.5px}
#footer a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.4)}
.footer-bottom,.footer-text,.footer-text p{color:#4b5963!important}

/* ---------- Mobil ---------- */
@media (max-width:700px){
 .af-hero{gap:18px;padding:12px 0 0}
 .af-hero h1{font-size:24px}
 .af-hero p.af-lead{font-size:14.5px}
 h2.af-h{font-size:18px;margin-top:30px}
 .af-card{padding:16px}
 .af-info{padding:4px 16px 10px}
}

/* ===== Hírkártya: kép + cím + „Tovább olvasom” gomb (kivonat nélkül) ===== */
ul.wp-block-latest-posts.is-grid>li>a.wp-block-latest-posts__post-title{order:2;display:flex;flex-direction:column;align-items:flex-start;padding:6px 16px 18px;text-decoration:none}
ul.wp-block-latest-posts.is-grid>li>a.wp-block-latest-posts__post-title::after{content:"Tovább olvasom →";display:inline-block;margin-top:14px;padding:6px 14px;border:1px solid #0B5A9E;border-radius:6px;color:#0B5A9E;font-size:13px;font-weight:600;line-height:1.3}
ul.wp-block-latest-posts.is-grid>li>a.wp-block-latest-posts__post-title:hover::after{background:#0B5A9E;color:#fff}
ul.wp-block-latest-posts.is-grid>li .wp-block-latest-posts__post-date{order:1;padding:12px 16px 0}
ul.wp-block-latest-posts.is-grid>li .wp-block-latest-posts__post-excerpt{display:none}

/* ===== Ügyfélfogadás kártya ===== */
.af-card--hours h3{font-size:17px;margin:0 0 6px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.22)}
.af-card h4{font-size:11.5px;text-transform:uppercase;letter-spacing:.09em;margin:18px 0 4px;color:#fff;opacity:.75;font-weight:700}
.af-hours-table{margin:0!important}
.af-hours-table table{width:100%;border-collapse:collapse;font-size:13.5px;margin:0}
.af-hours-table td{padding:7px 8px;border:0!important;border-bottom:1px solid rgba(255,255,255,.13)!important;vertical-align:top;color:#fff}
.af-hours-table td:first-child{font-weight:700;width:34%;padding-left:0}
.af-hours-table td:last-child{text-align:right;padding-right:0}
.af-hours-table tr:last-child td{border-bottom:0!important}
.af-hours-table tr.is-today td{background:rgba(255,255,255,.12)}
.af-hours-table tr.is-today td:first-child{padding-left:8px;border-radius:4px 0 0 4px}
.af-hours-table tr.is-today td:last-child{padding-right:8px;border-radius:0 4px 4px 0}
.af-hours-table tr.is-off td:last-child{opacity:.72}
.af-card .af-contact{margin:16px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.22);font-size:13px;line-height:1.7}

/* ===== Oldalsáv ===== */
.sidebar-right__inner .widget,.sidebar-right__inner .widget__inner{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;margin:0}
.sidebar-right__inner .widget{margin-bottom:16px}
.sidebar-right__inner .af-card{margin:0}
.sidebar-right__inner .af-card--plain ul{margin:0;padding-left:18px;font-size:13.5px;line-height:1.8}
.sidebar-right__inner .af-card--plain figure{margin:0 0 12px}
.sidebar-right__inner .af-card--plain img{display:block;max-width:100%;height:auto}

/* ===== Aloldalak: címsáv, tartalom ===== */
.main__header{background:#fff!important;border:1px solid #DDE5EC!important;border-left:4px solid #0B5A9E!important;border-radius:8px;padding:16px 22px!important;margin:0 0 16px!important;box-shadow:none!important}
.main__header::before,.main__header::after,.main__title::after,.main__title::before{display:none!important}
.main__title{color:#0A3F6E!important;font-size:22px!important;line-height:1.3!important;font-weight:700!important;margin:0 0 4px!important;padding:0!important;text-transform:none!important}
.main__header .breadcrumbs,.main__header .breadcrumbs__inner{margin:0;padding:0;background:none!important}
.main__header .breadcrumbs__list{margin:0}
.main__header .breadcrumbs__link,.main__header .breadcrumbs__item,.main__header .breadcrumbs__item-decor{color:#66737C!important;font-size:12.5px}
.main__header .breadcrumbs__link:hover{color:#0B5A9E!important}
.c-content-box{background:#fff;border:1px solid #DDE5EC;border-radius:8px;box-shadow:none!important;padding:24px 28px}
.c-content-box p,.c-content-box li{font-size:15px;line-height:1.7}
.c-content-box h2{font-size:20px;color:#0A3F6E;margin:30px 0 10px}
.c-content-box h3{font-size:17px;color:#0A3F6E;margin:24px 0 8px}
.c-content-box h4{font-size:15px;color:#0A3F6E;margin:20px 0 6px}
.c-content-box a{color:#0B5A9E}
.c-content-box img{max-width:100%;height:auto}
.c-content-box hr{border:0;border-top:1px solid #DDE5EC;margin:22px 0}
.c-content-box table{width:100%;border-collapse:collapse;margin:14px 0}
.c-content-box td,.c-content-box th{padding:8px 10px;vertical-align:top}
.c-content-box table[border],.c-content-box table:has(th){border:1px solid #DDE5EC}
.c-content-box table[border] td,.c-content-box table:has(th) td,.c-content-box table:has(th) th{border:1px solid #DDE5EC}
.c-content-box th{background:#E8F1F9;color:#0A3F6E;text-align:left}
.c-content-box a[href$=".pdf"]::before{content:"";display:inline-block;width:13px;height:15px;margin-right:7px;vertical-align:-2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Cpath d='M1 0h8l4 4v11H1z' fill='%23d9534f'/%3E%3Cpath d='M9 0v4h4' fill='%23f2b8b6'/%3E%3C/svg%3E") no-repeat}
.post__thumbnail{margin:0 0 18px}
.post__thumbnail img{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:8px}
.post-navigation .c-content-box{padding:14px 20px}
@media (max-width:700px){.c-content-box{padding:16px 16px}.main__header{padding:14px 16px!important}.main__title{font-size:19px!important}}

/* finomhangolás 5 */
.columns__inner{padding-top:22px!important}
.post__meta-author{display:none}
.af-hours-table td:first-child{padding-left:8px}
.af-hours-table td:last-child{padding-right:8px}
.af-card--hours h3{margin-bottom:4px}

/* finomhangolás 6: hírlista (archívum) rácsban, kisebb képek a táblázatokban */
.post-archive{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.post-archive>*:not(article){grid-column:1/-1}
.post-archive>.main__header{margin-bottom:0!important}
.post-archive .post__inner.c-content-box{padding:0;overflow:hidden;height:100%;display:flex;flex-direction:column}
.post-archive .post__thumbnail{margin:0}
.post-archive .post__thumbnail img{aspect-ratio:16/10;max-height:none;border-radius:0;width:100%;object-fit:cover}
.post-archive .post__title{font-size:16px;line-height:1.3;margin:0;padding:14px 16px 0}
.post-archive .post__title a{color:#0A3F6E;text-decoration:none}
.post-archive .post__content{padding:10px 16px 0}
.post-archive .post__content p:not(.post__permalink){display:none}
.post-archive .post__permalink{margin:0 0 12px}
.post-archive .post__permalink a{display:inline-block;padding:6px 14px;border:1px solid #0B5A9E;border-radius:6px;font-size:13px;font-weight:600;text-decoration:none;color:#0B5A9E}
.post-archive .post__permalink a:hover{background:#0B5A9E;color:#fff}
.post-archive .post__footer{padding:0 16px 14px;margin-top:auto;font-size:12.5px;color:#66737C}
.post-archive .post__footer .post__meta{margin:0;padding:0;list-style:none}
@media (max-width:700px){.post-archive{grid-template-columns:minmax(0,1fr)}}
.c-content-box table img{max-width:150px;height:auto}

/* mobil fejléc */
@media (max-width:1100px){
 .header__content-inner{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;text-align:left;gap:10px}
 .header-logo{width:auto!important;margin:0!important;flex:none;float:none!important}
 .header-logo__image{max-height:48px}
 .af-brand{margin:0 auto 0 4px}
 .header-toolbar-toggle{margin-left:auto;float:none!important;position:static!important}
 .header-toolbar{flex:0 0 100%;position:static!important}
}

/* orvosi kártyák */
.af-medical{gap:16px;margin:0 0 10px!important;align-items:stretch!important}
.af-medical .wp-block-column{display:flex;margin:0!important}
.af-medical .af-card{width:100%;margin:0}
.af-medical .af-card--plain{border-top:3px solid #0B5A9E}
.af-card--plain .af-hours-table td{color:#27323A;border-bottom:1px solid #E6ECF2!important}
.af-card--plain .af-hours-table tr.is-today td{background:#E8F1F9}
.af-hours-table td small{display:block;font-size:12px;font-weight:400;line-height:1.4;opacity:.75;margin-top:2px}
.af-card--plain h4{color:#0A3F6E;opacity:1}
.af-card--plain .af-contact{border-top:1px solid #E6ECF2;color:#27323A}
.af-card .af-place{font-size:13px;margin:0 0 8px;opacity:.8}

/* orvosi kártyák: egyel nagyobb betű */
.af-medical .af-card h3{font-size:19px}
.af-medical .af-card h4{font-size:13px}
.af-medical .af-place{font-size:14.5px}
.af-medical .af-hours-table table{font-size:15.5px}
.af-medical .af-hours-table td{padding:9px 8px}
.af-medical .af-hours-table td small{font-size:13.5px;opacity:.8}
.af-medical .af-contact,.af-medical .af-card p{font-size:15px}

/* orvosi kártyák: 2 oszlop, a jobb oldalon két kártya egymás alatt */
.af-medical .wp-block-column{flex-direction:column;gap:16px}
.af-medical .wp-block-column>.af-card:last-child{flex:1}

/* nyitvatartás: ne törje az időpontot */
.af-hours-table td:first-child{width:auto;white-space:nowrap}
.af-hours-table td:last-child{text-align:right}

/* menü: egy sorban közepes szélességen */
@media (min-width:1101px) and (max-width:1260px){.header-menu__list>li>a{font-size:12.5px!important;padding-left:9px!important;padding-right:9px!important;letter-spacing:0}}

.c-content-box a[href$='.doc']::before,.c-content-box a[href$='.docx']::before,.c-content-box a[href$='.odt']::before{content:'';display:inline-block;width:13px;height:15px;margin-right:7px;vertical-align:-2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Cpath d='M1 0h8l4 4v11H1z' fill='%230B5A9E'/%3E%3Cpath d='M9 0v4h4' fill='%239cc3e6'/%3E%3C/svg%3E") no-repeat}
.c-content-box a[href$='.xls']::before,.c-content-box a[href$='.xlsx']::before,.c-content-box a[href$='.ods']::before{content:'';display:inline-block;width:13px;height:15px;margin-right:7px;vertical-align:-2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Cpath d='M1 0h8l4 4v11H1z' fill='%232e8b57'/%3E%3Cpath d='M9 0v4h4' fill='%23a9d9bd'/%3E%3C/svg%3E") no-repeat}

/* Keresés a fejlécben: hangsúlyosabb, jobban látható */
.header-search .c-search-form{display:flex;align-items:stretch;border:2px solid #0B5A9E;border-radius:10px;background:#F3F7FB;overflow:hidden;box-shadow:0 1px 3px rgba(11,90,158,.12);transition:box-shadow .15s,background .15s}
.header-search .c-search-form:focus-within{background:#fff;box-shadow:0 0 0 3px rgba(11,90,158,.22)}
.header-search .c-search-form__input{border:0!important;background:transparent!important;padding:0 14px!important;height:42px!important;font-size:15px!important;color:#27323A!important;min-width:150px}
.header-search .c-search-form__input::placeholder{color:#3f5668;opacity:1;font-style:normal;font-weight:600}
.header-search .c-search-form__button{width:46px!important;height:42px!important;border-radius:0!important}
.header-search .c-search-form__input{min-width:180px!important;width:100%}
.header-search .c-search-form__input::placeholder{font-weight:500}

.header-search .c-search-form__inner{position:relative;flex:1 1 auto;width:100%}
.header-search .c-search-form__input{width:100%!important;box-sizing:border-box;padding-right:56px!important}
.header-search .c-search-form__button{position:absolute!important;top:0;right:0;bottom:0;height:auto!important}

/* Akadálymentesség */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #0B5A9E!important;outline-offset:2px!important;box-shadow:0 0 0 2px #fff}
.header-menu a:focus-visible,.header-mobile-menu a:focus-visible,.footer-widgets a:focus-visible,.af-uf-info a:focus-visible,.af-kv--polgarmester a:focus-visible{outline-color:#fff!important;box-shadow:0 0 0 2px #0A3F6E}
.af-ido__forras{color:#55606a!important}
.af-kv--inaktiv{opacity:1!important}
.af-kv--inaktiv .af-kv__nev,.af-kv--inaktiv .af-kv__szerep{color:#4a5560!important}
.af-kv--inaktiv .af-kv__av{background:#EEF1F4!important;color:#3d4852!important}
.af-kv--inaktiv .af-kv__chip{color:#2f3b46!important}
.wp-block-table.af-hours-table,.af-kd-tabla{overflow:visible!important}
.af-kd-tabla td{overflow-wrap:anywhere}
.af-show__dots{gap:15px!important}.af-show__dots button{margin:0!important}
.footer-widgets{background:#282828!important}
.af-kd-tabla td a,.af-hirinfo a,.af-eu-megj a{text-decoration:underline}

.af-years__tab span{color:#0A3F6E!important;background:#E8F1F9!important}
.af-years__tab.is-on span{background:#fff!important;color:#0A3F6E!important}
.af-uf-ido a{display:inline-block;min-height:24px;line-height:24px}
.af-uf-sor.is-halotti .af-uf-ido,.af-uf-sor.is-zarva .af-uf-ido,.af-uf-sor.is-zarva .af-uf-nap{color:#56616b!important}

/* a11y-toolbar */
.a11y-toolbar{top:45vh!important;bottom:auto!important}
.a11y-toolbar ul li button{background:#E8F1F9!important;color:#0A3F6E!important;border-top:1px solid #fff!important;border-bottom:1px solid #C9DBEC!important}
.a11y-toolbar ul li button:hover,.a11y-toolbar ul li button:focus-visible{background:#0B5A9E!important;color:#fff!important}
@media (max-width:600px){.a11y-toolbar{top:60vh!important}}
