/* =======================================
   🌍 Base (Mobile First)
   Default: Mobile Layout
======================================= */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fffef9;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ===============================
   Article Header
=============================== */
.article-header {
  background: linear-gradient(135deg, #007a33, #f9f871);
  color: white;
  padding: 60px 15px;
  text-align: center;
}

.article-header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.article-header p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* ===============================
   Article Wrapper (Mobile Layout)
=============================== */
.article-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 20px;
  margin: 20px auto;
  max-width: 100%;
  padding: 0 15px;
}

/* ===============================
   Main Article Content
=============================== */
.article-content,
.content-section {
  flex: 1;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-content h2 {
  color: #007a33;
  font-weight: 700;
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.article-content p {
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===============================
   Ads (Mobile Default)
=============================== */
.ad-container {
  background: #fffef9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.mobile-ad {
  display: block;
  margin: 20px 0;
  text-align: center;
}

.sidebar-ads {
  display: none;
  width: 100%;
}

/* ===============================
   Share Section
=============================== */
.share-section {
  text-align: center;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.share-section button {
  flex: 1 1 30%;
  min-width: 100px;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  margin: 0.2rem;
}

/* ===============================
   Footer
=============================== */
footer {
  background: #007a33;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  margin-top: 40px;
}

footer a {
  color: white;
  display: inline-block;
  margin: 0.3rem 0.5rem;
  text-decoration: none;
}

/* =======================================
   📱 Tablet View (≥ 768px)
======================================= */
@media (min-width: 768px) {
  .article-header {
    padding: 70px 20px;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-header p {
    font-size: 1.05rem;
  }

  .article-wrapper {
    padding: 0 20px;
    gap: 25px;
  }

  .article-content {
    font-size: 1rem;
  }

  .ad-container {
    margin: 25px 0;
  }

  .mobile-ad {
    display: block;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* =======================================
   💻 Desktop View (≥ 992px)
======================================= */
@media (min-width: 992px) {
  /* Two-column layout: article + sidebar */
  .article-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
  }

  .article-content {
    flex: 1;
    padding: 25px 30px;
    font-size: 1.05rem;
  }

  /* Sidebar ads visible on desktop */
  .sidebar-ads {
    display: block;
    width: 300px;
    position: sticky;
    top: 100px;
  }

  /* Hide inline mobile ads on desktop */
  .mobile-ad {
    display: none;
  }

  .article-header h1 {
    font-size: 2.5rem;
  }

  .article-header p {
    font-size: 1.1rem;
  }

  .share-section {
    text-align: center;
    margin-top: 40px;
  }

  .share-section button {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }

  footer {
    font-size: 0.9rem;
    padding: 25px 0;
  }
}

/* =======================================
   🖥️ Large Desktop (≥ 1200px)
======================================= */
@media (min-width: 1200px) {
  .article-wrapper {
    max-width: 1300px;
  }

  .article-content {
    font-size: 1.1rem;
  }
}
