/*
Theme Name: SZTE EHÖK Theme
Theme URI: https://szteehok.hu
Author: Informatikai Bizottság (Farkas Dávid, Domonyik István, Kovács Gergő)
Author URI: https://szteehok.hu
Description: Egyedi Bootstrap 5 alapú téma az SZTE EHÖK számára. Főbb funkciók: eseménykezelő és import, pályázatok/ösztöndíjak, kiemelt bejegyzések, jelentkezések, moziest-regisztráció, Hallgatók Arca, torna, Univerzum magazin, R2 galéria, bannerkezelés, elnökség és nyitvatartás, akadálymentesség, Cloudflare Turnstile, URL-átirányítások, valamint saját admin vezérlőpult.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: szte-ehok
Tags: custom-menu, featured-images, theme-options, translation-ready
Update URI: false
*/

/* --- BOOTSTRAP OVERRIDES & CUSTOM VARIABLES --- */
:root {
    --ehok-blue: #092b50;
    --ehok-blue-light: #345a75;
    --ehok-orange: #f9a733;
    --ehok-bg: #f8f9fc;
    --ehok-page-bg: #f8f9fc;
    --ehok-grey-soft: #e9ecef;
    --hero-adminbar-offset: 0px;
    --hero-navbar-offset: 0px;
}

body.admin-bar {
    --hero-adminbar-offset: 32px;
    min-height: calc(100vh - var(--hero-adminbar-offset));
    min-height: calc(100dvh - var(--hero-adminbar-offset));
}

@media screen and (max-width: 600px) {
    body.admin-bar {
        --hero-adminbar-offset: 46px;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--ehok-bg);
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body:not(.home) {
    background-color: var(--ehok-page-bg);
}

/* --- NAVBAR STYLING --- */
.navbar {
    background: var(--ehok-blue);
    background: linear-gradient(135deg, var(--ehok-blue) 0%, var(--ehok-blue-light) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active, .navbar-nav .show > .nav-link {
    color: var(--ehok-orange) !important;
}

.ehok-navbar-search-wrap {
    padding-left: 0;
}

@media (min-width: 992px) {
    .ehok-navbar-search-wrap {
        padding-left: 1.25rem;
    }
}

.ehok-navbar-search-btn {
    color: rgba(255, 255, 255, 0.9);
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 10px 6px;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.ehok-navbar-search-btn:hover,
.ehok-navbar-search-btn:focus-visible {
    color: var(--ehok-orange);
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
}

.ehok-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 20px 40px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ehok-search-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ehok-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 43, 80, 0.72);
    backdrop-filter: blur(4px);
}

.ehok-search-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 32px;
    box-shadow: 0 28px 80px rgba(9, 43, 80, 0.28);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.28s ease;
}

.ehok-search-modal.is-open .ehok-search-modal__dialog {
    transform: translateY(0) scale(1);
}

.ehok-search-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(9, 43, 80, 0.06);
    color: var(--ehok-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ehok-search-modal__close:hover,
.ehok-search-modal__close:focus-visible {
    background: rgba(249, 167, 51, 0.18);
    color: var(--ehok-blue);
}

.ehok-search-modal__title {
    margin: 0 0 20px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #4f6278;
}

.ehok-search-modal__form .form-control,
.ehok-search-modal__form .input-group-text {
    min-height: 68px;
}

.ehok-search-modal__form .form-control {
    font-size: 1.125rem;
    padding-left: 24px;
}

.ehok-search-modal__form .input-group-text {
    padding: 0 24px;
}

.ehok-search-modal__hint {
    margin: 16px 0 0;
    font-size: 0.9rem;
    color: #6c7a89;
}

.ehok-search-section {
    margin-bottom: 3rem;
}

.ehok-search-section:first-of-type {
    margin-top: 0.5rem;
}

.ehok-search-section + .ehok-search-section {
    margin-top: 3.5rem;
}

.ehok-search-section__title {
    margin: 0 0 1.75rem;
    padding: 0;
    border: 0;
    text-align: center;
}

.ehok-search-empty,
.ehok-archive-empty,
.ehok-empty-state {
    align-self: flex-start;
    width: 100%;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.04);
    padding: 1.25rem 1.35rem;
}

.ehok-empty-state__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    text-align: left;
}

.ehok-empty-state__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(249, 167, 51, 0.12);
    color: var(--ehok-orange);
    font-size: 1.05rem;
}

.ehok-empty-state__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ehok-empty-state__title {
    margin: 0.15rem 0 0.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ehok-blue);
    text-transform: none;
    letter-spacing: normal;
}

.ehok-empty-state__text {
    margin: 0;
    color: #5a6b7d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ehok-archive-empty .ehok-page-title,
.ehok-search-empty .ehok-page-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.ehok-archive-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(249, 167, 51, 0.12);
    color: var(--ehok-orange);
    font-size: 1.35rem;
}

.ehok-archive-empty__text {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    color: #5a6b7d;
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 575px) {
    .ehok-empty-state__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

body.ehok-search-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .ehok-search-modal {
        padding: 84px 16px 24px;
    }

    .ehok-search-modal__dialog {
        padding: 34px 20px 24px;
        border-radius: 18px;
    }

    .ehok-search-modal__form .form-control,
    .ehok-search-modal__form .input-group-text {
        min-height: 58px;
    }

    .ehok-search-modal__form .form-control {
        font-size: 1rem;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0;
    border-top: 3px solid var(--ehok-orange);
}

.dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #1a1a1a;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active {
    background-color: var(--ehok-blue);
    color: #fff;
}

/* Mobil navbar: több hely a menü tetején, almenü finom lenyílás (desktop változatlan) */
@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-collapse .navbar-nav {
        padding-top: 1.35rem;
    }

    /*
     * Accordion-szerű almenü: csak a magasság animálódik.
     * Opacity/visibility fade tilos záráskor – különben üres fehér sáv villan,
     * amíg a max-height még összehúzódik.
     */
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        display: block !important;
        transform: none !important;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-top-width: 0;
        box-shadow: none;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height 0.36s ease,
            padding 0.36s ease,
            border-top-width 0.28s ease,
            box-shadow 0.28s ease,
            visibility 0s linear 0.36s;
    }

    .navbar-expand-lg .navbar-nav .dropdown-menu.show {
        max-height: min(560px, 72vh);
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        border-top-width: 3px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        visibility: visible;
        pointer-events: auto;
        transition:
            max-height 0.36s ease,
            padding 0.36s ease,
            border-top-width 0.28s ease,
            box-shadow 0.28s ease,
            visibility 0s linear 0s;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        transition: none;
    }
}

/* --- HERO SLIDESHOW SECTION --- */
#heroCarousel {
    position: relative;
    min-height: calc(100vh - var(--hero-adminbar-offset) - var(--hero-navbar-offset));
    min-height: calc(100dvh - var(--hero-adminbar-offset) - var(--hero-navbar-offset));
}

/* #heroCarousel.carousel,
.hero-section {
    min-height: calc(100vh - var(--hero-adminbar-offset) - var(--hero-navbar-offset));
    min-height: calc(100dvh - var(--hero-adminbar-offset) - var(--hero-navbar-offset));
    min-height: var(--hero-vh, calc(100dvh - var(--hero-adminbar-offset) - var(--hero-navbar-offset)));
} */

#heroCarousel .carousel-item {
    height: calc(100vh - var(--hero-adminbar-offset) - var(--hero-navbar-offset));
    height: calc(100dvh - var(--hero-adminbar-offset) - var(--hero-navbar-offset));
    height: var(--hero-vh, calc(100dvh - var(--hero-adminbar-offset) - var(--hero-navbar-offset)));
    background-color: #000;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sötét Overlay a képekre */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 43, 80, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 50px;
}

