/*
Theme Name: Jászfényszaru Város
Theme URI: https://jaszfenyszaru.hu
Author: Jászfényszaru Önkormányzat
Author URI: https://jaszfenyszaru.hu
Description: Jászfényszaru város hivatalos honlapja - reszponzív, mobil-barát és akadálymentes design
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jaszfenyszaru
Tags: accessibility-ready, responsive-layout, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0473bd;
    --primary-dark: #054169;
    --primary-light: #4a8f4c;
    --secondary-color: #0473bd;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #dddddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: transparent;
    color: var(--white);
    padding: 0;
    display: flex;
    justify-content: center;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: var(--primary-color);
    max-width: 1440px;
    width: 100%;
    padding: 8px 20px;
}

.header-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.header-contact a {
    color: var(--white);
    text-decoration: none;
}

.header-contact a:hover { text-decoration: underline; }

.accessibility-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.accessibility-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--white);
    color: var(--white);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.accessibility-controls button:hover,
.accessibility-controls button:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: 2px solid var(--white);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
}

.site-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}


.main-navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    max-width: 1440px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 8px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus {
    background-color: var(--primary-dark);
    outline: none;
}

.main-navigation .current-menu-item > a {
    background-color: var(--primary-dark);
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    min-width: 250px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 4px;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--primary-dark);
    outline: 2px solid var(--secondary-color);
}

.hero-slider {
    border-radius: 8px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 40px 20px;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
}

.hero-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.content-area {
    padding: 40px 0;
}

.site-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.content-section {
    background: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--primary-dark);
}

.news-excerpt {
    color: var(--text-color);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover,
.read-more:focus {
    background: var(--primary-dark);
    text-decoration: none;
}

.widget {
    background: var(--bg-light);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.site-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 0;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 2px;
}

.footer-widget a {
    color: var(--white);
    text-decoration: none;
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 5px;
    text-align: center;
}

.footer-bottom p {
    margin: 2px 0;
    font-size: 0.9rem;
}

.eu-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.eu-logos img {
    height: 60px;
    width: auto;
}

@media screen and (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .site-title { font-size: 1.5rem; }
    .hero-slider { height: 320px; }
    .hero-content h2 { font-size: 2rem; }
}

@media screen and (max-width: 768px) {
    /* Rejtsük el a felső sávot mobilon */
    .header-top { display: none; }

    /* Kompakt fejléc */
    .header-main { padding: 8px 0; }
    .header-main .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Kis logo, egy sorban a site info-val */
    .site-branding {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    .site-logo img { max-height: 40px; }

    /* Site title kisebb, description eltűnik */
    .site-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    .site-description { display: none; }

    /* Hamburger menü */
    .menu-toggle {
        display: block;
        padding: 8px 12px;
    }

    /* Navigáció rejtve, csak megnyitva látszik */
    .main-navigation {
        position: relative;
        background-color: var(--primary-color);
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        display: none;
    }
    .main-navigation li:hover > ul,
    .main-navigation li:focus-within > ul {
        display: flex;
    }
    .main-navigation a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Tartalom */
    .hero-slider { height: 240px; }
    .hero-content { padding: 20px 15px; }
    .hero-content h2 { font-size: 1.5rem; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 15px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .content-section { padding: 20px 15px; }
    .header-contact {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 5px;
    }
    .accessibility-controls {
        flex-direction: column;
        gap: 5px;
    }
}

pre, code, kbd, samp {
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 0.9em;
    background-color: var(--bg-light);
    padding: 2px 5px;
    border-radius: 3px;
}

pre {
    padding: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.sidebar pre {
    padding: 6px !important;
}

.sidebar .widget pre {
    padding: 4px !important;
}

.sidebar .textwidget,
.sidebar .widget_text .textwidget,
.sidebar .widget_custom_html .textwidget {
    padding: 0 !important;
}

:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #1a3d1b;
        --text-color: #000000;
        --border-color: #000000;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media print {
    .site-header,
    .main-navigation,
    .menu-toggle,
    .accessibility-controls,
    .hero-slider,
    .site-footer,
    .read-more {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    .content-section {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ==========================================================================
   Sidebar Layout Styles
   ========================================================================== */

/* Layout alapok */
.content-wrapper {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

/* Teljes szélesség (nincs sidebar) */
.layout-full .content-wrapper {
    grid-template-columns: 1fr;
}

/* Bal oldali sidebar */
.layout-left-sidebar .content-wrapper {
    grid-template-columns: 340px 1fr;
}

/* Jobb oldali sidebar */
.layout-right-sidebar .content-wrapper {
    grid-template-columns: 1fr 260px;
}

/* Mindkét oldali sidebar */
.layout-both-sidebars .content-wrapper {
    grid-template-columns: 340px minmax(auto, 780px) 260px;
}

/* Központosítás, ha az összes tartalom keskenyebb, mint a konténer */
.layout-both-sidebars .content-wrapper {
    justify-content: center;
}

/* Sidebar stílusok */
.sidebar {
    background: var(--bg-light);
    padding: 5px;
    border-radius: 8px;
}

.sidebar-left {
    padding: 5px !important;
}

.sidebar-left .widget {
    padding: 8px !important;
}

.sidebar-right {
    padding: 5px !important;
}

.sidebar-right .widget {
    padding: 8px !important;
}

.sidebar .widget {
    margin-bottom: 15px;
    padding: 10px !important;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .widget-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--secondary-color);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar a:hover,
.sidebar a:focus {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Sidebar responsive design */
@media screen and (max-width: 992px) {
    .layout-both-sidebars .content-wrapper {
        grid-template-columns: 340px 1fr 260px;
    }
}

@media screen and (max-width: 768px) {
    .layout-left-sidebar .content-wrapper,
    .layout-right-sidebar .content-wrapper,
    .layout-both-sidebars .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .site-main {
        order: 1;
    }
}

/* ==========================================================================
   Mobil fix: Képek és tartalom túlnyúlás javítása
   ========================================================================== */

/* Minden kép responsive legyen */
img {
    max-width: 100%;
    height: auto;
}

/* Entry content elemek ne nyúljanak túl */
.entry-content img,
.entry-content table,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100%;
    height: auto;
}

/* Táblázatok görgethetők mobilon */
@media screen and (max-width: 768px) {
    .entry-content {
        overflow-x: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .entry-content img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* WordPress beágyazott tartalom */
    .entry-content .wp-block-image,
    .entry-content .wp-block-embed {
        max-width: 100%;
    }
    
    .entry-content iframe {
        max-width: 100%;
    }
}

/* Content section responsive padding */
@media screen and (max-width: 480px) {
    .content-section {
        padding: 15px !important;
    }
    
    .entry-content {
        font-size: 1rem;
        word-break: break-word;
    }
}

/* WordPress tartalom képek méretezése */
.page-content .entry-content img,
.single-post .entry-content img,
.entry-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

/* Container biztonság mobilon */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .content-area {
        overflow-x: hidden;
    }
    
    .site-main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .content-section {
        padding: 20px 15px !important;
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .content-section {
        padding: 15px 10px !important;
    }
}

/* ==========================================================================
   Page és Single Post specifikus stílusok
   ========================================================================== */

/* Oldal tartalom stílusok */
.page-content .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

.page-content .entry-title {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.page-content .page-thumbnail {
    margin-bottom: 30px;
}

.page-content .page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-content .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content .entry-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-content .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.page-content .entry-content ul,
.page-content .entry-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-content .entry-content li {
    margin-bottom: 10px;
}

.page-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.page-content .entry-content th,
.page-content .entry-content td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.page-content .entry-content th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.page-content .entry-content tr:nth-child(even) {
    background: var(--bg-light);
}

/* Single post stílusok */
.single-post .entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.single-post .entry-meta .separator {
    margin: 0 8px;
}

.single-post .entry-meta a {
    color: var(--primary-color);
}

.single-post .post-thumbnail {
    margin-bottom: 30px;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.tags-links {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 5px 5px 5px 0;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.post-navigation {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
    display: block;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Responsive mobilra */
@media screen and (max-width: 768px) {
    .page-content .entry-title {
        font-size: 2rem;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}

/* ==========================================================================
   Statisztika oldal specifikus stílusok
   ========================================================================== */

.statisztika-page {
    max-width: 1200px;
    margin: 0 auto;
}

.statisztika-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    font-size: 1.8rem;
}

.statisztika-content h3 {
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.statisztika-content h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Statisztikai táblázatok */
.statisztika-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px 0;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.statisztika-content table th,
.statisztika-content table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.statisztika-content table thead th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statisztika-content table tbody tr {
    transition: background-color 0.2s ease;
}

.statisztika-content table tbody tr:nth-child(odd) {
    background: var(--white);
}

.statisztika-content table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.statisztika-content table tbody tr:hover {
    background: #f0f7f0;
}

.statisztika-content table tbody td {
    color: var(--text-color);
}

/* Számoknak jobbra igazítás */
.statisztika-content table td:last-child,
.statisztika-content table th:last-child {
    text-align: right;
}

/* Kiemelések */
.statisztika-content .stat-highlight {
    background: #fff9e6;
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
    border-radius: 4px;
}

.statisztika-content .stat-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.statisztika-content .stat-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.statisztika-content .stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.statisztika-content .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.statisztika-content .stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista stílusok */
.statisztika-content ul,
.statisztika-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

.statisztika-content li {
    margin-bottom: 10px;
}

/* Responsive statisztika táblázatok */
@media screen and (max-width: 768px) {
    .statisztika-content h2 {
        font-size: 1.5rem;
    }

    .statisztika-content h3 {
        font-size: 1.3rem;
    }

    .statisztika-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .statisztika-content table th,
    .statisztika-content table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .statisztika-content .stat-box {
        grid-template-columns: 1fr;
    }

    .statisztika-content .stat-number {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .statisztika-content table th,
    .statisztika-content table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .statisztika-content .stat-highlight {
        padding: 15px;
    }
}

