/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #66a78b;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #f8f8f0; /* Change header to white */
    padding: 20px;
    text-align: center;
    color: #000000; /* Black text color */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo {
    max-width: 150px;
    margin-bottom: 10px;
}

/* Main Content */

a {
    color: #66a78b;
    text-decoration: none;
}

.content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items in the main content */
    width: 100%;
    color: #000000; /* Change main text color to black */
}
/* Set box-sizing to border-box for better responsiveness */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Question and Answer Items */
.qa-item {
    width: 95%; /* Set to 95% width of the screen */
    max-width: 1100px; /* Limit max width for larger screens */
    background-color: #ffffff; /* White background for question boxes */
    margin: 15px 0;
    padding: 20px; /* Consistent padding */
    border-radius: 8px;
    border: 1px solid #d1d9e6;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    word-wrap: break-word; /* Allow words to wrap */
    text-align: center; /* Center text inside boxes */
}

.qa-item.expanded {
    background-color: #f8f8f0;
}


.qa-item:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.question {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    text-align: left;
    cursor: pointer;
}

.answer {
    overflow: hidden;
    max-height: 0; /* Collapsed by default */
    transition: max-height 0.4s ease; /* Smooth transition */
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    word-wrap: break-word;
    width: 95%;
    cursor: text;
    white-space: normal;
    position: relative; /* For the fade-out gradient */
}

/* Expand partially on hover */
.answer.hover-expand {
    cursor: pointer;
    max-height: 80px; /* Set to the height you want for partial expansion */
}

/* Add fade effect on hover */
.answer.hover-expand::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    /* Adjust colors based on your background color */
}


/* Responsive Design */
@media (max-width: 600px) {
    .qa-item {
        padding: 15px; /* Less padding on smaller screens */
    }

    .answer {
        font-size: 16px; /* Slightly smaller font size for mobile */
    }

    .question {
        font-size: 1.2rem; /* Smaller font size for mobile */
    }
    
    ul {
        list-style-type: disc;
        padding-left: 20px;
    }

    ul li {
        margin-bottom: 10px;
    }
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 800px; /* Limit max width for larger screens */
    margin: 20px auto; /* Center the search bar */
    text-align: center; /* Center text */
}

#search {
    width: 100%; /* Full width */
    padding: 10px; /* Add some padding */
    font-size: 1rem; /* Font size */
    border: 1px solid #d1d9e6; /* Border color */
    border-radius: 4px; /* Rounded corners */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Shadow for depth */
}

/* Suggestions Container */
.suggestions-container {
    width: 100%;
    max-width: 800px; /* Limit max width for larger screens */
    margin: 10px auto; /* Center the suggestions */
    background-color: white; /* White background for suggestions */
    border: 1px solid #d1d9e6; /* Border color */
    border-radius: 4px; /* Rounded corners */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    display: none; /* Hide suggestions initially */
    z-index: 1000; /* Ensure it appears above other content */
}

.suggestion {
    padding: 10px; /* Padding for each suggestion */
    cursor: pointer; /* Cursor style */
}

.suggestion:hover {
    background-color: #f0f0f0; /* Change background on hover */
}