/* --- 1. Alapbeállítások és Változók --- */
:root {
    --ocean-top: #003049;  /* Sötétkék */
    --ocean-bot: #001219;  /* Mélytengeri fekete-kék */
    --white-bg: #ffffff;
    --electric: #4CC9F0;      /* Elektromos türkiz a kiválasztáshoz */
    --holo-glow: rgba(255, 255, 255, 0.9);
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white-bg);
    color: var(--ocean-top);
    overflow-x: hidden;
    overflow-y: auto;
}

/* --- 2. Hero Szekció --- */
.sub-hero {
    min-height: 200px;
    height: auto;
    width: 100%;
    /* Tervrajz / Milliméterpapír minta a gradiens fölött */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to right, var(--ocean-bot), var(--ocean-top));
    background-size: 30px 30px, 30px 30px, 100% 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative; /* Fontos a gomb pozicionálásához */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

.hero-cta-button {
    display: block;
    width: 100%; 
    margin-top: 15px; 
    background: white;
    color: var(--ocean-top);
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-cta-button:hover {
    background: var(--ocean-top);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
}

.page-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.3s ease; /* Finom átmenet szövegváltáskor */
}

/* A dinamikus címke stílusa a Hero címben */
.title-tag-extension {
    color: var(--electric); /* Electric színű lesz */
    font-weight: 300; /* Vékonyabb betűtípus a kontraszt miatt */
}

/* Vissza gomb stílusa */
.back-home-btn {
    position: absolute;
    bottom: 15px; /* A Hero aljától való távolság */
    left: 10%;    /* Bal margóhoz igazítva */
    
    text-decoration: none;
    color: var(--electric);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: none; /* Kisbetűs marad */
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.back-home-btn:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(76, 201, 240, 0.6);
    transform: translateX(3px);
}

.profile-container-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-text { 
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.hero-name { font-size: 2rem; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.hero-title { font-size: 1rem; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; }

.profile-circle {
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(0, 48, 73, 0.1);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.profile-img-placeholder {
    width: 100%; height: 100%; object-fit: cover;
    background: #e0e0e0; 
}

/* --- 3. News Feed --- */
.news-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
}

/* --- 4. Hír Csempe --- */
.news-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem 2rem;
    margin-bottom: 0;
    position: relative;
    background-color: transparent;
    color: var(--ocean-top);
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 2px solid var(--ocean-top);
    border-radius: 0 !important; 
    cursor: pointer; /* Kattintható jelzés */
}

.news-card:last-child {
    border-bottom: none; /* Az utolsó alatt ne legyen vonal */
}

.news-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Rejtett csempék (szűréshez) */
.news-card.hidden {
    display: none;
}

.news-img-wrapper {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ocean-top);
    transition: all var(--transition-speed) ease;
    background-color: var(--ocean-top);
    text-indent: -10000px; 
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed) ease;
}

.news-excerpt {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    transition: color var(--transition-speed) ease;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 48, 73, 0.1);
    transition: border-color var(--transition-speed) ease;
}

.news-date {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Címkék (Interaktív) --- */
.tags-container {
    display: flex;
    gap: 10px;
}

.tag {
    background-color: var(--ocean-top);
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 10; /* Hogy a kártya felett legyen kattintható */
}

/* Hover alapállapotban */
.tag:not(.selected):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Kiválasztott címke stílusa */
.tag.selected {
    background-color: var(--electric);
    color: var(--ocean-top); /* Sötétkék szöveg a jó kontrasztért */
    box-shadow: none; 
}

/* "X" megjelenítése hoverkor a kiválasztott címkén */
.tag.selected:hover::after {
    content: " \00D7"; /* Unicode X szimbólum */
    font-weight: 900;
    margin-left: 5px;
}

/* --- 5. HOVER EFFEKTEK A KÁRTYÁN --- */
.news-card:hover {
    background-color: var(--ocean-top);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* A vonal színe ilyenkor beolvad vagy átvált */
    border-bottom-color: transparent; 
    z-index: 2;
}

.news-card:hover .news-title,
.news-card:hover .news-excerpt,
.news-card:hover .news-date {
    color: white;
    text-shadow: none; 
}

.news-card:hover .news-meta {
    border-top-color: rgba(255,255,255,0.3);
}

.news-card:hover .news-img {
    border-color: white;
    box-shadow: 0 0 20px var(--holo-glow);
}

/* Ha a kártyán hover van, a NEM kiválasztott címkék invertálódnak */
.news-card:hover .tag:not(.selected) {
    background-color: white;
    color: var(--ocean-top);
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* --- 6. Mobil Nézet --- */
@media (max-width: 1510px) {
    .sub-hero {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        height: auto;
        padding: 2rem;
        text-align: center;
        /* Fontos: hely a gombnak mobilon */
        padding-bottom: 3.5rem; 
    }
    
    .profile-container-top { flex-direction: column-reverse; }
    .hero-text { text-align: center; }

    /* Vissza gomb mobilos igazítása */
    .back-home-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        width: 100%;
        text-align: center;
    }
    .back-home-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }

    .news-card {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .news-img-wrapper {
        width: 140px;
        height: 140px;
    }

    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- PDF MODAL --- */
.pdf-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 18, 25, 0.98); 
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal.active { display: flex; opacity: 1; }

.modal-content {
    width: 100%; height: 100%; 
    max-width: 100%; 
    background: transparent; 
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-modal-btn {
    position: absolute;
    top: 15px; right: 25px;
    background-color: var(--ocean-top);
    border: 1px solid var(--electric);
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    z-index: 10001; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.close-modal-btn:hover { 
    background-color: var(--electric);
    color: var(--ocean-top);
}

.pdf-frame {
    width: 100%; height: 100%; border: none; background-color: #f0f0f0; 
}

@media (max-width: 768px) {
    .close-modal-btn { top: 10px; right: 10px; padding: 5px 10px; font-size: 0.8rem; }
}