/* ==========================================================================
   ALAPBEÁLLÍTÁSOK ÉS VÁLTOZÓK (Admine kompatibilis)
   ========================================================================== */
:root {
    /* Az adminfelületről vezérelhető alap színek */
    --bg-main: #ffffff;
    --text-main: #111111;
    --nav-bg: #2e7d32;         /* Specifikáció szerinti zöld */
    --nav-text: #ffffff;
    --box-yellow-header: #ffca28; /* Sárga doboz fejléc */
    --box-red-header: #e53935;    /* Piros doboz fejléc */
    
    /* Fix dizájn elemek */
    --border-color: #cccccc;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
}

/* ==========================================================================
   FIX FELSŐ MENÜSOR (Sticky Nav)
   ========================================================================== */
.top-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-nav a {
    color: var(--nav-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-nav a:hover {
    opacity: 0.8;
}

.nav-contact, .nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--nav-text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-btn:hover {
    background-color: var(--nav-text);
    color: var(--nav-bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.nav-contact a {
    font-weight: bold;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   FŐ RÁCSRENDSZER (Main Layout)
   ========================================================================== */
.main-container {
    max-width: var(--max-width);
    
    /* AZ EREDETI 'margin: 30px auto;' HELYETT: 
       Levesszük az alsó külső margót, hogy a böngésző ne görgessen tovább a konténer után */
    margin: 30px auto 0 auto; 
    
    /* AZ EREDETI 'padding: 0 20px;' HELYETT:
       Hozzáadunk egy nagyobb alsó belső térközt (pl. 60px), így a bannernek 
       marad helye "ragadni" az oldal legalján is. */
    padding: 0 20px 20px 20px; 
    
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}
/* Bal oldali tartalom törzse */
.content-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Max 10 soros bevezető szöveg */
.intro-text {
    font-size: 1.1rem;
    max-height: 15em; /* Biztosítja a limitet vizuálisan is */
    overflow: hidden;
}

/* ==========================================================================
   ŰRLAP (Jól látható Contact Form)
   ========================================================================== */
.contact-form-section {
    background-color: #f9f9f9;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.main-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-form input, 
.main-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff;
}

.main-form textarea {
    min-height: 120px;
    resize: vertical;
}

.main-form button {
    background-color: var(--nav-bg);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.main-form button:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   DINAMIKUS SZÖVEGDOBOZOK
   ========================================================================== */
.dynamic-boxes {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.box {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: #ffffff;
}

.box-header {
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Specifikus fejlécek */
.box-yellow .box-header {
    background-color: var(--box-yellow-header);
    color: #111111; /* Sárgán a fekete betű jobban olvasható */
}

.box-red .box-header {
    background-color: var(--box-red-header);
    color: #ffffff; /* Pirosan a fehér betű az ideális */
}

.box-content {
    padding: 20px;
}

.box-entry {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.box-entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   JOBB OLDALI FIX BANNERHELYEK
   ========================================================================== */

.sidebar-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
    position: -webkit-sticky;
    position: sticky;
    
    /* Ezt az értéket emeltük meg, hogy biztosan a menüsor alatt álljon meg a görgetés */
    top: 200px; 
    
    align-self: start; 
}

/* Asztali nézetben görgetéskor a bannerek a képernyőn maradnak */
.sidebar-banners {
    position: -webkit-sticky;
    position: sticky;
    top: 80px; /* A felső menü magassága + biztonsági rés */
    height: max-content;
}

.banner {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; /* Fix arány a bannerhelyeknek */
    background-color: #eaeaea;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.banner:hover {
    transform: scale(1.02);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobil optimalizálás)
   ========================================================================== */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-contact, .nav-links, .nav-social {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-container {
        grid-template-columns: 1fr; /* Mobilon egyetlen oszlopba rendeződik minden */
        gap: 30px;
    }
    
    .sidebar-banners {
        position: static; /* Mobilon már nem lebeg, hanem beáll a tartalom alá */
    }
}
/* ==========================================================================
   FOCUS SPOTLIGHT EFFEKT (CSS)
   ========================================================================== */

/* A sötétítő réteg alaphelyzetben - láthatatlan, nem kattintható */
#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Szürkés elhalványítás erőssége */
    z-index: 990; /* Magasabb, mint a tartalom, de alacsonyabb, mint a sticky nav (1000) */
    opacity: 0;
    pointer-events: none; /* Átenged a kattintást, amíg nem aktív */
    transition: opacity 0.3s ease; /* Finom áttűnés */
}

/* Állapot, amikor az űrlap fókuszba kerül (a JS adja hozzá a body-hoz) */
body.form-focused #page-overlay {
    opacity: 1;
    pointer-events: auto; /* Most már elkapja a kattintásokat a sötét részen */
}

/* Az űrlap konténer kiemelése a sötétségből */
body.form-focused .contact-form-section {
    z-index: 995; /* Magasabb, mint az overlay (990) */
    position: relative; /* Szükséges a z-index működéséhez */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Erősebb árnyék a kiemeléshez */
    transition: box-shadow 0.3s ease;
}