/* ===== FAQ PAGE SPECIFIC STYLES ===== */
/* Container styles are now in scrollable-container.css */

/* ===== HEADER POSITIONING ===== */
.header-section {
    position: static;
    flex-shrink: 0;
}

/* Override mobile-specific sticky positioning */
@media (max-width: 768px) {
    .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
        margin-bottom: 0 !important;
        padding: clamp(0.2rem, 1vh, 0.6rem) clamp(0.2rem, 1.2vw, 0.6rem) !important;
    }
}

@media (max-width: 480px) {
    .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
    
    body .container .header-section {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        overflow-y: visible !important;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ===== FAQ SEARCH ===== */
.faq-search {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    max-width: 600px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(229, 57, 53, 0.2);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* ===== FAQ CATEGORIES ===== */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(229, 57, 53, 0.2);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

/* ===== FAQ ITEMS ===== */
.faq-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 30px 35px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 25px 30px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 8px;
}

/* ===== CONTACT SUPPORT ===== */
.contact-support {
    background: linear-gradient(135deg, rgba(107, 139, 123, 0.1), rgba(139, 171, 155, 0.05));
    border: 2px solid rgba(107, 139, 123, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.support-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.support-description {
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.support-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 139, 123, 0.3);
    text-decoration: none;
    display: inline-block;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 139, 123, 0.4);
    color: white;
}

/* ===== DARK MODE STYLES ===== */
body.dark-mode .faq-search,
body.dark-mode .faq-item {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .faq-answer {
    background: rgba(60, 60, 60, 0.6);
}

body.dark-mode .category-btn {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .contact-support {
    background: linear-gradient(135deg, rgba(107, 139, 123, 0.2), rgba(139, 171, 155, 0.1));
    border: 2px solid rgba(107, 139, 123, 0.4);
}

body.dark-mode .page-title {
    color: var(--primary-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .page-subtitle {
    color: #d0d0d0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        padding: 15px 20px;
    }

    .faq-search,
    .faq-item,
    .contact-support {
        padding: 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 20px 20px 20px;
    }

    .faq-categories {
        gap: 10px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .support-buttons {
        flex-direction: column;
        align-items: center;
    }

    .support-btn {
        width: 100%;
        max-width: 250px;
    }

    .menu-container-left,
    .menu-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .faq-search,
    .faq-item,
    .contact-support {
        padding: 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 15px 15px 15px;
    }

    .search-input {
        padding: 12px 15px;
    }
}
