/* Customer Center Page Specific Styles */

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question.active {
    color: #e74c3c;
    /* Accent color */
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8f9fa;
}

.faq-answer-content {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

/* Notice Section */
.notice-container {
    max-width: 1000px;
    margin: 0 auto;
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notice-table th,
.notice-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.notice-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-top: 2px solid #333;
}

.notice-table td.text-left {
    text-align: left;
}

.notice-link {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.notice-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.notice-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.notice-badge.important {
    background: #ffebee;
    color: #c62828;
}

.notice-badge.normal {
    background: #e3f2fd;
    color: #1565c0;
}

/* Responsive Table */
@media (max-width: 768px) {

    .notice-table th:nth-child(3),
    .notice-table td:nth-child(3) {
        display: none;
        /* Hide Number and Date on mobile */
    }

    .notice-table th {
        font-size: 0.9rem;
    }
}

/* Pagination (Visual) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #eee;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    color: #666;
}

.page-btn:hover {
    background: #f1f1f1;
}

.page-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* --- Mobile Optimization (Customer Page specific) --- */
@media (max-width: 768px) {

    /* FAQ Section */
    .faq-container {
        padding: 0 15px !important;
    }

    .faq-question {
        padding: 15px !important;
        font-size: 1rem !important;
    }

    .faq-answer-content {
        padding: 15px !important;
        font-size: 0.9rem !important;
    }

    /* Notice Section */
    .notice-container {
        padding: 0 15px !important;
    }

    .notice-table {
        margin-top: 10px !important;
    }

    .notice-table th,
    .notice-table td {
        padding: 12px 10px !important;
    }

    .notice-table th {
        font-size: 0.85rem !important;
    }

    .notice-table td.text-left {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .notice-badge {
        font-size: 0.75rem !important;
        padding: 3px 6px !important;
    }

    .pagination {
        margin-top: 20px !important;
        gap: 8px !important;
    }

    .page-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
}

/* 상단 고정(is_fixed=Y) 공지사항 스타일 */
.notice-fixed {
    background-color: #f0f7ff;
    /* 눈에 띄게 연한 푸른 배경 */
}

.notice-fixed>td {
    font-weight: 600;
}

.notice-fixed:hover {
    background-color: #e6f2ff !important;
}


/* 공지사항 어드민 배지 스타일 연동 (.badge .urgent 식) */
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-family: sans-serif;
    font-size: 14px;
    text-align: center;
    margin-left: 8px;
    vertical-align: middle;
}

.urgent {
    background-color: #fde8e8;
    color: #c81e1e;
}

/* U */
.event {
    background-color: #f3e8fd;
    color: #7e3af2;
}

/* E */
.hot {
    background-color: #fef3c7;
    color: #d97706;
}

/* H */