/* gyogyitommagam by mentha */

/* ==========================================================================
   Homepage wheel
   ========================================================================== */

#home-wheel {
    position: relative;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 325px;
    margin-bottom: 36px;
    pointer-events: none;
}

#home-wheel .tri-wheel {
    position: relative;
    width: min(630px, 42vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    user-select: none;
    pointer-events: auto;
}

.tri-wheel__svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 10;
}

.tri-wheel__outer {
    fill: none;
    stroke: #111;
    stroke-width: 2;
    opacity: 0.35;
}

.tri-wheel__img {
    opacity: 1;
    transition: opacity 220ms ease;
}

.tri-wheel__border {
    fill: none;
    stroke: #fff;
    stroke-width: 10;
    stroke-linejoin: round;
    pointer-events: none;
    opacity: 1;
    transition: opacity 220ms ease;
}

.tri-wheel__label {
    font: 700 16px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    fill: #fff;
    pointer-events: none;
    opacity: 1;
    transition: opacity 180ms ease;
    text-anchor: middle;
}

.tri-wheel__hub {
    fill: #fff;
    opacity: 1;
}

.tri-wheel__center {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    text-align: center;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
    z-index: 10;
}

.tri-wheel__title {
    margin: 0 0 8px;
    font: 800 20px/1.15 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.tri-wheel__desc {
    margin: 0;
    font: 400 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.tri-wheel__hint {
    margin-top: 10px;
    font: 700 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    opacity: 0.85;
}

.tri-wheel__overlaylink {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    display: none;
    z-index: 3;
    text-decoration: none;
    background: transparent;
}

.tri-wheel__overlaylink:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.55);
    outline-offset: 6px;
}

.tri-wheel__seg:focus {
    outline: none;
}

.tri-wheel__seg:focus-visible .tri-wheel__border {
    stroke: #111;
    stroke-width: 12;
}

.tri-wheel.is-active .tri-wheel__center {
    opacity: 1;
}

.tri-wheel.is-active .tri-wheel__overlaylink {
    display: block;
}

.tri-wheel.is-active .tri-wheel__label {
    opacity: 0;
}

.tri-wheel.is-active .tri-wheel__seg:not(.is-selected) .tri-wheel__img,
.tri-wheel.is-active .tri-wheel__seg:not(.is-selected) .tri-wheel__border {
    opacity: 0;
}

/* ==========================================================================
   Balsai Doki section
   ========================================================================== */

#home-balsaidoki.row {
    margin: 0 auto;
    padding: 80px 0 70px;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
    gap: 56px;
    position: relative;
    isolation: isolate;
}

#home-balsaidoki > [class*="col-"] {
    float: none;
    width: auto;
    max-width: none;
    flex: initial;
    padding: 0;
}

#home-balsaidoki .portre {
    display: flex;
    position: relative;
    z-index: 2;
}

#home-balsaidoki .portre img {
    display: block;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 1.28 / 1;
    object-fit: cover;
    border: 14px solid #d7edf5;
    box-sizing: border-box;
    background: #fff;
}

#home-balsaidoki .kuldetesunk-slideshow {
    position: relative;
    z-index: 1;
    padding: 18px 10px 0 0;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#home-balsaidoki .kuldetesunk-watermark {
    position: absolute;
    top: -10px;
    right: -40px;
    width: 420px;
    height: 420px;
    background-image: url('/wp-content/themes/gyogyitommagam/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1);
}

#home-balsaidoki .kuldetesunk-slideshow-container {
    position: relative;
    z-index: 1;
    height: clamp(340px, 30vw, 430px);
    overflow: hidden;
}

#home-balsaidoki .kuldetesunk-slideshow-container .slide {
    position: absolute;
    inset: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(100%, 0, 0);
    will-change: transform, opacity;
    pointer-events: none;
    transition:
        transform 0.8s ease,
        opacity 0.45s ease,
        visibility 0.45s ease;
}

#home-balsaidoki .kuldetesunk-slideshow-container .slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    z-index: 2;
    pointer-events: auto;
}

#home-balsaidoki .kuldetesunk-slideshow-container .slide.exit {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-22%, 0, 0);
    z-index: 1;
}

#home-balsaidoki .kuldetesunk-slideshow-container .slide-content {
    min-height: 0;
    overflow: hidden;
}

#home-balsaidoki .kuldetesunk-meta {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

#home-balsaidoki .kuldetesunk-meta--single {
    margin-top: 24px;
}

#home-balsaidoki .kuldetesunk-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 12px;
}

#home-balsaidoki .kuldetesunk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfcfcf;
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
}

#home-balsaidoki .kuldetesunk-dot.is-active {
    background: #111;
}

#home-balsaidoki .kuldetesunk-signature {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 380px;
    margin-top: 28px;
    height: auto;
}

/* ==========================================================================
   General section spacing
   ========================================================================== */

#home-eloadasok,
#home-tudastar {
    position: relative;
    z-index: 1;
}

#home-eloadasok {
    margin-top: 24px;
}

#home-tudastar {
    margin-top: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .gm-hero-slideshow__title {
        max-width: 620px;
    }

    #home-wheel {
        margin-top: 220px;
        margin-bottom: 28px;
    }

    #home-wheel .tri-wheel {
        width: min(500px, 72vw);
    }

    #home-balsaidoki.row {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 64px 24px 56px;
    }

    #home-balsaidoki .kuldetesunk-slideshow {
        min-height: 480px;
    }

    #home-balsaidoki .kuldetesunk-watermark {
        width: 320px;
        height: 320px;
        right: -10px;
        top: 10px;
    }

    #home-balsaidoki .kuldetesunk-slideshow-container {
        height: clamp(320px, 34vw, 400px);
    }

    #home-balsaidoki .kuldetesunk-signature {
        max-width: 320px;
    }
}
