/* --- 1. Alapbeállítások --- */
:root {
    --ocean-top: #003049;  
    --ocean-bot: #001219;  
    --white-bg: #ffffff;
    --electric: #4CC9F0;   
    --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;
    line-height: 1.6;
}

/* --- 2. Hero Szekció (MÉRNÖKI HÁTTÉRREL) --- */
.sub-hero {
    height: 20vh;
    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);
}

.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;
    margin: 0;
    line-height: 1;
}

.title-tag-extension {
    color: var(--electric);
    font-weight: 300;
}

/* ÚJ: Minimalista Vissza Gomb */
.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;
}

.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. Kurzus Kártyák (Grid) --- */
.education-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem; 
}

.courses-grid {
    display: flex;
    flex-direction: column;
}

.course-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem 2rem;
    position: relative;
    background-color: transparent;
    text-decoration: none;
    color: var(--ocean-top);
    transition: all 0.2s ease-out; 
    border-bottom: 2px solid var(--ocean-top);
    cursor: pointer;
}

.course-card:last-child { border-bottom: none; }
.course-card:nth-child(even) { flex-direction: row-reverse; }

.course-card.hidden { display: none; }

.course-img-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    position: relative;
}

.course-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ocean-top);
    background-color: var(--ocean-top);
    transition: all 0.2s ease-out;
    color: transparent; text-indent: -10000px;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.course-university {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.8;
}

.course-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
}

/* Állapotjelző címkék */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    margin-bottom: 10px;
    width: fit-content;
}

.status-active {
    background-color: var(--electric);
    color: var(--ocean-top);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.4);
}

.status-archive {
    background-color: #e0e0e0;
    color: #666;
}

/* --- Címkék --- */
.tags-row {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.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;
}

.tag:not(.selected):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tag.selected {
    background-color: var(--electric);
    color: var(--ocean-top);
}

.tag.selected:hover::after {
    content: " \00D7";
    font-weight: 900;
    margin-left: 5px;
}

/* --- HOVER EFFEKT --- */
.course-card:hover {
    background-color: var(--ocean-top);
    box-shadow: none;             
    outline-offset: -2px; 
    z-index: 2;
}

.course-card:hover .course-title,
.course-card:hover .course-desc,
.course-card:hover .course-university {
    color: white;
}

.course-card:hover .course-img {
    border-color: var(--electric);
    box-shadow: none;
    transform: scale(1.05); 
}

.course-card:hover .tag:not(.selected) {
    background-color: white;
    color: var(--ocean-top);
}

/* --- 4. Oktatói CV Szekció (Timeline) --- */
.cv-section {
    margin-top: 2rem;
    border-top: 4px solid var(--ocean-top);
    padding-top: 3rem;
}

.cv-header {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}

.cv-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.cv-year-col {
    flex: 0 0 120px;
    text-align: left;
    padding-top: 2px;
}

.cv-year {
    display: block;
    position: relative;
    font-weight: 700;
    color: var(--electric);
    font-size: 1rem;
    padding-right: 15px;
}

/* Térképészeti jelölés (Célkereszt) */
.cv-year::after {
    content: '|'; 
    font-family: monospace; 
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 0.8;
    color: var(--ocean-top); 
    position: absolute;
    right: 0;
    top: 2px;
}

.cv-text-col {
    flex: 1;
}

.cv-role { font-weight: 700; font-size: 1.1rem; }
.cv-uni { font-weight: 400; font-style: italic; }

/* --- Mobil Nézet --- */
@media (max-width: 768px) {
    .sub-hero { 
        padding: 2rem; 
        padding-bottom: 3.5rem; /* Extra hely a gombnak mobilon */
        height: auto; 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
    }
    .profile-container-top { flex-direction: column-reverse; }
    .hero-text { text-align: center; }
    
    .course-card { flex-direction: column !important; text-align: center; padding: 2rem 1rem; }
    .tags-row { justify-content: center; flex-wrap: wrap; }
    
    .cv-item { flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
    .cv-year-col { width: 100%; flex: auto; text-align: left; }
    .cv-year { padding-right: 0; padding-left: 20px; }
    .cv-year::after { right: auto; left: 0; }

    /* Gomb középre igazítása mobilon */
    .back-home-btn {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    .back-home-btn:hover {
        transform: translateX(-50%) translateY(-2px); /* Hover effekt igazítása */
    }
}