/* ============================================================
   DR IRENA ĐORĐEVIĆ - Review Section
   [bukvar_irena] shortcode
   ============================================================ */
.bukvar-irena {
    padding: 80px 20px;
    position: relative;
}
.bukvar-irena__inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Left: image with glass-name overlay */
.bukvar-irena__image {
    position: relative;
    flex: 0 0 550px;
    width: 550px;
    height: 476px;
    border-radius: 24px;
    overflow: hidden;
}
.bukvar-irena__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bukvar-irena__name {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    color: #8B726C;
    font-family: 'Lora', serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px;
    border-radius: 12px;
    background: rgba(253, 250, 248, 0.79);
    box-shadow: 0 40px 70px 0 rgba(206, 134, 103, 0.10);
    padding: 16px 84px 15px 83px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Right: quote card — overlaps image by 75px on desktop */
.bukvar-irena__card {
    flex: 0 0 auto;
    width: 745px;
    position: relative;
    z-index: 2;
    margin-left: -75px;
    background: #FDFAF8;
    border-radius: 24px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
    padding: 40px 56px;
}
.bukvar-irena__qmark {
    position: absolute;
    display: inline-block;
    line-height: 0;
}
.bukvar-irena__qmark svg {
    display: block;
}
.bukvar-irena__qmark--open {
    top: 38px;
    left: 28px;
}
.bukvar-irena__qmark--close {
    right: 28px;
    bottom: 140px;
}
.bukvar-irena__text {
    padding-left: 40px;
    padding-right: 40px;
    margin-bottom: 24px;
}
.bukvar-irena__text p {
    color: #584642;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.18px;
    margin: 0 0 18px;
}
.bukvar-irena__text p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.bukvar-irena__buttons {
    display: flex;
    gap: 12px;
    padding-left: 40px;
    padding-right: 40px;
}
.bukvar-irena__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 68px;
    padding: 0 32px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 17.6px;
    text-align: right;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.bukvar-irena__btn:hover {
    transform: translateY(-2px);
}
.bukvar-irena__btn--primary {
    border: none;
    background: linear-gradient(90deg, #D9B1A8 0%, #735E59 100%);
    color: #FFF;
}
.bukvar-irena__btn--primary:hover {
    box-shadow: 0 8px 20px rgba(139, 114, 108, 0.25);
    color: #FFF;
}
.bukvar-irena__btn--secondary {
    background: transparent;
    border: 1px solid #8B726C;
    color: #8B726C;
}
/* Override global .bukvar-trudnice-page button:hover white rule (matches its specificity 0,4,1) */
.bukvar-trudnice-page .bukvar-irena .bukvar-irena__card .bukvar-irena__btn--secondary:hover,
.bukvar-irena__btn--secondary:hover {
    color: #8B726C !important;
    background: transparent;
}

/* Popup content */
.bukvar-irena-popup .ivx-popup {
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.bukvar-irena-popup .ivx-popup h2 {
    font-family: 'Lora', serif;
    font-size: 32px;
    color: #584642;
    margin: 0 0 20px;
    text-align: center;
}
.bukvar-irena-popup__content {
    overflow-y: auto;
    padding-right: 12px;
    flex: 1;
}
.bukvar-irena-popup__content p {
    color: #584642;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0 0 14px;
}
.bukvar-irena-popup__content p:last-child {
    margin-bottom: 0;
}
.bukvar-irena-popup__content::-webkit-scrollbar {
    width: 6px;
}
.bukvar-irena-popup__content::-webkit-scrollbar-thumb {
    background: #D1AD9F;
    border-radius: 3px;
}
.bukvar-irena-popup__content::-webkit-scrollbar-track {
    background: #f5efec;
}
.bukvar-irena-popup__cta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 114, 108, 0.15);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .bukvar-irena__inner {
        gap: 20px;
    }
    .bukvar-irena__image {
        flex: 0 0 480px;
        width: 480px;
        height: 420px;
    }
    .bukvar-irena__card {
        width: auto;
        flex: 1;
        padding: 32px 40px;
    }
    .bukvar-irena__text,
    .bukvar-irena__buttons {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 860px) {
    .bukvar-irena {
        padding: 60px 20px;
    }
    .bukvar-irena__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Image: 95% width, centered */
    .bukvar-irena__image {
        flex: 0 0 auto;
        width: 95%;
        max-width: none;
        height: auto;
        aspect-ratio: 4 / 4.5;
        margin: 0 auto;
        border-radius: 20px;
    }
    .bukvar-irena__name {
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 32.815px;
        padding: 10px 28px;
        bottom: 62px;
        white-space: normal;
        text-align: center;
        max-width: 90%;
        width: 90%;
    }

    /* Card: overlaps image by 40px from top, white bg, new shadow */
    .bukvar-irena__card {
        width: 100%;
        margin-left: 0;
        margin-top: -40px;
        padding: 36px 24px 24px;
        border-radius: 16px;
        background: #FFF;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.10);
    }

    /* Quote marks smaller on mobile (22x20) */
    .bukvar-irena__qmark svg {
        width: 22px;
        height: 20px;
    }
    .bukvar-irena__qmark--open {
        top: 24px;
        left: 20px;
    }
    .bukvar-irena__qmark--close {
        right: 20px;
        bottom: auto;
        top: auto;
        /* Position relative to buttons — above them */
        bottom: 200px;
    }

    /* Text: keep 18px/26px on mobile as per spec */
    .bukvar-irena__text {
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 20px;
    }
    .bukvar-irena__text p {
        font-size: 18px;
        line-height: 26px;
        letter-spacing: -0.18px;
    }

    /* Buttons full width, stacked */
    .bukvar-irena__buttons {
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
        gap: 10px;
    }
    .bukvar-irena__btn {
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        line-height: 17.6px;
    }

    .bukvar-irena-popup .ivx-popup h2 {
        font-size: 24px;
    }
}
