/* Homepage Specific Styles */

.hero-section {
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-logo {
  max-width: 500px;
  margin: 0 auto;
}

.hero-logo img {
  max-width: 100%;
  height: auto;
}

.hero-section .lead {
  font-size: 1.5rem;
  color: #374151;
}

:root.dark .hero-section .lead {
  color: #d1d5db;
}

.hero-section .text-muted {
  font-size: 1.1rem;
}

/* Mandate Alert */
.mandate-alert {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

:root.dark .mandate-alert {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  border-color: #3b82f6;
}

.mandate-alert .alert-heading {
  color: #1e40af;
  font-weight: 700;
}

:root.dark .mandate-alert .alert-heading {
  color: #93c5fd;
}

.mandate-alert p {
  color: #1f2937;
  margin-bottom: 0;
}

:root.dark .mandate-alert p {
  color: #e5e7eb;
}

/* Tools Grid */
.tools-grid {
  margin: 3rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
}

:root.dark .section-title {
  color: #e5e7eb;
}

.tool-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

:root.dark .tool-card {
  background: #1f2937;
  border-color: #374151;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #2563eb;
}

:root.dark .tool-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.tool-card-hot {
  border-color: #dc2626;
}

:root.dark .tool-card-hot {
  border-color: #ef4444;
}

.tool-card-hot:hover {
  border-color: #b91c1c;
}

:root.dark .tool-card-hot:hover {
  border-color: #dc2626;
}

.hot-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
  animation: pulse-hot 2s ease-in-out infinite;
}

@keyframes pulse-hot {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6);
  }
}

.tool-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #2563eb;
}

:root.dark .tool-icon {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  color: #60a5fa;
}

.tool-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

:root.dark .tool-title {
  color: #e5e7eb;
}

.tool-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

:root.dark .tool-description {
  color: #9ca3af;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tool-features .badge {
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e5e7eb;
}

:root.dark .tool-features .badge {
  background: #374151 !important;
  color: #d1d5db !important;
  border-color: #4b5563;
}

/* Features Section */
.features-section {
  padding: 3rem 0;
  border-top: 1px solid #e5e7eb;
}

:root.dark .features-section {
  border-color: #374151;
}

.features-section .text-muted {
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-logo {
    max-width: 300px;
  }

  .hero-section .lead {
    font-size: 1.2rem;
  }

  .mandate-alert {
    text-align: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .tool-title {
    font-size: 1.25rem;
  }
}
/* Features grid - keeps items on one line and centered */
.features-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.features-section .feature-item {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.features-section .feature-icon {
  font-size: 3rem;
  line-height: 1;
}

.features-section h4 {
  white-space: nowrap;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

:root.dark .features-section h4 {
  color: #e5e7eb;
}

.features-section p {
  max-width: 280px;
  margin: 0 auto;
}

/* Stack features on mobile */
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .features-section .feature-item {
    flex: 1 1 auto;
  }
}

/* new hero */
.hero-wrapper {
  min-height: 80vh; /* Adjust height as needed */
  background-image: 
    /* This linear gradient adds a slight dark overlay on the left to ensure text readability */
    linear-gradient(to right, rgba(2, 22, 53, 0.8) 20%, rgba(2, 22, 53, 0) 60%),
    url('/assets/herobg.jpg'); 
  background-size: cover;
  background-position: center right; /* Keeps the map graphic visible on smaller screens */
  background-repeat: no-repeat;
  color: #ffffff;
}

.hero-logo img {
  max-width: 250px;
  height: auto;
}

/* Ensure text-muted is readable against the dark background */
.text-light-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 991px) {
  .hero-wrapper {
    background-position: 75% center; /* Adjusts focal point for tablets */
    text-align: center;
  }
  .hero-section {
    text-align: center !important;
    background: rgba(2, 22, 53, 0.6); /* Adds background for better mobile reading */
    padding: 2rem;
    border-radius: 1rem;
  }
}