.top-banner img {
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}


/* Top banner look (homepage + browse) */
.top-banner {
  text-align: center;
  margin: 20px 0;
}
.top-banner img {
  width: 50%;
  max-width: 400px; /* <= controls how "big" it looks on desktop */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  display: inline-block;
}


.location-form {
  max-width: 400px;   /* form won’t stretch beyond 400px */
  margin: 0 auto 20px auto;  /* center horizontally + spacing below */
  text-align: center; /* optional: center label/select text */
  padding: 10px;
  background: #f9f9f9;  /* optional: subtle background */
  border: 1px solid #ddd;
  border-radius: 8px;
}

.location-form select {
  width: 100%;  /* makes dropdown fill the form width */
  padding: 8px;
  font-size: 1em;
  margin-top: 5px;
}



.ad-column { display: flex; flex-direction: column; gap: 12px; }
.ad-box img { width: 100%; height: auto; display: block; }



body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: #333;
  background: #fff8f0;
}

.hero {
  background: url('https://images.unsplash.com/photo-1509042239860-f550ce710b93') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero-content {
  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 30px;
  border-radius: 10px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.buttons .btn {
  display: inline-block;
  background: #b87333;
  color: white;
  padding: 12px 25px;
  margin: 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn-alt {
  background: #444;
}

.how-it-works {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 30px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.step {
  max-width: 250px;
}

.featured {
  padding: 60px 20px;
  background: #f9e4d4;
  text-align: center;
}

.featured h2 {
  margin-bottom: 30px;
}

.items {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.item {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 200px;
}

.item img {
  width: 100%;
  border-radius: 5px;
}

footer {
  background: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.form-section {
  padding: 40px 20px;
  max-width: 600px;
  margin: auto;
  background: #fff8f0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-weight: bold;
}

form input[type="text"],
form textarea,
form input[type="file"] {
  padding: 10px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  padding: 12px;
  background-color: #b87333;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

form button:hover {
  background-color: #8b5e2e;
}

.browse-section {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

.item-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.item-card {
  background: #fefefe;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 250px;
  padding: 15px;
  text-align: left;
}

.item-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.item-card h2 {
  font-size: 1.2em;
  margin: 0 0 5px;
}

.item-card p {
  font-size: 0.95em;
  margin: 4px 0;
}

.navbar {
  background: #3e2723;
  padding: 15px 20px;
  color: white;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: bold;
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

.form-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
}

.form-card {
  background: #f9f3ef;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.form-card label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-card button {
  margin-top: 20px;
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.success {
  color: green;
  font-weight: bold;
}

.error {
  color: darkred;
  font-weight: bold;
}

.admin-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.admin-table th {
  background-color: #f0e6e2;
}

.admin-table tr:nth-child(even) {
  background-color: #f9f3ef;
}

.admin-table a {
  color: #c62828;
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

/* ✅ Ad layout for post and suggest pages */
.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

.ad-left,
.ad-right {
  width: 200px;
  flex-shrink: 0;
}

.ad-box {
  background: #f8f8f8;
  border: 1px solid #ccc;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-content {
  flex: 1;
  max-width: 600px;
}


/* For admin navbar links */
.navbar a,
.nav-links a {
  color: white !important;
}

/* If the Terms link is in a footer */
footer a {
  color: white;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
  }

  .form-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .ad-left, .ad-right {
    display: none;
  }

  .form-content {
    max-width: 100%;
  }

  .hero {
    padding: 60px 10px;
  }

  .hero-content {
    padding: 20px;
  }

  .items, .item-grid {
    flex-direction: column;
    align-items: center;
  }
}


/* Force banner sizing (place at end of style.css) */
.top-banner img {
  width: auto !important;       /* stop any global 100% rule */
  max-width: 400px !important;  /* change to the size you want */
  height: auto;
  display: block;
  margin: 0 auto;               /* center it */
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

