/* =====================================================
   INFOGRAFIKA BLOKK
===================================================== */

.infographic-section {
    padding: 90px 0;
}


.infographic-section:nth-of-type(even) {
    --infographic-bg: #f8f9fa;
    background: #f8f9fa;
}


/* =====================================================
   INFOGRAFIKA KÉP
===================================================== */

.infographic-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.infographic-preview {
    position: relative;
    width: 100%;
    max-height: 750px;
    overflow: hidden;
}

.infographic-preview img {
    display: block;
    width: 100%;
    height: auto;
}


/* =====================================================
   ÁTTŰNÉS A HÁTTÉRBE
===================================================== */

.infographic-preview::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 280px;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(236, 240, 240, 0) 0%,
        rgba(236, 240, 240, 0.20) 25%,
        rgba(236, 240, 240, 0.60) 45%,
        rgba(236, 240, 240, 0.92) 65%,
        var(--tj-color-grey-1) 78%,
        var(--tj-color-grey-1) 100%
    );
}


/* =====================================================
   SZÖVEG
===================================================== */

.infographic-content {
    max-width: 480px;
}

.infographic-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.infographic-content h2 {
    margin-bottom: 24px;
    line-height: 1.25;
}

.infographic-content p {
    line-height: 1.75;
}

.infographic-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}


/* =====================================================
   STICKY SZÖVEG – DESKTOP
===================================================== */

@media (min-width: 992px) {

    .infographic-sticky {
        position: sticky;
        top: 100px;
    }

}


/* =====================================================
   INFOGRAFIKA GOMB – DESKTOP
===================================================== */

.infographic-button {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;

    margin-top: -50px;
}


/* =====================================================
   MODAL
===================================================== */

.infographic-modal .modal-dialog {
    max-width: 1100px;
}

.infographic-modal .modal-body {
    padding: 0;
    background: #eee;
}

.infographic-modal-image {
    display: block;
    width: 100%;
    height: auto;
}


/* =====================================================
   MOBIL / TABLET
===================================================== */

@media (max-width: 991.98px) {

    /* Szekció */
    .infographic-section {
        padding: 55px 0;
    }


    /* Kép */
    .infographic-image-wrapper {
        display: block;
        width: 100%;
    }

    .infographic-preview {
        display: block;
        width: 100%;
        max-height: 550px;
    }


    .infographic-button {
        position: static;
        z-index: auto;

        display: block;
        width: 100%;

        margin: 20px 0 0 0;
        padding: 0;

        text-align: center;
        transform: none;
    }

    .infographic-button .tj-primary-btn {
        position: relative;

        display: inline-flex;
        width: auto;
        min-width: 0;
        max-width: max-content;

        margin: 0 auto;

        flex: 0 0 auto;
        transform: none;
    }


    /* Szöveg */
    .infographic-content {
        max-width: none;
        margin-top: 35px;
        margin-bottom: 30px;
    }

}


/* =====================================================
   KIS KÉPERNYŐ / MOBIL
===================================================== */

@media (max-width: 767.98px) {

    .infographic-section .col-lg-7 {
        display: block !important;
        width: 100% !important;
    }

    .infographic-image-wrapper {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }

    .infographic-preview {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }

    .infographic-button {
        position: relative !important;
        display: block !important;
        clear: both !important;

        width: 100% !important;
        margin: 20px 0 0 0 !important;
        padding: 0 !important;

        text-align: center !important;
        float: none !important;
    }

    .infographic-button .tj-primary-btn {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: max-content !important;

        margin: 0 auto !important;
        float: none !important;
    }
}


/* =====================================================
   VÁLTAKOZÓ INFOGRAFIKA HÁTTÉR
===================================================== */


.infographic-section:nth-of-type(even) {
    position: relative;
    z-index: 0;
}


.infographic-section:nth-of-type(even)::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: 0;
    bottom: 0;

    left: 50%;
    width: 100vw;
    transform: translateX(-50%);

    background-color: #fff;
}


.infographic-section:nth-of-type(even) .infographic-preview::after {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.20) 25%,
        rgba(255, 255, 255, 0.60) 45%,
        rgba(255, 255, 255, 0.92) 65%,
        #ffffff 78%,
        #ffffff 100%
    );
}


.infographic-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}


.infographic-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}


.infographic-image-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.08) 65%,
        transparent 100%
    );

    transform: skewX(-15deg);
    pointer-events: none;
}


.infographic-image-wrapper:hover::after {
    animation: infographic-shine 0.9s ease-out;
}

@keyframes infographic-shine {
    from {
        left: -80%;
    }

    to {
        left: 140%;
    }
}
.infographic-image-wrapper {
    position: relative;
    cursor: pointer;
}

.infographic-image-wrapper {
    position: relative;
    cursor: pointer;
}


.infographic-btn .btn-icon,
.infographic-btn:hover .btn-icon,
.infographic-btn .btn-icon i,
.infographic-btn:hover .btn-icon i {
    transform: none !important;
}

.modal img {
    max-width: 100%;
    height: auto;
}

.blog-video {
    position: relative;
}

.blog-video img {
    display: block;
    width: 100%;
    height: auto;
}

/* Play gomb középre */
.blog-video .video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    width: 80px;
    height: 80px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    text-decoration: none;
}

/* Play háromszög */
.blog-video .video-btn i {
    font-size: 24px;
    position: relative;
    z-index: 2;
    color: var(--tj-color-theme-primary) !important;
}

/* Pulzáló kör */
.blog-video .video-btn::before,
.blog-video .video-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: video-pulse 2s infinite;
}

.blog-video .video-btn::after {
    animation-delay: 1s;
}

@keyframes video-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.blog-video {
    position: relative !important;
}

.blog-video .video-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.blog-video .video-btn i {
    font-size: 26px;
    position: relative;
    z-index: 2;
    color: var(--tj-color-theme-primary) !important;
    left: 3px;
}


/* Videó melletti leírás */
.video-description {
    position: relative;
    padding: 60px 40px;
    overflow: hidden;
}

/* Hatalmas háttérszám */
.video-number {
    position: absolute;
    top: -25px;
    right: 10px;

    font-size: 180px;
    font-weight: 700;
    line-height: 1;

    color: var(--tj-color-theme-primary);
    opacity: 0.08;

    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* A szöveg a szám fölött legyen */
.video-description h4,
.video-description p {
    position: relative;
    z-index: 1;
}