.slider-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.slider-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Slider Button */
.btn-slider {
    background-color: var(--ehok-orange);
    color: #fff;
    padding: 12px 35px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-slider:hover {
    background-color: #fff;
    color: var(--ehok-blue);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    #heroCarousel .slider-title {
        text-align: center;
        width: 100%;
    }

    .slider-title {
        font-size: 2rem;
    }
    .slider-desc {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* --- TYPOGRAPHY --- */
h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #333;
    margin-top: 60px;
    margin-bottom: 30px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.8rem;
}

/* Szekciócímek – szándékosan középre (főoldal, stb.) */
main.home section .tartalom h2,
.ehok-section-heading {
    text-align: center;
}

h2.accordion-header {
    margin-top: 0;
}

/* --- CONTENT LAYOUT --- */
.tartalom {
    max-width: 1200px;
    padding: 10px;
    margin: auto;
}

/* --- CARD SYSTEM (CPTS) --- */
.cpts-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.cpts-loading {
    opacity: 0.5;
    pointer-events: none;
}

.cpts-magazine-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cpts-magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Image Handling */
.cpts-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: #f4f4f4;
    overflow: hidden;
}

.cpts-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cpts-magazine-card:hover .cpts-card-image img {
    transform: scale(1.05);
}

.cpts-card-image--pdf .cpts-image-link--pdf {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(135deg, #eef2f7 0%, #dfe7f1 100%);
    overflow: hidden;
}

.cpts-card-image--pdf .univerzum-magazin-card__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
}

.cpts-card-image--pdf .univerzum-magazin-card__thumb-placeholder i {
    font-size: 1.75rem;
    color: #dc2626;
}

.cpts-card-image--pdf .univerzum-magazin-card__thumb-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpts-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #222;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
    z-index: 2;
}

.cpts-card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #5c6b7a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 2;
}

.cpts-magazine-card.cpts-magazine-card--past {
    background: #f4f6f8;
    border-color: #d8dee4;
}

.cpts-magazine-card.cpts-magazine-card--past .cpts-card-image img {
    filter: grayscale(0.72);
    opacity: 0.72;
}

.cpts-magazine-card.cpts-magazine-card--past .cpts-title,
.cpts-magazine-card.cpts-magazine-card--past .cpts-title a,
.cpts-magazine-card.cpts-magazine-card--past .cpts-excerpt {
    color: #5c6b7a;
}

.cpts-magazine-card.cpts-magazine-card--past .cpts-meta-top,
.cpts-magazine-card.cpts-magazine-card--past .cpts-event-status {
    color: #8a97a6;
}

.cpts-magazine-card.cpts-magazine-card--past:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(9, 43, 80, 0.06);
}

.cpts-magazine-card.cpts-magazine-card--past:hover .cpts-card-image img {
    transform: none;
}

/* Card Content */
.cpts-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cpts-meta-top {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    font-weight: 550;
}

.cpts-separator {
    margin: 0 5px;
}

.cpts-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
}

.cpts-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.cpts-title a:hover {
    color: #555;
}

.cpts-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Social Icons */
.cpts-social-share {
    display: flex;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.cpts-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #222;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.cpts-share-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.cpts-share-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.cpts-share-btn.copied {
    background-color: #28a745;
}

/* Filter Buttons */
.cpts-category-filter {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cpts-cat-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    transition: all 0.3s ease;
    color: #555;
}

.cpts-cat-btn:hover, .cpts-cat-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Fallback Image Style */
.cpts-image-link.is-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpts-image-link.is-fallback img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: none;
}

/* Scoped pagination styles for mixed aktualitasok templates */
.cpts-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cpts-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.cpts-pagination .page-numbers a,
.cpts-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    background: #fff;
    color: var(--ehok-blue);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.cpts-pagination .page-numbers a:hover {
    border-color: var(--ehok-blue);
    background: #f2f6fb;
}

.cpts-pagination .page-numbers .current {
    border-color: var(--ehok-blue);
    background: var(--ehok-blue);
    color: #fff;
}

.cpts-pagination .page-numbers .dots {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: 0 6px;
    color: #6c757d;
}

/* Aktualitasok filter panel */
.akt-filters {
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(9, 43, 80, 0.06);
    overflow: hidden;
}

.akt-filters-acc {
    margin: 0;
}

.akt-filters-acc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
}

.akt-filters-acc__summary::-webkit-details-marker {
    display: none;
}

.akt-filters-acc__summary::marker {
    content: '';
}

.akt-filters-acc__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ehok-blue);
    font-size: 0.92rem;
    font-weight: 700;
}

.akt-filters-acc__title i {
    color: var(--ehok-orange);
}

.akt-filters-acc__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #4a6178;
    font-size: 0.85rem;
    font-weight: 600;
}

.akt-filters-acc__chevron {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    color: var(--ehok-blue);
}

.akt-filters-acc[open] .akt-filters-acc__chevron {
    transform: rotate(180deg);
}

.akt-filters-acc__panel {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid #edf1f5;
}

.akt-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.akt-filters-acc__panel .akt-filters-grid:first-child {
    padding-top: 1rem;
}

.akt-filter-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4a6178;
    letter-spacing: 0.04em;
}

.akt-date-custom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.akt-type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.akt-type-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.akt-type-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.akt-type-pill span {
    border: 1px solid #d4dde7;
    background: #fff;
    color: #294966;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.akt-type-pill input:checked + span {
    background: var(--ehok-blue);
    border-color: var(--ehok-blue);
    color: #fff;
}

.akt-upcoming-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    min-height: 28px;
    padding-left: 0;
}

.akt-upcoming-toggle[hidden] {
    display: none !important;
}

.akt-upcoming-toggle .form-check-input {
    width: 2.4em;
    height: 1.25em;
    margin-left: 0;
    margin-top: 0;
    cursor: pointer;
    background-color: #d4dde7;
    border-color: #d4dde7;
}

.akt-upcoming-toggle .form-check-input:checked {
    background-color: var(--ehok-blue);
    border-color: var(--ehok-blue);
}

.akt-upcoming-toggle .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(9, 43, 80, 0.18);
}

.akt-upcoming-toggle .form-check-label {
    font-size: 13px;
    font-weight: 600;
    color: #294966;
    cursor: pointer;
}

.akt-filter-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.akt-filter-actions__buttons {
    align-items: center;
}

.akt-filter-actions__buttons .btn-ehok-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    border-width: 1.5px;
    line-height: 1.2;
}

.akt-filter-actions__buttons .btn-ehok-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    padding: 0.4rem 1rem !important;
    font-size: 0.82rem !important;
    line-height: 1.2;
}

.akt-filter-actions__buttons .btn-ehok-orange:hover {
    background-color: var(--ehok-blue);
    color: #fff;
}

.akt-filter-count {
    font-size: 0.85rem;
    color: #345a75;
    font-weight: 600;
}

@media (max-width: 992px) {
    .akt-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .akt-filters-grid,
    .akt-date-custom {
        grid-template-columns: 1fr;
    }

    .akt-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .akt-filter-actions__buttons {
        width: 100%;
    }

    .akt-filter-actions__buttons .btn-ehok-outline,
    .akt-filter-actions__buttons .btn-ehok-orange {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding-top: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-top: auto;
    flex-shrink: 0;
}

footer h5 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
    border-left: 3px solid var(--ehok-orange);
    padding-left: 10px;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover {
    color: var(--ehok-orange);
}

.socket {
    background-color: #000;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.socket a {
    color: var(--ehok-orange);
    margin: 0 10px;
    font-size: 18px;
    transition: 0.3s;
}

.socket a:hover {
    color: #fff;
}

.ehok-footer-rss-wrap {
    text-align: center;
}

.socket a.ehok-footer-rss-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--ehok-orange);
    border-radius: 0.4rem;
    background: transparent;
    color: var(--ehok-orange) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none !important;
}

.socket a.ehok-footer-rss-btn i {
    font-size: 0.9rem;
}

.socket a.ehok-footer-rss-btn:hover {
    background: var(--ehok-orange);
    color: #000 !important;
    text-decoration: none !important;
}


/* --- Modern Event Cards --- */
.event-modern-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.event-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.event-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-modern-card:hover .event-image-wrapper img {
    transform: scale(1.1);
}

/* Dátum kártya a képen */
.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ehok-blue);
}

.event-date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ehok-orange);
}

