/* === Szekció blokkok – egyértelmű elválasztás === */
.section-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-left: 5px solid var(--primary);
}

.section-block.alt-bg {
    background: linear-gradient(135deg, var(--primary-softer, var(--bg)), var(--bg-tint, var(--bg)));
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-left: 5px solid var(--primary);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: none;
}

.section-heading h2 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0;
}

.section-heading .section-icon {
    font-size: 1.5rem;
}

.section-lead {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.98rem;
}

/* Gyors elérés – fő területek */
.quick-access {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 160px;
}

.quick-access-card:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.quick-access-card.kerulet {
    background: linear-gradient(135deg, #0a3770, #1e5590 55%, #2e74b8);
    box-shadow: 0 4px 18px rgba(30, 85, 144, 0.35);
}

.quick-access-card.kerulet:hover {
    box-shadow: 0 8px 28px rgba(30, 85, 144, 0.35);
}

.quick-access-card.var {
    background: linear-gradient(135deg, #5a1528, #8b2a42 55%, #a83d58);
    box-shadow: 0 4px 18px rgba(139, 42, 66, 0.35);
}

.quick-access-card.var:hover {
    box-shadow: 0 8px 28px rgba(139, 42, 66, 0.35);
}

.quick-access-card.kozterulet {
    background: linear-gradient(135deg, #0f5a38, #228b58 55%, #2ead6e);
    box-shadow: 0 4px 18px rgba(34, 139, 88, 0.35);
}

.quick-access-card.kozterulet:hover {
    box-shadow: 0 8px 28px rgba(34, 139, 88, 0.35);
}

.quick-access-card.uzemeltetes {
    background: linear-gradient(135deg, #4a3828, #6e5640 55%, #907050);
    box-shadow: 0 4px 18px rgba(110, 86, 64, 0.35);
}

.quick-access-card.uzemeltetes:hover {
    box-shadow: 0 8px 28px rgba(110, 86, 64, 0.35);
}

.quick-access-card .qa-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.quick-access-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.quick-access-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    flex: 1;
}

.quick-access-card .qa-link {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 12px;
    color: var(--accent-light);
}

/* Témakör csoportok */
.topic-group {
    margin-bottom: 28px;
}

.topic-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-left: 5px solid var(--primary);
    background: var(--primary-soft, rgba(var(--primary-rgb), 0.08));
    border-radius: 0 6px 6px 0;
}

.topic-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    list-style: none;
}

.topic-links li a {
    display: block;
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.topic-links li a:hover {
    background: var(--primary-soft, rgba(var(--primary-rgb), 0.08));
    border-color: rgba(var(--primary-rgb), 0.25);
    border-left-color: var(--primary);
    color: var(--primary-dark);
}

/* Google térkép */
.map-section {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    align-items: start;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    min-height: 360px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.map-container-wide {
    min-height: 480px;
}

.map-container-wide iframe {
    height: 480px;
}

.contact-details h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.contact-details .contact-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.94rem;
}

.contact-details .contact-row .label {
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
}

/* Hírek előnézet – kompakt */
.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.news-preview-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.news-preview-card:hover {
    border-color: var(--accent);
}

.news-preview-card .news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-preview-card h3 {
    font-size: 0.98rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.news-preview-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
}

.section-footer-link {
    text-align: center;
    margin-top: 20px;
}

.section-footer-link a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s;
}

.section-footer-link a:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Hírek oldal – archívum */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}

.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: 6px;
}

.archive-list a {
    font-size: 0.9rem;
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

/* Hasznos linkek sáv */
.info-links-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.info-links-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--primary-soft, rgba(var(--primary-rgb), 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.2s;
}

.info-links-bar a:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.featured-news-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.featured-news-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.featured-news-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    color: var(--primary);
}

.featured-news-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1.35;
}

.featured-news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-news-list {
    list-style: none;
    font-size: 0.88rem;
}

