/* ============================================================================
   MyOwlSpace – Letisztult, szellős stíluslap (style.css)
   ============================================================================ */

:root {
    --bg-deep: #070b18;
    --bg-mid: #0f172a;
    --bg-glow: #1b2242;
    --accent-gold: #f59e0b;
    --accent-amber: #fbbf24;
    --accent-cyan: #38bdf8;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.72);
    --card-border: rgba(251, 191, 36, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 50% 0%, var(--bg-glow) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

#starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================================
   1. BŐVÍTHETŐ FELSŐ MENÜSOR ÉS NYELVVÁLTÓ
   ============================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(7, 11, 24, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.brand-owl {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.owl-eye {
    transform-origin: center;
    animation: blinkEye 5.5s infinite;
}

@keyframes blinkEye {
    0%, 94%, 98%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(0.1); }
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #fde68a 65%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.mobile-menu-toggle {
    display: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.4rem 0.65rem;
    font-size: 1.15rem;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(7, 11, 25, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 999px;
    padding: 0.2rem;
    gap: 0.18rem;
}

.lang-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
    color: #060914;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* ============================================================================
   2. KEZDŐLAP: FOTÓ + KÖSZÖNTŐ SZÖVEG (EGYSZERŰ, SZELLŐS ELRENDEZÉS)
   ============================================================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
    flex: 1;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 2.75rem;
    margin-bottom: 3rem;
    box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.65);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 2.65rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.1rem;
    background: linear-gradient(135deg, #ffffff 0%, #fde68a 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-welcome-text {
    font-size: 1.08rem;
    color: #e2e8f0;
    margin-bottom: 0.9rem;
    line-height: 1.72;
}

.hero-welcome-sub {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hero-photo-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    aspect-ratio: 16 / 10;
    background: #090d16;
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================================
   3. LEGUTOLSÓ HÁROM PROJEKT SZEKCIÓ ÉS KÁRTYÁK
   ============================================================================ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
}

.simple-all-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-amber);
    text-decoration: none;
}

.simple-all-link:hover {
    text-decoration: underline;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 1.65rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.7);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.card-summary {
    font-size: 0.93rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.card-tag {
    font-size: 0.75rem;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.22);
    padding: 0.16rem 0.58rem;
    border-radius: 999px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.84rem;
}

.simple-card-footer {
    justify-content: flex-end;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.explore-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--accent-amber);
}

/* ============================================================================
   4. PROJEKTEK ALOLDAL KERESŐ, GOMBOK ÉS MODÁLIS ABLAKOK
   ============================================================================ */
.btn {
    appearance: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
    color: #060914;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-cyan {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #e0f2fe;
}

.btn-success {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
}

.btn-danger {
    background: rgba(244, 63, 94, 0.16);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fecdd3;
}

.filter-panel {
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.35rem;
    margin-bottom: 2rem;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-input-wrap {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input {
    width: 100%;
    background: rgba(6, 9, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.78rem 1rem 0.78rem 2.7rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-amber);
}

.tags-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tag-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
}

.tag-chip.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-amber);
    color: var(--accent-amber);
    font-weight: 600;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--card-bg);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    color: var(--text-secondary);
}

/* Modális ablakok */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(3, 6, 15, 0.82);
    backdrop-filter: blur(10px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: #0b1121;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 22px;
    max-width: 840px;
    width: 100%;
    padding: 2.1rem;
    position: relative;
    margin: auto 0;
}

.modal-close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
}

.detail-header {
    margin-bottom: 1.4rem;
    padding-right: 2.5rem;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0.4rem 0 0.5rem;
}

.detail-author-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--text-secondary);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-content {
    font-size: 1.02rem;
    color: #e2e8f0;
    line-height: 1.8;
    white-space: normal;
    margin-bottom: 1.5rem;
    letter-spacing: 0.005em;
}

/* ==========================================================================
   GONDOS CIKK ÉS PROJEKT TIPOGRÁFIA & STRUKTURÁLT TÖRDELÉS
   ========================================================================== */
.detail-content .article-lead-p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #f8fafc;
    font-weight: 450;
    margin-bottom: 1.35rem;
    padding-bottom: 0.25rem;
}

.detail-content .article-body-p {
    font-size: 1.01rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.15rem;
}

.detail-content .article-section-heading {
    margin: 1.6rem 0 0.85rem 0;
    color: #fbbf24;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    padding-bottom: 0.45rem;
}

.detail-content .article-point-card {
    display: flex;
    gap: 0.9rem;
    margin: 0.75rem 0;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3.5px solid #38bdf8;
    border-radius: 9px;
    padding: 0.95rem 1.15rem;
    line-height: 1.75;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.detail-content .article-point-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.85);
    transform: translateX(2px);
}

