.szerzo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.szerzo-card {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.szerzo-card a {
    color: inherit;
    text-decoration: none;
}
.szerzo-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.szerzo-name {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #5a3e85;
}
.szerzo-info p {
    margin: 4px 0;
    font-weight: normal;
}
.szerzo-info p span {
    font-weight: bold;
}
.view-btn {
    margin-top: 10px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.view-btn:hover {
    background-color: #eee;
    border-color: #888;
}
.bold-highlight {
    font-weight: bold;
}
.role {
    font-weight: bold;
    margin-top: 5px;
}
.role.admin { color: red; }
.role.moderator { color: darkgreen; }
.role.featured { color: darkblue; }
.filter-bar {
    text-align: center;
    margin: 15px 0;
}
.filter-bar a {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 5px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}
.filter-bar a:hover {
    background-color: #eee;
    border-color: #888;
}
.filter-bar a.active {
    background-color: #ddd;
    border-color: #666;
}
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin: 0 3px;
    text-decoration: none;
}
.pagination a.active {
    background-color: #007BFF;
    color: white;
}
@media (max-width: 1024px) {
    .szerzo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
    .szerzo-card {
        padding: 12px;
    }
    .szerzo-card img {
        width: 70px;
        height: 70px;
    }
    .szerzo-name {
        font-size: 1.15em;
        min-height: 36px;
    }
    .szerzo-info p {
        font-size: 0.95em;
    }
    .view-btn {
        font-size: 13px;
        padding: 5px 10px;
    }
}
@media (max-width: 600px) {
    .szerzo-grid {
        grid-template-columns: 1fr;
    }
    .szerzo-card img {
        width: 90px;
        height: 90px;
    }
    .szerzo-name {
        font-size: 1.2em;
        min-height: 30px;
    }
    .view-btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}

.category-bar {
    display: flex;
    justify-content: flex-start;   /* alapértelmezetten balra mobilon */
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.category-bar a {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.category-bar a:hover {
    background: #ddd;
}

.category-bar a.active {
    background: #0077cc;
    color: #fff;
}

/* ✅ Középre igazítás csak 768px felett (pl. tablet, desktop) */
@media (min-width: 768px) {
    .category-bar {
        justify-content: center;
    }
}
.featured-card {
    background-color: #d9eaff; /* világoskék, de ha szeretnéd, állíthatod */
}
.featured-card .view-btn {
    background-color: #b7d7ff; /* világosabb kék */
    border-color: #7fb6ff;     /* kicsit sötétebb kék */
    color: #003366 !important; /* sötétkék szöveg */
}

.featured-card .view-btn:hover {
    background-color: #a4ccff; /* hover: picit sötétebb */
    border-color: #6aa8f8;
}


/* Kiemelt szerző gomb színe MINDIG kék maradjon, mobilon is */
.featured-card a.view-btn,
.featured-card a.view-btn:link,
.featured-card a.view-btn:visited {
    color: #003366 !important;
}