.event-price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--ehok-blue);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-details {
    padding: 20px;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 3rem; /* Max 2 sor */
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.event-meta i {
    color: var(--ehok-orange);
    width: 20px;
}

.btn-ehok-orange {
    background-color: var(--ehok-orange);
    color: #fff;
    border: 2px solid var(--ehok-orange);
    transition: 0.3s;
}

.btn-ehok-orange:hover {
    background-color: var(--ehok-blue);
    border-color: var(--ehok-blue);
    color: #fff;
}

/* --- Front Page Események Finomhangolása --- */
.front-page-events-wrapper .szte-events-grid .col-lg-4 {
    flex: 0 0 50%; /* A főoldali oldalsávban ne 3, hanem 2 hasáb legyen */
    max-width: 50%;
}

@media (max-width: 768px) {
    .front-page-events-wrapper .szte-events-grid .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Esemény kártya gombok javítása */
.event-actions .btn {
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Magazin Front Page Kártya --- */
.magazin-fp-card {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #eee;
}

.magazin-fp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 43, 80, 0.4), rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

/* Ha nincs kép a magazinnál, egy alap EHÖK kéket kapjon */
.magazin-fp-card[style*="url('')"] {
    background-color: var(--ehok-blue);
}

/* Címek egységesítése a főoldalon */
h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--ehok-blue);
}

/* --- CPTS GRID & CARD DESIGN --- */
.cpts-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.cpts-magazine-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cpts-magazine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.cpts-card-image {
    position: relative;
    padding-top: 60%;
    background: #f4f4f4;
    overflow: hidden;
}

.cpts-card-image img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cpts-magazine-card:hover .cpts-card-image img {
    transform: scale(1.08);
}

.cpts-card-cat {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--ehok-blue);
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
}

.cpts-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cpts-meta-top {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

.cpts-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.cpts-title a {
    text-decoration: none;
    color: var(--ehok-blue);
}

.cpts-excerpt {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cpts-social-share {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.cpts-share-btn {
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555 !important;
    border: none;
    transition: all 0.3s;
}

.cpts-share-btn:hover {
    background: var(--ehok-blue);
    color: #fff !important;
}

.cpts-share-btn.copied { background: #28a745; color: #fff !important; }

/* Filter Buttons */
.cpts-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.cpts-cat-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.cpts-cat-btn.active, .cpts-cat-btn:hover {
    background: var(--ehok-blue);
    color: #fff;
    border-color: var(--ehok-blue);
}

/* --- Gutenberg Quote Blocks --- */
blockquote.szte-quote-block,
figure.szte-quote-block {
    position: relative;
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

blockquote.szte-quote-block::before,
figure.szte-quote-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ehok-orange);
}

blockquote.szte-quote-block p,
figure.szte-quote-block p {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: normal;
    color: #444;
}

blockquote.szte-quote-block cite,
blockquote.szte-quote-block .wp-block-quote__citation,
figure.szte-quote-block cite {
    display: block;
    margin-top: 0.75rem;
    color: var(--ehok-blue-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
}

figure.szte-quote-block.szte-quote-block--pullquote {
    padding: 1.25rem 0 0;
    text-align: center;
}

figure.szte-quote-block.szte-quote-block--pullquote::before {
    top: 0;
    bottom: auto;
    width: auto;
    right: 0;
    height: 3px;
}

figure.szte-quote-block.szte-quote-block--pullquote blockquote {
    margin: 0;
    padding: 0;
    border: none !important;
}

@media (max-width: 768px) {
    blockquote.szte-quote-block,
    figure.szte-quote-block {
        padding-left: 1rem;
    }

    blockquote.szte-quote-block p,
    figure.szte-quote-block p {
        font-size: 1.05rem;
    }
}

/* Fallback image center */
.cpts-image-link.is-fallback img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    opacity: 1;
}

/* --- JOGI OLDAL SABLON --- */
.legal-page-main {
    background-color: var(--ehok-bg);
}

.legal-hero-title {
    margin-bottom: 0.5rem;
}

.legal-hero-lead {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.legal-content-card,
.legal-meta-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eceff3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.legal-content-body {
    padding: 28px;
    line-height: 1.7;
    color: #2f3742;
}

.legal-content-body > *:first-child {
    margin-top: 0;
}

.legal-content-body h2,
.legal-content-body h3,
.legal-content-body h4 {
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--ehok-blue);
}

.legal-content-body h2 {
    font-size: 1.45rem;
}

.legal-content-body h3 {
    font-size: 1.2rem;
}

.legal-content-body p,
.legal-content-body ul,
.legal-content-body ol,
.legal-content-body table {
    margin-bottom: 1rem;
}

.legal-content-body ul,
.legal-content-body ol {
    padding-left: 1.25rem;
}

.legal-content-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-content-body table th,
.legal-content-body table td {
    border: 1px solid #e6e9ee;
    padding: 10px 12px;
    vertical-align: top;
}

.legal-content-body table th {
    background: #f8fafc;
    color: var(--ehok-blue);
}

.legal-meta-card {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.legal-meta-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--ehok-blue);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}

.legal-meta-list {
    margin: 0;
}

.legal-meta-list > div {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
}

.legal-meta-list > div:last-child {
    border-bottom: 0;
}

.legal-meta-list dt {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #7a8491;
}

.legal-meta-list dd {
    margin: 6px 0 0;
    color: #27303d;
    font-weight: 600;
}

.legal-print-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--ehok-orange);
    color: #fff;
    border: 1px solid var(--ehok-orange);
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 14px;
    transition: all 0.25s ease;
}

.legal-print-btn:hover {
    background: var(--ehok-blue);
    border-color: var(--ehok-blue);
    color: #fff;
}

.legal-print-btn i {
    margin-right: 8px;
}

@media (max-width: 991px) {
    .legal-meta-card {
        position: static;
    }

    .legal-content-body {
        padding: 22px;
    }
}

@media print {
    .navbar,
    footer,
    .legal-meta-card {
        display: none !important;
    }

    .legal-content-card {
        border: 0;
        box-shadow: none;
    }
}

/* --- Új Szekció Felirat Stílus --- */
.section-title-sm {
    color: var(--ehok-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* --- Esemény kártyák fixelése --- */
.front-page-full-events .szte-events-grid .col-lg-4 {
    flex: 0 0 33.333% !important; /* Kényszerítjük a 3 hasábot */
    max-width: 33.333% !important;
}

@media (max-width: 991px) {
    .front-page-full-events .szte-events-grid .col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 767px) {
    .front-page-full-events .szte-events-grid .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.cpts-share-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.story-share-stage {
    position: fixed;
    left: -99999px;
    top: 0;
    width: 1080px;
    height: 1920px;
    overflow: hidden;
    z-index: -1;
}

.story-share-card {
    width: 1080px;
    height: 1920px;
    background: linear-gradient(165deg, #1b4267 0%, #0b2c50 65%, #04192f 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: grid;
    grid-template-rows: 57% 43%;
}

.story-share-cover {
    position: relative;
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 44px;
    border-bottom-right-radius: 44px;
    overflow: hidden;
}

.story-share-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 16, 33, 0.58) 0%, rgba(3, 16, 33, 0.18) 38%, rgba(3, 16, 33, 0) 68%);
    pointer-events: none;
}

.story-share-badge {
    position: absolute;
    left: 64px;
    top: 64px;
    z-index: 1;
    background: rgba(5, 22, 44, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.44);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: calc(100% - 128px);
}

.story-share-content {
    padding: 72px 64px 86px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.story-share-date {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.story-share-title {
    margin: 26px 0 0;
    font-size: 74px;
    line-height: 1.12;
    letter-spacing: 0.01em;
    font-weight: 800;
}

.story-share-divider {
    width: 146px;
    height: 6px;
    border-radius: 999px;
    margin-top: 36px;
    background: linear-gradient(90deg, #f9a733 0%, #ffd08a 100%);
}

.story-share-excerpt {
    margin: 34px 0 0;
    max-width: 94%;
    font-size: 36px;
    line-height: 1.32;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.story-share-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.story-share-brand {
    margin-top: 0;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f9a733;
}

.story-share-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 0 28px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Gomb stílus — egységes méret outline + filled */
.btn-ehok-outline,
.btn.btn-ehok-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-ehok-outline {
    border: 2px solid var(--ehok-blue);
    color: var(--ehok-blue);
    background: transparent;
}

.btn-ehok-outline:hover {
    background: var(--ehok-blue);
    color: #fff;
}

/* --- 404 Page --- */
.ehok-404 {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 88% 18%, rgba(249, 167, 51, 0.14), transparent 55%),
        radial-gradient(ellipse 55% 50% at 8% 85%, rgba(9, 43, 80, 0.08), transparent 50%),
        var(--ehok-page-bg);
    padding: 2.5rem 0 3.5rem;
}

.ehok-404__container {
    width: 100%;
}

.ehok-404__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem 3rem;
    align-items: center;
    min-height: clamp(22rem, 52vh, 34rem);
}

.ehok-404__content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.ehok-404__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ehok-blue);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.9rem;
}

.ehok-404__lead {
    margin: 0 0 1.6rem;
    color: #5f6b7a;
    font-size: 1.05rem;
    line-height: 1.7;
}

.ehok-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ehok-404__search {
    margin-bottom: 1.75rem;
}

.ehok-404__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(9, 43, 80, 0.1);
}

