/* --- General Styles --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

header {
  background: #1a73e8;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  color: #fff;
  background-image: url('https://digi-makret.github.io/Digi-Market.github.io/hero-background.png'); /* root folder path */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 8px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* overlay to make text readable */
  z-index: 0;
  border-radius: 8px;
}

.hero h2,
.hero p,
.hero .btn {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #ff9900;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.hero .btn:hover {
  background: #cc7a00;
}

/* --- Features Section --- */
.features-section {
  padding: 2.5rem 2rem;
  text-align: center;
  background: #f7f7f7;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.feature {
  flex: 0 0 250px;
  background: #e8f0fe;
  padding: 1rem;
  border-radius: 8px;
}

/* --- Featured Posts --- */
.featured-posts {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.featured-posts article {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.featured-posts h3 a {
  color: #1a73e8;
  text-decoration: none;
}

.featured-posts .btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1a73e8;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.featured-posts .btn:hover {
  background: #155ab6;
}

/* --- Testimonials --- */
.testimonials {
  background: #1a73e8;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.testimonials .testimonial {
  max-width: 600px;
  margin: 1rem auto;
  font-style: italic;
}

.testimonials span {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* --- Bottom CTA --- */
.bottom-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: #ff9900;
  color: #fff;
}

.bottom-cta .btn {
  background: #fff;
  color: #ff9900;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
}

.bottom-cta .btn:hover {
  background: #e6e6e6;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1rem;
  background: #ddd;
}

/* --- Email Capture Section --- */
.email-capture {
  text-align: center;
  padding: 3rem 2rem;
  background: #f7f7f7;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 700px;
}

.email-capture h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.email-capture p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.email-capture iframe {
  border: none;
  width: 100%;
  max-width: 640px;
  height: 800px;
  border-radius: 8px;
}
