/* ===============================
   Base Styles
=============================== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fffef9;
  color: #333;
}

/* ===============================
   Article Header
=============================== */
.article-header {
  background: linear-gradient(135deg, #007a33, #f9f871);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.article-header h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

.article-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ===============================
   Article Layout
=============================== */
.article-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: 50px auto;
  padding: 0 20px;
  max-width: 1200px;
}

.article-content {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-content h2 {
  color: #007a33;
  font-weight: 700;
  margin-top: 2rem;
}

.article-content p {
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===============================
   Share Section
=============================== */
.share-section {
  text-align: center;
  margin-top: 40px;
}

.share-section button {
  margin: 0 10px;
}

/* ===============================
   Ads
=============================== */
.sidebar-ads {
  width: 300px;
  display: none;
}

@media (min-width: 992px) {
  .sidebar-ads {
    display: block;
    position: sticky;
    top: 100px;
  }
}

.ad-container {
  background: #fffef9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mobile-ad {
  display: none;
  margin: 20px 0;
  text-align: center;
}

@media (max-width: 768px) {
  .mobile-ad {
    display: block;
  }
}

/* ===============================
   Footer
=============================== */
footer {
  background: #007a33;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* ===============================
   Responsive Design
=============================== */

/* Tablets & below (≤ 991px) */
@media (max-width: 991px) {
  /* Layout stacks vertically */
  .article-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    margin: 30px auto;
  }

  /* Hide sidebar on mobile/tablet */
  .sidebar-ads {
    display: none !important;
  }

  /* Adjust content spacing */
  .article-content {
    width: 100%;
    padding: 20px;
    font-size: 0.95rem;
  }

  /* Header adjustments */
  .article-header {
    padding: 60px 15px;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-header p {
    font-size: 1rem;
  }

  /* Share buttons responsive grid */
  .share-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .share-section button {
    flex: 1 1 30%;
    min-width: 100px;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

  /* Mobile ad containers */
  .mobile-ad .ad-container {
    width: 100%;
  }

  /* Footer spacing */
  footer {
    font-size: 0.9rem;
    padding: 15px 10px;
  }

  footer a {
    display: inline-block;
    margin: 0.3rem 0.5rem;
  }
}

/* Small phones (≤ 576px) */
@media (max-width: 576px) {
  .article-header {
    padding: 50px 10px;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-header p {
    font-size: 0.95rem;
  }

  .article-content {
    font-size: 0.9rem;
    padding: 15px;
  }

  .mobile-ad small {
    font-size: 0.75rem;
  }

  .share-section button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  footer {
    font-size: 0.8rem;
  }
}