.ehok-404__links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ehok-blue);
    opacity: 0.72;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.ehok-404__links a:hover {
    opacity: 1;
    color: var(--ehok-orange);
}

.ehok-404__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 14rem;
    pointer-events: none;
    user-select: none;
}

.ehok-404__digit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(7rem, 18vw, 12.5rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: transparent;
    background: linear-gradient(160deg, rgba(9, 43, 80, 0.16) 0%, rgba(9, 43, 80, 0.05) 55%, rgba(249, 167, 51, 0.18) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.ehok-search-form .form-control,
.ehok-search-form .input-group-text {
    border-color: rgba(9, 43, 80, 0.12);
    min-height: 52px;
}

.ehok-search-form .form-control {
    font-size: 1rem;
    padding-left: 1rem;
}

.ehok-search-form .input-group:focus-within {
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 0 0 0.25rem rgba(249, 167, 51, 0.18);
}

.ehok-search-form .form-control:focus,
.ehok-search-form .input-group-text:focus,
.ehok-search-form .input-group-text:focus-visible {
    border-color: var(--ehok-orange);
    box-shadow: none;
    outline: none;
}

.ehok-search-form .input-group:focus-within .form-control,
.ehok-search-form .input-group:focus-within .input-group-text {
    border-color: var(--ehok-orange);
}

.ehok-search-form .input-group-text {
    padding: 0 1.1rem;
}

@media (max-width: 991.98px) {
    .ehok-404__layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: 0;
        text-align: center;
    }

    .ehok-404__content {
        max-width: 36rem;
        margin: 0 auto;
        order: 2;
    }

    .ehok-404__visual {
        order: 1;
        min-height: 0;
    }

    .ehok-404__digit {
        font-size: clamp(5.5rem, 28vw, 8.5rem);
    }

    .ehok-404__actions {
        justify-content: center;
    }

    .ehok-404__links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .ehok-404 {
        padding: 1.75rem 0 2.5rem;
    }

    .ehok-404__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ehok-404__actions .btn {
        width: 100%;
        text-align: center;
    }

    .ehok-404__links {
        gap: 0.55rem 1rem;
    }
}

/* --- Új Magazin Hero Design --- */
.magazin-hero-banner {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #eee;
    min-height: 450px;
}

.magazin-hero-img {
    background-size: cover;
    background-position: center;
    min-height: 350px;
    position: relative;
}

.magazin-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--ehok-orange);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.magazin-hero-body {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.magazin-divider {
    width: 60px;
    height: 4px;
    background: var(--ehok-orange);
}

.magazin-stat {
    font-size: 1rem;
    color: #666;
}

@media (max-width: 991px) {
    .magazin-hero-body { padding: 40px; }
}

/* --- Shared Page Hero (event calendar style) --- */
.ehok-page-shell,
.ehok-esemeny-page,
.ehok-page-content {
    background-color: var(--ehok-page-bg);
}

body:not(.home) main {
    background-color: var(--ehok-page-bg) !important;
}

.ehok-page-hero {
    padding: 1.25rem 1.25rem 0;
    background: transparent;
}

.ehok-page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ehok-blue);
    letter-spacing: -0.02em;
    text-transform: none;
}

h1.ehok-page-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.2;
    text-align: left;
}

h2.ehok-page-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.3;
    margin-top: 0;
}

.ehok-esemeny-page .naptar-kartya {
    margin-bottom: 1.5rem;
}

.ehok-esemeny-page .naptar-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.ehok-page-lead {
    color: #5f6b7a;
    max-width: 60rem;
}

.ehok-page-intro {
    color: #5f6b7a;
    max-width: 60rem;
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 0.75rem;
}

.ehok-page-intro > :first-child {
    margin-top: 0;
}

.ehok-page-intro > :last-child {
    margin-bottom: 0;
}

.ehok-page-intro p {
    margin-bottom: 1rem;
    font-weight: 400;
}

.ehok-page-intro h2,
.ehok-page-intro h3,
.ehok-page-intro h4 {
    color: var(--ehok-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.35;
    margin: 1.5rem 0 0.75rem;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.ehok-page-intro > h2:first-child,
.ehok-page-intro > h3:first-child,
.ehok-page-intro > h4:first-child {
    margin-top: 0;
}

.ehok-page-intro h2 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.ehok-page-intro h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.ehok-page-intro h4 {
    font-size: 1rem;
}

.ehok-page-intro ul,
.ehok-page-intro ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.ehok-page-intro li {
    margin-bottom: 0.35rem;
}

.ehok-page-intro strong,
.ehok-page-intro b {
    font-weight: 600;
    color: #4a5568;
}

.ehok-page-hero .ehok-page-intro + * {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .ehok-page-hero {
        padding: 0.25rem 0.25rem 0;
    }
}

/* --- Single Article Layout --- */
.article-header {
    background: #fff;
    padding: 40px 0 30px;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ehok-blue);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    margin-top: 0;
}

.archive-description {
    margin-bottom: 0;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.article-meta i {
    color: var(--ehok-orange);
    margin-right: 5px;
}

.badge-cat {
    display: inline-block;
    background-color: var(--ehok-blue);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0 0 0.85rem;
}

/* Hero: label → cím között egyértelmű levegő */
.ehok-page-hero .badge-cat {
    margin-bottom: 1rem;
}

.ehok-page-hero__before .badge-cat {
    margin-bottom: 1rem;
}

.ehok-page-hero .badge-cat + .ehok-page-title,
.ehok-page-hero .badge-cat + h1,
.ehok-page-hero .badge-cat + h2,
.ehok-page-hero__before + .ehok-page-title {
    margin-top: 0;
}

.ehok-page-hero__extra {
    margin-top: 0.35rem;
}

.article-body {
    background: #fff;
    padding: 40px;
}

/* Single posztok: mobilon teljes szélesség, kevesebb belső padding (olvasható sormagasság) */
@media (max-width: 991.98px) {
    body.single .ehok-page-shell {
        overflow-x: clip;
    }

    body.single .ehok-page-shell .tartalom {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    }

    /* Juttatás / helyszín / magazin single-ök: maradjanak a containerben */
    body.single-osztondijak .ehok-page-shell .tartalom,
    body.single-kollegiumok .ehok-page-shell .tartalom,
    body.single-helyszin .ehok-page-shell .tartalom,
    body.single-univerzum_magazin .ehok-page-shell .tartalom {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    body.single .ehok-page-shell .tartalom > .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    body.single-osztondijak .ehok-page-shell .tartalom > .row.g-4,
    body.single-kollegiumok .ehok-page-shell .tartalom > .row.g-4,
    body.single-helyszin .ehok-page-shell .tartalom > .row.g-4 {
        --bs-gutter-x: 1rem;
    }

    body.single .ehok-page-shell .tartalom .article-body {
        padding: 1.35rem 1.15rem;
    }

    body.single .article-lead {
        padding-left: 0.85rem;
    }
}

.ehok-osztondij-single .article-body {
    border-radius: 1rem;
}

.ehok-info-panel,
.ehok-osztondij-info {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-top: 3px solid var(--ehok-orange);
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.05);
    color: #334155;
}

.ehok-info-panel__title,
.ehok-osztondij-info__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ehok-blue);
    margin: 0 0 1.25rem;
}

