/* ============================
   ALAPBEÁLLÍTÁSOK
============================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #222;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ============================
   FEJLÉC + NAVIGÁCIÓ
============================ */
.header {
    background: #ffffff;
    border-bottom: 2px solid #e11d48;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 100px;
    width: auto;
    display: block;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #222;
    font-weight: bold;
}

.nav a.active,
.nav a:hover {
    color: #e11d48;
}

.btn-nav {
    padding: 8px 14px;
    background: #e11d48;
    color: #fff !important;
    border-radius: 6px;
}

/* Hamburger ikon */
.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    color: #222;
    z-index: 1001;
}

/* ============================
   HERO
============================ */
.hero {
    background: #e11d48;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-text {
    max-width: 700px;
    margin: auto;
    font-size: 1.2rem;
}

.btn-primary {
    background: white;
    color: #e11d48;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* ============================
   SZEKCIÓK + KÁRTYÁK
============================ */
.section {
    padding: 50px 0;
    background: #fff;
    margin-top: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ============================
   ÁRAK – KATEGÓRIÁK
============================ */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px;
}

.category-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.category-header .icon {
    font-size: 2rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #333;
}

.category-card h4 {
    margin-top: 20px;
    font-size: 1rem;
    color: #444;
}

/* Táblázatok */
.table-section {
    margin-top: 10px;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.table-header div {
    font-weight: bold;
    color: #222;
}

.table-row div {
    padding: 5px 0;
    color: #555;
}

/* 2 oszlopos táblázat */
.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Kategória cím */
.category-title {
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 20px;
    color: #e11d48;
    text-align: left;
    font-weight: bold;
    border-left: 6px solid #e11d48;
    padding-left: 12px;
}

/* ============================
   STATISZTIKA
============================ */
.stats-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    margin-top: 25px;
}

.stats-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #ffffff;
}

.stats-table thead {
    background: #e11d48;
    color: #fff;
}

.stats-table th,
.stats-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.stats-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.stats-table tbody tr:hover {
    background: #ffe4ec;
    transition: 0.2s;
}

/* ============================
   OKTATÓINK
============================ */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.instructor-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: 0.25s ease;
    text-align: center;
    padding-bottom: 20px;
}

.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.instructor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ============================
   DOKUMENTUMOK
============================ */
.docs-list li {
    margin-bottom: 10px;
}

/* ============================
   KAPCSOLAT
============================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ============================
   LÁBLÉC
============================ */
.footer {
    background: #111;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* ============================
   MOBIL NÉZET
============================ */

/* Tablet + mobil */
@media (max-width: 1024px) {

    .header-inner {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 400px;
        background: #fff;
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        gap: 15px;
        z-index: 1000;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        margin: 0;
        padding: 10px 0;
        font-size: 1.1rem;
    }
}

/* ============================
   NEGYEDÉVES TÁBLÁZAT – STABIL, MOBILBARÁT
============================ */

.quarter-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    margin-top: 25px;
    background: #fff;
}

.quarter-table {
    width: 100%;
    min-width: 900px; /* így nem töri össze mobilon */
    border-collapse: collapse;
    text-align: center;
}

.quarter-table th {
    background: #e11d48;
    color: #fff;
    padding: 12px;
    font-weight: bold;
}

.quarter-table td {
    padding: 10px;
    border: 1px solid #eee;
    background: #fff; /* nincs automatikus színezés */
}

/* zebra csíkozás kikapcsolva */
.quarter-table tr:nth-child(even) td {
    background: #fff;
}

/* mobilon ne törje szét a cellákat */
.quarter-table td,
.quarter-table th {
    white-space: nowrap;
}
