* {
    direction: rtl;
    font-size: 16px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f9f9; /* Light gray background */
    font-family: 'Amiri', serif;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 24px;
    color: #333; /* Dark gray for header text */
}

.faq-layout {
    display: flex;
    gap: 15px;
    justify-content: space-between; /* Space between left and right sections */
}

/* Left Side: Answered Questions */
.answered-questions {
    flex: 1;
    max-width: 60%; /* Limit width to leave space for the input zone */
}

#Announcement{
    font-size: 20px;
    color: #555; /* Medium gray for section headers */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd; /* Subtle border for separation */
}

/* Right Side: Ask a Question */
.ask-question {
    flex: 1;
    max-width: 40%; /* Larger input zone */
    background-color: #fff; /* White background for input zone */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.ask-question{
    font-size: 20px;
    color: #555; /* Medium gray for section headers */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd; /* Subtle border for separation */
}

.faq-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.faq-card h3, p{
    margin-top: 0;
    font-size: 16px;
    color: black;
    border-bottom: 2px solid #ddd;
}

.search {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.itemG:nth-child(1),
.itemG:nth-child(2) {
  width: 100%;
  align-self: flex-end;
}

#i1{
    font-size: 20px;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

#chapiter{
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd; /* Light gray border */
    font-size: 16px;
    resize: vertical;
    background-color: #f9f9f9; /* Light gray background for textarea */
    transition: border-color 0.3s ease;
}

input[type=text]{
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd; /* Light gray border */
    font-size: 18px;
    resize: vertical;
    background-color: #f9f9f9; /* Light gray background for textarea */
    transition: border-color 0.3s ease;
}

.search_elements {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.item:nth-child(1),
.item:nth-child(2) {
  width: 45%;
  align-self: stretch;
}

.faq-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd; /* Light gray border */
    font-size: 18px;
    resize: vertical;
    background-color: #f9f9f9; /* Light gray background for textarea */
    transition: border-color 0.3s ease;
}

.faq-form textarea:focus {
    border-color: #4682b4; /* Blue border on focus */
    outline: none;
}

.faq-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd; /* Light gray border */
    font-size: 16px;
    resize: vertical;
    background-color: #f9f9f9; /* Light gray background for textarea */
    transition: border-color 0.3s ease;
}

.faq-form select:focus {
    border-color: #4682b4; /* Blue border on focus */
    outline: none;
}

.faq-form button {
    padding: 12px 20px;
    background-color: #4682b4; /* Blue button */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.faq-form button:hover {
    background-color: #4169e1; /* Darker blue on hover */
}

.message {
    color: #32CD32; /* Green for success messages */
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background-color: #e8f5e9; /* Light green background for messages */
    border-radius: 6px;
}

@media (max-width: 768px) {
    .faq-layout {
        flex-direction: column;
    }

    .answered-questions, .ask-question {
        max-width: 100%; /* Full width on smaller screens */
    }
}