.ehok-info-panel__row,
.ehok-osztondij-info__row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.ehok-info-panel__row > div,
.ehok-osztondij-info__row > div {
    flex: 1;
    min-width: 0;
}

.ehok-info-panel__row:last-of-type,
.ehok-osztondij-info__row:last-of-type {
    margin-bottom: 0;
}

.ehok-info-panel__icon,
.ehok-osztondij-info__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(9, 43, 80, 0.06);
    color: var(--ehok-blue);
    font-size: 0.95rem;
}

.ehok-info-panel__label,
.ehok-osztondij-info__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7b8798;
    margin-bottom: 0.2rem;
}

.ehok-info-panel__value,
.ehok-osztondij-info__value {
    color: #1f2a37;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ehok-info-panel__value p,
.ehok-osztondij-info__value p {
    margin-bottom: 0.5rem;
}

.ehok-info-panel__value p:last-child,
.ehok-osztondij-info__value p:last-child {
    margin-bottom: 0;
}

.ehok-info-panel__cta,
.ehok-osztondij-info__cta {
    margin-top: 1.25rem;
}

.ehok-info-panel p:last-child,
.ehok-osztondij-info p:last-child {
    margin-bottom: 0;
}

.ehok-kollegium-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    max-width: 48rem;
}

.ehok-kollegium-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.ehok-kollegium-chip--blue {
    background: rgba(9, 43, 80, 0.09);
    color: var(--ehok-blue);
}

.ehok-kollegium-chip--orange {
    background: rgba(249, 167, 51, 0.22);
    color: #8a5208;
}

.ehok-kollegium-jelentkezes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.ehok-kollegium-jelentkezes-list li {
    margin: 0;
    line-height: 1.4;
}

.ehok-kollegium-single .article-body {
    border-radius: 1rem;
}

.ehok-kollegium-single__map {
    margin-top: 2.5rem;
}

.ehok-osztondij-related {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(9, 43, 80, 0.08);
}

.ehok-osztondij-related__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.ehok-osztondij-related__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ehok-orange);
    margin-bottom: 0.3rem;
}

.ehok-osztondij-related__archive-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ehok-blue);
    text-decoration: none;
}

.ehok-osztondij-related__archive-link:hover {
    color: var(--ehok-orange);
}

.ehok-osztondij-related__archive-link i {
    margin-left: 0.35rem;
    font-size: 0.8em;
}

.ehok-osztondij-related__card {
    height: 100%;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ehok-osztondij-related__card:hover {
    border-color: rgba(249, 167, 51, 0.55);
    box-shadow: 0 12px 28px rgba(15, 40, 80, 0.08);
    transform: translateY(-2px);
}

.ehok-osztondij-related__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1.35rem 1.35rem;
    color: inherit;
    text-decoration: none;
}

.ehok-osztondij-related__badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(9, 43, 80, 0.07);
    color: var(--ehok-blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ehok-osztondij-related__card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ehok-blue);
    margin: 0 0 0.85rem;
}

.ehok-osztondij-related__meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    color: #5f6b7a;
    font-size: 0.9rem;
}

.ehok-osztondij-related__meta i {
    color: var(--ehok-orange);
    width: 1rem;
    margin-right: 0.35rem;
}

.ehok-osztondij-related__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    pointer-events: none;
}

.ehok-osztondij-related__card:hover .ehok-osztondij-related__more {
    background: var(--ehok-blue);
    color: #fff;
}

.ehok-osztondij-related__more i {
    margin-left: 0.35rem;
    font-size: 0.8em;
}

/* --- Közös juttatás / archívum oldalak --- */
.ehok-archive-page {
    background: radial-gradient(circle at top right, #edf5ff 0%, #f5f7fb 45%, #eef2f8 100%);
}

/* --- Kollégium archívum --- */
.ehok-kollegium-archive {
    background: radial-gradient(circle at top right, #edf5ff 0%, #f5f7fb 45%, #eef2f8 100%);
}

.ehok-kollegium-archive__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ehok-orange);
    margin-bottom: 0.3rem;
}

.ehok-kollegium-archive__map-card {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-top: 3px solid var(--ehok-orange);
    border-radius: 1rem;
    padding: 0.85rem;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.05);
}

.ehok-kollegium-archive__map {
    height: min(480px, 62vh);
    border-radius: 0.85rem;
    overflow: hidden;
    background: #edf2f7;
}

.ehok-map__canvas .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #7b8798;
    font-size: 0.68rem;
    border-radius: 0.35rem 0 0 0;
    padding: 0.2rem 0.45rem;
    border: none;
    box-shadow: none;
}

.ehok-map__canvas .leaflet-control-attribution a {
    color: var(--ehok-blue);
}

.ehok-map__canvas .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 6px 18px rgba(15, 40, 80, 0.12) !important;
    border-radius: 0.65rem !important;
    overflow: hidden;
}

.ehok-map__canvas .leaflet-control-zoom a {
    width: 2.15rem !important;
    height: 2.15rem !important;
    line-height: 2.15rem !important;
    color: var(--ehok-blue) !important;
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #e8edf3 !important;
    font-size: 1.05rem !important;
}

.ehok-map__canvas .leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

.ehok-map__canvas .leaflet-control-zoom a:hover {
    background: #f5f8fc !important;
    color: var(--ehok-orange) !important;
}

.ehok-map-marker {
    background: transparent !important;
    border: none !important;
}

.ehok-map-marker__pin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--ehok-blue);
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(9, 43, 80, 0.28);
}

.ehok-map-marker__pin i {
    transform: rotate(45deg);
    color: var(--ehok-orange);
    font-size: 0.85rem;
}

.ehok-map-popup-wrap .leaflet-popup-content-wrapper {
    background: #fff;
    border-radius: 0.85rem;
    border: 1px solid #e4e9f0;
    border-top: 3px solid var(--ehok-orange);
    box-shadow: 0 12px 28px rgba(15, 40, 80, 0.12);
    padding: 0;
    overflow: hidden;
}

.ehok-map-popup-wrap .leaflet-popup-content {
    margin: 0.9rem 1rem 1rem;
    min-width: 180px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.45;
}

.ehok-map-popup-wrap .leaflet-popup-tip {
    background: #fff;
    border: 1px solid #e4e9f0;
    box-shadow: none;
}

.ehok-map-popup-wrap .leaflet-popup-close-button {
    color: #7b8798 !important;
    top: 0.35rem !important;
    right: 0.45rem !important;
    font-size: 1.1rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.ehok-map-popup-wrap .leaflet-popup-close-button:hover {
    color: var(--ehok-blue) !important;
}

.ehok-map-popup__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ehok-blue);
    margin-bottom: 0.4rem;
    padding-right: 1rem;
}

.ehok-map-popup__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #5f6b7a;
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
}

.ehok-map-popup__meta i {
    color: var(--ehok-orange);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ehok-map-popup__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ehok-blue);
    text-decoration: none;
}

.ehok-map-popup__link:hover {
    color: var(--ehok-orange);
}

.ehok-map-popup__link i {
    font-size: 0.75em;
}

.ehok-kollegium-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ehok-kollegium-card:hover {
    border-color: rgba(249, 167, 51, 0.55);
    box-shadow: 0 12px 28px rgba(15, 40, 80, 0.08);
    transform: translateY(-2px);
}

.ehok-kollegium-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ehok-kollegium-card__media {
    aspect-ratio: 16 / 10;
    background: #edf2f7;
    overflow: hidden;
}

.ehok-kollegium-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ehok-kollegium-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e8eef5 0%, #f7f9fc 100%);
    color: rgba(9, 43, 80, 0.35);
    font-size: 2rem;
}

.ehok-kollegium-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem 1.3rem 1.35rem;
}

.ehok-kollegium-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ehok-blue);
    margin: 0 0 0.85rem;
    text-align: left;
}

.ehok-kollegium-card__meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    color: #5f6b7a;
    font-size: 0.9rem;
}

.ehok-kollegium-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.ehok-kollegium-card__meta i {
    color: var(--ehok-orange);
    width: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.ehok-kollegium-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    pointer-events: none;
}