.detail-content .article-point-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.detail-content .article-bullet-item {
    display: flex;
    gap: 0.75rem;
    margin: 0.55rem 0;
    padding-left: 0.4rem;
    line-height: 1.75;
    color: #e2e8f0;
    font-size: 1.01rem;
}

.detail-content .article-takeaway-box {
    margin: 1.6rem 0 1.1rem;
    padding: 1.15rem 1.35rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 4px solid #fbbf24;
    border-radius: 10px;
    color: #f8fafc;
    line-height: 1.75;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.formula-box {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 16px;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.formula-math {
    font-family: 'Outfit', monospace;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent-amber);
}

.formula-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sim-box {
    background: rgba(6, 9, 20, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 16px;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
}

.sim-header {
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--accent-amber);
}

.sim-canvas {
    width: 100%;
    aspect-ratio: 760 / 290;
    height: auto;
    max-height: 290px;
    background: #040711;
    border-radius: 10px;
    display: block;
    margin-bottom: 0.9rem;
    object-fit: contain;
}

.sim-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sim-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 190px;
}

.sim-control-group input[type="range"] {
    flex: 1;
    accent-color: var(--accent-amber);
}

.quiz-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.quiz-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #6ee7b7;
    margin-bottom: 0.5rem;
}

.quiz-question {
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-opt-btn {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 0.65rem 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
}

.quiz-opt-btn.correct {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--accent-emerald);
}

.quiz-opt-btn.wrong {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--accent-rose);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-control {
    background: rgba(6, 9, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.93rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ============================================================================
   5. LETISZTULT LÁBLÉC
   ============================================================================ */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-admin-link {
    color: rgba(148, 163, 184, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-admin-link:hover {
    color: var(--accent-amber);
}

/* ============================================================================
   HÍREK & ÉRDEKESSÉGEK (1. VARIÁNS: KIEMELT ÉRDEKESSÉG + VILLÁMKÉRDÉS + KÁRTYÁK)
   ============================================================================ */
.news-top-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    align-items: stretch;
}

.featured-news-card {
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(251, 191, 36, 0.42);
    border-radius: 22px;
    padding: 1.85rem;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.featured-news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(251, 191, 36, 0.75);
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.featured-visual-box {
    width: 100%;
    height: 245px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0284c7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7);
}

.featured-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.featured-news-card:hover .featured-visual-box img {
    transform: scale(1.04);
}

.featured-news-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0.45rem 0 0.65rem;
}

.featured-news-summary {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.news-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}

.btn-open {
    appearance: none;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-open:hover,
.post-card:hover .btn-open,
.featured-news-card:hover .btn-open {
    background: var(--accent-amber);
    color: #060914;
    border-color: transparent;
}

.flash-quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.flash-quiz-question {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.flash-quiz-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.flash-btn {
    appearance: none;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flash-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.12);
}

.flash-btn.correct {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #6ee7b7;
}

.flash-btn.wrong {
    background: rgba(244, 63, 94, 0.22);
    border-color: #f43f5e;
    color: #fda4af;
}

.flash-quiz-explain {
    background: rgba(6, 9, 20, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #e2e8f0;
}

.tag-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    border-color: rgba(251, 191, 36, 0.45);
    color: var(--text-primary);
}

.tag-pill.active {
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 100%);
    color: #060914;
    border-color: transparent;
}

.flash-quiz-card {
    background: linear-gradient(145deg, rgba(15, 29, 56, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    border-radius: 22px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 40px -15px rgba(0, 0, 0, 0.65);
}

.flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.news-card-banner {
    width: 100%;
    height: 195px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.1rem;
    position: relative;
}

.news-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.post-card:hover .news-card-banner img {
    transform: scale(1.05);
}

/* ============================================================================
   RÓLUNK OLDAL – TELJES SZÉLESSÉGŰ BEMUTATÓ BOX (FUNKCIÓK, KÉPEK ÉS ANIMÁCIÓK)
   ============================================================================ */
.about-box-full {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(16, 26, 52, 0.92) 0%, rgba(9, 15, 32, 0.95) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.72), 0 0 35px rgba(245, 158, 11, 0.08);
    position: relative;
    overflow: hidden;
}

.about-box-full::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(251, 191, 36, 0.05) 45%, transparent 70%);
    pointer-events: none;
}

.about-full-top {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.85rem;
}

.about-full-top.single-col {
    grid-template-columns: 1fr;
}

.about-box-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(56, 189, 248, 0.18) 100%);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.about-full-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin: 0 0 0.9rem;
}

.about-full-lead {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.72;
    white-space: pre-line;
    margin: 0;
}

.about-full-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.about-anim-canvas-wrap {
    width: 100%;
    height: 290px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: radial-gradient(circle at 50% 50%, #0f1d3a 0%, #050914 100%);
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), 0 12px 28px -10px rgba(0, 0, 0, 0.65);
}

