/* ============================================
   FAQ Page - Professional CSS (Enhanced V2)
   Compatible with base.html structure
   Improved Typography & Components
   ============================================ */

:root {
    --primary-color: #01a185;
    --primary-dark: #018f73;
    --secondary-color: #f59e0b;
    --text-dark: #111827;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

/* ============================================
   FAQ Page Specific Styles
   ============================================ */

body.faq-page {
    padding-top: 75px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-page .main-banner {
    display: none !important;
}

/* ============================================
   FAQ Container - Main Layout
   ============================================ */

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--bg-white);
    min-height: calc(100vh - 300px);
}

/* ============================================
   FAQ Header - Title Section
   ============================================ */

.faq-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.faq-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.faq-header p.lead,
.faq-header .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ============================================
   Search Bar - Professional Search Box
   ============================================ */

.faq-search-bar {
    margin-bottom: 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 700px;
    width: 100%;
    flex-wrap: wrap;
}

.search-form .input-group {
    flex: 1;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    min-width: 250px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 22px;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-dark);
    background: white;
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-lighter);
    font-size: 1rem;
}

.search-input:focus {
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.search-form .btn,
.search-form button {
    border: none;
    padding: 16px 32px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 1.05rem;
    height: auto;
    line-height: 1.5;
}

.search-form .btn:hover,
.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 161, 133, 0.3);
    color: white;
}

.search-form .btn:focus,
.search-form button:focus {
    outline: none;
    box-shadow: 0 6px 16px rgba(1, 161, 133, 0.3);
}

.search-form .btn i,
.search-form button i {
    font-size: 1.1rem;
}

/* ============================================
   Categories Grid - Responsive Layout
   ============================================ */

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
}

/* ============================================
   Category Card - Professional Design
   ============================================ */

.category-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* ============================================
   Category Header - Title & Count
   ============================================ */

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.category-header h2 {
    font-size: 1.7rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dark);
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
}

.category-header h2 i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.question-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(1, 161, 133, 0.2);
}

/* ============================================
   Category Description
   ============================================ */

.category-description {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ============================================
   Questions List - Clean Layout
   ============================================ */

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    margin-bottom: 24px;
}

.question-item {
    padding: 0;
    margin: 0;
}

.question-item a {
    padding: 14px 16px;
    color: var(--primary-color);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
}

.question-item a:hover {
    background-color: rgba(1, 161, 133, 0.08);
    border-left-color: var(--primary-color);
    padding-left: 20px;
    color: var(--primary-dark);
    transform: translateX(4px);
}

.question-item a strong {
    flex: 1;
    font-weight: 600;
}

.question-item a i {
    color: var(--primary-color);
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.question-item a:hover i {
    transform: translateX(4px);
}

/* ============================================
   View All Button
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: white;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 161, 133, 0.3);
}

.mt-3 {
    margin-top: 24px;
}

/* ============================================
   Stats Section - Key Metrics
   ============================================ */

.faq-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.stat-box {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(1, 161, 133, 0.2);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(1, 161, 133, 0.3);
}

.stat-box h3 {
    font-size: 3rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.stat-box p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1rem;
}

/* ============================================
   Detail Page - Single Question
   ============================================ */

.faq-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 300px);
}

.faq-detail {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.faq-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   Answer Content - Enhanced Typography
   Paragraph, Lists, Bold, Italic
   ============================================ */

.answer-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Paragraphs */
.answer-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
}

.answer-content p:last-child {
    margin-bottom: 0;
}

/* Unordered Lists */
.answer-content ul {
    margin-bottom: 24px;
    margin-left: 32px;
    padding-left: 0;
    list-style: none;
}

.answer-content ul li {
    margin-bottom: 14px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
    padding-left: 24px;
}

.answer-content ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

/* Ordered Lists */
.answer-content ol {
    margin-bottom: 24px;
    margin-left: 32px;
    padding-left: 0;
    list-style: none;
    counter-reset: item;
}

.answer-content ol li {
    margin-bottom: 14px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
    padding-left: 32px;
    counter-increment: item;
}

.answer-content ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Nested Lists */
.answer-content ul ul,
.answer-content ol ol,
.answer-content ul ol,
.answer-content ol ul {
    margin-top: 12px;
    margin-bottom: 12px;
    margin-left: 24px;
}

.answer-content ul ul li,
.answer-content ol ol li,
.answer-content ul ol li,
.answer-content ol ul li {
    font-size: 1.05rem;
}

/* Strong/Bold */
.answer-content strong,
.answer-content b {
    color: var(--text-dark);
    font-weight: 700;
}

