﻿/*=========================================
FAQ SECTION
HIYASHRI NUTS & NATURALS
=========================================*/

.faq-section {
    padding: 100px 0;
    background: #f8faf7;
}

.faq-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

/* Category Heading */

.faq-category {
    margin: 60px 0 25px;
    font-size: 28px;
    color: #1b4d2a;
    font-weight: 700;
    border-left: 5px solid #c79b24;
    padding-left: 15px;
}

/* FAQ Card */

.faq-item {
    background: #ffffff;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: .3s;
}

    .faq-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

/* Question */

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #1b4d2a;
    text-align: left;
    transition: .3s;
}

    .faq-question:hover {
        background: #f2f8ef;
    }

    .faq-question span {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #c79b24;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        transition: .35s;
    }

/* Answer */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
    background: #ffffff;
}

    .faq-answer p {
        padding: 0 30px 25px;
        color: #666;
        line-height: 1.8;
        font-size: 16px;
    }

/* Active */

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-question {
    background: #eef7eb;
}

    .faq-item.active .faq-question span {
        transform: rotate(45deg);
        background: #1b4d2a;
    }

/* Divider */

.faq-item:last-child {
    margin-bottom: 0;
}

/* Animation */

.faq-item {
    animation: fadeUp .6s ease both;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Highlight */

mark {
    background: #fff3b0;
    color: #1b4d2a;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Responsive */

@media(max-width:992px) {

    .faq-wrapper {
        max-width: 100%;
    }
}

@media(max-width:768px) {

    .faq-section {
        padding: 70px 0;
    }

    .faq-category {
        font-size: 24px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 16px;
    }

        .faq-question span {
            width: 30px;
            height: 30px;
            font-size: 18px;
        }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}

@media(max-width:480px) {

    .faq-question {
        font-size: 15px;
        line-height: 1.6;
    }

    .faq-category {
        font-size: 22px;
    }
}
