/* FAQ Container - Alapértelmezett stílusok */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    max-width: 100%;
}

/* Keresés stílusok */
.faq-search-container {
    position: relative;
    margin-bottom: 20px;
}

.faq-search {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.faq-search:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.faq-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

/* FAQ Items Wrapper - Oszlopos elrendezéshez */
.faq-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-columns .faq-items-wrapper {
    column-gap: 30px;
    column-fill: balance;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 10px;
    border-radius: 40px;
    background: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    break-inside: avoid;
        border-radius: 40px;
    page-break-inside: avoid;
}

.faq-item:hover {
    border-color: #e0e0e0;
}



/* Kategória címke */
.faq-category {
    background: linear-gradient(135deg, #007cba, #005a8a);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Poppins", sans-serif;
}

/* FAQ Kérdés */
.faq-question {
    padding: 18px 40px;
    cursor: pointer;
    display: flex;
        border-radius: 40px;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background-color: #5d786f;
      border-radius: 40px;
          color: white;
}

.faq-question:hover h3 {
            color: white;

}

.faq-item.active .faq-question {
    background-color: #5d786f;
    color: white;
        border-radius: 40px 40px 0px 0px;
}

.faq-question h3 {
    margin: 0;
    flex: 1;
    padding-right: 15px;
    color: #242424;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: white;
        font-weight: 600;
}

/* FAQ Válasz */
.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    background-color: #fff;
border-radius: 0 0 40px 40px;
}

.faq-item.active .faq-answer {
    padding: 20px 40px;
    max-height: 1000px;
    opacity: 1;
}

.faq-answer p {
    color: #3B3B3B;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 0px;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 5px;
    color: #3B3B3B;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
}

/* FAQ Ikon */
.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: white;
}

/* Nincs találat üzenet */
.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    font-family: "Poppins", sans-serif;
}

/* Oszlopos elrendezés specifikus stílusok */
.faq-columns {
    display: block;
}

.faq-columns .faq-items-wrapper {
    display: block;
}

.faq-columns .faq-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid;
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.3s ease-out;
}

/* Keresés highlight */
.faq-search-highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Reszponzív beállítások */
@media (max-width: 1024px) {
    .faq-columns .faq-items-wrapper {
        column-count: 2 !important;
    }
}

@media (max-width: 768px) {
  
    
    .faq-columns .faq-items-wrapper {
        column-count: 1 !important;
        column-gap: 0;
    }
    
    .faq-question {
        padding: 10px 25px;
    }
    .faq-item.active .faq-question h3 {
    color: white;
    font-weight: 600;
    padding-top: 7px;
    padding-bottom: 7px;
}
    
    .faq-question h3 {
        font-size: 14px;
        padding-right: 10px;
    }

    .faq-answer p {
    color: #3B3B3B;
    font-family: "Poppins", sans-serif;
    font-size: 14px;

}
    
 
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    
    .faq-search {
        padding: 10px 40px 10px 12px;
        font-size: 14px;
    }
}



/* Akadálymentesítés */
.faq-question:focus-visible {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

/* Nyomtatási stílusok */
@media print {
    .faq-search-container {
        display: none;
    }
    
    .faq-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .faq-item.active .faq-answer {
        max-height: none;
        opacity: 1;
    }
    
    .faq-icon {
        display: none;
    }
}

/* Smooth scroll viselkedés */
html {
    scroll-behavior: smooth;
}

/* Magas kontrasztú mód támogatás */
@media (prefers-contrast: high) {
    .faq-item {
        border-width: 2px;
    }
    
    .faq-question:focus {
        outline-width: 3px;
    }
}

/* Mozgás csökkentése preferencia */
@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-icon,
    .faq-question {
        transition: none;
    }
    
    .faq-item {
        animation: none;
    }
}