/* FAQ Section */
.faq {
    background: #080e37;
    padding: 50px 0;
}

/* Left part */
.faq .faq-left-part {
    margin-bottom: 15px;
}

/* Section Header */
.faq .faq-left-part .section-header {
    margin-bottom: 45px;
}

.faq .faq-left-part .section-header:after {
    display: none;
}

.faq .faq-left-part .section-header h2:first-child {
    margin-bottom: 0;
}

/* Accordion item */
.faq .section-wrapper .accordion li {
    padding: 20px 30px;
    border: none;
    margin-bottom: 10px; /* Space between items */
    box-shadow: 0 0 3px rgba(136, 136, 136, 0.1);
    background-color: #1f2a47; /* Add background for each accordion item */
    border-radius: 8px; /* Rounded corners */
    transition: background-color 0.3s ease-in-out;
}

/* Accordion item hover effect */
.faq .section-wrapper .accordion li:hover {
    cursor: pointer;  /* Make it look clickable */
}

/* Accordion list row */
.faq .section-wrapper .accordion li .accordion-list {
    width: 100%;
    display: flex; /* Aligns the icon and text in a row */
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}

/* Circle + icon */
.faq .section-wrapper .accordion li .accordion-list .left .icon {
    position: relative;
    width: 30px;
    height: 30px;
    background: #ff0052; /* Theme color for the icon */
    border-radius: 100%;
    transition: transform 0.3s ease;
}

/* Rotate the icon when the item is open */
.faq .section-wrapper .accordion li .accordion-list.in .left .icon {
    transform: rotate(45deg);
}

.faq .section-wrapper .accordion li .accordion-list .left .icon::after,
.faq .section-wrapper .accordion li .accordion-list .left .icon::before {
    position: absolute;
    content: "";
    background: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq .section-wrapper .accordion li .accordion-list .left .icon::after {
    width: 15px;
    height: 2px;
}

.faq .section-wrapper .accordion li .accordion-list .left .icon::before {
    width: 2px;
    height: 15px;
}

/* Title text */
.faq .section-wrapper .accordion li .accordion-list .right {
    width: calc(100% - 40px);
}

.faq .section-wrapper .accordion li .accordion-list .right h6 {
    margin: 0;
    color: #ffffff; /* White text color */
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

/* Title hover effect */
.faq .section-wrapper .accordion li .accordion-list:hover .right h6 {
    color: #ff0052; /* Change text color on hover */
}

/* Accordion answer */
.faq .section-wrapper .accordion li .accordion-answer {
    display: none;  /* Initially hide answers */
    padding-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.faq .section-wrapper .accordion li .accordion-answer.show {
    display: block;
    opacity: 1;
}

/* Right part */
.faq .faq-right-part {
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .faq .faq-right-part {
        margin-bottom: 0;
    }
}

/* Image wrapper */
.faq .faq-right-part .faq-thumb {
    text-align: center;
}

.faq .faq-right-part .faq-thumb img {
    max-width: 100%;
    height: auto;
}

/* Image zoom animation on large screens */
@media (min-width: 1400px) {
    .faq .faq-right-part .faq-thumb {
        margin-right: -30px;
        animation: lab_zoominout 15s linear infinite;
        transform-origin: center center; /* Ensure zoom happens from the center */
    }

    .faq .faq-right-part .faq-thumb img {
        max-width: none;
    }
}

/* Accordion Open/Close Animation */
@keyframes lab_zoominout {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Layout Adjustments */
@media (max-width: 992px) {
    .faq .row {
        flex-direction: column; /* Stack items on smaller screens */
    }

    .faq .faq-left-part {
        text-align: center;
    }

    .faq .faq-right-part {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .faq .faq-left-part .section-header h2 {
        font-size: 24px; /* Smaller font size for headings on mobile */
    }

    .faq .section-wrapper .accordion li {
        padding: 15px 20px; /* Adjust padding for smaller screens */
    }

    .faq .section-wrapper .accordion li .accordion-list h6 {
        font-size: 16px;  /* Smaller text size for mobile */
    }

    .faq .section-wrapper .accordion li .accordion-answer p {
        font-size: 14px;  /* Smaller font size for answer text */
    }
}

.faq { background: #080e37; padding: 50px 0; }
.accordion-item { background: #1f2a47; border-radius: 8px; margin-bottom: 10px; transition: background 0.3s; overflow: hidden; }
.accordion-item:hover { background: #212e4d; cursor: pointer; }
.accordion-list { display: flex; align-items: center; justify-content: flex-start; cursor: pointer; }
.icon { position: relative; width: 30px; height: 30px; border-radius: 50%; background: #ff0052; display: flex; justify-content: center; align-items: center; margin-right: 15px; transition: transform 0.3s ease; }
.icon span { position: absolute; background: #fff; display: block; transition: transform 0.3s ease; }
.icon-horizontal { width: 15px; height: 2px; }
.icon-vertical { width: 2px; height: 15px; }
.icon.open { transform: rotate(45deg); }
.right h6 { margin: 0; color: #fff; font-size: 18px; font-weight: 600; transition: color 0.3s; }
.accordion-list:hover .right h6 { color: #ff0052; }

/* Smooth Slide */
.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.accordion-answer.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 576px) { .right h6 { font-size: 16px; } .accordion-answer { font-size: 14px; } }

.faq .section-wrapper .accordion li .accordion-list:hover .right h6 {
    color: #ffffff;
}