:root {
    --primary: #d3ad93;
    --secondary: #d6bfa6;
    --text-light: #f6f4f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--primary);
    overflow-x: hidden;
}

/* --- HEADER (Pontosan mint a főoldalon) --- */
.header {
    background-color: var(--secondary);
    width: 95%;
    margin: 1.5cm auto 0 auto;
    border-radius: 60px;
    padding: 18px 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    z-index: 9999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: 70px; }

.site-title {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 35px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- KÁRTYA RÁCS ÉS IGAZÍTÁS --- */
.content { width: 90%; margin: 60px auto; }

.pszi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background: var(--secondary);
    padding: 50px 40px;
    border-radius: 30px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 350px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.pszi-icon { font-size: 3.5rem; margin-bottom: 20px; }

.card p { flex: 1; margin-bottom: 25px; font-size: 1.1rem; opacity: 0.9; }

/* --- GOMB STÍLUS ÉS IGAZÍTÁSA --- */
.pszi-btn {
    background-color: var(--text-light);
    color: var(--secondary) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
    width: 100%;
    max-width: 200px;
    transition: 0.3s;
    
    
    
    /* JAVÍTÁS: Outline eltávolítása */
    border: none;
    outline: none;
}

.pszi-btn:focus {
    /* Opcionális: a fekete outline helyett egy finom barna árnyékot adunk */
    box-shadow: 0 0 0 3px rgba(170, 118, 82, 0.5);
}

.pszi-btn:hover {
    transform: scale(1.05);
    background-color: #fff;
}

/* --- MODAL ÉS EGYEDI GÖRGETŐSÁV --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    padding: 20px;
}

.modal-content {
    background: var(--secondary);
    color: white;
    padding: 40px;
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: modalAppear 0.4s ease-out;
    text-align: left;
}

@keyframes modalAppear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px; cursor: pointer;
    
    /* Bezáró x outline-jának eltávolítása */
    border: none;
    outline: none;
}

.modal-content h2 { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.2); }

/* JAVÍTÁS: Új modal szerkezet és egyedi görgetősáv */
.modal-body {
    max-height: 70vh;
    overflow-y: auto; /* Itt engedélyezzük a görgetést */
    padding-right: 15px; /* Távolság a szöveg és a görgetősáv között */
}

.modal-body-content {
    font-size: 1.1rem;
    line-height: 1.7;
    
}

/* --- EGYEDI GÖRGETŐSÁV STÍLUSA (Modalhoz) --- */
.modal-body::-webkit-scrollbar {
    width: 10px; /* A sáv szélessége */
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* A sáv háttere (halvány fehér) */
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary); /* A görgető "gomb" színe (a világosabb barna) */
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #e1cbb3; /* Hover állapotra kicsit világosabb */
}

/* --- RESPONSIVE (1050px) --- */
@media (max-width: 1050px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 90px; right: 0;
        background: var(--secondary);
        flex-direction: column;
        width: 220px;
        padding: 20px;
        border-radius: 20px;
    }
    .nav-links.active { display: flex; }
    .site-title { font-size: 1.5rem; }
}

@media (max-width: 700px) {
    .header { padding: 15px 25px; }
    .site-title { font-size: 1.3rem; }
    .card { flex: 0 1 100%; padding: 35px; }
    .modal-content { padding: 30px; }
    .modal-body { padding-right: 10px; } /* Kisebb távolság mobilon */
}

/* Fade in animation */
.fade-in { opacity: 0; animation: fadeIn 0.8s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

#scrollTopBtn {
    position: fixed; bottom: 30px; right: 30px;
    display: none; background: var(--secondary);
    color: white; border: none; width: 50px; height: 50px;
    border-radius: 50%; cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    outline: none; /* Eltávolítva a görgető gomboutline-ját */
}
#scrollTopBtn.show { display: block; }

/* Style the paragraph inside your modal */
/* Style the header of the list */
.pszi-card strong, .modal-content strong {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50; /* Darker professional blue/grey */
    font-size: 1.1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
    
}

/* Style each list item */
.pszi-list {
    display: block;
    padding-left: 15px; /* Creates the indentation */
    margin-bottom: 5px;
    color: #555;
    font-style: normal;
    line-height: 1.5;
    position: relative;
}

/* Optional: Make the bullet point stand out */
.pszi-list::first-letter {
    color: #4a90e2; /* Matches your icon color */
    font-weight: bold;
}



