/* Professional FAQ Page Styles */


/* Global Variables */

:root {
    --primary-color: #ff0000;
    --primary-dark: #cc0000;
    --secondary-color: #f8f9fa;
    --accent-color: #e3f2fd;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Scroll Progress Indicator */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(162, 115, 88, 0.1);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    width: 0%;
    transition: width 0.3s ease;
}


/* Hero Section */

.faq-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    background-color: #ff0000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: white;
    border-radius: 60px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    border: none;
    padding: 18px 60px 18px 50px;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2;
}

.search-clear:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow-medium);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.search-suggestion {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion:hover {
    background: var(--secondary-color);
}

.search-suggestion:last-child {
    border-bottom: none;
}


/* Hero Stats */

.hero-stats {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}


/* Filter Bar */

.filter-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selector-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.language-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.language-btn:hover,
.language-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.filter-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}


/* FAQ Content */

.faq-content {
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}


/* Categories Navigation */

.categories-nav {
    position: sticky;
    top: 120px;
}

.nav-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.nav-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-list {
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover,
.nav-item.active {
    background: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 4px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    background: var(--primary-color);
    color: white;
}

.nav-content {
    flex: 1;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.nav-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.nav-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-item:hover .nav-arrow,
.nav-item.active .nav-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}


/* Help Card */

.help-card {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    color: #ffffff !important;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    text-align: center;
}

.help-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.help-card h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.help-card p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.help-btn:hover {
    background: white;
    color: #25d366;
    text-decoration: none;
}


/* FAQ Container */

.faq-container {
    max-width: 100%;
}

.faq-category {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    box-shadow: var(--shadow-light);
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.category-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}


/* FAQ List */

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

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

.faq-question[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.question-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.question-number {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .question-number {
    background: white;
    color: var(--primary-color);
}

.question-text {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.question-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .question-toggle {
    background: rgba(255, 255, 255, 0.2);
}

.faq-question[aria-expanded="true"] .question-toggle i {
    color: white;
}

.faq-answer {
    border-top: 1px solid var(--border-color);
}

.answer-content {
    padding: 1.5rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.answer-content p {
    margin-bottom: 1rem;
}

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

.answer-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.answer-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-btn.helpful:hover {
    background: #d4edda;
    border-color: #28a745;
    color: #28a745;
}

.action-btn.not-helpful:hover {
    background: #f8d7da;
    border-color: #dc3545;
    color: #dc3545;
}


/* Contact Section */

.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.contact-wrapper {
    position: relative;
    z-index: 2;
}

.contact-content {
    color: white;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.contact-options {
    display: grid;
    gap: 1rem;
}

.contact-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-option:hover {
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.option-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.contact-option.whatsapp .option-icon {
    background: #25d366;
}

.contact-option.email .option-icon {
    background: #ea4335;
}

.contact-option.phone .option-icon {
    background: #007bff;
}

.contact-option:hover .option-icon {
    color: white;
}

.option-content {
    flex: 1;
}

.option-content h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.option-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-option:hover .option-content p {
    opacity: 0.7;
}

.option-arrow {
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-option:hover .option-arrow {
    transform: translateX(5px);
}


/* Responsive Design */

@media (max-width: 1199px) {
    .categories-nav {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .stat-card {
        padding: 1.5rem 1rem;
    }
    .stat-content h3 {
        font-size: 2rem;
    }
    .filter-options {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    .category-title {
        font-size: 1.7rem;
    }
    .contact-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .faq-hero {
        min-height: 50vh;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-search {
        max-width: 100%;
        padding: 0 1rem;
    }
    .search-box {
        border-radius: 50px;
    }
    .search-input {
        padding: 16px 50px 16px 45px;
        font-size: 1rem;
    }
    .search-icon {
        left: 16px;
    }
    .search-clear {
        right: 14px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .language-selector {
        justify-content: center;
        margin-bottom: 1rem;
    }
    .filter-options {
        justify-content: center;
    }
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .category-icon {
        margin-right: 0;
    }
    .category-title {
        font-size: 1.5rem;
    }
    .faq-question {
        padding: 1rem;
    }
    .question-content {
        gap: 0.75rem;
    }
    .question-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .question-text {
        font-size: 1rem;
    }
    .answer-content {
        padding: 1rem;
        font-size: 0.95rem;
    }
    .answer-actions {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    .contact-content h3 {
        font-size: 1.8rem;
    }
    .contact-content p {
        font-size: 1.1rem;
    }
    .contact-option {
        padding: 1rem;
    }
    .option-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.9rem;
    }
    .hero-search {
        max-width: 100%;
        padding: 0 1rem;
    }
    .search-box {
        border-radius: 50px;
    }
    .search-input {
        padding: 15px 50px 15px 45px;
        font-size: 1rem;
    }
    .search-icon {
        left: 15px;
        font-size: 1rem;
    }
    .search-clear {
        right: 12px;
        padding: 6px;
    }
    .language-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    .nav-item {
        padding: 0.75rem 1rem;
    }
    .nav-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .help-card {
        padding: 1rem;
    }
    .category-title {
        font-size: 1.3rem;
    }
    .contact-content h3 {
        font-size: 1.5rem;
    }
    .no-results-content {
        padding: 2rem 1rem;
    }
    .no-results-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .no-results-title {
        font-size: 1.3rem;
    }
    .no-results-suggestions {
        padding: 1rem;
    }
}


/* Animation Classes */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

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


/* Search Highlight */

.search-highlight {
    background: linear-gradient(120deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* No Results Styling */

.no-results-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 2rem 0;
    overflow: hidden;
}

.no-results-content {
    padding: 3rem 2rem;
    text-align: center;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.no-results-suggestions {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.no-results-suggestions p {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.no-results-suggestions ul {
    margin: 0;
    padding-left: 1.25rem;
}

.no-results-suggestions li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.no-results-suggestions li:last-child {
    margin-bottom: 0;
}


/* Smooth Scrolling */

html {
    scroll-behavior: smooth;
}


/* Focus States for Accessibility */

.search-input:focus,
.language-btn:focus,
.filter-btn:focus,
.nav-item:focus,
.faq-question:focus,
.action-btn:focus,
.contact-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* Loading States */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* Print Styles */

@media print {
    .scroll-indicator,
    .filter-bar,
    .hero-search,
    .answer-actions,
    .contact-section {
        display: none !important;
    }
    .faq-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    .faq-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}