.ehok-kollegium-card:hover .ehok-kollegium-card__more {
    background: var(--ehok-blue);
    color: #fff;
}

.ehok-kollegium-card__more i {
    margin-left: 0.35rem;
    font-size: 0.8em;
}

.ehok-gyik__accordion {
    --bs-accordion-border-color: #d9e0ea;
    --bs-accordion-btn-bg: #fff;
    --bs-accordion-btn-color: var(--ehok-blue);
    --bs-accordion-active-bg: #fff;
    --bs-accordion-active-color: var(--ehok-blue);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(249, 167, 51, 0.25);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.06);
}

.ehok-gyik__item {
    border-color: #d9e0ea;
}

.ehok-gyik__item .accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.15rem 1.35rem;
}

.ehok-gyik__item .accordion-button:not(.collapsed) {
    border-bottom-color: transparent;
    box-shadow: inset 0 -1px 0 #edf1f6;
}

.ehok-gyik__item .accordion-button::after {
    background-image: none;
    content: '+';
    font-size: 1.35rem;
    font-weight: 500;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1.1;
    text-align: center;
    color: var(--ehok-orange);
    transform: none;
}

.ehok-gyik__item .accordion-button:not(.collapsed)::after {
    content: '−';
    transform: none;
    background-image: none;
}

.ehok-gyik__answer,
.ehok-gyik__item .accordion-body {
    color: #4a5563;
    line-height: 1.75;
    padding: 1rem 1rem 1rem;
}

.ehok-gyik__answer > :first-child,
.ehok-gyik__item .accordion-body > :first-child {
    margin-top: 0;
}

.ehok-gyik__answer > :last-child,
.ehok-gyik__item .accordion-body > :last-child {
    margin-bottom: 0;
}

