/* Variables CSS */
:root {
  --primary-color: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fecaca;
  --secondary-color: #1f2937;
  --text-gray: #374151;
  --text-light: #6b7280;
  --bg-gray: #f9fafb;
  --border-gray: #e5e7eb;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-gray);
  background: var(--bg-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.logo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-gray);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 145px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-title i {
  font-size: 3rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: var(--white);
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* Search Container */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 18px 60px 18px 55px;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.clear-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition);
}

.clear-search:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.search-status {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  background: var(--white);
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  border: 1px solid var(--border-gray);
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 14px;
}

.category-btn:hover {
  background: #f1f5f9;
  color: var(--text-gray);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

/* FAQ Content */
.faq-content {
  max-width: 1000px;
  margin: 0 auto;
}

.search-results {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid var(--border-gray);
}

.search-results-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 20px;
  color: var(--primary-color);
}

.search-icon-wrapper {
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ Groups */
.faq-group {
  margin-bottom: 50px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 24px;
  color: var(--secondary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 15px;
}

.group-title i {
  color: var(--primary-color);
  font-size: 28px;
}

/* FAQ Items */
.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--border-gray);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-lg);
}

.faq-question {
  width: 100%;
  padding: 25px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.question-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.question-number {
  width: 35px;
  height: 35px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 14px;
  flex-shrink: 0;
}

.question-content span {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.faq-icon {
  transition: var(--transition);
  color: var(--text-light);
  font-size: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

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

.faq-item.active .faq-answer {
  max-height: 2000px;
}

.faq-answer-content {
  padding: 0 25px 25px 75px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer-content p {
  margin-bottom: 15px;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Feature Lists */
.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--success);
  font-size: 16px;
}

/* Grids */
.beneficiary-grid,
.eligibility-grid,
.financing-grid,
.documents-grid {
  display: grid;
  gap: 20px;
  margin: 25px 0;
}

.beneficiary-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.eligibility-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.financing-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.documents-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.beneficiary-card,
.eligibility-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 25px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--border-gray);
  transition: var(--transition);
}

.beneficiary-card:hover,
.eligibility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.beneficiary-card i,
.eligibility-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.beneficiary-card h4,
.eligibility-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.beneficiary-card p,
.eligibility-card p {
  color: var(--text-light);
  font-size: 14px;
}

/* Financing Cards */
.financing-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
}

.financing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
}

.card-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-badge.urban {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: var(--white);
}

.card-badge.rural {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: var(--white);
}

.card-badge.free {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
}

.card-content p {
  margin-bottom: 10px;
  color: var(--text-light);
}

.card-content strong {
  color: var(--secondary-color);
}

/* Banks Grid */
.banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.bank-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  color: var(--secondary-color);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
}

.bank-item:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

/* Document Categories */
.document-category {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-gray);
}

.document-category h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 600;
}

.document-category h4 i {
  color: var(--primary-color);
}

.document-category ul {
  list-style: none;
}

.document-category li {
  padding: 5px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 20px;
}

.document-category li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Contact Section */
.contact-section {
  margin-top: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.contact-card h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.contact-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* Question Form Section */
.question-form-section {
  background: var(--white);
  padding: 80px 0;
}

.question-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--border-gray);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-header h3 i {
  color: var(--primary-color);
}

.form-header p {
  color: var(--text-light);
}

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

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

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
  padding: 15px;
  border: 2px solid var(--border-gray);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
  font-family: inherit;
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.footer-section p,
.footer-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
    flex-direction: column;
    gap: 15px;
  }

  .hero-title i {
    font-size: 2.5rem;
  }

  .category-filters {
    padding: 20px;
  }

  .category-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .faq-question {
    padding: 20px;
  }

  .question-number {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .question-content span {
    font-size: 15px;
  }

  .faq-answer-content {
    padding: 0 20px 20px 65px;
  }

  .group-title {
    font-size: 20px;
  }

  .question-form-container {
    margin: 0 20px;
    padding: 30px 20px;
  }

  .financing-grid,
  .beneficiary-grid,
  .eligibility-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .search-input {
    padding: 15px 50px 15px 45px;
    font-size: 14px;
  }

  .search-icon {
    left: 15px;
    font-size: 16px;
  }

  .faq-section {
    padding: 60px 0;
  }

  .category-filters {
    margin-bottom: 40px;
  }

  .faq-item {
    margin-bottom: 15px;
  }
}