/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Header & Nav */
header {
  text-align: center;
  padding: 20px;
  background: #2b5c2b;
  color: #fff;
}

.top-bar h1 {
  margin: 0;
  font-size: 2em;
}

.top-bar p {
  margin: 5px 0 20px;
  font-size: 1.1em;
  color: #d0f0d0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #388e3c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #2b5c2b;
}

/* Sections */
section {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  border-radius: 8px;
}

h2 {
  color: #2b5c2b;
}

/* Product Grid */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 1rem;
  flex: 1 1 45%;
  text-align: center;
}

.product img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 0.5rem;
}

.buy-btn {
  background: #388e3c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.buy-btn:hover {
  background: #2b5c2b;
}

/* Ads */
#ad-placeholder,
.ad-placeholder {
  position: relative;
  text-align: center;
  padding: 0;
  border: none;
  background: none;
  margin-bottom: 2rem;
}

.sponsored-label {
  font-size: 0.8rem;
  color: #555;
  opacity: 0.5;
  position: absolute;
  top: 4px;
  left: 8px;
  margin: 0;
  z-index: 10;
}

/* Articles */
article {
  margin-bottom: 1.5rem;
}

/* Newsletter Form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

input[type="email"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#featured-img {
  max-width: 300px;   /* max width */
  width: 100%;        /* responsive width */
  height: auto;       /* keep aspect ratio */
  display: block;     /* removes inline gap */
  margin: 0 auto;     /* center horizontally if needed */
  border-radius: 8px; /* optional: rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* optional: subtle shadow */
}

button[type="submit"] {
  background: #2b5c2b;
  color: white;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
footer {
  background: #2b5c2b;
  color: white;
  text-align: center;
  padding: 1rem;
}

.disclaimer {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

    #ads {
  background: none;
  padding: 0;
  margin-bottom: 2rem;
  border-radius: 0;
}

/* Lists */
ul {
  list-style-type: disc;
  margin-left: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .products {
    flex-direction: column;
  }
}
