/* 게시판 카드 */
.board-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 450px;
}

.board-card:hover {
    transform: translateY(-6px);
}

.board-card__image {
    width: 100%;
    height: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.board-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    height: 50%;
    justify-content: space-between;
}

.board-card__content h5 {
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.board-card__content > p {
    color: var(--text-slate);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.board-card__content .d-flex.justify-content-between {
    margin-top: auto;
}

.board-card__content img {
    border-radius: 50%;
    object-fit: cover;
}

.board-card__image-list {
    width: 200px;
    min-width: 200px;
    height: 150px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
}

.faq-item {
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 20px #0000000F;
}

.faq-item:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-header {
    padding: 0 0 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-content {
    padding: 20px 60px 20px 60px;
    background-color: #F6FBF9;
    color: var(--text-slate);
    display: none;
}

.faq-item.active .faq-content {
    display: block;
}

.faq-toggle {
    width: 70px;
    height: 70px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(360deg);
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .board-card {
        height: 420px;
    }

    .board-card__content {
        padding: 1rem;
    }

    .board-card__content h5 {
        font-size: 1rem;
    }

    .board-card__content > p {
        font-size: 0.85rem;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    /* 카테고리 네비게이션 */
    .grid.grid-4.white-box {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
    }

    /* 게시판 카드 그리드 */
    article.grid.grid-4.gap-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .board-card {
        height: 340px;
    }

    .board-card__image {
        height: 55%;
    }

    .board-card__content {
        height: 45%;
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .board-card__content h5 {
        font-size: 0.9rem !important;
        -webkit-line-clamp: 2;
    }

    .board-card__content > p {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2;
    }

    .board-card__content img {
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .board-card__content h6 {
        font-size: 0.75rem !important;
    }

    .board-card__content .d-flex.gap-3 {
        gap: 0.5rem !important;
    }

    .board-card__content .d-flex.gap-3 p {
        font-size: 0.7rem !important;
    }

    .board-card__content .d-flex.justify-content-between {
        gap: 0.5rem;
    }

    .board-card__content .d-flex.align-items-center.gap-3 {
        gap: 0.5rem !important;
    }
}

/* 반응형 - 소형 모바일 */
@media (max-width: 480px) {
    /* 카테고리 네비게이션 */
    .grid.grid-4.white-box {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    /* 게시판 카드 그리드 */
    article.grid.grid-4.gap-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .board-card {
        height: 380px;
    }

    .board-card__image {
        height: 50%;
    }

    .board-card__content {
        height: 50%;
        padding: 1rem;
        gap: 0.75rem;
    }

    .board-card__content h5 {
        font-size: 1rem !important;
    }

    .board-card__content > p {
        font-size: 0.85rem !important;
    }

    .board-card__content img {
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .board-card__content h6 {
        font-size: 0.85rem !important;
    }

    .board-card__content .d-flex.gap-3 p {
        font-size: 0.8rem !important;
    }

    /* FAQ 반응형 */
    .faq-header {
        padding: 0 0 0 20px;
    }

    .faq-content {
        padding: 15px 20px 15px 20px;
    }

    .faq-toggle {
        width: 50px;
        height: 50px;
    }

    /* QnA 반응형 */
    .support-item {
        padding: 1.5rem !important;
    }
}

/* QnA 아이템 - 태블릿 */
@media (max-width: 1024px) {
    .support-item {
        padding: 2rem !important;
    }

    .support-item h6 {
        font-size: 1rem;
    }

    .support-item p {
        font-size: 0.9rem;
    }
}

/* FAQ - 태블릿 */
@media (max-width: 1024px) {
    .faq-header {
        padding: 0 0 0 40px;
    }

    .faq-content {
        padding: 18px 40px 18px 40px;
    }

    .faq-toggle {
        width: 60px;
        height: 60px;
    }

    .faq-header h5 {
        font-size: 1rem;
    }
}

/* 검색 및 필터 - 모바일 */
@media (max-width: 768px) {
    article.d-flex.gap-3.pb-5 {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    article.d-flex.gap-3.pb-5 .w-80,
    article.d-flex.gap-3.pb-5 .w-20 {
        width: 100% !important;
    }

    .custom-select {
        height: 46px !important;
    }
}
