/* Import Base and Shared Styles */
@import url('/elements/base.css');
@import url('/elements/header.css');
@import url('/elements/footer.css');
@import url('/elements/animations.css');
@import url('/elements/scrool.css');

.back-button {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.back-button:hover {
    color: #1ed760;
}

/* FAQ Hero Section */
.faq-hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 70px;
    background-image: url('/media/static/image/background-2.jpg');
    background-size: cover;
    background-position: center;
    animation: fadeIn 1s ease-out;
}

.faq-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.8) 40%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.4) 80%);
    z-index: 0;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.faq-hero-content {
    padding: 0 7%;
    max-width: 800px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
}

.faq-hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    animation: slideInUp 0.8s ease-out;
}

.faq-hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
    font-weight: 300;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: #121212;
    color: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-container {
    margin-top: 40px;
    perspective: 1000px;
}

.faq-item {
    margin-bottom: 16px;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(0.1s * var(--item-index, 0));
}

.faq-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(30, 215, 96, 0.3);
}

/* FAQ Question */
.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(30, 215, 96, 0.1);
    transition: width 0.3s ease;
    z-index: 0;
}

.faq-question:hover::before {
    width: 5px;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-question:hover h3 {
    transform: translateX(5px);
    color: #1ed760;
}

.faq-icon {
    color: #1ed760;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: relative;
    z-index: 1;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 0 solid rgba(255, 255, 255, 0.1);
    opacity: 0;
}

.faq-item.active .faq-question {
    background-color: rgba(30, 215, 96, 0.1);
}

.faq-item.active .faq-question h3 {
    color: #1ed760;
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transition: max-height 0.6s cubic-bezier(0.33, 1, 0.68, 1), padding 0.5s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease;
}

/* FAQ Answer Content Animations */
.faq-answer p,
.faq-answer ul,
.faq-answer div {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.faq-item.active .faq-answer ul {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.faq-item.active .faq-answer li {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-answer li:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.25s;
}

.faq-item.active .faq-answer li:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.35s;
}

.faq-item.active .faq-answer li:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.45s;
}

.faq-item.active .faq-answer li:nth-child(n+4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.55s;
}

.faq-item.active .faq-answer div {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Link Animations */
.faq-answer a {
    color: #1ed760;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.faq-answer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1ed760;
    transition: width 0.3s ease;
}

.faq-answer a:hover::after {
    width: 100%;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

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

.contact-item i {
    font-size: 18px;
    width: 30px;
    color: #1ed760;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item p {
    margin: 0 0 0 10px;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    z-index: 0;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.faq-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* New Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    60% {
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-hero-content h1 {
        font-size: 36px;
    }

    .faq-hero-content p {
        font-size: 16px;
    }

    .faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .faq-hero-content h1 {
        font-size: 28px;
    }

    .faq-hero {
        height: 40vh;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}