/* ═══════════════════════ CSS VÁLTOZÓK ═══════════════════════ */
:root {
    --blue-50: #e6f1fb;
    --blue-100: #b5d4f4;
    --blue-200: #85b7eb;
    --blue-300: #5b9ee0;
    --blue-400: #378add;
    --blue-500: #2373c2;
    --blue-600: #185fa5;
    --blue-700: #104d8a;
    --blue-800: #0c447c;
    --blue-900: #042c53;
    --banner-bg: #f0f7ff;
    --menu-bg: #ffffff;
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #042c53;
    --text-light: #ffffff;
    --accent: #2373c2;
    --hover-bg: #d0e8f8;
    --footer-bg: #f0f7ff;
    --font-main: "Source Sans 3", sans-serif;
}

/* ═══════════════════════ ALAPOK ═══════════════════════ */
* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    /*font-family: 'Georgia', 'Times New Roman', serif;*/
    background: var(--page-bg);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
}

.item-icon {
    font-size: 1.1em;
}

.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════ LINKLIST ═══════════════════════ */
.disclosure-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;


    span {
        display: flex;
        align-items: center;
        text-decoration: none !important;
        color: #333;
        background: #fcfcfc;
        padding: 10px 15px;
        border: 1px solid #eee;
        border-radius: 6px;
        transition:
                background 0.2s,
                transform 0.1s;
    }

    span:hover {
        background: #f0f7ff;
        border-color: #007bff;
        transform: translateX(5px);
    }


    a {
        display: flex;
        align-items: center;
        text-decoration: none !important;
        color: #333;
        background: #fcfcfc;
        padding: 10px 15px;
        border: 1px solid #eee;
        border-radius: 6px;
        transition:
            background 0.2s,
            transform 0.1s;
    }

    a:hover {
        background: #f0f7ff;
        border-color: #007bff;
        transform: translateX(5px);
    }

    a i {
        margin-right: 12px;
        font-size: 1.2em;
        color: #007bff;
    }

    a::after {
        content: attr(data-type);
        margin-left: auto;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        padding: 2px 8px;
        border-radius: 4px;
        background: #eee;
        color: #666;
        font-family: var(--font-main);
    }

    a[href]::after {
        content: "🔗";
        background: #e8ecfd;
        color: #292fa1;
        border: 1px solid #b4baf8;
    }
    a[href$=".pdf"]::after {
        content: "PDF";
        background: #fde8e8;
        color: #c81e1e;
        border: 1px solid #f8b4b4;
    }

    a[href$=".doc"]::after,
    a[href$=".docx"]::after {
        content: "DOC";
        background: #e1effe;
        color: #1e429f;
        border: 1px solid #a4cafe;
    }

    a[href$=".xls"]::after,
    a[href$=".xlsx"]::after {
        content: "XLS";
        background: #def7ec;
        color: #03543f;
        border: 1px solid #84e1bc;
    }

    a[href$=".ppt"]::after,
    a[href$=".pptx"]::after {
        content: "PPT";
        background: #feecdc;
        color: #8a2a0d;
        border: 1px solid #fbd5b1;
    }

    a[href="#"]::after {
        content: "HIÁNYZIK";
        background: #f3f4f6;
        color: #4b5563;
        border: 1px solid #d1d5db;
        font-style: italic;
        opacity: 0.7;
    }
}

/* ═══════════════════════ SIDENAV ═══════════════════════ */
#side-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    padding-top: 60px;
    border-right: 1px solid var(--blue-100);
}

#side-nav.open {
    left: 0;
}

#side-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 44, 83, 0.4);
    z-index: 1999;
    display: none;
}

#side-nav-overlay.open {
    display: block;
}

#side-nav-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--blue-400);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.nav-cat {
    border-bottom: 1px solid var(--blue-50);
}

.nav-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    color: var(--blue-800);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
    gap: 8px;
}

.nav-cat-header:hover {
    background: var(--blue-50);
}

.nav-cat-header .nc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cat-header .nc-arrow {
    font-size: 12px;
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--blue-400);
}

.nav-cat.expanded .nc-arrow {
    transform: rotate(180deg);
}

.nav-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fcfdfe;
}

.nav-cat.expanded .nav-items {
    max-height: 600px;
}

