/* ================== Általános stílusok ================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #21a391;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    color: #002746;
    text-align: center;
}

/* ================== Navigáció, logó, kereső, stb. ================== */

/* Hamburger menü */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: #21a391;
        width: 100%;
        position: absolute;
        top: 50px;
        left: 0;
    }
    .navbar ul.active {
        display: flex;
    }
    .navbar ul li {
        margin: 10px 0;
    }
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 15px;
    margin-right: auto;
}

.logo-container img {
    max-height: 50px;
    height: auto;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.1);
}

/* Kereső sáv */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    border: 2px solid #21a391;
    overflow: hidden;
    transition: width 0.3s ease;
    width: 50px;
}

.search-bar:hover {
    width: 300px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.search-bar .fa {
    position: absolute;
    right: 10px;
    font-size: 20px;
    color: #21a391;
    cursor: pointer;
}

/* Lábléc */
footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background-color: #002746;
    color: #fff;
    border-top: 4px solid #21a391;
    font-size: 14px;
}

footer a {
    text-decoration: none;
    color: #21a391;
    margin: 0 5px;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

/* ================== Bejegyzések rácsos elrendezése ================== */

/* Konténer a bejegyzéseknek */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Oszlopok automatikusan kitöltődnek */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}





/* Egyes bejegyzés kártya */
.post-card {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Bejegyzés kártya képe – egységes, fix magasság */
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Bejegyzés tartalom */
.post-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.post-info h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #002746;
}

.post-info p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Gomb a kártyán belül */
.post-info a.button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #002746;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.post-info a.button:hover {
    background-color: #21a391;
}

