/* Globális nullázás, hogy ne legyen görgetősáv sehol */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden; /* Garantálja, hogy vízszintesen ne lehessen kikényszeríteni görgetést */
}

/* 1. SÁV: Felső kép */
.hero-section {
    width: 100%;
    height: 360px;
    background-color: #e2e8f0; /* Helyőrző szürke */
    background-image: url('images/school-east-576p.webp'); /* Ide jön a felső képed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 2. SÁV: Címsor nagybetűkkel */
.title-section {
    width: 100%;
    text-align: center;
    padding: 1.2rem 1rem;
    background-color: #fff7da;
    border-bottom: 1px solid #eaeaea;
}

.title-section h1 {
    /* font-family: "Playfair Display", Georgia, serif; */
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.title-section h2 {
    font-family: "Google Sans Flex", Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a202c;
}

/* 3. SÁV: Kártyák animált háttérrel (Faltól falig) */
.cards-section {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    background-color: #f0f4f8; /* Helyőrző szürkéskék */
    padding: 2.8rem 0; /* Ez adja meg a térközt a kártyák felett és alatt */
}

.cards-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* A 4 kártya középre igazított rácsa a 3. sávon belül */
.curriculum-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, var(--card-width, max-content));
    justify-content: center;
    gap: 3rem;
    max-width: 1228px;
    margin: 0 auto;
    padding: 0 2rem;
}

.column {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.column h3 {
    font-size: 1.25rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.glossary-desc {
    display: block;          /* Külön sorba teszi a cím alatt */
    font-size: 0.78rem;      /* Dőlt, 0.78rem méret */
    font-style: italic;
    font-weight: normal;     /* Ne legyen kövér, mint a cím */
    color: #718096;          /* Finom szürke szín */
    margin-top: 0.3rem;       /* Távolság a címtől */
}

/* Linkek és letöltés stílusai */
.lesson-list {
    list-style: none;
}

.lesson-list li {
    margin-bottom: 0.8rem;
}

.lesson-list a, 
.lesson-list a:visited {
    white-space: nowrap;
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lesson-list a:hover {
    color: #dcb406; /* Az általad beállított aranysárga */
    text-decoration: none;
}

/* PDF letöltő gomb testreszabása */
.lesson-list a.pdf-download-link,
.lesson-list a.pdf-download-link:visited {
    font-size: 0.78rem;
    font-style: italic;
    color: #3182ce;
}

.lesson-list a.pdf-download-link:hover {
    color: #dcb406;
}

.lesson-list li:has(.pdf-download-link) {
    margin-top: -0.85rem;
    margin-bottom: 0;
}

/* 4. SÁV: Lábléc */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    padding: 1.0rem;
    background-color: #eeeeee;
    border-top: 1px solid #eaeaea;
    color: #4a5568;
    font-size: 0.9rem;
}

.site-footer a,
.site-footer a:visited {
    color: #4a5568;
    text-decoration: none;
}

.site-footer a:hover {
    color: #4a5568;
    text-decoration: underline;
}

/* Reszponzivitás */
@media (max-width: 992px) {
    .curriculum-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .lesson-list a {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .curriculum-container {
        grid-template-columns: 1fr;
    }
}
