/* COMPONENTS.CSS */
.container-component,.moduletable,.card,.school-card{background:#fff!important;border-radius:18px!important;box-shadow:0 4px 20px rgba(0,0,0,.06)!important;border:1px solid #f0f3f8!important;box-sizing:border-box!important}
.container-component{width:100%!important;max-width:none!important}
.moduletable,.card,.school-card{padding:20px;margin-bottom:20px}
.container-header .moduletable,.container-topbar .moduletable{box-shadow:none!important;border:0!important;background:transparent!important}
.top-a .card,.container-top-a .card{border:0!important;box-shadow:none!important;border-radius:20px!important}
.btn-pink,.btn-primary{background:var(--school-pink)!important;border-color:var(--school-pink)!important;color:#fff!important;padding:8px 18px!important;border-radius:20px!important;font-weight:600!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;gap:6px!important}
.btn-pink:hover,.btn-primary:hover{background:var(--school-pink-dark)!important;border-color:var(--school-pink-dark)!important;color:#fff!important}
.btn-blue-outline{background:transparent!important;color:var(--school-blue)!important;border:2px solid var(--school-blue)!important;padding:6px 16px!important;border-radius:20px!important;font-weight:600!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;gap:6px!important}
.btn-blue-outline:hover{background:rgba(18,58,115,.08)!important;color:var(--school-blue)!important}
.breadcrumb{background:#f8fafc!important;border-radius:12px!important;padding:10px 18px!important;border:1px solid #e2e8f0!important}

/* ==========================================
   CIKKEK ÉS CIKKLISTÁK
   ========================================== */

/* Cikklista külső térközei */
.blog-items {
    column-gap: 24px;
    row-gap: 24px;
}

/* Cikkek kártyái */
.blog-item {
    box-sizing: border-box;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2eaf3;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(18, 58, 115, 0.07);
}

/* Cikkcímek */
.blog-item h2 {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.3;
    color: #123a73;
}

.blog-item h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-item h2 a:hover {
    color: #e83e8c;
}

/* Cikkek szövege */
.blog-item p {
    line-height: 1.8;
    color: #28384d;
    margin-bottom: 16px;
}

/* Dátum */
.blog-item .published {
    margin-bottom: 14px;
    color: #687789;
    font-size: 0.9rem;
}

/* Bővebben gomb */
.blog-item .readmore a {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    background: #ffffff;
    color: #123a73;
    text-decoration: none;
}

.blog-item .readmore a:hover {
    background: #123a73;
    color: #ffffff;
}

/* Egyedi cikkoldal */
.com-content-article {
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(18, 58, 115, 0.07);
}

.com-content-article h1,
.com-content-article h2 {
    color: #123a73;
    line-height: 1.3;
}

.com-content-article p {
    line-height: 1.8;
    color: #28384d;
    margin-bottom: 16px;
}

/* Képek */
.com-content-article img,
.blog-item img {
    max-width: 100%;
    height: auto;
}

/* Mobil */
@media (max-width: 767px) {
    .blog-items {
        column-gap: 0;
        row-gap: 16px;
    }

    .blog-item {
        padding: 17px;
        border-radius: 12px;
    }

    .com-content-article {
        padding: 18px;
    }
}
/* Joomla cikklista – általános kártyastílus */
.blog-items.columns-2 > .blog-item {
    padding: 24px !important;
    box-sizing: border-box !important;
    border: 1px solid #e2eaf3 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(18, 58, 115, 0.08) !important;
}

/* Cikkek közötti távolság */
.blog-items.columns-2 {
    gap: 24px !important;
}

/* Címek */
.blog-items .blog-item .item-title {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Szöveg */
.blog-items .blog-item p {
    line-height: 1.8;
}

/* Mobil */
@media (max-width: 767px) {
    .blog-items.columns-2 > .blog-item {
        padding: 16px !important;
    }
}

/* ==========================================
   VEZÉRCIKK – TELJES SZÉLESSÉGŰ KIEMELT KÁRTYA
   ========================================== */

.blog-featured .blog-items.items-leading {
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

/* A vezércikk kártyája */
.blog-featured .items-leading > .blog-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px;
    padding: clamp(22px, 3vw, 36px);
    background: #ffffff;
    border: 1px solid #e2eaf3;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(18, 58, 115, 0.08);
}

/* A vezércikk címe */
.blog-featured .items-leading > .blog-item .item-title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.25;
    color: #123a73;
}

.blog-featured .items-leading > .blog-item .item-title a {
    color: inherit;
    text-decoration: none;
}

.blog-featured .items-leading > .blog-item .item-title a:hover {
    color: #e83e8c;
}

/* A vezércikk szövege */
.blog-featured .items-leading > .blog-item p {
    font-size: 1rem;
    line-height: 1.85;
    color: #28384d;
    margin-bottom: 20px;
}

/* A dátum */
.blog-featured .items-leading > .blog-item .published {
    margin-bottom: 16px;
    color: #687789;
    font-size: 0.9rem;
}

/* Mobil */
@media (max-width: 767px) {
    .blog-featured .items-leading > .blog-item {
        padding: 18px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .blog-featured .items-leading > .blog-item .item-title {
        font-size: 1.65rem;
    }
}

/* ==========================================
   CIKKGOMBOK – MODERN, CASSIOPEIA STÍLUS
   ========================================== */

.article-tools {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0 26px !important;
    padding: 14px 0 !important;
    border-top: 1px solid #e1eaf3;
    border-bottom: 1px solid #e1eaf3;
}

.article-tools .article-tool {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px !important;
    margin: 0 !important;
    border: 1px solid #d3dfed !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #123a73 !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgb(18 58 115 / 7%);
    cursor: pointer;
    transition: background .2s ease, color .2s ease,
                border-color .2s ease, box-shadow .2s ease;
}

.article-tools .article-tool:hover {
    background: #123a73 !important;
    color: #fff !important;
    border-color: #123a73 !important;
    box-shadow: 0 4px 12px rgb(18 58 115 / 18%);
}

.article-tools .article-tool:focus-visible {
    outline: 3px solid #e83e8c !important;
    outline-offset: 3px;
}

.article-tools .article-facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.article-tools .article-tool:hover .article-facebook-icon {
    background: #fff;
    color: #123a73;
}

/* Mobilon kényelmesen megnyomható gombok */
@media (max-width: 600px) {
    .article-tools {
        gap: 8px;
    }

    .article-tools .article-tool {
        flex: 1 1 145px;
        padding: 10px 12px !important;
    }
}

/* ==========================================
   GYENGÉNLÁTÓ MÓD – NAGY KONTRASZT
   Fekete háttér, sárga szöveg, nagy betűk
   ========================================== */

body.reading-mode,
body.reading-mode #site-grid,
body.reading-mode main,
body.reading-mode .container-component,
body.reading-mode .com-content-article,
body.reading-mode .com-content-article__body {
    background: #000 !important;
    color: #ffeb00 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* A cikk szövege */
body.reading-mode .com-content-article__body,
body.reading-mode .com-content-article__body p,
body.reading-mode .com-content-article__body li,
body.reading-mode .com-content-article__body td,
body.reading-mode .com-content-article__body th,
body.reading-mode .com-content-article__body span,
body.reading-mode .com-content-article__body div {
    color: #ffeb00 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 22px !important;
    line-height: 1.9 !important;
    letter-spacing: 0.03em;
}

/* Címsorok */
body.reading-mode .com-content-article h1,
body.reading-mode .com-content-article h2,
body.reading-mode .com-content-article h3,
body.reading-mode .com-content-article h4 {
    color: #ffeb00 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

/* Linkek */
body.reading-mode .com-content-article__body a {
    color: #00ffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

/* Listajelek és kiemelések */
body.reading-mode .com-content-article__body strong,
body.reading-mode .com-content-article__body b {
    color: #fff !important;
    font-weight: 800 !important;
}

/* Képek maradjanak arányosak */
body.reading-mode .com-content-article img {
    max-width: 100% !important;
    height: auto !important;
}

/* Az eszköztár is maradjon jól olvasható */
body.reading-mode .article-tools {
    background: #000 !important;
    border-color: #ffeb00 !important;
}

body.reading-mode .article-tools .article-tool {
    background: #000 !important;
    color: #ffeb00 !important;
    border: 2px solid #ffeb00 !important;
    font-size: 17px !important;
}

body.reading-mode .article-tools .article-tool:hover,
body.reading-mode .article-tools .article-tool:focus-visible {
    background: #ffeb00 !important;
    color: #000 !important;
}

/* Látható fókusz billentyűzetes használathoz */
body.reading-mode a:focus-visible,
body.reading-mode button:focus-visible {
    outline: 4px solid #00ffff !important;
    outline-offset: 4px;
}


/* =====================================================
   CIKKKÉPEK – DR. SZENT-GYÖRGYI ALBERT ÁLTALÁNOS ISKOLA
   Bevezető kép: .cikk-kep-intro
   Teljes cikk képe: .cikk-kep-full
   ===================================================== */

/* KÖZÖS ALAPBEÁLLÍTÁSOK */
.cikk-kep-intro,
.cikk-kep-full {
    box-sizing: border-box;
}

.cikk-kep-intro img,
.cikk-kep-full img {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
    height: auto;
}

/* =====================================================
   1. BEVEZETŐ KÉP – CIKKLISTA
   Középre igazítás, keret és árnyék
   ===================================================== */

.cikk-kep-intro {
    display: block;
    width: 60%;
    text-align: center;
    margin: 0 auto 1.25rem;
}

.cikk-kep-intro img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #6597daa1;
    border-radius: 10px;
    background: #fff;
}

/* =====================================================
   2. TELJES CIKK KÉPE – ASZTALI NÉZET
   Jobbra igazítás, balra folyó szöveg
   Vékony keret, árnyék nélkül
   ===================================================== */

.cikk-kep-full {
    float: right;
    width: 38%;
    max-width: 420px;
    margin: 0 0 1.25rem 1.75rem;
    padding: 4px;
    border: 1px solid #dce5f1;
    border-radius: 3px;
    box-shadow: none;
}

.cikk-kep-full img {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* A szöveg és a kép után szűnjön meg a körbefolyatás */
.cikk-kep-full::after {
    content: "";
    display: block;
    clear: both;
}

/* =====================================================
   3. MOBILNÉZET
   Teljes cikk képe felül, középen, 90%-os szélességgel
   ===================================================== */

@media (max-width: 767.98px) {
    .cikk-kep-intro {
        width: 100%;
        margin: 0 auto 1rem;
    }

    .cikk-kep-intro img {
        max-width: 100%;
    }

    .cikk-kep-full {
        float: none;
        display: block;
        width: 90%;
        max-width: 90%;
        margin: 0 auto 1.5rem;
        padding: 4px;
        border: 1px solid #dce5f1;
        border-radius: 3px;
        box-shadow: none;
    }

    .cikk-kep-full img {
        width: 100%;
    }
}