/* Italic/Emphasis */
.answer-content em,
.answer-content i {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
}

/* Headings in content */
.answer-content h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.answer-content h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.answer-content h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 10px;
}

/* Code blocks */
.answer-content code {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 500;
}

.answer-content pre {
    background: var(--bg-lighter);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.answer-content pre code {
    background: none;
    color: var(--text-dark);
    padding: 0;
    font-size: 0.95rem;
}

/* Blockquotes */
.answer-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.05rem;
}

/* Links */
.answer-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.answer-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   Prevention/Warning Boxes
   ============================================ */

.prevention-box,
.warning-box,
.info-box {
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 5px solid;
}

.prevention-box {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--success);
    color: var(--text-dark);
}

.prevention-box h4 {
    color: var(--success);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
}

.prevention-box ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.prevention-box li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding-left: 24px;
    position: relative;
}

.prevention-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

.warning-box {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--danger);
    color: var(--text-dark);
}

.warning-box h4 {
    color: var(--danger);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
}

.warning-box ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.warning-box li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding-left: 24px;
    position: relative;
}

.warning-box li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
    font-size: 1.2rem;
}

.info-box {
    background: rgba(1, 161, 133, 0.08);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================
   Helpful Section - Enhanced
   ============================================ */

.helpful-section {
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    padding: 32px 24px;
    margin: 40px 0;
    background: var(--bg-light);
    border-radius: 8px;
}

.helpful-section .helpful-question {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.helpful-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.helpful-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.helpful-btn-yes {
    border-color: var(--success);
    color: var(--success);
    background: white;
}

.helpful-btn-yes:hover {
    background: var(--success);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.helpful-btn-no {
    border-color: var(--danger);
    color: var(--danger);
    background: white;
}

.helpful-btn-no:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.helpful-stats {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Related Questions
   ============================================ */

.related-questions {
    margin-top: 50px;
}

.related-questions h3 {
    margin-bottom: 24px;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-group-item {
    padding: 14px 18px;
    background: var(--bg-light);
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 1.05rem;
}

.list-group-item:hover {
    background: rgba(1, 161, 133, 0.1);
    border-left-color: var(--primary-color);
    padding-left: 24px;
    text-decoration: none;
    color: var(--primary-dark);
}

/* ============================================
   Search Page Container
   ============================================ */

.faq-search-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
    min-height: calc(100vh - 300px);
}

.faq-search-container h1 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 32px;
    font-weight: 700;
}

.search-results {
    margin-top: 32px;
}

.search-results .text-muted {
    color: var(--text-light);
    font-size: 1.05rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.search-result-item {
    padding: 24px;
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-result-item h3 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.search-result-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.search-result-category {
    display: inline-block;
    background: rgba(1, 161, 133, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 600;
}

/* ============================================
   Accordion Styles
   ============================================ */

.accordion {
    border: none;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 14px;
}

.accordion-button {
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 22px;
    border: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(1, 161, 133, 0.05);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:hover {
    background: rgba(1, 161, 133, 0.08);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.accordion-body {
    padding: 24px;
    color: var(--text-light);
    line-height: 1.8;
    background: white;
    font-size: 1.05rem;
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */

.breadcrumb {
    background: var(--bg-light);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.breadcrumb-item {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    font-weight: 500;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    color: var(--text-lighter);
    pointer-events: none;
}

/* ============================================
   Alert Messages
   ============================================ */

.alert {
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid;
    font-size: 1.05rem;
}

.alert-info {
    background: rgba(1, 161, 133, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.alert a:hover {
    text-decoration: underline;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-info {
    background: rgba(1, 161, 133, 0.1);
    color: var(--primary-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.category-card {
    animation: slideIn 0.4s ease-out;
}

.faq-detail {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================
   Responsive Design - Tablets (1024px)
   ============================================ */

@media (max-width: 1024px) {
    .faq-header h1 {
        font-size: 2.5rem;
    }

    .faq-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .category-card {
        padding: 28px;
    }

    .faq-detail {
        padding: 40px;
    }

    .answer-content {
        font-size: 1.05rem;
    }

    .answer-content ul li,
    .answer-content ol li {
        font-size: 1.05rem;
    }
}

/* ============================================
   Responsive Design - Mobile (768px)
   ============================================ */

@media (max-width: 768px) {
    body.faq-page {
        padding-top: 70px;
        font-size: 1rem;
    }

    .faq-container,
    .faq-detail-container,
    .faq-category-container,
    .faq-search-container {
        padding: 25px 15px;
    }

    .faq-header {
        margin-bottom: 35px;
    }

    .faq-header h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .faq-header p.lead,
    .faq-header .lead {
        font-size: 1.1rem;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-form .input-group {
        width: 100%;
        min-width: auto;
    }

    .search-form .btn,
    .search-form button {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }

    .faq-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .category-card {
        padding: 24px;
    }

    .faq-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-box {
        padding: 28px 20px;
    }

    .stat-box h3 {
        font-size: 2.2rem;
    }

    .helpful-buttons {
        flex-direction: column;
    }

    .helpful-btn {
        width: 100%;
        justify-content: center;
    }

    .faq-detail {
        padding: 24px;
    }

    .faq-detail h1 {
        font-size: 1.8rem;
    }

    .answer-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .answer-content p {
        font-size: 1.05rem;
        margin-bottom: 18px;
    }

    .answer-content ul,
    .answer-content ol {
        margin-bottom: 20px;
        margin-left: 28px;
    }

    .answer-content ul li,
    .answer-content ol li {
        font-size: 1.05rem;
        margin-bottom: 12px;
        padding-left: 24px;
    }

    .answer-content h2 {
        font-size: 1.4rem;
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .answer-content h3 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .category-header-detail h1 {
        font-size: 1.8rem;
        gap: 10px;
    }

    .category-header-detail h1 i {
        font-size: 2rem;
    }

    .category-header-detail .lead {
        font-size: 1rem;
    }

    .search-result-item {
        padding: 18px;
    }

    .search-result-item h3 {
        font-size: 1.1rem;
    }

    .search-result-item p {
        font-size: 1rem;
    }

    .results-list {
        gap: 12px;
    }
}

/* ============================================
   Responsive Design - Small Mobile (480px)
   ============================================ */

@media (max-width: 480px) {
    body.faq-page {
        padding-top: 65px;
        font-size: 0.95rem;
    }

    .faq-container,
    .faq-detail-container,
    .faq-category-container,
    .faq-search-container {
        padding: 20px 10px;
    }

    .faq-header h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .faq-header p.lead,
    .faq-header .lead {
        font-size: 1rem;
    }

    .faq-search-bar {
        margin-bottom: 30px;
    }

    .search-input {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .search-form .btn,
    .search-form button {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .category-header h2 {
        font-size: 1.2rem;
        gap: 8px;
    }

    .category-header h2 i {
        font-size: 1.4rem;
        min-width: 28px;
    }

    .question-count {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .question-item a {
        padding: 12px 12px;
        font-size: 1rem;
    }

    .stat-box h3 {
        font-size: 2rem;
    }

    .stat-box p {
        font-size: 0.95rem;
    }

    .faq-detail h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .answer-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .answer-content p {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .answer-content ul,
    .answer-content ol {
        margin-bottom: 18px;
        margin-left: 24px;
    }

    .answer-content ul li,
    .answer-content ol li {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-left: 22px;
    }

    .answer-content h2 {
        font-size: 1.3rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .answer-content h3 {
        font-size: 1.1rem;
        margin-top: 18px;
        margin-bottom: 8px;
    }

    .related-questions h3 {
        font-size: 1.2rem;
    }

    .category-header-detail h1 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }

    .category-header-detail h1 i {
        font-size: 1.8rem;
    }

    .breadcrumb {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .pagination {
        gap: 4px;
        flex-wrap: wrap;
    }

    .page-link {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .helpful-section {
        padding: 20px 16px;
    }

    .helpful-btn {
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .search-result-item {
        padding: 16px;
    }

    .search-result-item h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .search-result-item p {
        font-size: 0.95rem;
    }
}

/* ============================================
   Extra Small Mobile (360px and below)
   ============================================ */

@media (max-width: 360px) {
    .faq-header h1 {
        font-size: 1.4rem;
    }

    .category-header h2 {
        font-size: 1.1rem;
    }

    .question-item a {
        padding: 10px 10px;
        font-size: 0.95rem;
    }

    .stat-box h3 {
        font-size: 1.8rem;
    }

    .faq-detail h1 {
        font-size: 1.3rem;
    }

    .answer-content {
        font-size: 0.95rem;
    }

    .answer-content p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .answer-content ul li,
    .answer-content ol li {
        font-size: 0.95rem;
        padding-left: 20px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .faq-search-bar,
    .helpful-buttons,
    .btn,
    .pagination,
    .breadcrumb {
        display: none;
    }

    .faq-detail,
    .category-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}