/* css/faq_style.css - Custom Styles for the FAQ Page */
main{
    width:80vw; 
    margin:0 auto; 
    background-color: #eeedf2;
}

/* FAQ Hero Section - Consistent with other hero sections */
.faq-hero-section {
    position: relative;
    width: 100%;
    height: 225px;
    background-image: url('../images/with text 2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    margin: -31px 0 0 0 !important;
    padding: 0;
}

.faq-hero-section .hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333; /* Dark text on light background */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    padding-left: 15px; /* Adjust as needed for alignment */
}

/* Main FAQ Content Section */
.faq-content-section {
    padding-top: 50px;
    padding-bottom: 50px;
    color: #333;
    
}

.faq-main-title {
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 40px;
}

/* Accordion Styling */
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius is applied to content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.accordion-header {
    background-color: #f8f8f8; /* Light background for header */
}

.accordion-button {
    font-size: 1.15rem;
    font-weight: 500;
    color: #333;
    padding: 18px 20px;
    background-color: #f8f8f8; /* Ensure consistent background */
    border: none;
    text-align: left;
    transition: background-color 0.2s ease;

    /* IMPORTANT: Override Bootstrap's default arrow properties */
    background-image: none !important; /* Remove the default SVG arrow */
    /* Reset other background properties that might affect positioning/sizing */
    background-position: right 1.25rem center !important;
    background-size: 1.25rem 1.25rem !important;
}

.accordion-button:not(.collapsed) {
    color: #f51128; /* Yellow for expanded button text */
    background-color: #fff; /* White background when expanded */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

/* Updated Arrow Logic: Use one icon and rotate it */
.accordion-button::after {
    font-family: "Font Awesome 5 Free" !important; /* Ensure Font Awesome is used */
    font-weight: 900 !important;
    content: "\f078" !important; /* Default icon: chevron-down with !important */
    transform: rotate(0deg); /* Initial state: no rotation */
    transition: transform 0.2s ease-in-out;
    background-image: none !important; /* Ensure no background image for pseudo-element */
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg); /* Rotate 180deg to make it chevron-up */
}

.accordion-body {
    padding: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    background-color: #fff; /* White background for body */
}

@media (max-width: 1287px){
    .faq-hero-section {
        height: 190px;
    }
}


/* Responsive Adjustments */
@media (max-width: 767.98px) { /* Small devices (phones) */
main{
    width:100vw; 
    margin:0 auto; 
    background-color: #eeedf2;
}
    .faq-hero-section {
        background-image: url('../images/shell-product-2.png');
        text-align: center;
        padding-left: 0;
        padding-right: 0;
        margin: 0px !important;
    }

    .faq-hero-section .hero-title {
        font-size: 1.8rem;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .faq-content-section {
        padding-left: 15px;
        padding-right: 15px;
       
    }

    .faq-main-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 15px;
    }

    .accordion-body {
        font-size: 0.95rem;
        padding: 15px;
    }
}
