/* faq.css - FAQ 페이지 */

/* ============================================
   FAQ Section Styles
   ============================================ */

.faq-section {
    background: #fff;
    padding: 90px 0;
    min-height: 70vh;
}

.faq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Header with Search */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: "BMDOHYEON", "Pretendard", sans-serif;
}

.faq-search-wrapper {
    display: flex;
    align-items: center;
}

.faq-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.faq-search-input {
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: var(--text-xs);
    color: #333;
    min-width: 250px;
}

.faq-search-input::placeholder {
    color: #999;
}

.faq-search-btn {
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-search-btn:hover {
    color: #00bc9e;
}

.faq-search-btn .fa {
    font-size: var(--text-sm);
}

/* FAQ Accordion Container */
.faq-accordion-container {
    width: 100%;
}

/* FAQ Item */
.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-item.hidden {
    display: none;
}

/* FAQ Question */
.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 15px 0;
    color: #333;
}

/* FAQ Question Number (using data-index) */
.faq-question::before {
    content: attr(data-index);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #333;
    min-width: 25px;
    flex-shrink: 0;
}

/* FAQ Question Text */
.faq-question-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}

/* FAQ Question Line */
.faq-question-line {
    flex: 1;
    height: 1px;
    background-color: #333;
    margin: 0;
}

/* FAQ Icon */
.faq-icon {
    font-size: var(--text-xs);
    color: #333;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 20px 0 20px 40px;
}

.faq-answer-content {
    font-size: var(--text-xs);
    line-height: 1.8;
    color: #666;
    padding: 0;
}

/* Responsive Design for FAQ */
@media screen and (max-width: 768px) {
    .faq-question {
        padding: 12px 0;
        gap: 10px;
    }

    .faq-question::before {
        font-size: var(--text-xs);
        min-width: 20px;
    }

    .faq-question-text {
        font-size: var(--text-xs);
    }

    .faq-icon {
        font-size: var(--text-xs);
    }

    .faq-item.active .faq-answer {
        padding: 15px 0 15px 30px;
    }

    .faq-answer-content {
        font-size: var(--text-xs);
    }
}

/* News Grid Container */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* News Post Item */
.news-post-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* News Post Image */
.news-post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-post-item:hover .news-post-image img {
    transform: scale(1.05);
}

/* News Post Content */
.news-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-post-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-post-description {
    font-size: var(--text-xs);
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* News Write Button */
.news-write-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.news-write-button {
    padding: 12px 30px;
    background: #00bc9e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-write-button:hover {
    background: #009d84;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 188, 158, 0.3);
}

/* Search Functionality - Hide items */
.news-post-item.hidden {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-title {
        font-size: var(--text-md);
    }

    .faq-search-bar {
        width: 100%;
    }

    .faq-search-input {
        flex: 1;
        min-width: 0;
    }

    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-post-image {
        height: 200px;
    }

    .news-post-title {
        font-size: var(--text-sm);
    }

    .news-post-description {
        font-size: var(--text-xs);
    }
}

@media screen and (max-width: 480px) {
    .faq-title {
        font-size: var(--text-md);
    }

    .news-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-post-image {
        height: 180px;
    }

    .news-post-content {
        padding: 15px;
    }

    .news-post-title {
        font-size: var(--text-xs);
        margin-bottom: 10px;
    }

    .news-post-description {
        font-size: var(--text-xs);
    }

    .news-write-button {
        padding: 10px 25px;
        font-size: var(--text-xs);
    }
}

/* 전체 임플란트 페이지 인트로 텍스트 */
.intro-title {
    font-size: var(--text-xl);
    font-weight: normal;
    text-align: center;
    margin: 40px auto;
}

.intro-text {
    font-size: var(--text-md);
    font-weight: normal;
    text-align: center;
    margin: 0 auto 40px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .intro-title {
        font-size: var(--text-lg);
        margin: 30px auto;
    }

    .intro-text {
        font-size: var(--text-sm);
        margin: 0 auto 30px;
    }
}