.nav-items a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 46px;
    color: var(--blue-600);
    font-size: 13px;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}

.nav-items a:hover {
    background: var(--blue-50);
    color: var(--blue-800);
}

/* ═══════════════════════ BANNER ═══════════════════════ */
#banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--banner-bg);
    color: var(--text-primary);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--blue-100);
    min-height: 50px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

#banner .school-info-container {
    flex: 10;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#banner .school-info {
    text-decoration: none;
    width: fit-content;
}

#banner .school-name {
    font-family: "Merriweather", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--blue-800);
}

.school-name-short {
    display: none;
}

.school-name-full {
    display: inline;
}

#banner .school-meta {
    font-size: 11.5px;
    color: var(--blue-600);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#banner .school-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

#banner .school-meta a.meta-item:hover {
    color: var(--blue-800);
}

#banner .school-meta .meta-item i {
    font-size: 14px;
    color: var(--blue-400);
}

#banner .school-meta .meta-separator {
    color: var(--blue-200);
    opacity: 0.5;
}

#banner .right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

#banner .search-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    height: 30px;
}

#banner .search-wrap input {
    background: white;
    border: 1px solid var(--blue-200);
    border-radius: 20px 0 0 20px;
    color: var(--text-primary);
    padding: 0 14px;
    font-size: 13px;
    width: 150px;
    height: 30px;
    outline: none;
    transition: border 0.2s;
    border-right: none;
}

#banner .search-wrap input::placeholder {
    color: var(--blue-300);
}

#banner .search-wrap input:focus {
    border-color: var(--blue-500);
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s;
    border: none;
    white-space: nowrap;
    height: 30px;
    line-height: 30px;
}

.btn-banner i {
    font-size: 17px;
}

.btn-social {
    height: 30px;
    padding: 0 12px;
    opacity: 0.6;
}

.btn-social:hover {
    opacity: 1;
}

.btn-search {
    background: var(--blue-100);
    color: var(--blue-800);
    border-radius: 0 20px 20px 0;
    border: 1px solid var(--blue-200);
    border-left: none;
}
.btn-search:hover {
    background: var(--blue-200);
}
.btn-kreta {
    background: #2373c2;
    color: white;
}
.btn-kreta:hover {
    background: #185fa5;
}
.btn-fb {
    background: #1877f2;
    color: white;
}
.btn-fb:hover {
    background: #145db2;
}
.btn-insta {
    background: #1877f2;
    color: white;
}
.btn-insta:hover {
    background: #145db2;
}

/* hamburger */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue-700);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════ MENUBAR ═══════════════════════ */
#menubar {
    background: var(--menu-bg);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--blue-100);
    position: relative;
}

.menu-item {
    position: relative;
}

.menu-item > button {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: none;
    border: none;
    color: var(--blue-700);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.18s;
    white-space: nowrap;
    font-family: var(--font-main);
}

.menu-item > button:hover {
    background: var(--blue-50);
    color: var(--blue-800);
}

.menu-item > button i {
    font-size: 16px;
}

.menu-item > button .arrow {
    font-size: 11px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.menu-item.open > button {
    background: var(--blue-100);
}
.menu-item.open > button .arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(4, 44, 83, 0.15);
    min-width: 240px;
    padding: 8px 0;
    display: none;
    z-index: 999;
    border: 1px solid var(--blue-100);
}

.menu-item.open .dropdown {
    display: block;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    color: var(--text-primary);
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.15s;
}

.dropdown a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}

/* ═══════════════════════ HERO ═══════════════════════ */
#hero {
    width: 100%;
    height: 500px;
    min-height: 300px;
    max-height: 500px;
    position: relative;
    overflow: hidden;
    /*background: #0d3d6e;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    padding: 15px;
    background: white;
    /*border: 1px solid var(--blue-100);*/
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /*border-radius: 8px;*/
}

