/*
Theme Name: Igehirdeto
Description: Modern, elegáns WordPress téma
Version: 3.0
*/

/* =========================================================
   SZÍNEK
========================================================= */

:root {
    --navy: #172033;
    --navy-light: #243149;
    --navy-dark: #101725;

    --gold: #c49a5a;
    --gold-light: #d9b77d;
    --gold-dark: #a77d3e;

    --cream: #f7f5f0;
    --cream-dark: #eeeae2;

    --white: #ffffff;

    --text: #252a33;
    --text-light: #687080;

    --border: #e4e1db;

    --shadow-sm: 0 4px 14px rgba(23, 32, 51, 0.06);
    --shadow: 0 12px 35px rgba(23, 32, 51, 0.10);
    --shadow-lg: 0 25px 65px rgba(23, 32, 51, 0.16);

    --radius: 12px;
    --max-width: 1180px;
}


/* =========================================================
   ALAP RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;

    background: var(--cream);
    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe,
video {
    display: block;
    max-width: 100%;
}

a {
    color: var(--navy);
    text-decoration: none;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

a:hover {
    color: var(--gold);
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;

    z-index: 9999;

    width: 100%;
    max-width: 100%;

    background: rgba(255, 255, 255, 0.97);

    border-bottom:
        1px solid rgba(23, 32, 51, 0.08);

    box-shadow:
        0 3px 18px rgba(23, 32, 51, 0.05);

    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGÓ
========================================================= */

.site-branding {
    flex-shrink: 0;
    min-width: 0;
}

