/* FAQ Page Styles */

:root {
    /* --ciotolandia-orange: #ff6b35;
    --ciotolandia-green: #4caf50; */
    --ciotolandia-dark: #2c3e50;
    --ciotolandia-light: #ecf0f1;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.faq-hero {
    background: url('../images/faq-hero.webp') center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

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

/* Alternative styles for different image characteristics */
/* Add these classes to .faq-hero if needed */
.faq-hero.image-top {
    background-position: center top;
}

.faq-hero.image-bottom {
    background-position: center bottom;
}

.faq-hero.image-left {
    background-position: left center;
}

.faq-hero.image-right {
    background-position: right center;
}

.faq-hero.darker-overlay::before {
    background: rgba(0, 0, 0, 0.6);
}

.faq-hero.lighter-overlay::before {
    background: rgba(0, 0, 0, 0.2);
}

.faq-hero.no-overlay::before {
    display: none;
}

.faq-hero h1 {
    font-family: 'Jost', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-hero .brand {
    font-weight: 700;
}

.faq-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filters */
.faq-category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.faq-filter-btn {
    background: transparent;
    border: 2px solid var(--ciotolandia-orange);
    color: var(--ciotolandia-orange);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.faq-filter-btn:hover,
.faq-filter-btn.active {
    background: var(--ciotolandia-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Search Container */
.faq-search-container .input-group {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.faq-search-container .input-group-text {
    background: white;
    border: none;
    color: var(--ciotolandia-orange);
    font-size: 1.2rem;
}

.faq-search-container .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: white;
}

.faq-search-container .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 100%;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.faq-question:hover {
    background: rgba(255, 107, 53, 0.05);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ciotolandia-dark);
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ciotolandia-orange);
    color: white;
    border-radius: 50%;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    background: var(--ciotolandia-green);
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.faq-answer p {
    padding: 1.5rem 2rem 2rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Hidden items animation */
.faq-item.hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0;
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease-in;
}

/* No Results Message */
.no-results-message {
    margin-top: 3rem;
}

.no-results-message i {
    opacity: 0.3;
}

.no-results-message h4 {
    color: var(--ciotolandia-dark);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.faq-contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-contact h3 {
    color: var(--ciotolandia-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-contact .btn-primary {
    background: linear-gradient(135deg, var(--ciotolandia-orange) 0%, #e55a2b 100%);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.faq-contact .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        padding: 3rem 0 !important;
        min-height: 60vh;
        display: flex;
        align-items: center;
    }

    .faq-hero::before {
        background: rgba(0, 0, 0, 0.5);
    }

    .faq-hero .container {
        padding: 2rem 0;
    }

    .faq-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .faq-hero .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 1rem;
        max-width: 90%;
    }

    .faq-hero .subtitle .brand {
        font-weight: 700;
        display: inline-block;
    }

    .faq-category-filters {
        flex-direction: column;
        align-items: center;
    }

    .faq-filter-btn {
        width: 200px;
        text-align: center;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .faq-question h4 {
        font-size: 1.1rem;
    }

    .faq-answer p {
        padding: 1rem 1.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-contact .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .faq-hero {
        padding: 2rem 0 !important;
        min-height: 50vh;
    }

    .faq-hero .container {
        padding: 1rem 0;
    }

    .faq-hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .faq-hero .subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
        padding: 0 0.5rem;
        max-width: 95%;
    }

    .faq-hero .subtitle .brand {
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 0.875rem 1rem;
        flex-direction: column;
        text-align: center;
    }

    .faq-question h4 {
        margin-bottom: 1rem;
        padding-right: 0;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 1rem;
        text-align: left;
        font-size: 0.9rem;
    }
}

/* Loading animation for filter transitions */
.faq-item.filtering {
    transition: all 0.3s ease-out;
}

/* Highlight search results */
.faq-item .highlight {
    background-color: yellow;
    font-weight: bold;
}