:root {
    --primary-color: #16335C;
    --primary-dark: #0f2340;
    --accent-color: #C59F59;
    --accent-hover: #a88546;
    --bg-light: #f5f7fa;
    --text-dark: #2c3e50;
    --text-muted: #596a7a;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --success: #1e7e34;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
html, body { overflow-x: hidden; width: 100%; scroll-behavior: smooth; }
body { line-height: 1.65; color: var(--text-dark); background-color: var(--bg-light); }
a { text-decoration: none; color: var(--primary-color); transition: all 0.25s ease; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Felső információs sáv */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,0.88); font-size: 0.82rem; padding: 7px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Navigáció - Asztali nézetben szigorúan 1 sorban */
.navbar { background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; flex-wrap: nowrap; gap: 16px; position: relative; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 36px; width: auto; max-width: 180px; object-fit: contain; display: block; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 15px; flex-wrap: nowrap; white-space: nowrap; margin-left: auto; }
.nav-links li { flex-shrink: 0; }
.nav-links a { font-weight: 600; font-size: 0.9rem; color: var(--primary-color); white-space: nowrap; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--accent-color); }

/* Dinamikus Aktív Menüpont Kiemelés */
.nav-links a.active {
    color: var(--accent-hover);
    font-weight: 800;
    border-bottom: 2px solid var(--accent-color);
}
.nav-links a.nav-cta { border-bottom: none; padding-bottom: 8px; }
.nav-links a.active-btn { background: var(--primary-color); box-shadow: 0 0 0 2px var(--accent-color); }

/* Hamburger menü gomb */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.menu-toggle span { display: block; width: 100%; height: 3px; background-color: var(--primary-color); border-radius: 3px; transition: all 0.3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Gombok */
.btn { display: inline-block; background: var(--accent-color); color: var(--white) !important; padding: 13px 26px; border-radius: 6px; font-weight: 700; text-align: center; border: none; cursor: pointer; font-size: 1rem; box-shadow: 0 4px 10px rgba(197, 159, 89, 0.25); }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color) !important; box-shadow: none; }
.btn-outline:hover { background: var(--primary-color); color: var(--white) !important; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* Hero Szekció */
.hero { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: var(--white); padding: 60px 0; text-align: center; border-bottom: 5px solid var(--accent-color); }
.hero h1 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); max-width: 920px; margin: 0 auto 16px; line-height: 1.25; color: var(--white); }
.hero p { font-size: clamp(0.98rem, 1.5vw, 1.15rem); max-width: 820px; margin: 0 auto 26px; opacity: 0.92; }
.badge { display: inline-block; background: rgba(197, 159, 89, 0.2); border: 1px solid var(--accent-color); color: #f3d493; padding: 6px 16px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; }

/* Képernyőmagas Nyitóoldali Hero + Kompakt, Keskeny Hero Logó (140px) */
.hero-fullscreen {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 0;
}
.hero-logo-wrap {
    margin: 0 auto 18px;
    text-align: center;
}
.hero-logo-img {
    display: inline-block !important;
    width: 140px !important;
    max-width: 42vw !important;
    max-height: 60px !important;
    height: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Általános szekciók és Rácsok */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary-color); margin-bottom: 14px; line-height: 1.3; }
.section-subtitle { text-align: center; max-width: 780px; margin: 0 auto 45px; color: var(--text-muted); font-size: 1.05rem; }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.course-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }

