/* ===================================
    Modern FAQ Styles
    Version: 1.0
    Features: Cards, Animations, Modern Design
====================================== */

/* Hide sub-visual area for FAQ page */
.sub-visual {
    display: none !important;
}

.sub-visual .cell {
    display: none !important;
}

/* Hide any unintended text display */
body > text {
    display: none !important;
}

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8ff1;
    --secondary-color: #48bb78;
    --accent-color: #f6ad55;
    --danger-color: #f56565;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    
    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Hero Section */
.faq-hero {
    background: var(--primary-gradient);
    width: 100vw;
    height: 450px;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-bottom: -40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.faq-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.faq-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Bar */
.faq-search-wrapper {
    max-width: 600px;
    margin: 50px auto 40px;
    position: relative;
    z-index: 10;
}

.faq-search-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 30px;
    margin-top: -80px;
}

.faq-search-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.search-result-info {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

.search-result-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

.search-result-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.sch_bar {
    width: 100%;
    margin: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 54px;
    display: flex;
    transition: var(--transition-base);
    background: var(--bg-primary);
    position: relative;
}

.sch_bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sch_bar input {
    border: 0;
    line-height: 50px;
    flex: 1;
    padding: 0 20px;
    background: transparent;
    font-size: 16px;
}

.sch_bar button {
    border: 0;
    background: none;
    width: 60px;
    height: 50px;
    font-size: 20px;
    color: var(--primary-color);
    transition: var(--transition-base);
    cursor: pointer;
}

.sch_bar button:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.sch_clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--text-muted);
    transition: var(--transition-base);
    text-decoration: none;
    font-size: 18px;
}

.sch_clear:hover {
    color: var(--danger-color);
    transform: scale(1.1);
}

/* Category Navigation */
#bo_cate {
    margin: 0 0 40px;
    padding: 0;
    text-align: center;
    background: transparent;
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

#bo_cate li {
    padding: 0;
    width: auto;
    float: none;
}

#bo_cate a {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    font-size: 14px;
}

#bo_cate a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#bo_cate #bo_cate_on {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* FAQ List Container */
.gw_faq {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px 100px;
}

.gw_faq ul {
    border: none;
    list-style: none;
    padding: 0;
}

/* FAQ Item Card */
.faq_li {
    margin-bottom: 16px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.faq_li:nth-child(1) { animation-delay: 0.1s; }
.faq_li:nth-child(2) { animation-delay: 0.15s; }
.faq_li:nth-child(3) { animation-delay: 0.2s; }
.faq_li:nth-child(4) { animation-delay: 0.25s; }
.faq_li:nth-child(5) { animation-delay: 0.3s; }

.faq_li > dl {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.faq_li > dl:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Question Section */
.faq_li > dl > dt {
    border: none;
    background: var(--bg-primary);
    position: relative;
}

.faq_q {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.faq_open {
    display: block;
    width: 100%;
    padding: 24px 24px 24px 88px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.faq_o_innner {
    width: calc(100% - 40px);
    display: block;
}

.bo_cate_link {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 8px;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: none;
}

.faq_title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    display: block;
}

.new_icon {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.faq_icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.faq_icon i {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.faq_i_on {
    transform: rotate(180deg);
}

.faq_open:hover .faq_icon {
    background: var(--primary-color);
}

.faq_open:hover .faq_icon i {
    color: white;
}

/* Answer Section */
.faq_li > dl > dd {
    display: none;
    border: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.faq_con {
    padding: 24px 24px 24px 88px;
    position: relative;
}

.faq_a {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.faq_answer {
    width: 100%;
}

.faq_v_con {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.faq_v_con p {
    margin-bottom: 12px;
}

.faq_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.faq_answer > a {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
}

.faq_answer > a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Empty State */
.gw_tb_empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gw_tb_empty p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-icon {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* List Info */
#bo_list_total {
    background: transparent;
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

#bo_list_total span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Buttons */
.btn_bo_user {
    text-align: center;
    margin: 20px 0;
}

.btn_bo_user li {
    display: inline-block;
    margin: 0 5px;
}

.btn_bo_user a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn_bo_user a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Pagination */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    margin: 0 auto 100px;
    width: 100%;
    position: relative;
    z-index: 10;
    clear: both;
}

.pg_wrap .pg {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pg_wrap .pg a,
.pg_wrap .pg strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.pg_wrap .pg a {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.pg_wrap .pg a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pg_wrap .pg strong {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        width: 100vw;
        height: 350px;
    }
    
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .faq-hero p {
        font-size: 1rem;
    }
    
    .faq_q,
    .faq_a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .faq_open {
        padding: 20px 20px 20px 72px;
    }
    
    .faq_con {
        padding: 20px 20px 20px 72px;
    }
    
    .faq_title {
        font-size: 16px;
    }
    
    .faq_v_con {
        font-size: 14px;
    }
    
    #bo_cate a {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        width: 100vw;
        height: 300px;
    }
    
    .faq-hero h1 {
        font-size: 1.5rem;
    }
    
    .faq-search-card {
        padding: 20px;
    }
    
    .gw_faq {
        padding: 0 12px;
    }
    
    .faq_li > dl {
        border-radius: var(--radius-md);
    }
    
    .faq_q,
    .faq_a {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .faq_open {
        padding: 16px 16px 16px 60px;
    }
    
    .faq_con {
        padding: 16px 16px 16px 60px;
    }
    
    .faq_icon {
        right: 16px;
    }
    
    .faq_title {
        font-size: 15px;
    }
    
    .faq_answer > a {
        padding: 8px 20px;
        font-size: 13px;
    }
}