 /* --- 1. Variables & Global Reset --- */
:root {
  --primary-blue: #4a90e2;
  --success-green: #7ed321;
  --accent-yellow: #f8e71c;
  --text-dark: #2c3e50;
  --bg-light: #f4f7f6; /* Clean soft background */
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* --- 2. Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--success-green) 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* Centered Header Polish */
.faq-header-centered {
    padding: 2rem 1rem;
}

.faq-header-centered h2 {
    color: #004a99; /* Brand Blue */
    font-size: 2.2rem;
}

.header-line {
    width: 60px;
    height: 5px;
    background: #ffd700; /* Gold underline */
    border-radius: 10px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #eef4ff;
    color: #004a99;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.lead {
    max-width: 650px;
    font-size: 1.1rem;
}

/* Smooth transition when sections appear */
.faq-section {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- 3. Search & Categories --- */
.container {
  max-width: 80%;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* --- 1. Category Buttons --- */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 2.5rem 0;
}

.category-btn {
  padding: 0.8rem 2rem;
  border: 2px solid #edf2f7;
  background-color: #ffffff;
  color: #718096;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.category-btn:hover {
  border-color: #4a90e2;
  color: #4a90e2;
  transform: translateY(-2px);
}

.category-btn.active {
  background-color: #4a90e2;
  color: #ffffff;
  border-color: #4a90e2;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* --- 2. FAQ Items (The Cards) --- */
.faq-section {
  display: none; /* Controlled by JS */
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease; /* Adds a smooth entrance */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item {
  background: #fff;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-left: 5px solid #004a99; /* Changed to Fountain Blue */
  overflow: hidden;
  transition: 0.3s;
}

.faq-item:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* --- 3. The Question Button --- */
.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  text-align: left;
}

/* --- 4. The Answer (Smoothing the Slide) --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
  color: #4a5568;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 600px; /* High enough for paragraphs */
  padding-bottom: 1.5rem;
}

/* --- 5. The Toggle Icon (+) --- */
.faq-toggle {
  font-size: 1.5rem;
  color: #004a99;
  transition: 0.3s;
  font-weight: bold;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #e53e3e; /* Turns reddish when open */
}

/* --- 6. Contact CTA --- */
.contact-cta {
  background: #004a99; /* Fountain of Life Blue */
  color: white;
  padding: 3.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  margin: 4rem auto;
  max-width: 900px;
}

.cta-button {
  background: #ffd700; /* Gold/Yellow for visibility */
  color: #004a99;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- MOBILE RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .page-header {
    padding: 3rem 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2.3rem;
  }
  
  .faq-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 2.5rem 1rem;
    border-radius: 0 0 30px 30px;
  }
  
  .page-header h1 {
    font-size: 1.9rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  .faq-header-centered h2 {
    font-size: 1.7rem;
  }
  
  .faq-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .category-card {
    padding: 1.2rem;
  }
  
  .accordion {
    margin: 1.5rem 0;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .contact-cta {
    padding: 2.5rem 1.5rem;
    margin: 2.5rem auto;
  }
  
  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .page-header {
    padding: 2rem 0.75rem;
  }
  
  .page-header h1 {
    font-size: 1.6rem;
  }
  
  .page-header p {
    font-size: 0.9rem;
  }
  
  .faq-header-centered h2 {
    font-size: 1.4rem;
  }
  
  .faq-categories {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .category-card {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .faq-question {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .contact-cta {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }
  
  .cta-button {
    padding: 0.9rem 1.8rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 1.5rem 0.5rem;
  }
  
  .page-header h1 {
    font-size: 1.3rem;
  }
  
  .page-header p {
    font-size: 0.85rem;
  }
  
  .faq-header-centered h2 {
    font-size: 1.2rem;
  }
  
  .faq-categories {
    padding: 0.75rem;
  }
  
  .category-card {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .faq-question {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .faq-answer {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .contact-cta {
    padding: 1.5rem 0.75rem;
    margin: 1.5rem 0.75rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
  }
}
