/* ===== WEBMA FAQ – ELEMENTOR SAFE VERSION ===== */
span.dashicons {
    font-size: 50px;
}

body .webma-faq-container .webma-faq-category-card {
   text-align:center !important;
    height: 105px;
}

section.webma-faq-search-section {
    max-width: 980px !important;
    margin: 20px auto;
}

.webma-faq-content{
    max-width: 980px !important;
    margin: 20px auto;
}
body .webma-faq-container,
body .webma-faq-container * {
    box-sizing: border-box;
}

/* Reset Elementor agresszív stílusok */
/* csak a kártya gombokra reseteljünk, NE minden buttonre */
body .webma-faq-container .webma-faq-category-card {
    all: unset;
    cursor: pointer;
    display: flex;
}

body .webma-faq-container h1,
body .webma-faq-container h2,
body .webma-faq-container h3 {
    margin: 0;
    padding: 0;
    font-weight: inherit;
}

body .webma-faq-container ul,
body .webma-faq-container li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Layout */
body .webma-faq-main {
    padding: 40px 20px;
}

body .webma-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* HERO */
body .webma-faq-hero {
    margin-bottom: 30px;
}

body .webma-faq-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

body .webma-faq-hero p {
    font-size: 1rem;
    line-height: 1.6;
}

/* SEARCH */
body .webma-faq-search-section {
    margin-bottom: 25px;
}

body .webma-faq-search-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
}

body .webma-faq-search-input:focus {
    outline: none;
    border-color: #ac2424;
    box-shadow: 0 0 0 1px #ac242433;
}

body .webma-faq-search-hint {
    margin-top: 6px;
    font-size: 0.875rem;
    color: #6b7280;
}

/* CATEGORY CARDS */
body .webma-faq-categories-overview {
    margin-bottom: 30px;
}

body .webma-faq-categories-heading {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

body .webma-faq-categories-wrapper {
    position: relative;
}

body .webma-faq-categories-scroller {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
}

/* CARDS */
body .webma-faq-container .webma-faq-category-card {
    width: 240px;
    height: 140px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.2s ease;
}

body .webma-faq-category-card:hover {
    border-color: #ac2424;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transform: translateY(-2px);
}

body .webma-faq-category-card.is-active {
    background: #ac2424;
    border-color: #ea580c;
    color: #ffffff;
}

body .webma-faq-category-icon {
    font-size: 1.8rem;
}

body .webma-faq-category-name {
    font-weight: 700;
    font-size: 1.05rem;
	height: 40px;
}

body .webma-faq-category-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

body .webma-faq-category-card.is-active .webma-faq-category-desc {
    color: #ffeede;
}

/* MOBILE SCROLL + ARROWS */
body .webma-faq-cat-arrow {
    display: none;
}

@media (max-width: 768px) {

    body .webma-faq-categories-scroller {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    body .webma-faq-category-card {
        width: 200px;
        flex-shrink: 0;
    }

    body .webma-faq-cat-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(0,0,0,0.06);
        justify-content: center;
        align-items: center;
        opacity: 0.5;
    }

    body .webma-faq-cat-arrow--prev { left: -6px; }
    body .webma-faq-cat-arrow--next { right: -6px; }
}

/* CONTENT */
body .webma-faq-content {
    margin-top: 10px;
}

body .webma-faq-category-section {
    margin-bottom: 40px;
}

body .webma-faq-category-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
}

/* ACCORDION */
body .webma-faq-item + .webma-faq-item {
    border-top: 1px solid #e5e7eb;
}

body .webma-faq-item summary {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 12px 16px;
}

body .webma-faq-question {
    font-weight: 600;
}

body .webma-faq-toggle::before {
    content: '+';
}

body .webma-faq-item[open] summary {
    background: #fff7ed;
    border-left: 3px solid #ac2424;
}

body .webma-faq-item[open] .webma-faq-toggle::before {
    content: '-';
}

body .webma-faq-answer {
    padding: 0 16px 16px;
    line-height: 1.6;
}

/* CTA */
body .webma-faq-cta-inner {
    background: #2563eb;
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

body .webma-faq-cta-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: white;
    color: #2563eb;
    font-weight: 600;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}