/*
Theme Name: Ady Endre Iskola
Theme URI: https://aei.kalotaszentkiraly.ro/
Author: Ady Endre Iskola
Description: Responsive bilingual-ready WordPress theme for Ady Endre Iskola, Kalotaszentkirály. Polylang compatible.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ady-endre-school
*/
:root{--header:#D0C4AE;--green:#7BA428;--green-dark:#5f831d;--text:#2e2e2e;--muted:#666;--white:#fff;--line:#e7e3dc;--max:1180px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.65}
a{color:var(--green-dark);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}
.site-header{background:var(--header);padding:18px 20px 20px;position:relative}
.header-language-switcher {
    max-width: var(--max);
    margin: 0 auto 6px;
    display: flex;
    justify-content: flex-end;
    min-height: 32px;
}

.header-language-switcher,
.header-language-switcher ul,
.header-language-switcher li {
    list-style: none !important;
}

.header-language-switcher ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-language-switcher li {
    margin: 0;
    padding: 0;
}

.header-language-switcher li::before,
.header-language-switcher li::marker {
    content: none;
    display: none;
}

.header-language-switcher a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3b3936;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.header-language-switcher a:hover {
    color: var(--green-dark);
}

.header-language-switcher img {
    display: block;
    width: auto !important;
    height: 18px !important;
    border: 0;
    box-shadow: none;
}

.header-language-switcher .current-lang a {
    color: var(--green-dark);
}
.header-inner{max-width:var(--max);margin:auto;display:grid;grid-template-columns:minmax(220px,1fr) minmax(240px,330px) minmax(220px,1fr);align-items:center;gap:34px}
.school-photo{width:100%;max-height:255px;object-fit:contain;border:0;box-shadow:none;background:transparent}
.brand{text-align:center}
.school-name{margin:0;color:#3b3936;font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,3vw,43px);font-weight:500;letter-spacing:.035em;line-height:1.05}
.school-place{margin:7px 0 12px;color:#4d4944;font-family:Georgia,'Times New Roman',serif;font-size:clamp(20px,2.2vw,30px)}
.school-logo{display:block;margin:0 auto;max-height:170px;width:auto}
.main-nav{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 7px rgba(0,0,0,.04);position:relative;z-index:5}
.nav-inner{max-width:var(--max);margin:auto;display:flex;align-items:center;justify-content:center;min-height:64px;padding:0 18px}
.menu-toggle{display:none;background:var(--green);color:#fff;border:0;padding:10px 14px;font-weight:700;border-radius:4px}
.primary-menu,.primary-menu ul{list-style:none;margin:0;padding:0}
.primary-menu{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 25px}.primary-menu li{position:relative}.primary-menu a{display:block;padding:20px 4px;color:var(--green);font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.035em}.primary-menu a:hover,.primary-menu .current-menu-item>a{color:var(--green-dark);text-decoration:none}.primary-menu ul{display:none;position:absolute;left:0;top:100%;min-width:220px;background:#fff;border:1px solid var(--line);box-shadow:0 6px 16px rgba(0,0,0,.1)}.primary-menu li:hover>ul{display:block}.primary-menu ul a{padding:10px 14px;text-transform:none}.lang-switch{margin-left:24px}.lang-switch ul{list-style:none;display:flex;gap:8px;margin:0;padding:0}.lang-switch a{color:var(--green);font-weight:700}.site-main{max-width:var(--max);margin:0 auto;padding:42px 20px 64px}.hero-welcome{text-align:center;max-width:850px;margin:0 auto 44px}.hero-welcome h1{font-family:Georgia,'Times New Roman',serif;font-size:38px;font-weight:500;margin:0 0 12px}.accent{width:75px;height:3px;background:var(--green);margin:18px auto}.home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.card{border:1px solid var(--line);background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.05)}.card img{width:100%;height:190px;object-fit:cover}.card-body{padding:20px}.card h2,.card h3{font-family:Georgia,'Times New Roman',serif;margin-top:0}.card-meta{color:var(--muted);font-size:14px}.section-title{text-align:center;font-family:Georgia,'Times New Roman',serif;font-size:30px;font-weight:500;margin:46px 0 24px}.entry-title{font-family:Georgia,'Times New Roman',serif;font-size:38px;font-weight:500;line-height:1.2}.entry-content{max-width:850px}.entry-content img{border-radius:2px}.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.site-footer{background:var(--header);color:#3b3936;padding:38px 20px}.footer-inner{max-width:var(--max);margin:auto;display:grid;grid-template-columns:2fr 1fr;gap:30px}.site-footer h3{color:#3b3936}.site-footer a{color:#3b3936}.site-footer a:hover{color:#4d4944}.copyright{border-top:1px solid rgba(59,57,54,.25);margin-top:25px;padding-top:18px;font-size:13px;color:#3b3936}.wp-block-button__link,.button{background:var(--green);color:#fff!important;padding:11px 18px;border-radius:3px;display:inline-block}.pagination{margin-top:30px}.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:900px){.header-inner{grid-template-columns:1fr 220px 1fr;gap:16px}.school-photo{max-height:190px}.school-logo{max-height:130px}.home-grid,.posts-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.site-header{padding:18px 14px}.header-inner{grid-template-columns:1fr 1fr}.brand{grid-column:1/-1;grid-row:1}.photo-left{grid-column:1}.photo-right{grid-column:2}.school-photo{max-height:145px}.school-logo{max-height:125px}.nav-inner{display:block;padding:10px 16px}.menu-toggle{display:block;margin:auto}.primary-menu{display:none;flex-direction:column;align-items:stretch;padding-top:10px;gap:0}.primary-menu.open{display:flex}.primary-menu a{padding:10px 4px}.primary-menu ul{position:static;display:block;border:0;box-shadow:none;padding-left:18px}.lang-switch{margin:10px 0;text-align:center}.home-grid,.posts-grid,.footer-inner{grid-template-columns:1fr}.site-main{padding-top:30px}.entry-title{font-size:31px}}

@media(max-width:680px){.header-language-switcher{justify-content:center;margin-bottom:10px}.header-language-switcher a{font-size:12px}}
