* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    background:#f4f6f9;
    color:#1f2937;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 80px 0;

}
.section.light {
    background:white;
}

.section h2 {
    position: relative;
    margin-bottom: 60px;
    color: #0f2a44;
    text-align: center;
}

.section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d4af37;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.carousel {
    width: 100%;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 700px;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.slides img.active {
    display:block;
    animation:fade 1s;
}

@keyframes fade {
    from {opacity:0;}
    to {opacity:1;}
}

.news-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.news-card {
    background:white;
    width: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

.news-content a {
    font-size: 0.8rem;;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.news-button{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 18px;   
    background: #d4af37;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.news-button:hover{
    background: white;
    color: #d4af37;
    transform: translateY(-2px);
    border: 1px solid #d4af37;
}

.news-button i{
    font-size:14px;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-info-box {
    flex: 0 1 420px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    border-left: 4px solid #d4af37;
    padding-left: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    background: #f4f6f9;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 18px;
}

.contact-item strong {
    display: block;
    font-size: 15px;
    color: #0f2a44;
}

.contact-item p {
    margin-top: 4px;
    font-size: 14px;
    color: #4b5563;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.contact-person img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.person-name {
    font-weight: 600;
    color: #0f2a44;
    margin-top: 3px;
}

.map-box {
    flex: 1;
    max-width: 600px;
}

.map-box iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

@media(max-width:768px){

    .logo img {
        height: 45px;
    }

    .logo-text strong {
        font-size: 16px;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .contact-info-box {
        border-left: none;
        border-top: 4px solid #d4af37;
        padding-left: 0;
        padding-top: 25px;
    }

    .map-box iframe {
        height: 250px;
    }
    .section {
        padding: 50px 0;
    }

    .contact-person img {
        width: 85px;
        height: 85px;
    }
}


/*GALÉRIA*/

.year-block {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8fafc;
    cursor: pointer;
}

.year-header h2 {
    margin: 0;
    font-size: 22px;
}

.year-header i {
    transition: 0.3s;
}

.year-block.active .year-header i {
    transform: rotate(180deg);
}

.year-content {
    display: none;
    padding: 25px;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.year-block.active .year-content {
    display: flex;
}

.event-card {
    width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-info h3 {
    margin-bottom: 8px;
}

.event-info p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.lightbox-controls {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.lightbox-controls button {
    background: #d4af37;
    border: none;
    padding: 12px 18px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.event-gallery {
    display: none;
}

.event-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 8px 14px;
    font-size: 13px;
    background: #f8fafc;
    border-radius: 6px;
    text-decoration: none;
    color: #0f2a44;
    transition: 0.3s;
    border: 1px solid #e5e7eb;
}

.event-pdf i {
    color: #c0392b;
}

.event-pdf:hover {
    background: #d4af37;
    color: white;
}

.event-pdf:hover i {
    color: white;
}

.sponsor-section {
    text-align: center;
    margin-bottom: 3rem;
}

.sponsor-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-box {
    padding: 30px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.sponsor-box img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.sponsor-box:hover {
    transform: translateY(-5px);
}

.sponsor-wrapper h2 {
    margin-bottom: 0.5rem;
}

/*PÁLYÁZATOK*/
.palyazatok{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    margin-top:30px;
}

.palyazat-card{
    flex:1 1 320px;
    background:white;
    border-radius:12px;
    padding:26px;
    border:1px solid #e5e7eb;
    box-shadow:0 8px 22px rgba(0,0,0,0.05);
    display:flex;
    flex-direction:column;
}

.palyazat-title{
    font-size:18px;
    line-height:1.5;
    margin-bottom:20px;
    color:#0f2a44;
    min-height:90px;
}

.palyazat-meta{
    border-top:1px solid #e5e7eb;
    border-bottom:1px solid #e5e7eb;
    padding:15px 0;
    margin-bottom:20px;
}

.meta-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:6px 0;
}

.meta-row span{
    color:#6b7280;
    font-size:14px;
}

.meta-row strong{
    font-weight:600;
}

.amount{
    color:#0f2a44;
    font-size:17px;
}

.palyazat-pdf{
    margin-top:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 16px;
    border:1px solid #e5e7eb;
    border-radius:6px;
    background:#f8fafc;
    color:#0f2a44;
    text-decoration:none;
    font-weight:500;
    width:auto;
    align-self:center;
    transition:.2s;
}

.palyazat-pdf i{
    color:#c0392b;
}

.palyazat-pdf:hover{
    background:#d4af37;
    color:white;
}

.palyazat-pdf:hover i{
    color:white;
}

@media (max-width: 1253px){

    .palyazatok{
        flex-direction:column;
    }
}

/*DOKUMENTUMOK*/
.dokumentumok {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.dokumentum-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(25% - 19px); /* 4 oszlop */
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.dokumentum-card:hover {
    transform: translateY(-5px);
}

.dokumentum-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.dokumentum-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.dokumentum-pdf {
    margin-top: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c62828;
    font-weight: 600;
    text-decoration: none;
}

.dokumentum-pdf:hover {
    text-decoration: underline;
}


@media (max-width: 1024px) {
    .dokumentum-card {
        width: calc(50% - 13px); /* 2 oszlop */
    }
}

@media (max-width: 600px) {
    .dokumentum-card {
        width: 100%; /* 1 oszlop */
    }
}