/* Juttatások (ösztöndíj / kollégium single + archív mobilitás, ösztöndíj lista) – mobil */
@media (max-width: 991.98px) {
    .ehok-page-hero__extra .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .ehok-page-hero__extra .article-meta span {
        max-width: 100%;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .ehok-page-hero .ehok-kollegium-chips {
        max-width: 100%;
    }

    .ehok-kollegium-chip {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    body.single-osztondijak .ehok-osztondij-info,
    body.single-kollegiumok .ehok-info-panel,
    body.single-helyszin .ehok-info-panel {
        padding: 1.15rem !important;
        border-radius: 0.75rem;
    }

    body.single-osztondijak .ehok-osztondij-related__head,
    body.single-osztondijak .ehok-gyik,
    body.single-kollegiumok .ehok-gyik,
    body.single-kollegiumok .ehok-kollegium-single__map {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    body.single-osztondijak .ehok-osztondij-related__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ehok-osztondij-related__card-title,
    .ehok-osztondij-related__meta li {
        overflow-wrap: anywhere;
    }

    .ehok-gyik__item .accordion-button {
        white-space: normal;
        text-align: left;
        padding: 0.85rem 2.35rem 0.85rem 1rem;
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .ehok-gyik__item .accordion-button::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        margin-top: -0.65rem;
    }

    .ehok-gyik__item .accordion-header {
        position: relative;
    }

    .ehok-gyik__answer,
    .ehok-gyik__item .accordion-body {
        padding: 0.85rem 1rem 1rem;
        overflow-wrap: anywhere;
    }

    .ehok-kollegium-archive__map-card {
        padding: 0.65rem;
        border-radius: 0.75rem;
    }

    .ehok-kollegium-archive__map {
        height: min(320px, 50vh);
    }

    .ehok-archive-page .container.tartalom {
        max-width: 100%;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .ehok-archive-page .container.tartalom > section.bg-white {
        padding: 1rem !important;
        border-radius: 0.75rem;
    }

    .ehok-archive-page .accordion-button {
        white-space: normal;
        text-align: left;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .ehok-archive-page .accordion-body {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ehok-archive-page .accordion-body .fs-6 {
        font-size: 0.95rem !important;
    }
}

/* --- BANNER STYLES --- */
.banners-container {
    display: grid;
    grid-template-columns: minmax(170px, 210px) 1fr minmax(170px, 210px);
    gap: 24px;
    align-items: start;
    pointer-events: none;
    z-index: 30;
}

.banners-container--fixed {
    position: fixed;
    top: 50vh;
    left: 0;
    right: 0;
    padding: 0 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.97);
    transform-origin: center;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.banners-container--fixed.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: none;
}

.banner-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    pointer-events: auto;
}

.banner-column.banner-left {
    grid-column: 1;
    justify-self: start;
}

.banner-column.banner-right {
    grid-column: 3;
    justify-self: end;
}

.banner-item {
    width: 100%;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(9, 43, 80, 0.14);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    aspect-ratio: 5 / 12;
    max-width: 210px;
}

.banner-item:hover {
    box-shadow: 0 16px 30px rgba(9, 43, 80, 0.22);
    transform: translateY(-3px);
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
}

.banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-image {
    transform: scale(1.02);
}

/* --- MOBILE BANNERS BOTTOM BAR --- */
/* Side rails: csak nagyon széles desktopon (lásd min-width: 1650px a desktop JS-ben). */
@media screen and (max-width: 1649px) {
    .banners-container {
        display: none !important;
    }
}

/* Bottom bar: csak valódi mobilon / keskeny viewporton — NE laptop szélességen. */
.banners-mobile-bar {
    display: none;
}

@media screen and (max-width: 991.98px) {
    .banners-mobile-bar {
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        z-index: 1400;
        pointer-events: auto;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .mobile-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255,255,255,0.98);
        padding: 8px 10px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(9, 43, 80, 0.08);
        transform: translateX(0);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
        overflow: hidden;
    }


    .mobile-banner-content {
        display: block;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0; /* allow flex children to shrink */
        overflow: hidden;
    }

    /* Image fills content area to the right edge (just before dismiss button). Use object-fit to crop and object-position to favour the right side. */
    .mobile-banner img {
        display: block;
        width: 100%;
        height: 64px;
        object-fit: cover;
        object-position: center right;
        border-radius: 8px;
    }

    .mobile-banner-dismiss {
        background: transparent;
        border: none;
        font-size: 22px;
        line-height: 1;
        padding: 6px 8px;
        color: #222;
        cursor: pointer;
        flex: 0 0 44px; /* fixed width so image fills everything up to this button */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-banner.is-hidden-mobile {
        transform: translateX(-110%);
        opacity: 0;
    }
}

body.admin-bar .banners-container--fixed {
    top: calc(50vh + 16px);
}

/* --- ARTICLE WRAPPER --- */
.article-wrapper {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.article-lead {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
    border-left: 4px solid var(--ehok-orange);
    padding-left: 20px;
}

.article-content h2,
.article-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ehok-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.article-content .wp-block-image,
.article-content .wp-block-gallery,
.article-content .wp-block-video,
.article-content .wp-block-embed {
    margin: 2rem 0 2.35rem;
}

.article-content .wp-block-image img,
.article-content .wp-block-video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content .wp-block-image figcaption,
.article-content .wp-block-gallery figcaption,
.article-content .wp-block-embed figcaption,
.article-content .wp-element-caption {
    margin: 0.65rem 0 0;
    padding: 0.15rem 0 0.1rem 0.9rem;
    border-left: 3px solid var(--ehok-orange);
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
    color: #5c6773;
    text-align: left;
}

/* Gutenberg PDF (core/file) melléklet a posztokban */
.szte-pdf-viewer {
    margin: 1.75rem 0;
}

.pdf-preview-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf4 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e74c3c;
}

.pdf-icon {
    font-size: 2.35rem;
    color: #e74c3c;
    min-width: 2.75rem;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.pdf-info {
    flex: 1;
    min-width: 0;
}

.pdf-name {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    line-height: 1.35;
    word-break: break-word;
}

.pdf-size {
    margin: 0.35rem 0 0;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.pdf-download-btn {
    background-color: #e74c3c;
    border-color: #e74c3c;
    white-space: nowrap;
    flex-shrink: 0;
}

.pdf-download-btn:hover,
.pdf-download-btn:focus-visible {
    background-color: #c0392b;
    border-color: #c0392b;
}

@media (max-width: 767.98px) {
    .szte-pdf-viewer {
        margin: 1.1rem 0;
    }

    .pdf-preview-box {
        display: grid;
        grid-template-columns: 2rem minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.45rem 0.65rem;
        padding: 0.65rem 0.75rem;
        text-align: left;
    }

    .pdf-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        font-size: 1.55rem;
        min-width: 0;
    }

    .pdf-info {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .pdf-name {
        font-size: 0.875rem;
    }

    .pdf-size {
        margin-top: 0.15rem;
        font-size: 0.75rem;
    }

    .pdf-download-btn {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .pdf-download-btn .fa-download {
        margin-right: 0.2rem;
    }
}

@media (max-width: 399.98px) {
    .pdf-preview-box {
        grid-template-columns: 1.75rem minmax(0, 1fr);
    }

    .pdf-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        margin-top: 0.1rem;
    }

    .pdf-info {
        grid-column: 2;
        grid-row: 1;
    }

    .pdf-download-btn {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin-top: 0.2rem;
    }
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul li {
    margin-bottom: 10px;
    color: #555;
}

.article-content ul li::marker {
    color: var(--ehok-orange);
    font-weight: bold;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

body.admin-bar .sidebar-sticky {
    top: calc(100px + var(--hero-adminbar-offset));
}

@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
        top: auto;
    }
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ehok-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ehok-grey-soft);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--ehok-orange);
}

.widget-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-links li {
    border-bottom: 1px solid #f0f0f0;
}

.widget-links li:last-child {
    border-bottom: none;
}

.widget-links a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.widget-links a:hover {
    color: var(--ehok-orange);
    padding-left: 5px;
}

.widget-links a i {
    color: var(--ehok-orange);
    transition: transform 0.3s;
}

.widget-links a:hover i {
    transform: translateX(3px);
}

.mini-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mini-post__thumb {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.mini-post img,
.mini-post__thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.mini-post-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.mini-post-content h6 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.mini-post-content h6 a:hover {
    color: var(--ehok-orange);
}

.mini-post-content span {
    font-size: 0.75rem;
    color: #999;
}

.share-row {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.share-row .cpts-social-share,
.ehok-social-share-block .cpts-social-share,
.cpts-share-context .cpts-social-share {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.share-row a,
.sidebar-widget .widget-links a,
.sidebar-widget .mini-post a {
    text-decoration: none;
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #555;
    transition: 0.3s;
}

.btn-share:hover {
    transform: translateY(-3px);
}

.btn-share.fb:hover {
    background: #3b5998;
    color: #fff;
}

.btn-share.msg:hover {
    background: #0084ff;
    color: #fff;
}

.btn-share.copy:hover {
    background: var(--ehok-blue);
    color: #fff;
}

.spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: var(--ehok-blue);
    background: linear-gradient(135deg, var(--ehok-blue) 0%, var(--ehok-blue-light) 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: #fff;

    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% { 
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% { 
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}
/* 
 *
 * Eseménynaptár stílusai
 *
 * --- FŐ KONTÉNER --- */
    .naptar-szekcio {
        background-color: #f8f9fa;
        padding-bottom: 80px;
    }

    .naptar-kartya {
        background: #fff;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 15px 50px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.05);
    }

    /* --- FULLCALENDAR OVERRIDES (GOMBOK ÉS FEJLÉC) --- */
    :root {
        --fc-border-color: #f1f1f1;
        --fc-today-bg-color: #fff9f0; /* Nagyon halvány narancs a mának */
        --ehok-sotetkek: #092b50;
        --ehok-narancs: #f9a733;
    }

    /* Toolbar gombok egyedivé tétele */
    .fc .fc-button-primary {
        background-color: var(--ehok-sotetkek) !important;
        border: none !important;
        border-radius: 50px !important;
        padding: 10px 20px !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        transition: all 0.3s ease !important;
    }

    .fc .fc-button-primary:hover {
        background-color: var(--ehok-narancs) !important;
        transform: translateY(-2px);
    }

    .fc .fc-button-active {
        background-color: var(--ehok-narancs) !important;
        box-shadow: none !important;
    }

    /* Hónap címe */
    .fc .fc-toolbar-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        color: var(--ehok-sotetkek);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* --- NAPTÁR RÁCS STÍLUS --- */
    
    /* Napok nevei (H, K, Sze...) */
    .fc-col-header-cell {
        padding: 15px 0 !important;
        background: #fcfcfc;
    }

    .fc-col-header-cell-cushion {
        color: var(--ehok-sotetkek);
        font-weight: 700;
        text-decoration: none !important;
    }

    /* Napok számai */
    .fc-daygrid-day-number {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        padding: 10px !important;
        color: #777;
        text-decoration: none !important;
    }

    /* Mai nap kiemelése */
    .fc-day-today .fc-daygrid-day-number {
        background-color: var(--ehok-narancs);
        color: #fff !important;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px;
    }

    /* Események — a kategória színét a naptár JS adja (backgroundColor) */
    .fc-v-event, .fc-h-event {
        border: none;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 0.8rem;
    }

    /* --- ALSÓ VEZÉRLŐK --- */
    .naptar-footer-nav {
        margin-top: 40px;
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .naptar-footer-nav .btn-ehok-outline {
        border: 2px solid var(--ehok-sotetkek);
        color: var(--ehok-sotetkek);
        background: transparent;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.85rem;
        transition: all 0.3s;
    }

    .naptar-footer-nav .btn-ehok-outline:hover {
        background: var(--ehok-sotetkek);
        color: #fff;
        transform: translateY(-3px);
    }

    @media (max-width: 768px) {
        .naptar-kartya { padding: 15px; border-radius: 0; }
        .fc .fc-toolbar { flex-direction: column; gap: 15px; }
    }

    /* --- LISTA NÉZET FIXEK --- */
.fc-list-day-cushion {
    background-color: #f8f9fa !important;
    padding: 12px 20px !important;
}

.fc-list-day-text, .fc-list-day-side-text {
    color: var(--ehok-sotetkek) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.fc-list-event {
    cursor: pointer !important;
}

.fc-list-event:hover td {
    background-color: #fffcf5 !important;
}

.fc-list-event-title a {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.fc-list-event-dot {
    border-color: var(--ehok-narancs) !important;
}

/* Navigációs gombok körüli szürke keret eltüntetése */
.fc .fc-button:focus {
    box-shadow: none !important;
}

/* Fix: Megakadályozza a naptár ugrálását betöltéskor */
#szte-full-calendar {
    min-height: 600px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Eltüntetjük a cellák közötti zavaró dupla vonalakat és finomítjuk a rácsot */
.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid #f0f0f0 !important;
}

.fc-scrollgrid {
    border: none !important;
}

/* Kényszerített szélesség minden belső táblázatnak */
#szte-full-calendar {
    width: 100% !important;
    display: block !important;
}

.fc-view-harness, .fc-scrollgrid, .fc-col-header, .fc-daygrid-body, .fc-daygrid-body table {
    width: 100% !important;
    min-width: 100% !important;
}

/* AOS fix: Ha a naptáron van AOS, az alapból 0 opacitást vagy transzformációt ad, 
ami megzavarja a JS szélesség-számítást. */
[data-aos="zoom-in"] #szte-full-calendar {
    transition-delay: 0.2s;
}

/* -------------------------------------------------------------------------
   Elnökség oldal
   ------------------------------------------------------------------------- */

.ehok-elnokseg-page {
    padding-bottom: 2.5rem;
}

.ehok-elnokseg-featured {
    max-width: 520px;
    margin: 0 auto 2.75rem;
}

.ehok-elnokseg-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ehok-blue);
    text-align: center;
    margin: 0 0 1.75rem;
}

.ehok-elnokseg-person {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ehok-elnokseg-person--featured {
    text-align: center;
    align-items: center;
}

.ehok-elnokseg-person__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7b8798;
    margin: 0 0 0.55rem;
}

.ehok-elnokseg-person__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ehok-blue);
    margin: 0 0 0.45rem;
    line-height: 1.3;
}

.ehok-elnokseg-person--featured .ehok-elnokseg-person__name {
    font-size: 1.35rem;
}

.ehok-elnokseg-person__role {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.ehok-elnokseg-person__role a {
    color: var(--ehok-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ehok-elnokseg-person__role a:hover,
.ehok-elnokseg-person__role a:focus-visible {
    color: var(--ehok-orange);
}

.ehok-elnokseg-person__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #e4e9f0;
}

.ehok-elnokseg-person--featured .ehok-elnokseg-person__links {
    justify-content: center;
}

.ehok-elnokseg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(9, 43, 80, 0.06);
    color: var(--ehok-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ehok-elnokseg-link span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
}

.ehok-elnokseg-link:hover,
.ehok-elnokseg-link:focus-visible {
    background: rgba(9, 43, 80, 0.1);
    color: var(--ehok-orange);
    text-decoration: none;
}

.ehok-elnokseg-link--fb:hover,
.ehok-elnokseg-link--fb:focus-visible {
    color: #1877F2;
}

.ehok-elnokseg-link--ig:hover,
.ehok-elnokseg-link--ig:focus-visible {
    color: #E4405F;
}

/* -------------------------------------------------------------------------
   Szabályzatok oldal
   ------------------------------------------------------------------------- */

.ehok-szabalyzatok-page {
    padding-bottom: 2.5rem;
}

.ehok-szabalyzatok-section {
    margin-bottom: 2.75rem;
}

.ehok-szabalyzatok-section:last-child {
    margin-bottom: 0;
}

.ehok-szabalyzatok-section__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ehok-blue);
    margin: 0 0 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(249, 167, 51, 0.45);
}

.ehok-szabalyzatok-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ehok-szabalyzatok-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1rem 1.15rem;
    margin: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ehok-szabalyzatok-item:hover {
    border-color: rgba(249, 167, 51, 0.55);
    box-shadow: 0 10px 28px rgba(15, 40, 80, 0.07);
}

.ehok-szabalyzatok-item__info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
}

.ehok-szabalyzatok-item__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(9, 43, 80, 0.06);
    color: var(--ehok-blue);
    font-size: 1rem;
}

.ehok-szabalyzatok-item__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: #1f2a37;
    line-height: 1.4;
}

.ehok-szabalyzatok-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex: 0 0 auto;
}

.ehok-szabalyzatok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ehok-szabalyzatok-btn--primary {
    background: var(--ehok-orange);
    border: 2px solid var(--ehok-orange);
    color: #fff !important;
}

.ehok-szabalyzatok-btn--primary:hover,
.ehok-szabalyzatok-btn--primary:focus-visible {
    background: var(--ehok-blue);
    border-color: var(--ehok-blue);
    color: #fff !important;
}

.ehok-szabalyzatok-btn--secondary {
    background: #fff;
    border: 2px solid var(--ehok-orange);
    color: var(--ehok-blue) !important;
}

.ehok-szabalyzatok-btn--secondary:hover,
.ehok-szabalyzatok-btn--secondary:focus-visible {
    background: var(--ehok-orange);
    border-color: var(--ehok-orange);
    color: #fff !important;
}

@media (max-width: 768px) {
    .ehok-szabalyzatok-item {
        flex-direction: column;
        align-items: stretch;
    }

    .ehok-szabalyzatok-item__actions {
        justify-content: stretch;
    }

    .ehok-szabalyzatok-btn {
        flex: 1 1 auto;
    }
}

/* -------------------------------------------------------------------------
   Torna / Tabella oldal
   ------------------------------------------------------------------------- */

.ehok-tabella-page {
    padding-bottom: 2.5rem;
}

.ehok-torna-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ehok-blue);
    margin: 0 0 1.5rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(249, 167, 51, 0.45);
}