.sidebar-news-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-news-list a {
    font-weight: 500;
    display: block;
    line-height: 1.35;
}

.sidebar-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-links {
    list-style: none;
    font-size: 0.9rem;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.archive-list {
    list-style: none;
    font-size: 0.9rem;
}

.archive-list li {
    margin-bottom: 6px;
}

.under-construction {
    text-align: center;
    padding: 48px 28px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Közterületi divízió oldal */
.division-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.28);
    border-bottom: 4px solid var(--gold);
}

.division-hero-text {
    flex: 1 1 280px;
    max-width: 640px;
}

.division-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    color: var(--accent-light);
}

.division-hero-text p {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.95;
    margin: 0;
}

.division-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.division-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 18px 22px;
    min-width: 110px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.division-stat-icon {
    font-size: 1.8rem;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 8px 0 20px;
    width: 100%;
}

.org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.org-node strong {
    color: var(--primary-dark);
    font-size: 0.95rem;
    line-height: 1.35;
}

.org-node-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.org-node-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.org-node-root {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    border-color: var(--primary);
    max-width: 320px;
    width: auto;
    min-width: 240px;
}

.org-node-root strong {
    color: var(--white);
}

.org-node-branch {
    border-top: 4px solid var(--primary);
}

.org-node-garden {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08), var(--white));
}

.org-node-clean {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06), var(--white));
}

.org-node-team {
    padding: 14px 16px;
    font-size: 0.9rem;
    min-height: 72px;
    justify-content: center;
}

/* Összekötő vonalak – szinkronban az oszlopokkal */
.org-rail {
    position: relative;
    width: 100%;
    max-width: 860px;
    height: 27px;
    margin: 0 auto;
    background: transparent;
}

.org-rail-down {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 3px;
    height: 24px;
    background: var(--primary);
    transform: translateX(-50%);
}

.org-rail-across {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--primary);
}

.org-rail-quad .org-rail-across {
    left: 12.5%;
    width: 75%;
}

.org-chart-cols {
    display: grid;
    width: 100%;
    max-width: 860px;
    gap: 24px;
    margin: 0 auto;
}

.org-chart-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.org-chart-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .org-chart-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.org-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.org-col-drop {
    display: block;
    width: 3px;
    height: 24px;
    background: var(--primary);
    flex-shrink: 0;
}

.org-col-drop-short {
    height: 18px;
}

.org-col-teams {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.org-footnote {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 20px;
    background: var(--primary-softer, rgba(var(--primary-rgb), 0.06));
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    margin: 0;
}

.role-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 28px;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.role-card-lead > p:first-child {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text);
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.role-list li {
    position: relative;
    padding: 12px 14px 12px 38px;
    background: var(--primary-softer, rgba(var(--primary-rgb), 0.06));
    border-radius: 6px;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text);
    border-left: 3px solid var(--primary);
}

.role-list li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--primary);
    font-weight: 700;
}

.division-card-detail {
    font-size: 0.88rem !important;
    color: var(--text) !important;
    padding-top: 10px;
    margin-top: 10px !important;
    border-top: 1px dashed rgba(var(--primary-rgb), 0.2);
}

.division-note {
    font-size: 0.95rem;
    color: var(--text);
    margin: -8px 0 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

@media (max-width: 899px) {
    .org-rail-quad {
        display: none;
    }

    .org-chart-cols-4 .org-col-drop {
        display: none;
    }
}

@media (max-width: 860px) {
    .org-chart-cols-2,
    .org-chart-cols-4 {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .org-rail,
    .org-rail-quad {
        display: none;
    }

    .org-col-drop {
        display: none;
    }

    .org-col {
        padding-bottom: 8px;
        border-bottom: 1px dashed rgba(var(--primary-rgb), 0.15);
    }

    .org-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .division-hero {
        padding: 24px 22px;
    }

    .division-hero-stats {
        width: 100%;
        justify-content: center;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .map-section {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 280px;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 22px 18px;
    }
}
