/* ============================================================
   JOURNAL / BLOG & ARTICLE DETAIL PAGE — STYLES
   Extends the main site design system from ../style.css
   ============================================================ */

/* ----------------------------------------------------
   1. REUSED HERO BANNER OVERRIDES
   ---------------------------------------------------- */
.projects-page-hero {
  position: relative;
  padding: 140px 0 60px;
  background-color: var(--primary-dark);
  overflow: hidden;
  text-align: center;
}

.projects-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/tree.webp') center/cover no-repeat fixed;
  opacity: 0.65;
  z-index: 1;
}

.projects-page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(8, 75, 23, 0.3) 0%,
    rgba(8, 75, 23, 0.45) 100%
  );
  z-index: 2;
}

.projects-hero-content {
  position: relative;
  z-index: 3;
}

.projects-hero-content .section-title {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 2.6rem;
}

.projects-hero-content .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------------------------------------
   2. FEATURED POST SECTION
   ---------------------------------------------------- */
.featured-post-section {
  background-color: #F4F6F4;
  padding: 80px 0 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(8, 75, 23, 0.04);
}

.featured-img-wrapper {
  overflow: hidden;
  min-height: 420px;
  position: relative;
  background-color: #e2ede5;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-grid:hover .featured-img {
  transform: scale(1.02);
}

.featured-content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.featured-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ff9f1c;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.featured-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid rgba(8, 75, 23, 0.06);
  padding-top: 24px;
}

/* Author block inside featured */
.featured-content .blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-content .blog-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-accent);
}

.featured-content .author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-content .blog-author-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.featured-content .blog-publish-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.featured-read-btn {
  padding: 10px 24px;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
}

/* ----------------------------------------------------
   3. JOURNAL LISTING & FILTER SECTION
   ---------------------------------------------------- */
.journal-listing-section {
  background-color: #F4F6F4;
  padding: 40px 0 80px;
}

.journal-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid #d0d8d0;
  background-color: transparent;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--primary-accent);
  background-color: rgba(74, 155, 95, 0.05);
  color: var(--primary-dark);
}

.filter-btn.active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
}

/* Custom layout overrides for blog cards in a grid on this page */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}



/* ----------------------------------------------------
   4. PAGINATION CONTROLS
   ---------------------------------------------------- */
.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.pagination-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #d0d8d0;
  background-color: #ffffff;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary-accent);
  color: var(--primary-dark);
  background-color: rgba(74, 155, 95, 0.05);
}

.pagination-btn.active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----------------------------------------------------
   5. NEWSLETTER SECTION
   ---------------------------------------------------- */
.newsletter-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.newsletter-box {
  max-width: 800px;
  margin: 0 auto;
  background-color: #F4F6F4;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(8, 75, 23, 0.04);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.newsletter-icon {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1;
}

.newsletter-title {
  font-size: 1.6rem;
  font-weight: 750;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.newsletter-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 30px;
}