.hero-logo-mobile {
    display: none;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

/* ═══════════════════════ SIKEREINK ═══════════════════════ */
.success-section {
    width: 100%;
    padding: 24px 20px 0;
    box-sizing: border-box;
}

.success-container {
    max-width: 1300px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f1fb 100%);
    border: 1px solid var(--blue-100);
    border-radius: 12px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 14px rgba(4, 44, 83, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.success-container:hover {
    box-shadow: 0 6px 20px rgba(4, 44, 83, 0.08);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.success-icon-wrap {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid var(--blue-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(35, 115, 194, 0.12);
}

.success-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.success-title {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.01em;
}

.success-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #334e68;
    line-height: 1.4;
}

.success-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-success-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none !important;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-success-social i {
    font-size: 1.15em;
}

.btn-success-fb {
    background: #1877f2;
}

.btn-success-fb:hover {
    background: #145db2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.btn-success-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-success-insta:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3);
}

@media (max-width: 860px) {
    .success-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px 20px;
        gap: 16px;
    }
    .success-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .success-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .btn-success-social {
        flex: 1 1 calc(50% - 12px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-success-social {
        flex: 1 1 100%;
    }
}

/* ═══════════════════════ CATEGORIES ═══════════════════════ */
#categories {
    max-width: 1300px;
    margin: 0 auto;
    padding: 52px 28px 60px;
}

#categories h2 {
    font-family: "Merriweather", serif;
    font-size: 22px;
    color: var(--blue-800);
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: 0.02em;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.cat-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* kategória színsémák */
.cat-bell {
    --cat-color: #2373c2;
    --cat-bg: #f0f7ff;
}
.cat-myschool {
    --cat-color: #1a5fa5;
    --cat-bg: #f0f7ff;
}
.cat-midschool {
    --cat-color: #2e7d32;
    --cat-bg: #f1f8f1;
}
.cat-highschool {
    --cat-color: #c62828;
    --cat-bg: #fff5f5;
}
.cat-tasks {
    --cat-color: #ef6c00;
    --cat-bg: #fffbf0;
}
.cat-friends {
    --cat-color: #6a1b9a;
    --cat-bg: #fcf4ff;
}
.cat-mental {
    --cat-color: #00838f;
    --cat-bg: #f0fbfc;
}

.cat-card.cat-bell {
    background-color: var(--cat-bg);
    border-color: #d0e3f7;
}
.cat-card.cat-myschool {
    background-color: var(--cat-bg);
    border-color: #d0e3f7;
}
.cat-card.cat-midschool {
    background-color: var(--cat-bg);
    border-color: #dceddc;
}
.cat-card.cat-highschool {
    background-color: var(--cat-bg);
    border-color: #ffe0e0;
}
.cat-card.cat-tasks {
    background-color: var(--cat-bg);
    border-color: #fff0cb;
}
.cat-card.cat-friends {
    background-color: var(--cat-bg);
    border-color: #f3e5f5;
}
.cat-card.cat-mental {
    background-color: var(--cat-bg);
    border-color: #e0f2f1;
}

.cat-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    background-color: var(--cat-color);
}

.cat-header i {
    font-size: 22px;
    opacity: 0.9;
    flex-shrink: 0;
}

.cat-header span {
    font-size: 15px;
    font-weight: 700;
    font-family: "Merriweather", serif;
    line-height: 1.3;
}

.cat-links {
    padding: 10px 0 14px;
    list-style: none;
}

.cat-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 14.5px;
    color: var(--cat-color);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    line-height: 1.4;
}

.cat-links li a .item-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.cat-links li a .item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cat-links li a:hover {
    background: rgba(255, 255, 255, 0.6);
    padding-left: 24px;
    border-left-color: var(--cat-color);
    font-weight: 600;
}

/* csengetési rend kártya (categories.php) */
.cat-links li.cat-now {
    border-bottom: 1px dashed var(--blue-100);
    margin-bottom: 5px;
    padding: 5px 20px;
    font-size: 14px;
    color: var(--blue-800);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-links li.cat-row {
    display: flex;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.cat-slot {
    flex: 1;
    padding: 8px 20px 8px 12px;
}

.cat-slot:first-child {
    padding: 8px 12px 8px 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.cat-slot.active {
    background: rgba(35, 115, 194, 0.15);
    font-weight: 700;
}

.cat-slot-label {
    font-size: 13px;
    display: block;
    color: var(--cat-color);
}

.cat-slot-time {
    font-size: 12px;
    color: #666;
}

.cat-slot-empty {
    font-size: 12px;
    color: #999;
    line-height: 2.8;
}

/* ═══════════════════════ SITEMAP ═══════════════════════ */
#sitemap {
    background: #d4e9f7;
    padding: 52px 28px;
    border-top: 2px solid var(--blue-100);
    border-bottom: 2px solid var(--blue-100);
}

#sitemap .inner {
    max-width: 1300px;
    margin: 0 auto;
}

#sitemap h2 {
    font-family: "Merriweather", serif;
    font-size: 20px;
    color: var(--blue-800);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
}

.sitemap-col h3 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-600);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--blue-300);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sitemap-col h3 i {
    font-size: 15px;
}