/* Kártyák és Szakirány Modulok */
.card { background: var(--white); padding: 28px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); border: 1px solid var(--border-color); width: 100%; }
.spec-card { background: var(--white); padding: 26px; border-radius: 10px; box-shadow: 0 5px 18px rgba(0,0,0,0.05); border-left: 5px solid var(--primary-color); margin-bottom: 24px; transition: transform 0.2s; }
.spec-card:hover { transform: translateY(-2px); border-left-color: var(--accent-color); }
.spec-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.spec-header h3 { font-size: 1.25rem; color: var(--primary-color); line-height: 1.35; }
.spec-award { display: inline-block; background: var(--bg-light); color: var(--primary-color); padding: 5px 11px; border-radius: 5px; font-size: 0.82rem; font-weight: 700; border: 1px solid var(--border-color); }
.module-list { list-style: none; margin: 12px 0; }
.module-list li { padding: 6px 0 6px 22px; position: relative; font-size: 0.94rem; }
.module-list li::before { content: "▸"; color: var(--accent-color); font-weight: bold; position: absolute; left: 4px; }
.spec-meta { background: #f8fafc; padding: 12px 15px; border-radius: 6px; font-size: 0.88rem; margin-top: 15px; border: 1px dashed #cbd5e1; }

/* Árazási dobozok */
.price-sidebar { position: sticky; top: 85px; border: 2px solid var(--accent-color); background: var(--white); padding: 26px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 100%; }
.price-tag { font-size: 1.65rem; font-weight: 800; color: var(--primary-color); margin: 8px 0; }
.price-box-item { padding: 15px; border-radius: 8px; background: var(--bg-light); margin-bottom: 15px; border-left: 4px solid var(--primary-color); }
.price-box-item.highlight { background: rgba(197, 159, 89, 0.12); border-left-color: var(--accent-color); }

/* Űrlapok és Táblázatok */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--primary-color); font-size: 0.93rem; }
.form-control { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.98rem; background: #fff; max-width: 100%; }
.form-control:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(197, 159, 89, 0.15); }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; min-width: 680px; }
table.data-table th, table.data-table td { padding: 11px 13px; border-bottom: 1px solid var(--border-color); text-align: left; font-size: 0.88rem; vertical-align: top; }
table.data-table th { background: var(--primary-color); color: var(--white); white-space: nowrap; }

/* Lábléc */
.footer { background: var(--primary-dark); color: var(--white); padding: 50px 0 28px; margin-top: 55px; border-top: 4px solid var(--accent-color); }
.footer h3 { color: var(--accent-color); margin-bottom: 14px; font-size: 1.2rem; }
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: var(--accent-color); }

/* =========================================================
   RESZPONZÍV SZABÁLYOK (TABLET ÉS MOBIL NÉZET)
   ========================================================= */
@media (max-width: 1120px) {
    .nav-links { gap: 11px; }
    .nav-links a { font-size: 0.84rem; }
    .logo img { height: 34px; max-width: 165px; }
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        background: var(--white);
        padding: 18px 24px 24px;
        box-shadow: 0 12px 25px rgba(0,0,0,0.12);
        border-top: 2px solid var(--accent-color);
        gap: 0;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-links li:last-child { border-bottom: none; padding-top: 12px; }
    .nav-links a { display: block; padding: 12px 0; font-size: 1rem; white-space: normal; border-bottom: none; }
    .nav-links a.active { color: var(--accent-hover); font-weight: 800; padding-left: 8px; border-left: 4px solid var(--accent-color); }
    .nav-links a.nav-cta { text-align: center; width: 100%; padding: 12px; }

    .course-layout { grid-template-columns: 1fr; gap: 28px; }
    .price-sidebar { position: static; }
}

@media (max-width: 480px) {
    .topbar-inner { justify-content: center; text-align: center; font-size: 0.76rem; }
    .topbar-right { display: none; }
    .hero { padding: 40px 0; }
    .hero-fullscreen { min-height: calc(100vh - 78px); padding: 28px 0; }
    .hero-logo-wrap { margin-bottom: 12px; }
    .hero-logo-img { width: 80% !important; max-height: 120px !important; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.96rem; margin-bottom: 30px; }
    .card, .spec-card, .price-sidebar { padding: 20px 16px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; }
    .spec-header { flex-direction: column; align-items: flex-start; }
    .spec-header h3 { font-size: 1.15rem; }
    .btn { width: 100%; padding: 12px 18px; }
    .hero-buttons { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .logo img { height: 30px; max-width: 145px; }
    .hero-logo-img { width: 105px !important; max-height: 44px !important; }
    .badge { font-size: 0.72rem; padding: 5px 12px; margin-bottom: 12px; }
    .price-tag { font-size: 1.4rem; }
}