@font-face {
    font-family: 'IranianSans';
    src: url('main/fonts/IranianSans.ttf') format('truetype');
}

.faq-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(2, 119, 189, 0.2), transparent 70%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.faq-section:hover::before {
    opacity: 0.9;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: right;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(2, 119, 189, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(2, 119, 189, 0.3);
    background: linear-gradient(to bottom, #f9fcff, #ffffff);
}

.faq-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0277BD;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.4s ease;
}

.faq-item:hover h3 {
    color: #4dabf7;
}

.faq-item h3 i {
    font-size: 1.4rem;
    color: #0277BD;
    transition: transform 0.4s ease, color 0.4s ease;
}

.faq-item:hover h3 i {
    transform: scale(1.2) rotate(10deg);
    color: #4dabf7;
}

.faq-item p {
    font-size: 1.1rem;
    color: #424242;
    line-height: 1.7;
    margin: 0;
    transition: color 0.4s ease;
}

.faq-item:hover p {
    color: #1a252f;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #0277BD 0%, #4dabf7 100%);
    padding: 20px 40px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(2, 119, 189, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-title:hover::before {
    opacity: 1;
}

.section-title:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(2, 119, 189, 0.4);
}

.section-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title h2 i {
    font-size: 2.4rem;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.section-title:hover h2 i {
    transform: scale(1.3) rotate(10deg);
}

.section-title .title-line {
    display: block;
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, #ffffff, #4dabf7);
    border-radius: 6px;
    transition: height 0.4s ease;
}

.section-title:hover .title-line {
    height: 60px;
}

@media (max-width: 1100px) {
    .faq-container {
        padding: 0 15px;
    }

    .section-title {
        padding: 15px 30px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title h2 i {
        font-size: 2rem;
    }

    .section-title .title-line {
        height: 40px;
        width: 6px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 15px;
    }

    .section-title {
        padding: 12px 25px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title h2 i {
        font-size: 1.8rem;
    }

    .section-title .title-line {
        height: 36px;
        width: 5px;
    }

    .faq-item {
        padding: 25px;
    }

    .faq-item h3 {
        font-size: 1.3rem;
    }

    .faq-item h3 i {
        font-size: 1.3rem;
    }

    .faq-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 50px 10px;
    }

    .section-title {
        padding: 10px 20px;
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title h2 i {
        font-size: 1.6rem;
    }

    .section-title .title-line {
        height: 30px;
        width: 4px;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1.2rem;
    }

    .faq-item h3 i {
        font-size: 1.2rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }
}