/* =============================================================
   Vkard FAQ Widget — frontend styles
   All selectors are namespaced under .vkfaq__wrap
   ============================================================= */

/* ── Wrapper ── */
.vkfaq__wrap {
    margin: 0 auto;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

/* ── Section title ── */
.vkfaq__title {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0A0A0A;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

/* ── Grid ── */
.vkfaq__grid {
    column-count: 2;
    column-gap: 8px;
}

/* ── Each FAQ item ── */
.vkfaq__item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block; /* required: makes break-inside reliable in all browsers */
    width: 100%;
    margin-bottom: 8px;
    background: #EAF5FC;
    border-radius: 50px;
    overflow: hidden;
    transition: background 0.22s ease,
                border-radius 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.vkfaq__item.vkfaq--open {
    background: #EAF5FC;
    border-radius: 20px;
}

/* ── Question button ── */
.vkfaq__btn {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2E9BE6;
    cursor: pointer;
    background: transparent none !important;
    border: none;
    font-family: inherit;
    line-height: 1.35;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}

.vkfaq__question {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.vkfaq__btn:hover,
.vkfaq__btn:active,
.vkfaq__btn:focus,
.vkfaq__btn:focus-within {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: inherit;
}

.vkfaq__btn:focus-visible {
    outline: 2px solid #2563EB !important;
    outline-offset: -2px;
    border-radius: 50px;
    background: none !important;
    background-color: transparent !important;
}

/* ── chevron icon ── */
.vkfaq__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    font-size: 20px;
    font-weight: 300;
    color: #2E9BE6;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.2s ease;
    user-select: none;
}

.vkfaq__icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.vkfaq__item.vkfaq--open .vkfaq__icon {
    transform: rotate(180deg);
    color: #2E9BE6;
}

/* ── Answer panel ── */
.vkfaq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.vkfaq__answer-inner {
    padding: 2px 20px 20px 20px;
    font-size: 13.5px;
    color: #5B7B95;
    line-height: 1.72;
}

/* ── Responsive defaults (overridden by Elementor controls) ── */
@media (max-width: 767px) {
    .vkfaq__grid {
        column-count: 1;
    }

    .vkfaq__title {
        font-size: 24px;
        margin-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vkfaq__item,
    .vkfaq__icon,
    .vkfaq__answer {
        transition: none !important;
    }
}

