/* ===== Alapbeállítások ===== */
:root {
    --piros: #ce1515;
    --feher: #ffffff;
    --zold: #477050;
    --arany: #d4a017;
    --dark: #1a1a2e;
    --gray: #f5f5f5;
    --text: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--feher);
}

/* ===== Navigáció ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--piros), var(--zold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--piros);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--piros);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(206, 21, 21, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(71, 112, 80, 0.15) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--feher);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight-piros {
    color: var(--piros);
}

.hero-title .highlight-zold {
    color: var(--zold);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--piros);
    color: var(--feher);
    border-color: var(--piros);
}

.btn-primary:hover {
    background: transparent;
    color: var(--feher);
    border-color: var(--feher);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(206, 21, 21, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--feher);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--feher);
    transform: translateY(-3px);
}

/* ===== Szekciók ===== */
.section {
    padding: 100px 20px;
}

.section-dark {
    background: var(--dark);
    color: var(--feher);
}

.section-gray {
    background: var(--gray);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--piros), var(--zold));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-gray .section-subtitle {
    color: #666;
}

/* ===== Történelem ===== */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--piros), var(--zold));
    top: 0;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    left: 50%;
}

.timeline-item:nth-child(even) {
    left: 0;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--piros);
    border-radius: 50%;
    border: 4px solid var(--feher);
    box-shadow: 0 0 20px rgba(206, 21, 21, 0.3);
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -10px;
}

.timeline-content {
    background: var(--feher);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    max-width: 450px;
    position: relative;
}

.timeline-content h3 {
    color: var(--piros);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-content .year {
    display: inline-block;
    background: var(--piros);
    color: var(--feher);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    line-height: 1.7;
}

/* ===== Kultúra ===== */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.culture-card {
    background: var(--feher);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--piros), var(--zold));
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--piros), var(--zold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.culture-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.culture-card p {
    color: #666;
    line-height: 1.7;
}

/* ===== Hírek ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--feher);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, var(--piros), var(--zold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

.news-body {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--piros);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.news-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: var(--piros);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.news-link:hover {
    gap: 10px;
}

/* ===== Kapcsolat ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--feher);
}

.contact-info p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    color: var(--feher);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-detail p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--feher);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--piros);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.form-group select option {
    color: var(--dark);
    background: var(--feher);
}

/* ===== Footer ===== */
.footer {
    background: #0d0d1a;
    color: rgba(255,255,255,0.7);
    padding: 60px 20px 30px;
}

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

.footer h3 {
    color: var(--feher);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--piros);
}

.footer p {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--piros);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Reszponzivitás ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
        right: auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

/* ===== Page Hero (aloldalakhoz) ===== */
.page-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(206, 21, 21, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(71, 112, 80, 0.1) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-content h1 {
    font-size: 3rem;
    color: var(--feher);
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Bővített idővonal (tortenelmunk.php) ===== */
.detailed-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-block {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--feher);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.timeline-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.timeline-block-year {
    min-width: 160px;
    background: linear-gradient(135deg, var(--piros), var(--zold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 30px 20px;
    text-align: center;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}

.timeline-block-content {
    padding: 30px 30px 30px 20px;
    flex: 1;
}

.timeline-block-content h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.timeline-block-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--piros);
    border-radius: 2px;
}

.timeline-block-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===== Galéria ===== */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: var(--feher);
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--piros);
    color: var(--piros);
}

.filter-btn.active {
    background: var(--piros);
    color: var(--feher);
    border-color: var(--piros);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: transform .4s ease;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-icon {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--feher);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* ===== Szervezetek kártyák ===== */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.org-card {
    background: var(--feher);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.org-card-header {
    background: linear-gradient(135deg, var(--piros), var(--zold));
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.org-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.org-card-header h3 {
    color: var(--feher);
    font-size: 1.15rem;
    line-height: 1.3;
}

.org-card-body {
    padding: 25px;
}

.org-card-body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.org-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.org-details span {
    font-size: 0.9rem;
    color: #666;
}

.org-details a {
    color: var(--piros);
    text-decoration: none;
}

.org-details a:hover {
    text-decoration: underline;
}

/* ===== Statisztikák ===== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 35px 20px;
    border-radius: 20px;
    color: var(--feher);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.stat-card-red { background: linear-gradient(135deg, #ce1515, #a01010); }
.stat-card-green { background: linear-gradient(135deg, #477050, #2d4a39); }
.stat-card-gold { background: linear-gradient(135deg, #d4a017, #a07810); }
.stat-card-blue { background: linear-gradient(135deg, #0f3460, #081d36); }

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stat-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* ===== Grafikonok ===== */
.chart-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--feher);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.chart-table-wrapper {
    overflow-x: auto;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--feher);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.chart-table thead {
    background: linear-gradient(135deg, var(--piros), var(--zold));
    color: var(--feher);
}

.chart-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.chart-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #555;
}

.chart-table tr:hover td {
    background: #fafafa;
}

.chart-table tr:last-child td {
    border-bottom: none;
}

/* ===== Statisztika szöveg + kördiagram ===== */
.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.stats-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.stats-chart-small {
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Reszponzív ===== */
@media (max-width: 992px) {
    .timeline-block {
        flex-direction: column;
    }
    
    .timeline-block-year {
        writing-mode: horizontal-tb;
        transform: none;
        min-width: auto;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .timeline-block-content {
        padding: 20px;
    }
    
    .stats-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .org-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
}
