/* 
 * FAQ Page Professional Styling 
 * Matches the why-ste.html design for consistency
 */

.faq-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%), 
              url('/static/images/banner2.webp') no-repeat center center;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.faq-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)"/></svg>');
  opacity: 0.3;
}

.faq-hero-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.faq-hero-text {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
}

.faq-hero-icon {
  margin-bottom: 2rem;
}

.faq-hero-icon i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.faq-hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
}

.faq-hero h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: white;
}

.faq-hero p {
  font-size: 1.1rem;
  opacity: 0.8;
  color: white;
  line-height: 1.6;
  margin-bottom: 0;
}

.faq-hero-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  text-align: center;
}

.faq-question-graphic {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.faq-question-graphic i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.faq-question-text {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.faq-hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

/* FAQ Content Section */
.faq-content {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
  position: relative;
}

.faq-content .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-navigation-card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.faq-navigation-body {
  padding: 2rem;
  text-align: center;
}

.faq-navigation h2 {
  color: #333;
  margin-bottom: 1.5rem;
}

.faq-section {
  margin-bottom: 5rem;
  position: relative;
}

.faq-section:not(:last-child):after {
  content: '';
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.faq-section-title {
  color: #1a202c;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  padding-bottom: 1rem;
  border-bottom: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.faq-section-icon {
  color: #667eea;
  margin-right: 0.5rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
  background: #ffffff;
  overflow: hidden;
}

.faq-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.faq-card-header {
  border: none;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.faq-card-header h3 {
  color: white;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-card-header i {
  margin-right: 0.5rem;
}

/* Gradient backgrounds for different sections */
.faq-header-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.faq-header-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.faq-header-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.faq-header-info {
  background: linear-gradient(135deg, #17a2b8 0%, #6610f2 100%);
}

.faq-header-secondary {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.faq-header-dark {
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

.faq-header-blue {
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.faq-header-orange {
  background: linear-gradient(135deg, #fd7e14 0%, #ff6b6b 100%);
}

.faq-header-green {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.faq-card-body {
  padding: 2.5rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #2d3748;
}

/* Enhanced readability for FAQ content */
.faq-card-body p {
  margin-bottom: 1.5rem;
  color: #4a5568;
  font-size: 1.05rem;
}

.faq-card-body p:first-child {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.faq-card-body ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.faq-card-body li {
  margin-bottom: 0.75rem;
  color: #4a5568;
}

.faq-card-body h4 {
  color: #2d3748;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.faq-card-body strong {
  color: #2d3748;
  font-weight: 600;
}

/* Simplified alert boxes */
.faq-card-body .alert {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 8px;
}

/* Contact CTA */
.faq-contact-cta {
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%), 
              url('/static/images/banner2.webp') no-repeat center center;
  background-size: cover;
  background-position: center;
  color: white;
  margin-top: 4rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.faq-contact-body {
  padding: 3rem;
  text-align: center;
}

.faq-contact-body h2 {
  margin-bottom: 1.5rem;
  color: white;
  font-size: 2.2rem;
  font-weight: 600;
}

.faq-contact-body p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  color: white;
}

/* Contact CTA Button Layout */
.faq-contact-body .row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.faq-contact-body .col-md-4 {
  flex: 0 1 auto;
  max-width: 250px;
}

.faq-contact-body .btn {
  white-space: nowrap;
  min-width: 200px;
}

/* Preserve existing Bootstrap grid without conflicts */
.faq-card-body .row {
  margin: 1rem -15px;
}

.faq-card-body .col-md-6 {
  padding: 0 15px;
}

/* Button styling within FAQ cards */
.faq-card-body .btn {
  margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .faq-hero {
    padding: 4rem 0 !important;
  }
  
  .faq-hero h1 {
    font-size: 2.5rem !important;
  }
  
  .faq-hero h2 {
    font-size: 1.2rem !important;
  }
  
  .faq-hero-content {
    gap: 2rem !important;
  }
  
  .faq-hero-text {
    min-width: 300px !important;
  }
  
  .faq-hero-image {
    min-width: 250px !important;
    max-width: 350px !important;
  }
  
  .faq-question-graphic {
    width: 200px !important;
    height: 200px !important;
  }
  
  .faq-question-graphic i {
    font-size: 5rem !important;
  }
  
  .faq-question-text {
    font-size: 1.5rem !important;
  }
  
  .faq-content {
    padding: 4rem 0;
  }
  
  .faq-section-title {
    font-size: 1.8rem;
  }
  
  .faq-card-header h3 {
    font-size: 1.1rem;
  }
  
  .faq-contact-body {
    padding: 2rem;
  }
  
  .faq-contact-body .row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .faq-contact-body .col-md-4 {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .faq-hero-text {
    min-width: 250px !important;
  }
  
  .faq-hero-image {
    min-width: 200px !important;
    max-width: 280px !important;
  }
  
  .faq-question-graphic {
    width: 150px !important;
    height: 150px !important;
  }
  
  .faq-question-graphic i {
    font-size: 3.5rem !important;
  }
  
  .faq-question-text {
    font-size: 1.2rem !important;
  }
  
  .faq-content {
    padding: 3rem 0;
  }
}

/* Accessibility improvements */
.faq-card-header:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Animation for smooth interactions */
.faq-card-body {
  transition: padding 0.3s ease;
}

.faq-item:hover .faq-card-body {
  padding: 2.2rem 2rem;
}

/* Bootstrap-like Grid System for FAQ */
.faq-content .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.faq-content .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 15px;
  padding-right: 15px;
}

.faq-content .col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Bootstrap-like Card System for FAQ */
.faq-content .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
  margin-bottom: 1rem;
}

.faq-content .card-header {
  padding: 1rem 1rem;
  margin-bottom: 0;
  background-color: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.125);
  border-radius: 0.375rem 0.375rem 0 0;
}

.faq-content .card-body {
  flex: 1 1 auto;
  padding: 1rem 1rem;
}

/* Mobile Responsiveness for Grid */
@media (max-width: 768px) {
  .faq-content .col-md-6,
  .faq-content .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  .faq-content .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .faq-content .col-md-6,
  .faq-content .col-md-4 {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Additional Bootstrap-like utility classes */
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.justify-content-center {
  justify-content: center !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.w-100 {
  width: 100% !important;
}

/* Bootstrap-like Button System for FAQ Contact Section */
.faq-contact-body .btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.faq-contact-body .btn:hover {
  text-decoration: none;
  transform: none;
}

.faq-contact-body .btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: 0.5rem;
}

.faq-contact-body .btn-light {
  color: #000;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.faq-contact-body .btn-light:hover {
  color: #000;
  background-color: #d3d4d5;
  border-color: #c6c7c8;
}

.faq-contact-body .btn-outline-light {
  color: #f8f9fa;
  border-color: #f8f9fa;
  background-color: transparent;
}

.faq-contact-body .btn-outline-light:hover {
  color: #000;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}
