* {
    box-sizing: border-box;
}

body {
    /* content: ""; */
    /* font-family: "Marion Regular", serif; */
    /* font-size: 14px; */
    /* top: 0; */
    /* left: 0; */
    /* margin: 0; */
    /* padding: 0; */
    /* width: 100%; */
    /* height: 100%; */
    /* z-index: 0; */
    /* position: fixed; */
    background-image: url('../pics/common/background.jpg');
    /* background-size: cover; */
    /* background-position: center; */
    /* opacity: 0.8; */
}

header {
    font-family: "Marion Regular", serif;
    height: 40px;
    display: flex;
    justify-content: center;  /* vízszintesen középre */
    align-items: center;
    text-align: center;       /* szöveg középre */
    margin: auto;
    width: 100%; /* fix szélesség helyett rugalmas */
    max-width: 300px;
}

header h1 {
    margin: 0; /* hogy ne tolja el a default margó */
    font-size: 32px;
}

@media (max-width: 768px) {
    header {
        max-width: 100%; /* mobilon teljes szélesség */
        padding: 10px;
    }

    header h1 {
        font-size: 22px;
        text-align: center; /* biztosan középre kerül */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 18px; /* nagyon kicsi kijelzőkre */
    }
}

nav {
    font-family: "Marion Regular", serif;
    font-size: clamp(18px, 5vw, 36px); /* rugalmas betűméret */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* mobilon új sorba törhet */
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav li a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    transition: text-shadow 0.3s;
}

nav li a:hover {
    text-shadow: 0 0 1px black;
}

.slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    user-select: none;
}

.nav.prev {
    left: 10px;
}

.nav.next {
    right: 10px;
}

.columns {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.columns-wrapper {
    width: 60%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* ha kell, több sorba törik */
}


.column {
    background-color: #E5E5E5;
    border: 1px solid black;
    border-radius: 20px;
    padding: 20px;
    width: 30%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 400px;
}

.column-image {
    width: 90%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    margin-bottom: 15px;
}

.column-content {
    font-family: "Marion Regular", serif;
    font-size: 18px;
    flex-grow: 1;
    width: 100%;
    text-align: left;
}

.column p {
    text-align: left;
    margin-bottom: 15px;
}

.column .muted {
    color: #777;
    font-weight: normal;
}

.column button {
    height: 40px;
    padding: 0 20px;
    border-radius: 5px;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: auto;
    margin-bottom: 15px;
}

.column button:hover {
    background-color: #0056b3;
}

.button-link {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 20px;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background-color: #0056b3;
}

.publiologo {
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: fit-content;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
}

.publiologo p {
    font-family: "Marion Regular", serif;
    font-size: clamp(20px, 5vw, 36px);
    text-align: center;
    margin: 0;
}

.publiologo a img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s;
}

.publiologo a:hover img {
    cursor: pointer;
    transform: scale(1.05);
}

/* ---- Reszponzív szabályok ---- */
@media (max-width: 1024px) {
    .columns-wrapper {
        width: 80%;
    }

    .column {
        width: 45%;
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 10px;
    }

  .slider {
      position: relative;
      width: 100%;
      height: 100%;
      aspect-ratio: 16/9; /* képarány megtartás mobilon */
      overflow: hidden;
  }

    .columns-wrapper {
       width: 80%;
       justify-content: center;
       /* flex-direction: column !important; */
       /* align-items: center; */
        /* padding: 0; */
       /* gap: 20px; */
    }

    .column {
        width: 90% !important;   /* széles legyen mobilon */
        display: flex;
        min-height: auto;
        aspect-ratio: 4 / 1; /* magasság max kétszerese a szélességnek */
        overflow: hidden;    /* ha a tartalom túlnő, ne lógjon ki */        
    }

    .column-content {
        font-size: 16px;
        text-align: center;      /* mobilon középre */
    }

    .publiologo {
        order: 99;
        margin: 20px auto 0 auto;     /* legyen kis távolság az oszlopoktól */
        width: 90%;          /* teljes szélesség */
        display: flex;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    nav {
        font-size: 18px;
    }

    .column button,
    .button-link {
        width: 100%;
        text-align: center;
    }

    .publiologo a img {
        width: 80px;
    }
}
