/* ============================================================
   AFROLINE TANFOLYAM RÉSZLETEK - JAVÍTOTT SZÖVEG MARGÓK
   ============================================================ */

/* --- VÁLTOZÓK --- */
:root {
    --szin-fo: #1a1a1a;       
    --szin-afro-zold: #85bf25; 
    --szin-zold-sotet: #74a820; 
    --szin-hatter-szurke: #f4f6f8;
    --szin-szoveg-sotet: #222;      
    
    --radius-nagy: 20px;
    --radius-kicsi: 12px;
    --arnyek-doboz: 0 8px 25px rgba(0,0,0,0.08);
}

/* --- ALAPOK --- */
.tanfolyam-reszletek-oldal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--szin-szoveg-sotet);
    overflow-x: hidden;
    line-height: 1.6;
}

.kontener {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.tanfolyam-reszletek-oldal h2 {
    font-size: 2.8rem;
    color: var(--szin-fo);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    line-height: 1.2;
}

.tanfolyam-reszletek-oldal h3 {
    font-size: 1.8rem;
    color: var(--szin-fo);
    margin-bottom: 15px;
    font-weight: 700;
}

/* --- SZÖVEGEK FORMÁZÁSA (18px) --- */
.szoveges-blokk p { font-size: 18px; line-height: 1.7; color: #333; margin-bottom: 25px; }
/* Fontos: Itt a szöveg paddingját a konténer kezeli lentebb */
.tananyag-elem p { font-size: 18px; line-height: 1.6; color: #555; margin-bottom: 0; }
.tudas-bazis p { font-size: 18px; margin-bottom: 20px; }
.tudas-bazis li { font-size: 18px; padding-left: 25px; border-left: 6px solid var(--szin-fo); margin-bottom: 20px; line-height: 1.6; }
.pipa-lista-nagy li { font-size: 18px; margin-bottom: 15px; display: flex; align-items: flex-start; color: #333; }
.info-box { font-size: 18px; line-height: 1.6; }
.gyik-elem p { font-size: 18px; color: #444; }

/* --- SZEKCIÓK --- */
.hero-header { background-color: var(--szin-fo); color: #fff; padding: 100px 0; text-align: center; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; }
.hero-header h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 30px; font-weight: 900; color: #fff; }
.hero-header .alcim { font-size: 20px; line-height: 1.5; max-width: 900px; margin: 0 auto 40px auto; color: #eee; }

.szoveges-blokk { padding: 80px 0; text-align: center; max-width: 1000px; margin: 0 auto; }

/* ============================================================
   TANANYAG KÁRTYÁK (JAVÍTOTT LAYOUT)
   ============================================================ */
.tananyag-doboz { padding: 60px 0; background-color: #fff; }
.tananyag-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}

.tananyag-elem { 
    background: #fff; 
    /* 1. FŐ DOBOZ: NINCS PADDING, HOGY A KÉP KIFUSSON */
    padding: 0; 
    border-radius: var(--radius-nagy); 
    box-shadow: var(--arnyek-doboz); 
    border: 2px solid #eee;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; 
}

/* 2. SZÖVEG DOBOZ: EZ KAPJA A PADDINGOT A LEVEGŐSSÉGÉRT */
.tananyag-szoveg {
    padding: 35px; /* Itt van a levegő a szöveg körül */
    flex-grow: 1; /* Kitölti a helyet */
}

/* 3. KÉP FORMÁZÁSA: TELJES SZÉLESSÉG, FEKVŐ */
.tananyag-kep {
    width: 100%; 
    height: 250px; /* Fekvő magasság */
    object-fit: cover; 
    display: block;
    margin: 0; /* Teljesen rásimul az aljára */
    transition: transform 0.5s ease;
}

.tananyag-elem:hover .tananyag-kep {
    transform: scale(1.05); 
}

/* --- TOVÁBBI SZEKCIÓK --- */
.szurke-hatter { background-color: var(--szin-hatter-szurke); padding: 80px 0; margin: 60px 0; }
.tudas-bazis ul { list-style: none; padding: 0; }

.celkozonseg-szekcio { padding: 80px 0; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.kep-resz img { width: 100%; border-radius: var(--radius-nagy); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.info-box { background: var(--szin-hatter-szurke); padding: 30px; border-radius: var(--radius-kicsi); margin-bottom: 40px; border-left: 8px solid var(--szin-afro-zold); }

.gyik-szekcio { padding: 60px 0; background-color: #fff; max-width: 1000px; margin: 0 auto; }
.gyik-elem { padding: 30px 0; border-bottom: 1px solid #ddd; }
.gyik-elem h3 { font-size: 24px; color: var(--szin-fo); margin-bottom: 15px; }

.cta-zaro { background-color: var(--szin-fo); color: #fff; padding: 100px 0; text-align: center; margin-top: 80px; }
.cta-zaro h2 { color: #fff; font-size: 3rem; }
.cta-zaro p { font-size: 22px; color: #ddd; margin-bottom: 50px; }

/* --- GOMBOK (FEHÉR SZÖVEG FIX) --- */
.gomb, .gomb-kiemelt {
    display: inline-block;
    padding: 22px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.gomb-kiemelt, .gomb.gomb-kiemelt, .hero-header .gomb-kiemelt, .cta-zaro .gomb-kiemelt {
    background-color: var(--szin-afro-zold) !important;
    border: 3px solid var(--szin-afro-zold) !important;
    color: #ffffff !important; 
    box-shadow: none; 
}

.gomb-kiemelt:hover {
    background-color: var(--szin-zold-sotet) !important;
    border-color: var(--szin-zold-sotet) !important;
    color: #ffffff !important; 
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(133, 191, 37, 0.6);
}

.gomb {
    background-color: #fff;
    color: var(--szin-afro-zold) !important;
    border: 3px solid var(--szin-afro-zold) !important;
    margin-top: 15px;
}

.gomb:hover {
    background-color: var(--szin-afro-zold) !important;
    color: #fff !important; 
}

.teljes-szelesseg { width: 100%; max-width: 500px; margin: 15px auto; display: block; }

/* --- DINAMIKA --- */
.szoveges-blokk, .tananyag-doboz, .tudas-bazis, .celkozonseg-szekcio, .gyik-szekcio, .cta-zaro, .tananyag-elem {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
    will-change: opacity, transform;
}

.szekcio-lathato {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* --- MOBIL --- */
@media (max-width: 768px) {
    .hero-header h1 { font-size: 2.2rem; }
    .tanfolyam-reszletek-oldal h2 { font-size: 2rem; }
    .szoveges-blokk p, .tananyag-elem p, .tudas-bazis li { font-size: 18px; }
    .grid-2-col, .tananyag-grid { grid-template-columns: 1fr; gap: 30px; }
    .kep-resz { order: -1; margin-bottom: 20px; }
    .gomb, .gomb-kiemelt { display: block; width: 100%; padding: 18px; margin-bottom: 15px; }
    
    /* Mobilon a szöveg padding kicsit kisebb lehet */
    .tananyag-szoveg { padding: 25px; }
    .tananyag-kep { height: 220px; }
}