.site-logo {
    display: inline-block;
    max-width: 100%;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-logo:hover {
    color: var(--navy);
}


/* =========================================================
   FŐ NAVIGÁCIÓ
========================================================= */

.main-navigation {
    position: relative;
    z-index: 10000;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation > ul {
    display: flex;
    align-items: center;
    gap: 3px;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation > ul > li > a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 78px;
    padding: 0 14px;

    color: var(--text);

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   MENÜ HOVER
========================================================= */

.main-navigation > ul > li > a::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 17px;

    height: 2px;

    background: var(--gold);

    border-radius: 10px;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.main-navigation > ul > li:hover > a::after,
.main-navigation > ul > li.current-menu-item > a::after,
.main-navigation > ul > li.current-menu-parent > a::after {
    transform: scaleX(1);
}

.main-navigation > ul > li:hover > a {
    color: var(--navy);
}


/* =========================================================
   ALMENÜ NYÍL
========================================================= */

.main-navigation .menu-item-has-children > a::before {
    content: "⌄";

    margin-right: 7px;

    color: var(--gold);

    font-size: 14px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.main-navigation .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}


/* =========================================================
   DESKTOP ALMENÜ
========================================================= */

.main-navigation .sub-menu {
    position: absolute;

    top: calc(100% - 1px);
    left: 0;

    width: 245px;

    padding: 9px;

    background: rgba(255, 255, 255, 0.99);

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================================
   ALMENÜ LINK
========================================================= */

.main-navigation .sub-menu a {
    display: block;

    padding: 11px 14px;

    color: var(--text);

    border-radius: 8px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.main-navigation .sub-menu a:hover {
    background: var(--cream);
    color: var(--navy);

    padding-left: 19px;
}


/* =========================================================
   HAMBURGER ALAP
========================================================= */

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    padding: 105px 0;

    color: var(--white);

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(196, 154, 90, 0.20),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--navy-dark),
            var(--navy)
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    right: -180px;
    bottom: -220px;

    border:
        1px solid rgba(196, 154, 90, 0.25);

    border-radius: 50%;
}

.hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -80px;
    bottom: -130px;

    border:
        1px solid rgba(196, 154, 90, 0.18);

    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 75px;
}

.hero h1 {
    margin: 0 0 22px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(42px, 5vw, 68px);

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -0.025em;
}

.hero h1 strong {
    color: var(--gold-light);
}

.hero p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 18px;
}

.hero-label {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 16px;

    color: var(--gold-light);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.hero-label::before {
    content: "";

    width: 28px;
    height: 1px;

    background: var(--gold);
}


/* =========================================================
   HERO KÉP
========================================================= */

.hero-image {
    position: relative;
}

.hero-image::before {
    content: "";

    position: absolute;

    inset: -12px;

    border:
        1px solid rgba(196, 154, 90, 0.35);

    border-radius: 15px;

    transform: rotate(2deg);
}

.hero-image img {
    position: relative;
    z-index: 2;

    width: 100%;

    border-radius: 12px;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   SZEKCIÓK
========================================================= */

.section {
    padding: 90px 0;

    background: var(--cream);
}

.section-light {
    background: var(--white);
}

.section-header {
    max-width: 760px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-header h2 {
    margin: 0 0 14px;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;
    font-weight: 500;

    line-height: 1.2;
}

.section-header h2::after {
    content: "";

    display: block;

    width: 45px;
    height: 2px;

    margin: 18px auto 0;

    background: var(--gold);
}

.section-header p {
    margin: 20px 0 0;

    color: var(--text-light);
}


/* =========================================================
   VIDEÓ
========================================================= */

.video-section {
    max-width: 900px;

    margin: 60px auto;

    padding: 40px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: var(--shadow);
}

.video-section h2 {
    margin-top: 0;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;
}

.video-section p {
    color: var(--text-light);
}

.video-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin-top: 25px;

    overflow: hidden;

    background: #111;

    border-radius: 11px;

    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   OLDAL FEJLÉC
========================================================= */

.page-header {
    padding: 75px 0;

    background: var(--navy);

    color: white;
}

.page-header h1 {
    margin: 0;

    color: white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(38px, 5vw, 56px);

    font-weight: 500;
}

.page-header p {
    color: rgba(255, 255, 255, 0.70);
}


/* =========================================================
   TARTALOM
========================================================= */

.content {
    max-width: 850px;

    margin: 0 auto;

    padding: 70px 0;
}

.content h1,
.content h2,
.content h3,
.entry-title {
    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;
}

.content h2 {
    margin-top: 45px;

    font-size: 32px;
}

.content p {
    margin-bottom: 20px;
}

.content img {
    border-radius: 10px;

    box-shadow: var(--shadow);
}


/* =========================================================
   KAPCSOLAT
========================================================= */

.contact-list {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    max-width: 1000px;

    margin: 0 auto;
}

.contact-item {
    padding: 28px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.contact-item:hover {
    transform: translateY(-5px);

    border-color:
        rgba(196, 154, 90, 0.45);

    box-shadow: var(--shadow);
}

.contact-item strong {
    display: block;

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 17px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 65px 0 25px;

    background: var(--navy-dark);

    color: rgba(255, 255, 255, 0.68);
}

.footer-inner {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;
}

.site-footer h3 {
    margin-top: 0;

    color: white;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    margin-top: 45px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;
}

/* =========================================================
   STICKY FOOTER
========================================================= */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .main-navigation > ul > li > a {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 13px;
    }

    .hero-inner {
        gap: 45px;
    }

    .contact-list {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow-x: hidden !important;
    }

    .container {
        width: calc(100% - 30px);
        max-width: 100%;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    .site-header {
        position: sticky;
        top: 0;

        width: 100% !important;
        max-width: 100% !important;

        overflow: visible !important;

        z-index: 9999;
    }

    .header-inner {
        width: 100% !important;
        max-width: 100% !important;

        min-height: 70px;

        margin: 0 !important;

        padding-left: 15px !important;
        padding-right: 15px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: space-between !important;

        gap: 10px;

        overflow: visible !important;
    }


    /* =====================================================
       LOGÓ
    ===================================================== */

    .site-branding {
        min-width: 0;

        max-width: calc(100% - 60px);

        flex: 1 1 auto;

        overflow: hidden;
    }

    .site-logo {
        display: block;

        max-width: 100%;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;

        font-size: 21px;
    }


    /* =====================================================
       HAMBURGER
    ===================================================== */

    .menu-toggle {
        position: relative !important;

        display: flex !important;

        flex: 0 0 44px !important;

        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;

        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;

        margin: 0 !important;
        padding: 8px !important;

        border: 0 !important;
        border-radius: 9px;

        background: transparent !important;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        box-sizing: border-box !important;

        z-index: 10050;

        cursor: pointer;

        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle:hover,
    .menu-toggle:active {
        background: var(--cream-dark) !important;
    }

    .menu-toggle span {
        display: block !important;

        position: relative;

        width: 23px !important;
        min-width: 23px !important;
        max-width: 23px !important;

        height: 2px !important;
        min-height: 2px !important;
        max-height: 2px !important;

        margin: 3px 0 !important;
        padding: 0 !important;

        background: var(--navy) !important;

        border-radius: 10px;

        opacity: 1;

        transform: none;

        transition:
            transform 0.25s ease,
            opacity 0.2s ease;
    }


    /* =====================================================
       HAMBURGER → X
    ===================================================== */

    body.mobile-menu-open .menu-toggle span:nth-child(1) {
        transform:
            translateY(8px)
            rotate(45deg);
    }

    body.mobile-menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .menu-toggle span:nth-child(3) {
        transform:
            translateY(-8px)
            rotate(-45deg);
    }


    /* =====================================================
       MOBIL NAVIGÁCIÓ
    ===================================================== */

    .main-navigation {
        position: absolute !important;

        top: 70px !important;
        left: 0 !important;
        right: auto !important;

        width: 100vw !important;
        max-width: 100vw !important;

        max-height: calc(100vh - 70px);

        margin: 0 !important;
        padding: 0 !important;

        overflow-x: hidden !important;
        overflow-y: auto;

        background: rgba(255, 255, 255, 0.98);

        border-top:
            1px solid var(--border);

        border-bottom:
            1px solid var(--border);

        box-shadow:
            0 20px 50px rgba(23, 32, 51, 0.16);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0.22s ease;

        z-index: 10000;
    }

    body.mobile-menu-open .main-navigation {
        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: translateY(0) !important;
    }


    /* =====================================================
       MENÜ LISTA
    ===================================================== */

    .main-navigation > ul {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;

        padding: 10px 15px 20px !important;

        list-style: none;

        overflow: hidden;
    }

    .main-navigation > ul > li {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        border-bottom:
            1px solid var(--border);
    }

    .main-navigation > ul > li:last-child {
        border-bottom: 0;
    }


    /* =====================================================
       FŐMENÜ LINK
    ===================================================== */

    .main-navigation > ul > li > a {
        display: flex !important;

        align-items: center;

        width: 100% !important;

        min-height: 54px;

        padding: 14px 5px !important;

        color: var(--text);

        font-size: 15px;
        font-weight: 500;

        white-space: normal;
    }

    .main-navigation > ul > li > a:hover {
        color: var(--navy);
    }

    .main-navigation > ul > li > a::after {
        display: none !important;
    }


    /* =====================================================
       ALMENÜ
    ===================================================== */

    .main-navigation .sub-menu {
        position: static !important;

        display: none;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;

        padding: 0 0 10px !important;

        background: transparent !important;

        border: 0 !important;

        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;
    }

    .main-navigation
    .menu-item-has-children.mobile-submenu-open
    > .sub-menu {
        display: block !important;
    }

    .main-navigation .sub-menu li {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
    }

    .main-navigation .sub-menu a {
        display: block;

        width: 100% !important;

        padding: 11px 15px !important;

        margin: 0 0 4px;

        background: var(--cream);

        border:
            1px solid transparent;

        border-radius: 8px;

        color: var(--text);

        font-size: 14px;
    }

    .main-navigation .sub-menu a:hover {
        background: var(--cream-dark);

        color: var(--navy);
    }


    /* =====================================================
       ALMENÜ NYÍL
    ===================================================== */

    .main-navigation
    .menu-item-has-children
    > a::before {
        content: "⌄";

        display: inline-block;

        margin-right: 9px;

        color: var(--gold);

        font-size: 16px;

        line-height: 1;

        transition:
            transform 0.25s ease;
    }

    .main-navigation
    .menu-item-has-children.mobile-submenu-open
    > a::before {
        transform: rotate(180deg);
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        padding: 65px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-image::before {
        inset: -7px;
    }


    /* =====================================================
       SZEKCIÓ
    ===================================================== */

    .section {
        padding: 65px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 32px;
    }


    /* =====================================================
       VIDEÓ
    ===================================================== */

    .video-section {
        width: 100%;

        margin: 35px auto;

        padding: 25px 18px;

        border-radius: 12px;
    }

    .video-wrapper {
        margin-top: 20px;

        border-radius: 9px;
    }


    /* =====================================================
       OLDAL FEJLÉC
    ===================================================== */

    .page-header {
        padding: 55px 0;
    }

    .page-header h1 {
        font-size: 38px;
    }


    /* =====================================================
       TARTALOM
    ===================================================== */

    .content {
        width: 100%;

        padding: 55px 0;
    }

    .content h2 {
        font-size: 29px;
    }


    /* =====================================================
       KAPCSOLAT
    ===================================================== */

    .contact-list {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .contact-item {
        padding: 23px;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .site-footer {
        padding: 50px 0 25px;
    }
}


/* =========================================================
   KIS TELEFON
========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 24px);
    }

    .header-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .site-logo {
        font-size: 19px;
    }

    .menu-toggle {
        flex: 0 0 42px !important;

        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;

        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .menu-toggle span {
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
    }

    .main-navigation {
        top: 70px !important;
    }

    .hero {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 36px;

        line-height: 1.12;
    }

    .section-header h2 {
        font-size: 29px;
    }

    .video-section {
        padding: 20px 14px;
    }
}


/* =========================================================
   NAGY KÉPERNYŐ
========================================================= */

@media (min-width: 769px) {

    .menu-toggle {
        display: none !important;
    }
}


/* =========================================================
   VÉDELEM OLDALIRÁNYÚ KILÓGÁS ELLEN
========================================================= */

html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
}

.site-header,
.site-main,
.site-footer {
    max-width: 100vw;
}

img,
iframe,
video {
    max-width: 100%;
}


/* =========================================================
   MOBIL HOSSZÚ SZÖVEG
========================================================= */

.mobile-text-expand {
    position: relative;
}

.mobile-text-content {
    position: relative;
}

.mobile-text-button {
    display: none;
}


/* =========================================================
   MOBIL HOSSZÚ SZÖVEG
========================================================= */

@media (max-width: 768px) {

    .mobile-text-content {
        position: relative;

        max-height: 430px;

        overflow: hidden;

        transition:
            max-height 0.6s ease;
    }

    .mobile-text-content::after {
        content: "";

        position: absolute;

        left: 0;
        right: 0;
        bottom: 0;

        height: 110px;

        background:
            linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0),
                #3e4555
            );

        pointer-events: none;

        opacity: 1;

        transition:
            opacity 0.3s ease;
    }

    .mobile-text-button {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 10px;

        width: 100%;

        min-height: 50px;

        margin-top: 0;

        padding: 13px 22px;

        border: 0;

        border-radius: 0 0 10px 10px;

        background: #3e4555;

        color: #ffffff;

        font-family: inherit;

        font-size: 15px;
        font-weight: 600;

        cursor: pointer;

        position: relative;

        z-index: 5;

        transition:
            background 0.25s ease,
            color 0.25s ease;
    }

    .mobile-text-button:hover {
        background: #3e4555;
        color: #ffffff;
    }

    .mobile-text-button::after {
        content: "↓";

        color: #c49a5a;

        font-size: 18px;

        line-height: 1;

        transition:
            transform 0.3s ease;
    }

    .mobile-text-expand.is-open
    .mobile-text-content {
        max-height: 100000px !important;

        overflow: visible;
    }

    .mobile-text-expand.is-open
    .mobile-text-content::after {
        opacity: 0;
    }

    .mobile-text-expand.is-open
    .mobile-text-button {
        margin-top: 15px;

        border-radius: 9px;
    }

    .mobile-text-expand.is-open
    .mobile-text-button::after {
        content: "↑";
    }
}


/* =========================================================
   ASZTALI GÉP - HOSSZÚ SZÖVEG
========================================================= */

@media (min-width: 769px) {

    .mobile-text-content {
        max-height: none !important;

        overflow: visible !important;
    }

    .mobile-text-content::after {
        display: none !important;
    }

    .mobile-text-button {
        display: none !important;
    }
}


/* =========================================================
   IGEHIRDETÉSEK / VIDEÓS SOROZATOK
========================================================= */

.sermon-videos-section {
    padding: 85px 0 110px;

    background: var(--cream);
}


/* =========================================================
   VIDEÓ RÁCS
========================================================= */

.sermon-video-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 35px 24px;

    margin-top: 55px;
}


/* =========================================================
   VIDEÓ ELEM
========================================================= */

.sermon-video-item {
    min-width: 0;

    cursor: pointer;

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.sermon-video-item.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   VIDEÓ BOX
========================================================= */

.sermon-video-box {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: var(--navy);

    /*
     * YouTube indexkép.
     */

    background-image:
        var(--video-thumbnail);

    background-size: cover;

    background-position: center;

    border-radius: 12px;

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   KÉKES ELŐNÉZETI RÉTEG
========================================================= */

.sermon-video-placeholder {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(196, 154, 90, 0.18),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            var(--navy-light),
            var(--navy-dark)
        );

    opacity: 1;

    transition:
        opacity 0.35s ease;
}


/* =========================================================
   DESKTOP HOVER
========================================================= */

/*
 * FONTOS:
 *
 * Ez csak 769px fölött működik.
 *
 * Így mobilon a kék réteg nem tűnik el,
 * hanem mindig látszik az indexkép + play gomb.
 */

@media (min-width: 769px) {

    .sermon-video-item:hover .sermon-video-box {
        transform:
            translateY(-7px)
            scale(1.015);

        box-shadow:
            var(--shadow-lg);
    }

    .sermon-video-item:hover
    .sermon-video-placeholder {
        opacity: 0;
    }
}


/* =========================================================
   PLAY GOMB
========================================================= */

.play-icon {
    position: relative;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    padding-left: 4px;

    border:
        1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    color: var(--white);

    font-size: 20px;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   PLAY GOMB DESKTOP HOVER
========================================================= */

@media (min-width: 769px) {

    .sermon-video-item:hover .play-icon {
        transform: scale(1.12);

        background: var(--gold);

        border-color: var(--gold);

        color: var(--navy);
    }
}


/* =========================================================
   MOBIL VIDEÓ
========================================================= */

@media (max-width: 768px) {

    /*
     * Mobilon a play gomb mindig látszik.
     */

    .sermon-video-placeholder {
        opacity: 1 !important;
    }

    /*
     * Mobilon nincs hover-emelés.
     */

    .sermon-video-item:hover
    .sermon-video-box {
        transform: none;

        box-shadow: var(--shadow-sm);
    }

    /*
     * Mobilon a play gomb nem változik
     * hover miatt.
     */

    .sermon-video-item:hover
    .play-icon {
        transform: none;

        background:
            rgba(255, 255, 255, 0.12);

        border-color:
            rgba(255, 255, 255, 0.35);

        color: var(--white);
    }
}


/* =========================================================
   VIDEÓ CÍME
========================================================= */

.sermon-video-item h2 {
    margin: 16px 3px 0;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    font-weight: 500;

    line-height: 1.35;

    transition:
        color 0.25s ease;
}

.sermon-video-item:hover h2 {
    color: var(--gold-dark);
}


/* =========================================================
   MOBIL CÍM
========================================================= */

@media (max-width: 768px) {

    .sermon-video-item h2 {
        color: var(--navy);
    }

    .sermon-video-item:hover h2 {
        color: var(--navy);
    }
}


/* =========================================================
   VIDEÓ MODAL
========================================================= */

.video-modal {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* =========================================================
   MODAL - NYITVA
========================================================= */

.video-modal.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MODAL HÁTTÉR
========================================================= */

.video-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(5, 8, 14, 0.88);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   MODAL TARTALOM
========================================================= */

.video-modal-content {
    position: relative;

    z-index: 2;

    width: min(100%, 1050px);

    transform:
        scale(0.92)
        translateY(15px);

    transition:
        transform 0.35s ease;
}

.video-modal.is-open
.video-modal-content {
    transform:
        scale(1)
        translateY(0);
}


/* =========================================================
   NAGY VIDEÓ
========================================================= */

.video-modal-player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #000;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 12px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.5);
}


/* =========================================================
   IFRAME
========================================================= */

.video-modal-player iframe {
    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   BEZÁRÓ GOMB
========================================================= */

.video-modal-close {
    position: absolute;

    top: -52px;
    right: 0;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.1);

    color: #ffffff;

    font-size: 28px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.video-modal-close:hover {
    background: var(--gold);

    color: var(--navy);

    transform: rotate(90deg);
}


/* =========================================================
   VIDEÓRÁCS TABLET
========================================================= */

@media (max-width: 900px) {

    .sermon-video-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 18px;
    }
}


/* =========================================================
   VIDEÓRÁCS MOBIL
========================================================= */

@media (max-width: 600px) {

    .sermon-videos-section {
        padding: 60px 0 80px;
    }

    .sermon-video-grid {
        grid-template-columns: 1fr;

        gap: 35px;

        margin-top: 40px;
    }

    .sermon-video-item h2 {
        font-size: 18px;
    }

    .play-icon {
        width: 56px;
        height: 56px;

        font-size: 18px;
    }

    .video-modal {
        padding: 15px;
    }

    .video-modal-close {
        top: -50px;
        right: 0;
    }

    /*
     * Mobilon nincs hover-emelés.
     */

    .sermon-video-item:hover
    .sermon-video-box {
        transform: none;

        box-shadow:
            var(--shadow-sm);
    }
}


/* =========================================================
   MOBIL KÖZÉPSŐ VIDEÓ AKTÍV ÁLLAPOTA
========================================================= */

/*
 * A main.js ezt az osztályt adja annak a videónak,
 * amelyik éppen a képernyő közepén van.
 *
 * Fontos:
 * mobilon ettől még NEM tűnik el az indexkép.
 */

@media (max-width: 600px) {

    .sermon-video-item.mobile-video-active
    .sermon-video-placeholder {
        opacity: 1 !important;
    }

    .sermon-video-item.mobile-video-active
    .sermon-video-box {
        transform: none;
    }

    .sermon-video-item.mobile-video-active
    .play-icon {
        transform: scale(1.05);

        background:
            rgba(255, 255, 255, 0.16);

        border-color:
            rgba(255, 255, 255, 0.45);
    }
}


/* =========================================================
   MOZGÁSCSÖKKENTÉS
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .sermon-video-item {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .sermon-video-box {
        transition: none;
    }

    .video-modal,
    .video-modal-content {
        transition: none;
    }
}

/* Elementor Tabs – 60%-os szélesség + modern görgetősáv */

.e-tabs-menu-base {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;

    width: 60% !important;
    max-width: 60% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    white-space: nowrap !important;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

/* A fülek ne zsugorodjanak össze */
.e-tabs-menu-base > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* Chrome / Edge / Safari görgetősáv */
.e-tabs-menu-base::-webkit-scrollbar {
    height: 7px;
}

.e-tabs-menu-base::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.e-tabs-menu-base::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 10px;
}

.e-tabs-menu-base::-webkit-scrollbar-thumb:hover {
    background: #666;
}

@media (max-width: 767px) {
    .e-tabs-menu-base {
        width: 95% !important;
        max-width: 95% !important;
    }
}