.sitemap-col ul {
    list-style: none;
}

.sitemap-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--blue-700);
    text-decoration: none;
    padding: 3px 0;
    transition:
        color 0.15s,
        padding-left 0.15s;
}

.sitemap-col ul li a:before {
    content: "›";
    margin-right: 5px;
    color: var(--blue-300);
}

.sitemap-col ul li a:hover {
    color: var(--blue-900);
    padding-left: 4px;
}

/* ═══════════════════════ LOGOK ═══════════════════════ */
.logok-section {
    padding: 40px 0;
    background: #ffffff;
}

.logok-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logok-grid img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logok-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ═══════════════════════ FORMS ═══════════════════════ */
.standard-form {
    max-width: 600px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--blue-200);
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(35, 115, 194, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-check input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.btn-primary {
    background: var(--blue-500);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
}

.btn-primary:hover {
    background: var(--blue-600);
}

.standard-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    align-items: center;
}

/* Spamcsapda: csak a robotok töltik ki */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-captcha .form-control {
    max-width: 120px;
}

.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.message {
    margin-left: 10px;
    font-weight: bold;
}

.text-success {
    color: green;
}

.text-danger {
    color: red;
}

/* Töltésjelző a küldés gombban */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
footer {
    background: var(--footer-bg);
    color: var(--blue-700);
    padding: 30px 24px;
    border-top: 1px solid var(--blue-100);
}

footer .inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-col-left {
    flex: 1;
}

.footer-col-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-col-right .f-details a,
.footer-col-right .f-details div {
    justify-content: flex-end;
}

footer .f-details strong {
    color: #667e99;
    font-size: 14px;
    font-family: "Merriweather", serif;
    margin-bottom: 2px;
}

footer .f-igazgato {
    font-weight: 600;
    font-size: 14px;
}

footer .f-name {
    font-family: "Merriweather", serif;
    font-size: 14px;
    font-weight: 700;
    color: #667e99;
}

footer .f-details {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

footer .f-details a,
footer .f-details div {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
    word-break: break-word;
}

footer .f-details a:hover {
    color: var(--blue-800);
}

footer .f-details i {
    font-size: 14px;
    color: #667e99;
}

/* ═══════════════════════ OLDAL TARTALOM ═══════════════════════ */
#sample-page {
    max-width: 900px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    color: var(--text-primary);
}

#sample-page h1 {
    font-family: "Merriweather", serif;
    font-size: 28px;
    color: var(--blue-800);
    margin-bottom: 24px;
    border-bottom: 3px solid var(--blue-300);
    padding-bottom: 12px;

    /* Görgetéskor a felső sáv alatt marad (a sáv magasságát a site.js méri: --banner-h) */
    position: sticky;
    top: var(--banner-h, 60px);
    z-index: 10;
    background: var(--card-bg);
    margin-left: -40px;
    margin-right: -40px;
    padding: 12px 40px;
    margin-top: -12px;
}

#sample-page h1.stuck {
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.25);
}

#sample-page p {
    margin-bottom: 18px;
    font-size: 16px;
}

#sample-page .lead-text {
    font-family: "Merriweather", serif;
    font-size: 19px;
    color: var(--blue-800);
}

#sample-page .highlight-box {
    background: var(--blue-50);
    border-left: 4px solid var(--blue-500);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

#sample-page ul {
    margin: 15px 0 25px 25px;
}

#sample-page li {
    margin-bottom: 8px;
}

#sample-page a {
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: underline;
}

#sample-page a:hover {
    color: var(--blue-800);
}

#sample-page .important-note {
    font-weight: 700;
    color: #d32f2f;
    background: #fff5f5;
    padding: 15px;
    border: 1px dashed #d32f2f;
    border-radius: 8px;
    margin-top: 30px;
}

#sample-page h2 {
    margin-top: 2rem;
}

