/* FAQ Section */
.faq-section {
  padding: 50px 10%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px; /* Reduced space between columns for better balance */
}

.faq-container {
  display: flex;
  flex-wrap: wrap; /* Ensures flexibility for responsiveness */
  max-width: 1200px;
  width: 100%;
  gap: 20px; /* Added gap for better spacing between items */
}

.faq-left {
  width: 40%; /* Left column width */
  flex-shrink: 0; /* Prevents shrinking */
  padding-right: 20px; /* Added padding for spacing from right column */
  box-sizing: border-box;
}

.faq-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1A2884;
  margin-bottom: 15px;
  line-height: 1.2; /* Ensures proper spacing between title lines */
}

.faq-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6; /* Adjusted for better readability */
  text-align: justify; /* Ensures even alignment on both sides */
  margin-bottom: 20px; /* Adds consistent spacing below */
}

.faq-right {
  width: 55%; /* Right column width */
  flex-grow: 1; /* Allows it to take remaining space */
  box-sizing: border-box;
}

/* Individual FAQ Item */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

/* FAQ Question */
.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  padding: 10px 0; /* Added padding for better click area */
}

.faq-question span:first-child {
  flex: 1; /* Allow question text to expand fully */
  margin-right: 10px; /* Spacing from the "+" or "-" sign */
}

.faq-question span:last-child {
  font-size: 1.5rem;
  color: #1A2884;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* FAQ Answer */
.faq-answer {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  display: none; /* Hidden by default */
  background-color: #F7F9FF; /* Light blue for active answers */
  border-left: 3px solid #1A2884; /* Blue border indicator */
  margin-top: 10px; /* Added spacing from question */
  margin-left: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Open FAQ Item */
.faq-item.open .faq-answer {
  display: block; /* Show answer when active */
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(180deg); /* Rotate "+" to "-" */
  color: #1A2884; /* Change to red for active state */
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-section {
    flex-direction: column; /* Stack vertically */
    gap: 30px;
    padding: 30px 5%; /* Adjusted padding for smaller screens */
  }

  .faq-left,
  .faq-right {
    width: 100%; /* Full width for smaller screens */
    padding: 0; /* Remove extra padding */
  }

  .faq-title {
    font-size: 1.6rem;
  }

  .faq-description {
    font-size: 0.95rem; /* Adjust font size for smaller screens */
    line-height: 1.5; /* Tighter spacing for mobile */
    text-align: left; /* Avoid justification on small screens */
  }

  .faq-question {
    font-size: 1rem;
    padding: 10px 0; /* Adjust padding for mobile */
  }

  .faq-answer {
    font-size: 0.9rem;
    margin-left: 0; /* Align answers with questions */
  }
}


/* .open .faq-question span:last-child {
  transform: rotate(45deg);
} */
/* Contact Section */
.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 10%;
  background: linear-gradient(to right, #480A5E 0%, #1F5BEA 100%);
  color: #fff;
  gap: 30px;
  height: 340px; /* Adjust height dynamically based on content */
}

.contact-content {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px; /* Spacing between heading, paragraph, and button */
  box-sizing: border-box;
}

.contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1.3; /* Tighten spacing between lines */
}

.contact-content h2 .highlight {
  color: #ffe455;
}

.contact-content p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn-contact {
  background-color: #ffe455;
  color: #4e54c8;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  align-self: start; /* Align button to the left */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-contact:hover {
  background-color: #fff;
  color: #4e54c8;
}

.contact-image {
  width: 40%; /* Adjust width for image container */
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  max-width: 300px;
  height: auto;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .contact-content {
    width: 100%;
    align-items: center; /* Center align content */
    text-align: center; /* Center text */
  }

  .btn-contact {
    align-self: center; /* Center button */
  }

  .contact-image img {
    max-width: 250px; /* Adjust image size */
  }
}

@media (max-width: 480px) {
  .contact-content h2 {
    font-size: 1.8rem; /* Reduce font size for small devices */
  }

  .contact-content p {
    font-size: 0.95rem; /* Adjust text size */
  }

  .btn-contact {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .contact-image img {
    max-width: 200px;
  }
}

/* Footer Section */
footer {
  padding: 40px 10%;
  background-color: #1A2884;
  color: #fff;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Enable wrapping for smaller screens */
  gap: 20px;
}

footer img {
  height: 50px;
}

footer .form-control {
  max-width: 300px;
  width: 100%; /* Full width on small screens */
}

footer .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

footer .text-white {
  font-size: 14px;
  text-align: center;
}

footer .text-center div {
  margin-top: 10px;
}

/* Responsive Footer Design */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .social-icons a {
    font-size: 1.2rem; /* Adjust icon size */
  }

  .newsletter input {
    width: 100%; /* Full width */
  }

  .btn-subscribe {
    width: 100%; /* Full width for button */
  }
}

@media (max-width: 480px) {
  footer {
    padding: 20px 5%;
  }

  footer img {
    height: 40px;
  }

  footer .text-white {
    font-size: 12px;
  }

  footer .social-icons a {
    font-size: 1rem; /* Smaller icons */
  }
}