.ehok-torna-group,
.ehok-torna-round,
.ehok-torna-scorers {
    margin-bottom: 2.5rem;
}

.ehok-torna-group__title,
.ehok-torna-round__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ehok-blue);
    margin: 0 0 1rem;
}

.ehok-torna-round__title small {
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
}

.ehok-torna-mobile {
    display: block;
}

.ehok-torna-table-wrap {
    display: none;
    padding: 0;
    overflow: hidden;
}

.ehok-torna-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.92rem;
}

.ehok-torna-table thead {
    background: rgba(9, 43, 80, 0.04);
}

.ehok-torna-table th {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7b8798;
    padding: 0.85rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid #e4e9f0;
}

.ehok-torna-table td {
    padding: 0.75rem 0.65rem;
    text-align: center;
    border-bottom: 1px solid #eef2f6;
    color: #1f2a37;
    vertical-align: middle;
}

.ehok-torna-table tbody tr:last-child td {
    border-bottom: none;
}

.ehok-torna-table th:nth-child(2),
.ehok-torna-table td.ehok-torna-table__team,
.ehok-torna-table--scorers th:nth-child(2),
.ehok-torna-table--scorers td:nth-child(2) {
    text-align: left;
}

.ehok-torna-table tbody tr:hover {
    background: rgba(9, 43, 80, 0.03);
}

.ehok-torna-accordion {
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 0.85rem;
    margin-bottom: 0.65rem;
    overflow: hidden;
}

.ehok-torna-accordion[open] {
    border-color: rgba(249, 167, 51, 0.55);
    box-shadow: 0 8px 24px rgba(15, 40, 80, 0.06);
}

.ehok-torna-accordion__summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 2.25rem 1fr 2.5rem;
    gap: 0.65rem;
    align-items: center;
    padding: 0.95rem 2.75rem 0.95rem 1rem;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.ehok-torna-accordion__summary::-webkit-details-marker {
    display: none;
}

.ehok-torna-accordion__summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--ehok-orange);
    font-weight: 500;
}

.ehok-torna-accordion[open] > .ehok-torna-accordion__summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.ehok-torna-accordion__rank {
    color: #7b8798;
    font-weight: 700;
    font-size: 0.85rem;
}

.ehok-torna-accordion__name {
    font-weight: 700;
    color: #1f2a37;
}

.ehok-torna-accordion__points {
    justify-self: end;
    font-weight: 800;
    color: var(--ehok-blue);
}

.ehok-torna-accordion__details {
    border-top: 1px solid #eef2f6;
    padding: 0.65rem 1rem 0.9rem;
}

.ehok-torna-accordion__details div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f5f7fa;
    font-size: 0.9rem;
}

.ehok-torna-accordion__details div:last-child {
    border-bottom: none;
}

.ehok-torna-accordion__details span:first-child {
    color: #7b8798;
}

.ehok-torna-accordion__details span:last-child {
    font-weight: 600;
    color: #1f2a37;
}

.ehok-torna-match-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ehok-torna-match {
    padding: 1rem 1.1rem;
    margin: 0;
}

.ehok-torna-match--red {
    border-left: 5px solid #d32f2f;
}

.ehok-torna-match--blue {
    border-left: 5px solid #1976d2;
}

.ehok-torna-match--gray {
    border-left: 5px solid #757575;
}

.ehok-torna-match--gold {
    border-left: 5px solid #d4a017;
    background: rgba(255, 215, 0, 0.08);
}

.ehok-torna-match--red {
    background: rgba(211, 47, 47, 0.03);
}

.ehok-torna-match--blue {
    background: rgba(25, 118, 210, 0.04);
}

.ehok-torna-match__info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef2f6;
}

.ehok-torna-match__time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--ehok-blue);
}

.ehok-torna-match__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1f2a37;
}

.ehok-torna-match__home {
    text-align: right;
}

.ehok-torna-match__away {
    text-align: left;
}

.ehok-torna-match__score {
    font-size: 1.2rem;
    color: var(--ehok-blue);
    white-space: nowrap;
}

.ehok-torna-match__meta {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f6;
    font-size: 0.88rem;
    color: #475569;
}

.ehok-torna-match__meta strong {
    color: #1f2a37;
}

.ehok-torna-empty {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 1rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .ehok-torna-mobile {
        display: none;
    }

    .ehok-torna-table-wrap {
        display: block;
    }

    .ehok-torna-round__title small {
        display: inline;
        margin-left: 0.55rem;
        margin-top: 0;
    }

    .ehok-torna-match__info {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0.85rem;
    }
}