/* faq-blogs.css */

/* Specific styling for the FAQ & Blogs Hero section */
.faq-blogs-hero {
  background: linear-gradient(rgba(11, 30, 54, 0.8), rgba(11, 30, 54, 0.8)),
              url('https://via.placeholder.com/1920x800/003366/FFFFFF?text=FAQ+Blogs+Hero+Image') center center / cover no-repeat;
  background-attachment: fixed;
  padding-top: 80px; /* Adjust based on navbar height */
}

/* ===== FAQ Section ===== */
.faq-section {
  background-color: #f9fafe; /* Light background */
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-tile {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* More pronounced shadow */
  transition: box-shadow 0.3s ease, transform 0.3s ease, border 0.3s ease;
  border: 1px solid #f0f0f0; /* Subtle border for definition */
  /* No overflow: hidden; or max-height: 0; as answers are always visible */
}

.faq-tile:hover {
  transform: translateY(-8px); /* More pronounced lift */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #007BFF; /* Highlight border on hover */
}

/* No .faq-tile.open styles needed as there's no 'open' state to toggle */

.faq-question {
  display: flex; /* Still useful for layout consistency if there were internal elements */
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px 10px; /* Padding for question, more bottom space before answer */
  background-color: #ffffff;
  /* Removed border-bottom; will rely on overall spacing */
}

.faq-question h3 {
  font-size: 1.25rem; /* Larger question font */
  color: #003366;
  margin: 0; /* No margin */
  flex-grow: 1;
  font-weight: 600; /* Bolder question */
}

/* Removed .toggle-icon styles as the element is removed from HTML */

.faq-answer {
  /* No max-height, overflow, or transition for collapse/expand */
  padding: 0px 30px 22px; /* Padding for answer, matching question sides, generous bottom */
  background-color: #ffffff; /* Consistent background */
}

/* No .faq-tile.open .faq-answer styles needed */


/* Styles for the bullet points within FAQ answers */
.faq-answer ul {
  list-style: disc; /* Standard bullet points */
  padding-left: 25px; /* Indent the list */
  margin: 0; /* Remove default ul margin */
}

.faq-answer ul li {
  font-size: 1rem; /* Slightly larger font for readability */
  line-height: 1.8; /* Increased line height for spacing */
  color: #555;
  margin-bottom: 10px; /* More space between points */
}

.faq-answer ul li:last-child {
  margin-bottom: 0; /* No margin after the last point */
}

/* ===== Blogs Section ===== */
.blogs-section {
  background-color: #ffffff; /* White background */
  padding: 80px 0;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent image size */
  object-fit: cover; /* Cover the area, cropping if necessary */
  border-bottom: 1px solid #eee;
}

.blog-content {
  padding: 20px 25px;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more-button {
  display: inline-flex;
  align-items: center;
  color: #007BFF;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.read-more-button:hover {
  color: #00bcd4;
}

.read-more-button i {
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.read-more-button:hover i {
  margin-left: 12px; /* Move arrow slightly on hover */
}

/* Animations (reusing homepage fadeInUp) */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

/* Disable animations on mobile for performance/simplicity */
@media (max-width: 768px) {
    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Responsive Adjustments for FAQ & Blogs Sections --- */
@media (max-width: 992px) {
  .faq-blogs-hero {
    height: 60vh;
  }
  .faq-grid, .blogs-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .faq-question h3 {
    font-size: 1.1rem;
  }
  .blog-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .faq-blogs-hero {
    height: 50vh;
    background-attachment: scroll;
  }
  .faq-section, .blogs-section {
    padding: 60px 0;
  }
  .faq-grid, .blogs-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .faq-question {
    padding: 18px 20px 10px; /* Adjusted padding */
  }
  .faq-question h3 {
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 20px 18px; /* Adjusted padding */
  }
  .faq-answer ul {
    padding-left: 20px;
  }
  .faq-answer ul li {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  .blog-image {
    height: 180px;
  }
  .blog-content {
    padding: 15px 20px;
  }
  .blog-content h3 {
    font-size: 1.2rem;
  }
  .blog-excerpt {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .faq-blogs-hero {
    height: 40vh;
  }
  .faq-section, .blogs-section {
    padding: 40px 0;
  }
  .faq-grid, .blogs-grid {
    gap: 15px;
  }
  .faq-question {
    padding: 15px 15px 8px;
  }
  .faq-question h3 {
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 15px 15px;
  }
  .faq-answer ul {
    padding-left: 15px;
  }
  .faq-answer ul li {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }
  .blog-image {
    height: 150px;
  }
  .blog-content {
    padding: 12px 15px;
  }
  .blog-content h3 {
    font-size: 1.1rem;
  }
  .blog-excerpt {
    font-size: 0.8rem;
  }
  .read-more-button {
    font-size: 0.85rem;
  }
}