/* Ikonos sor (elérhetőségek a highlight-boxban) */
.item {
    display: block;
    margin: 20px;
}

/* Aláírás a levél jellegű oldalak végén */
#sample-page .alairas {
    margin-top: 2rem;
}

#search-status {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
}

.text-center {
    text-align: center;
}

/* Középre igazított plakát/kép */
.plakat {
    text-align: center;
    margin: 1rem 0 2rem;
}

.plakat img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════ TÁBLÁZAT ═══════════════════════ */
/* Széles táblázatnál mobilon vízszintesen görgethető */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 0.5rem 0 1.5rem;
}

.data-table.full {
    width: 100%;
}

.data-table th {
    background: #f0f0f0;
    padding: 0.5rem 1.2rem 0.5rem 0.5rem;
    text-align: left;
    border-bottom: 2px solid #ccc;
    font-weight: 600;
}

.data-table td {
    padding: 0.45rem 1.2rem 0.45rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table.centered th,
.data-table.centered td {
    text-align: center;
}

.data-table .strong {
    font-weight: 600;
}

.data-table .muted {
    color: #888;
    font-size: 0.88rem;
}

/* ═══════════════════════ FELVETT TANULÓK ═══════════════════════ */
.class-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
}

.class-column {
    flex: 1 1 45%;
    min-width: 250px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#sample-page .class-column h3 {
    color: var(--blue-800);
    border-bottom: 2px solid var(--blue-300);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.2em;
}

#sample-page .class-column .teachers {
    font-style: italic;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
    min-height: 40px;
}

#sample-page .om-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sample-page .om-list li {
    padding: 5px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    font-size: 1.1em;
    text-align: center;
}

#sample-page .om-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .class-column {
        flex: 1 1 100%;
    }
}

/* ═══════════════════════ WIDGET: TÉRKÉP / IFRAME ═══════════════════════ */
.cal-iframe-wrap {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--blue-100);
}

.cal-iframe-wrap iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* ═══════════════════════ JUNIE SPECIÁLIS ═══════════════════════ */
.btn-large-animated {
    display: inline-block;
    padding: 18px 36px;
    background-color: var(--blue-500);
    color: var(--text-light) !important;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(35, 115, 194, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-large-animated:hover {
    background-color: var(--blue-600);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(35, 115, 194, 0.4);
}

.btn-large-animated:active {
    transform: scale(0.98);
}

.todo-floating-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;

    div {
        padding: 12px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        font-size: 14px;
        font-weight: 500;
        max-width: 300px;
        animation: slideInRight 0.4s ease-out;
        border-left: 5px solid transparent;

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
    }

    div.iskola {
        background-color: #fff3cd;
        color: #856404;
        border-left-color: #ffeeba;
        border-color: #ffeeba;
    }

    div.keszito {
        background-color: #d1ecf1;
        color: #0c5460;
        border-left-color: #bee5eb;
        border-color: #bee5eb;
    }
}

/* Tabs Component */
.tabs-container {
    margin: 20px 0;
    border: 1px solid var(--blue-100);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.tabs-header {
    display: flex;
    background-color: var(--blue-50);
    border-bottom: 1px solid var(--blue-100);
    flex-wrap: wrap;
}

.tab-button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 500;
    color: var(--blue-700);
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background-color: var(--blue-100);
}

.tab-button.active {
    background-color: #fff;
    color: var(--blue-900);
    border-bottom: 3px solid var(--blue-500);
}

.tab-content {
    display: none;
    padding: 25px;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .tab-button {
        flex: 1 1 50%;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
}
@media (max-width: 1000px) {
    /* Banner és menü tablet/mobil nézet */
    #menubar {
        display: none;
    }
    #banner {
        padding: 8px 14px;
        gap: 10px;
    }
    #banner .school-meta {
        display: none;
    }
    #banner .btn-kreta,
    #banner .btn-fb,
    #banner .btn-insta,
    #banner .btn-social {
        display: none;
    }
    #banner .search-wrap input {
        width: 120px;
    }

    /* Footer tablet/mobil nézet */
    .footer-columns {
        flex-direction: column;
        gap: 25px;
    }
    .footer-col-right {
        justify-content: flex-start;
        text-align: left;
        padding-top: 20px;
        border-top: 1px dashed var(--blue-200);
    }
    .footer-col-right .f-details a,
    .footer-col-right .f-details div {
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    /* Fejléc iskolanév rövidítése */
    .school-name-full {
        display: none;
    }
    .school-name-short {
        display: inline;
    }
}

