/* Add this at the start of the file */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Default - Mobile First */
.faq-container {
  max-width: 100%;
  margin: -100px auto 0;
  padding: 0 15px;
  position: relative;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../Images/girl1.png");
  background-size: cover;
  background-position: center;
  text-align: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 30px;
  color: var(--secondary-color);
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
}

/* Remove the negative margin approach and use this alternative */
.hero-section::before {
  content: "";
  position: absolute;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: inherit;
  z-index: -1;
}

.hero-content {
  padding: 50px 20px 0 20px;
  margin-top: 0;
  width: 100%;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
  font-size: 1rem;
  color: white;
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.3;
  padding: 0 15px;
}

.faq-section,
.ask-question-section {
  background: white;
  border-radius: 8px;
  padding: 30px 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-header i {
  font-size: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.faq-question h3 {
  font-size: 1.1rem;
  padding-right: 30px;
}

.faq-question {
  padding: 15px;
}

.faq-answer p {
  padding: 15px 0;
  font-size: 0.95rem;
}

.question-form-container {
  max-width: 100%;
}

.submit-btn {
  width: 100%;
  justify-content: center;
}

/* Small - ≥576px */
@media (min-width: 576px) {
  .faq-container {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content .subtitle {
    font-size: 1.3rem;
    max-width: 500px;
  }

  .faq-section,
  .ask-question-section {
    padding: 25px 20px;
  }
}

/* Medium - ≥768px */
@media (min-width: 768px) {
  .faq-container {
    max-width: 720px;
    margin: -120px auto 0;
  }

  .hero-section {
    min-height: 250px;
    padding: 0;
    margin-top: 40px;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .faq-question h3 {
    font-size: 1.2rem;
  }

  .submit-btn {
    width: auto;
  }

  .faq-section {
    margin-top: -30px;
  }
}

/* Large - ≥992px */
@media (min-width: 992px) {
  .faq-container {
    max-width: 960px;
  }

  .hero-section {
    min-height: 300px;
    margin-top: 50px;
  }

  .question-form-container {
    max-width: 800px;
  }
}

/* Extra Large - ≥1200px */
@media (min-width: 1200px) {
  .faq-container {
    max-width: 1140px;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-content .subtitle {
    font-size: 1.5rem;
  }

  .section-header i {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../Images/girl1.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  margin-top: -10px;

  color: var(--secondary-color);
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Content Sections */
.faq-section,
.ask-question-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 0 20px 40px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.section-header i {
  font-size: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: 1px solid rgba(0, 114, 188, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 500;
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 20px 0;
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.faq-item.active .faq-question {
  background: rgba(0, 114, 188, 0.05);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Ask a Question Form */
.question-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.question-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
}

.form-group textarea {
  padding: 15px;
  border: 1px solid rgba(0, 114, 188, 0.2);
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #005a94;
  transform: translateY(-2px);
}

.submit-btn i {
  font-size: 1.1rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #4caf50;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content .subtitle {
    font-size: 1.2rem;
  }

  .faq-section,
  .ask-question-section {
    margin: 0 15px 30px 15px;
    padding: 30px 20px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .faq-question h3 {
    font-size: 1.1rem;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .faq-question {
    padding: 15px;
  }

  .faq-answer p {
    padding: 15px 0;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .faq-section,
  .ask-question-section {
    margin: 0 10px 20px 10px;
    padding: 20px 15px;
  }
}
