/* FAQ Section Container */
.faq-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
}

/* Left Column - FAQ Heading, Subheading, Contact Button, and Robot */
.faq-left {
    flex: 1 1 45%; /* Takes 45% of the container */
    position: relative;
    padding-right: 40px; /* Space between columns */
    padding-top: 60px;
}

.faq-heading {
    font-size: 40px;
    color: #3d5280;
    margin-bottom: 20px;
}

.faq-subheading {
    font-size: 16px;
    color: #3d5280;
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
    background-color: #7091e6;
    color: white;
    font-weight: bold   ;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-decoration: none;
    
}

.contact-button:hover {
    background-color: #567ac8;
}
/* Contact Button Icon Animation */
.contact-button i {
    display: inline-block; /* Ensure the icon behaves like a block for animation */
    animation: left-right 1s infinite alternate; /* Animation for left-right movement */
}

/* Keyframes for left-right animation */
@keyframes left-right {
    0% {
        transform: translateX(0); /* Start position */
    }
    100% {
        transform: translateX(10px); /* End position, adjust as needed */
    }
}

/* Robot Image (Hover Effect) */
.robot-image {
    position: relative;
    bottom: -5px;
    left: 250px;
    width: 200px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Right Column - FAQ Items */
.faq-right {
    flex: 1 1 50%; /* Takes 50% of the container */
    padding-top: 60px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    
}

.faq-item {
    background: linear-gradient(135deg, #3d5280, #8697ca);
    color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex; /* Use flex to align question and icon in one row */
    justify-content: space-between; /* Push the icon to the far right */
    align-items: center; /* Vertically center-align the question and icon */
    flex-direction: column; /* Stack the question and answer vertically */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    width: 100%; /* Allow question to take full width */
}

.faq-toggle-icon {
    font-size: 24px;
    font-weight: bold;
    margin-left: auto; /* Automatically push icon to the right */
    transition: transform 0.2s;
    cursor: pointer;
    animation: pulse 1s infinite;
}

.faq-answer {
    display: none;
    font-size: 16px;
    color: #fff;
    padding-top: 10px;
}



.faq-item:hover {
    background-color: #2f4062;
}

 



@keyframes pulse {
    0%, 100% {
        transform: scale(1); /* Original size */
    }
    50% {
        transform: scale(1.8); /* Slightly increase size */
    }
}
/* If you want to animate the icon when toggled */
.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg); /* Rotate the icon when the answer is shown */
}


/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        flex-direction: column;
        padding: 20px;
    }

    .faq-left, .faq-right {
        flex-basis: 100%; /* Full width on mobile */
        text-align: center; /* Center content */
        padding-right: 0;
    }

    .faq-heading {
        font-size: 30px; /* Slightly smaller on mobile */
        text-align: center; /* Center heading */
        margin-bottom: 10px; /* Adjust spacing */
    }

    .faq-subheading {
        font-size: 14px; /* Slightly smaller for subheading */
        text-align: center; /* Center subheading */
        margin-bottom: 20px;
    }

    .contact-button {
        display: inline-block;
        margin: 20px auto; /* Center button horizontally and add spacing */
        text-align: center;
    }

    .robot-image {
        width: 100%; /* Scale to fit mobile screens */
        max-width: 150px; /* Smaller image on mobile */
        position: static; /* Remove absolute positioning */
        margin: 20px auto 0; /* Center image with spacing above */
        display: block;
    }

    .faq-right {
        padding-top: 20px; /* Adjust spacing between columns */
    }
}


