/**
 * FAQ Page Styles
 * Extracted from page-faq.php inline <style>
 *
 * @package DLM_EFormation
 */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

.faq-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

.faq-hero {
    background: linear-gradient(135deg, #102a43 0%, #0b1e33 100%);
    color: white !important;
    padding: 200px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: -100px;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-container h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
}

.faq-search {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    color: #212529 !important;
    background: white !important;
}

.search-input:focus {
    outline: none;
    border-color: #102a43 !important;
}

.search-input::placeholder {
    color: #6b7280 !important;
}

.faq-content {
    padding: 80px 0;
    background: white !important;
    color: #212529 !important;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-filter {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-filter:hover,
.category-filter.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.category-filter i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.faq-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-section {
    background: var(--gray-50);
    padding: 40px;
    border-radius: 16px;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529 !important;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-section h2 i {
    color: #102a43 !important;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa !important;
}

/* Additional color enforcement for all text elements */
.faq-page h1,
.faq-page h2,
.faq-page h3,
.faq-page h4,
.faq-page h5,
.faq-page h6 {
    color: inherit !important;
}

.faq-page p,
.faq-page li,
.faq-page span,
.faq-page div {
    color: inherit !important;
}

.faq-content *,
.faq-sections *,
.faq-section * {
    color: #212529 !important;
}

.faq-hero *,
.hero-container * {
    color: white !important;
}

/* Exception for search input - force black text */
.faq-search input,
.search-input {
    color: #212529 !important;
    background: white !important;
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    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;
    background: white;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 30px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content strong {
    color: var(--primary-color);
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
    border-radius: 16px;
}

.contact-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-btn {
    background: var(--secondary-color);
    color: white;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #d97706;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-container h1 {
        font-size: 2.5rem;
    }

    .faq-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-section {
        padding: 25px 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
    }
}