.about-anim-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.about-anim-hint {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(6, 9, 20, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    pointer-events: none;
}

.about-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.about-media-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: #050914;
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-media-frame img,
.about-media-frame video {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.15rem;
    margin-top: 1.5rem;
    padding-top: 1.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-feature-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    text-decoration: none;
    color: inherit;
}

.about-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(20, 32, 58, 0.9);
}

.about-feature-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(56, 189, 248, 0.18) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.about-feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.about-feature-desc {
    font-size: 0.88rem;
    line-height: 1.58;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 880px) {
    .home-hero,
    .news-top-grid,
    .featured-news-card,
    .about-full-top {
        grid-template-columns: 1fr;
    }
    .home-hero,
    .about-box-full {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 720px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: rgba(11, 17, 33, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        padding: 0.65rem;
        margin-top: 0.4rem;
        order: 4;
    }
    .main-nav.open {
        display: flex;
    }
    .header-inner {
        flex-wrap: wrap;
    }
}


/* ============================================================================
   BEILLESZTETT INTERAKTÍV STEAM SZIMULÁCIÓK (HÍREKBEN ÉS PROJEKTEKBEN)
   ============================================================================ */
.embedded-sim-card {
    margin: 1.5rem 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94) 0%, rgba(6, 10, 24, 0.98) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.42);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.75), 0 0 25px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
}

.embedded-sim-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.embedded-sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.embedded-sim-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.embedded-sim-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.35rem 0 0.45rem;
}

.embedded-sim-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.embedded-sim-canvas-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 450px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: radial-gradient(circle at 50% 50%, #0d1633 0%, #030612 100%);
    position: relative;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.embedded-sim-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.embedded-sim-controls {
    margin-top: 1rem;
    background: rgba(6, 10, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.embedded-sim-slider-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.embedded-sim-slider-row label {
    min-width: 160px;
    font-size: 0.82rem;
    color: #93c5fd;
    font-weight: 600;
}

.embedded-sim-slider-row input[type="range"] {
    flex: 1;
    min-width: 140px;
    accent-color: #fbbf24;
    cursor: pointer;
}

.embedded-sim-slider-row .slider-val {
    min-width: 60px;
    font-family: monospace;
    font-weight: 700;
    color: #fde68a;
    font-size: 0.85rem;
    text-align: right;
}

.embedded-sim-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   FELHASZNÁLÓI AUTH ÉS SAJÁT FIÓK STÍLUSOK (MODAL & BADGE)
   ========================================================= */
.auth-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.auth-header-btn:hover {
    background: #38bdf8;
    color: #030712;
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}
.auth-modal-dialog {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 2rem;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    color: #f8fafc;
    position: relative;
}
.auth-tab-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}
.auth-tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.auth-tab-btn.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}
.auth-status-msg {
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: none;
    line-height: 1.45;
}
.auth-status-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.auth-status-msg.success {
    display: block !important;
    background: rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    color: #6ee7b7 !important;
}
.project-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.project-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.project-status-badge.published {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ============================================================================
   LAPOZÁS (PAGINATION 6-OS CSOPORTOSÍTÁS) ÉS FEJLETT SZŰRŐSÁV STÍLUSOK
   ============================================================================ */
.results-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
    padding: 0.7rem 1.1rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.results-meta-bar strong {
    color: var(--text-primary);
    font-weight: 700;
}

.results-meta-page-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.38);
    color: #fde68a;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.btn-reset-filters {
    appearance: none;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.42);
    color: #fda4af;
    font-size: 0.79rem;
    font-weight: 700;
    padding: 0.26rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-reset-filters:hover {
    background: rgba(244, 63, 94, 0.3);
    color: #fff;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 2.1rem 0 1.2rem;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(9, 14, 28, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.65);
}

.page-btn {
    appearance: none;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(30, 41, 59, 0.65);
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.18s ease;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.page-btn.active {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: #fbbf24;
    color: #060914;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.45);
}

.page-btn.page-step-btn {
    padding: 0 1rem;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.38);
    color: #7dd3fc;
}

.page-btn.page-step-btn:hover:not(:disabled) {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #040711;
}

.page-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
}

.page-ellipsis {
    color: #64748b;
    font-weight: 700;
    padding: 0 0.3rem;
    user-select: none;
}

.filter-subrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.7rem;
    margin-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.age-filter-pill {
    appearance: none;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.age-filter-pill:hover {
    border-color: rgba(56, 189, 248, 0.5);
    color: #fff;
}

.age-filter-pill.active {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #7dd3fc;
    font-weight: 700;
}

.tag-drawer-toggle {
    appearance: none;
    background: rgba(15, 23, 42, 0.75);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    color: #94a3b8;
    font-size: 0.79rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.tag-drawer-toggle:hover,
.tag-drawer-toggle.open {
    border-color: var(--accent-amber);
    color: #fde68a;
    background: rgba(251, 191, 36, 0.1);
}

