/* ===== General Page Structure ===== */
.howto-hero {
  background-color: #f8f9fa;
  padding: 4rem 0;
  border-bottom: 1px solid #dee2e6;
}

.howto-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.howto-hero p {
  font-size: 1.125rem;
  color: #6c757d;
}

/* ===== Search Bar Styles ===== */
.search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  background-color: #ffffff;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
  border-radius: 0.5rem;
  overflow: hidden;
}

.search-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
}

.search-form input:focus {
  outline: none;
}

.search-form input::placeholder {
  color: #6c757d;
  font-style: italic;
}

.search-form button {
  background-color: #0057B8;
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.search-form button:hover {
  background-color: black;
}

.search-form button i {
  margin-right: 0.5rem;
}



.howto-categories {
  background-color: #f9fafb;
}

.howto-categories .section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  outline: none;
  border-color: #3b82f6;
}

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.category-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #4b5563;
}


.guide-list {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
}

.guide-list h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.guide-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.guide-card.alt {
  background-color: #eef5ff;
}

.guide-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.guide-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.guide-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.guide-card h3 a:hover {
  text-decoration: underline;
}

.guide-card p {
  font-size: 0.95rem;
  color: #555;
  margin-top: auto;
}




.guide-finder {
  background-color: #f9fafc;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-finder h2 {
  font-size: 1.75rem;
}

.guide-form select,
.guide-form button {
  font-size: 1rem;
}

.find-guide {
  background-color: #0057B8;
  color: white;
}

.find-guide:hover {
  color: #0057b8;
  border: 1px solid #0057B8;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 576px) {
  .howto-hero h1 {
    font-size: 2rem;
  }

  .search-form input {
    padding: 0.75rem 1rem;
  }

  .search-form button {
    padding: 0 1rem;
    font-size: 0.95rem;
  }

  .guide-card-title {
    font-size: 1rem;
  }
}
