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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

main {
  padding: 2rem;
}
main section {
  margin-bottom: 6rem;
}

/* Hero container with centered search */
.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  background-color: #e8f0fe;
  padding: 2rem;
}

/* Search bar wrapper */
.search-container {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  max-width: 600px;
  width: 100%;
  gap: 0.5rem;
}

/* Input field */
.search-container input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 40px;
}

/* Search button */
.search-button {
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #004c99;
}


/*Business listing section*/
.business-listing {
  padding: 32px 64px;
  background-color: #fafafa;
}

.business-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}

.business-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 300px;
  transition: transform 0.2s ease;
}

.business-card:hover {
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.business-info {
  padding: 16px;
}

.business-name-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.business-name-rating h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #111;
}

.rating {
  font-size: 1rem;
  color: #f39c12;
}


/* Category Section */
.category-list {
  background: white;
  border-radius: 8px;
  padding: 4rem 2rem;
  text-align: center;
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

.category-text {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 3rem;
}

/* Horizontal row with centered layout */
.category-layout {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Allow wrap on small screens */
}


.category-card {
  position: relative;
  width: 300px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-card:hover {
  transform: translateY(-6px);
}

/* Image and hover fade */
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.category-card:hover img {
  opacity: 0.3;
}

/* Overlay text */
.category-name,
.category-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  text-align: center;
  width: 100%;
  padding: 0 1rem;
}

.category-name {
  top: 40%;
  font-size: 1.5rem;
  font-weight: bold;
}

.category-info {
  top: 60%;
  font-size: 1rem;
}

/*Arrow point up*/
.arrow {
  display: flex;
  flex: 1;
  height: 40px;
  justify-content: end;
  margin-right: 10px;
}

.arrow-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  cursor: pointer;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 0 35px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in, box-shadow 0.3s ease-in;
}

.arrow-container:hover {
  transform: translateY(-5px) scale(1.05);
}

.arrow-container:active {
  transform: translateY(-2px) scale(0.98);
}

.arrow-container:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.image-anchor {
  display: inline-flex;
  justify-content: center;
}

.arrow-image {
  height: 60%;
  width: 60%;
}

/* Footer section */
footer {
  background: #fff;
  color: #222;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}