@media (max-width: 768px) {
    /* Hero mobilnézet - nagy kép eltűnik, CSVMG logo középen */
    #hero {
        height: auto;
        min-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }
    .hero-slides {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
    }
    /*.hero-slides::before {*/
    /*    content: "";*/
    /*    position: absolute;*/
    /*    width: 220px;*/
    /*    height: 220px;*/
    /*    border-radius: 50%;*/
    /*    background: radial-gradient(circle, rgba(13, 61, 110, 0.08) 0%, rgba(13, 61, 110, 0) 70%);*/
    /*    filter: blur(12px);*/
    /*}*/
    .hero-slide {
        display: none;
    }
    .hero-logo-mobile {
        display: block;
        /*position: relative;*/
        margin: 0 auto;
        max-width: 80%;
        max-height: 200px;
        object-fit: contain;
        /*filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));*/
    }

    .cal-iframe-wrap {
        width: 95%;
        margin: 20px auto;
    }
    .cal-iframe-wrap iframe {
        height: 450px;
    }
}

@media (max-width: 480px) {
    #banner {
        padding: 8px 10px;
    }
    #banner .search-wrap input {
        width: 100px;
    }
}

/* ═══════════════════════ KÉPGALÉRIA ═══════════════════════ */
.kepgaleria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 30px 0;
    text-align: center;
}

.kepgaleria img {
    display: block;
    width: 213px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kepgaleria a:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ═══════════════════════ TARTALMI BLOKKOK ═══════════════════════ */
/* (korábban az egyes oldalak saját <style> blokkjaiban voltak) */

/* Dobozok utolsó eleme alatt ne legyen extra térköz (a Markdown bekezdésekbe tördel) */
#sample-page .highlight-box > :last-child,
#sample-page .osztaly > :last-child {
    margin-bottom: 0;
}

#sample-page .highlight-box > :first-child {
    margin-top: 0;
}

/* Kártyák egymás mellett (cards blokk) */
.osztalyok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.osztaly {
    background: #f7f7f7;
    border-left: 4px solid var(--blue-600);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

#sample-page .osztaly h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

#sample-page .osztaly p {
    margin: 0;
}

/* Névrács (names blokk) */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.teachers-grid > div {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--blue-800);
    line-height: 1.3;
}

.teachers-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--blue-200);
    background: white;
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }
}

/* Kártyák linkekkel (link_cards blokk, pl. hit- és erkölcstan) */
.link-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.link-card-info {
    flex: 1;
    min-width: 250px;
}

#sample-page .link-card-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.4em;
}

.link-card-contact {
    margin-top: 10px;
}

.link-card-contact .item {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.link-card-links {
    flex: 1;
    min-width: 250px;
}

.link-card-links .disclosure-list {
    margin-bottom: 0;
    gap: 8px;
}

.link-card-links .disclosure-list a {
    padding: 8px 12px;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .link-card {
        flex-direction: column;
    }
}

/* Elérhetőség-táblázat (contacts_table blokk) */
.contacts-table .szekcio {
    background: #e8eaf6;
    font-weight: 600;
    color: #3949ab;
    padding: 0.4rem 0.9rem;
}

.contacts-table .contact-item {
    display: block;
    margin-bottom: 0.2rem;
}

.contacts-table .contact-item:last-child {
    margin-bottom: 0;
}

.contacts-table td:nth-child(2) {
    font-weight: 600;
}

/* Kép és szöveg egymás mellett (HTML blokkokban használható) */
.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.flex-container .content {
    flex: 1;
}

.flex-container img {
    max-width: 300px;
    height: auto;
}

/* Keresési találatok (/search) */
.search-result-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

#sample-page .search-result-title {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}

.search-result-path {
    font-size: 13px;
    color: green;
    margin-bottom: 8px;
    word-break: break-all;
}

#sample-page .search-result-snippet {
    margin: 0;
    font-size: 15px;
    /* A kivonat legfeljebb 5 sor (a lib/search.php is rövidre vágja) */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
