/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-h1 {
    color: #86469C; /* Example color */
}

body {
    background-color: #ffff;
    padding: 20px;
    padding-top: 150px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

/* QA Section */
.qa-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qa-container {
    background-color: #fff;
    color: #000; /* Set default text color to black */
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out; /* Add color transition */
}

.qa-container:hover {
    transform: scale(1.05);
    background-color: #000; /* Change background to black on hover */
    color: #fff; /* Change text color to white on hover */
}

/* Change heading color on hover */
.qa-container:hover h1,
.qa-container:hover h2,
.qa-container:hover p {
    color: #fff; /* Change text color to white on hover */
}

/* H1 style scoped to QA section */
.qa-section h1 {
    font-size: 2.5rem;
    color: #000;
}

.question h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.answer p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: inherit; /* Inherit color for better compatibility */
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .qa-container {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .qa-section h1 {
        font-size: 2rem;
    }

    .qa-container {
        width: 100%;
    }

    .question h2 {
        font-size: 1.2rem;
    }

    .answer p {
        font-size: 1rem;
    }
}


/* Section styles */
.centered-section {
    text-align: center; /* Centers the heading */
    margin: 0 auto 40px; /* Centers the section and adds bottom margin */
    max-width: 1200px; /* Sets maximum width for the section */
}

.centered-section h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* Flexbox to align image and description horizontally */
.centered-section .content {
    display: flex;
    justify-content: center; /* Centers the whole block horizontally */
    align-items: center; /* Aligns items vertically centered */
    gap: 100px; /* Space between the image and the text */
}

/* Image styling */
.centered-section img {
    max-width: 500px; /* Adjust the size as per your needs */
    height: auto;
    border-radius: 10px; /* Optional: Adds rounded corners to the image */
}

/* Description styling */
.centered-section .description {
    font-size: 1.3rem;
    max-width: 600px; /* Limits the width of the text */
    line-height: 1.5;
    text-align: left; /* Makes sure the description text is left aligned */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .centered-section .content {
        flex-direction: column; /* Stacks the image and text vertically on smaller screens */
    }

    .centered-section img {
        margin-bottom: 20px;
        margin-right: 20px; /* Adds spacing between image and text when stacked */
    }
}
