/* === Container === */
.hf-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* === Søgefelt === */
.hf-faq-search {
    width: 100%;
    padding: 14px 16px;
    margin: 20px 0;
    font-size: 16px;
    border: 2px solid #0b2621;
    border-radius: 6px;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}
.hf-faq-search:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(11, 38, 33, 0.3);
}

/* === GRID (mobile first) === */
.hf-faq-categories-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil standard */
    gap: 16px;
}

/* Tablet (≥768px) */
@media (min-width: 768px) {
    .hf-faq-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
    .hf-faq-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Stor skærm (≥1400px) */
@media (min-width: 1400px) {
    .hf-faq-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* === Kategori kort === */
.hf-faq-category {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hf-faq-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.hf-faq-category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0b2621;
    border-bottom: 2px solid #0b2621;
    padding-bottom: 6px;
}

/* === FAQ items === */
.hf-faq-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.hf-faq-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.hf-faq-question {
    background: #f9f9f9;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    color: #0b2621;
}
.hf-faq-question:hover {
    background: #eef2f1;
}
.hf-faq-question.open {
    background: #0b2621;
    color: #fff;
}

.hf-faq-answer {
    display: none;
    padding: 12px 14px;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    background: #fff;
}

/* === Responsive justeringer === */
@media (max-width: 768px) {
    .hf-faq-category {
        padding: 16px;
    }
    .hf-faq-category-title {
        font-size: 18px;
    }
    .hf-faq-question {
        font-size: 15px;
        padding: 10px 12px;
    }
    .hf-faq-answer {
        font-size: 14px;
        padding: 10px 12px;
    }
}