.newsletter-form-group {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-input {
  flex-grow: 1;
  border: 1.5px solid #d0d8d0;
  background-color: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.newsletter-input:focus {
  background-color: #ffffff;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(74, 155, 95, 0.15);
  color: var(--text-dark);
}

.btn-subscribe {
  padding: 14px 28px;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Success notification */
.newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--accent-light);
  border: 1px solid rgba(74, 155, 95, 0.3);
  color: var(--primary-dark);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-weight: 500;
  font-size: 0.92rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  display: none;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.4s ease;
}

.newsletter-success.visible {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------
   6. ARTICLE DETAIL PAGE STYLES
   ---------------------------------------------------- */
.projects-page-hero .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.projects-page-hero .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.projects-page-hero .breadcrumb-nav a:hover {
  color: var(--primary-accent);
}

.projects-page-hero .breadcrumb-sep {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
}

.projects-page-hero .breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.projects-page-hero .author-name-meta {
  color: #ffffff;
}

.projects-page-hero .publish-date-meta {
  color: rgba(255, 255, 255, 0.7);
}

.donation-sidebar-widget {
  background-color: rgba(74, 155, 95, 0.08) !important;
  border: 1.5px solid rgba(74, 155, 95, 0.2) !important;
}

.donation-sidebar-widget .widget-title {
  color: var(--text-dark) !important;
  border-bottom-color: rgba(74, 155, 95, 0.18) !important;
}

.article-category-wrap {
  margin-bottom: 16px;
}

.article-title-main {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 900px;
}

.article-author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-author-meta .blog-author-avatar {
  width: 46px;
  height: 46px;
}

.author-details-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.publish-date-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Detail Layout */
.article-detail-section {
  background-color: #ffffff;
  padding: 60px 0 80px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.article-featured-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  background-color: #e2ede5;
}

.article-cover-img {
  width: 100%;
  height: auto;
  display: block;
}

.article-body-text {
  color: var(--text-dark);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.article-body-text p {
  margin-bottom: 24px;
}

.article-body-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 44px 0 20px;
  line-height: 1.3;
}

.article-quote-box {
  background-color: #F4F6F4;
  border-left: 4px solid var(--primary-accent);
  padding: 30px 36px 30px 48px;
  border-radius: var(--radius-md);
  margin: 36px 0;
  position: relative;
}

.article-quote-box i {
  font-size: 2.2rem;
  color: rgba(74, 155, 95, 0.15);
  position: absolute;
  top: 20px;
  left: 15px;
  line-height: 1;
}

.quote-text {
  font-family: var(--font-main);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.quote-author {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Actions & Share */
.article-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(8, 75, 23, 0.08);
  flex-wrap: wrap;
  gap: 20px;
}

.back-to-blog-btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.article-share-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share-links span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d0d8d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.share-icon:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  background-color: rgba(74, 155, 95, 0.05);
}

/* Sidebar widgets */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-widget {
  background-color: #F4F6F4;
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid rgba(8, 75, 23, 0.04);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-bottom: 1.5px solid rgba(8, 75, 23, 0.1);
  padding-bottom: 10px;
}

.author-widget-body {
  text-align: center;
}

.author-widget-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-accent);
  margin-bottom: 16px;
}

.author-widget-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.author-widget-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.author-widget-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.author-widget-socials a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.author-widget-socials a:hover {
  color: var(--primary-accent);
}

/* Recent Posts widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.recent-post-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: #e2ede5;
}

.recent-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-post-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}

.recent-post-item:hover .recent-post-title {
  color: var(--primary-accent);
}

.recent-post-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Newsletter callout sidebar */
.newsletter-callout-widget p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.sidebar-newsletter-btn {
  text-decoration: none;
}

/* ----------------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-img-wrapper {
    min-height: 320px;
  }

  .featured-content {
    padding: 40px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .article-detail-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .article-title-main {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .projects-page-hero {
    padding: 120px 0 50px;
  }

  .projects-hero-content .section-title {
    font-size: 2.1rem;
  }

  .featured-post-section {
    padding: 40px 0 30px;
  }

  .featured-content {
    padding: 30px 20px;
  }

  .featured-title {
    font-size: 1.55rem;
  }

  .featured-meta {
    padding-top: 18px;
    gap: 15px;
  }

  .journal-listing-section {
    padding: 30px 0 60px;
  }

  .journal-filter-bar {
    gap: 8px;
    margin-bottom: 30px;
  }

  .filter-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 450px;
    margin: 0 auto 40px;
  }

  .newsletter-section {
    padding: 60px 0;
  }

  .newsletter-box {
    padding: 30px 20px;
  }

  .newsletter-form-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-subscribe {
    width: 100%;
  }

  .article-hero-section {
    padding: 120px 0 40px;
  }

  .article-title-main {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }

  .breadcrumb-current {
    max-width: 200px;
  }

  .article-detail-section {
    padding: 40px 0 60px;
  }

  .article-body-text {
    font-size: 1rem;
  }

  .article-lead {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

  .article-body-text h2 {
    font-size: 1.4rem;
    margin: 30px 0 16px;
  }

  .article-quote-box {
    padding: 24px 20px 24px 36px;
    margin: 24px 0;
  }

  .quote-text {
    font-size: 1.05rem;
  }
}
