/* ============================================================
   Blog module styles — extends css/styles.css, reuses the same
   --dark-green / --light-green / --cream variables and the square-
   corner, Playfair Display + Lato look of the rest of the site.
   ============================================================ */

.blog-section {
  padding: 90px 0;
}

/* ── Sidebar widgets (categories / recent posts / CTA) ── */
.blog-sidebar-card {
  background-color: var(--white);
  padding: 28px 26px;
  margin-bottom: 30px;
}

.blog-sidebar-card h5 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-green);
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}

.category-pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-pill-list li {
  margin-bottom: 8px;
}

.category-pill-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background-color: var(--cream-light);
  color: #555;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}

.category-pill-list a .count {
  font-size: 0.74rem;
  opacity: 0.75;
}

.category-pill-list a:hover {
  background-color: var(--light-green);
  color: var(--white);
}

.category-pill-list li.active a {
  background-color: var(--dark-green);
  color: var(--white);
}

.recent-post-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  margin-bottom: 18px;
}

.recent-post-item:last-child {
  margin-bottom: 0;
}

.recent-post-item img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-item .recent-post-title {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--dark-green);
  line-height: 1.35;
  margin-bottom: 4px;
  display: block;
}

.recent-post-item:hover .recent-post-title {
  color: var(--light-green);
}

.recent-post-item .recent-post-date {
  font-size: 0.74rem;
  color: #999;
}

.sidebar-cta {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 36px 26px;
  text-align: center;
}

.sidebar-cta h5 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border: none;
  padding-bottom: 0;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Post cards (listing grid) ── */
.blog-card {
  background-color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--light-green);
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 14px;
  text-decoration: none;
}

.blog-card-category:hover {
  background-color: var(--dark-green);
  color: var(--white);
}

.blog-card-body {
  padding: 26px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 12px;
}

.blog-card-meta i {
  color: var(--light-green);
  margin-right: 4px;
}

.blog-card-meta span + span {
  margin-left: 14px;
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  color: var(--dark-green);
  line-height: 1.4;
  margin-bottom: 14px;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--light-green);
}

.blog-card-excerpt {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  color: var(--light-green);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}

.blog-read-more i {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.25s;
}

.blog-read-more:hover {
  color: var(--dark-green);
}

.blog-read-more:hover i {
  transform: translateX(4px);
}

.blog-empty {
  text-align: center;
  padding: 70px 20px;
  color: #777;
}

.blog-empty i {
  font-size: 2.4rem;
  color: var(--light-green);
  opacity: 0.5;
  margin-bottom: 16px;
  display: block;
}

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid #e0d8c8;
  color: var(--dark-green);
  text-decoration: none;
  font-size: 0.88rem;
  transition: 0.25s;
}

.blog-pagination a:hover {
  background-color: var(--light-green);
  color: var(--white);
  border-color: var(--light-green);
}

.blog-pagination li.active span {
  background-color: var(--dark-green);
  color: var(--white);
  border-color: var(--dark-green);
}

.blog-pagination li.disabled span {
  opacity: 0.35;
}

/* ── Article (blog-detail.php) ── */
.breadcrumb-eott {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-eott a {
  color: var(--cream);
  text-decoration: none;
}

.breadcrumb-eott a:hover {
  text-decoration: underline;
}

.breadcrumb-eott .sep {
  margin: 0 8px;
  opacity: 0.6;
}

.article-meta-bar {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  margin-top: 16px;
}

.article-meta-bar i {
  margin-right: 6px;
  color: var(--cream);
}

.article-tag-badge {
  display: inline-block;
  background-color: var(--cream);
  color: var(--dark-green);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 16px;
  margin-bottom: 18px;
  text-decoration: none;
}

.article-tag-badge:hover {
  background-color: var(--light-green);
  color: var(--white);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.95;
  color: #444;
}

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

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-green);
  margin: 38px 0 16px;
}

.article-body h3 {
  font-size: 1.35rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 22px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.85;
}

.article-body a {
  color: var(--light-green);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--dark-green);
}

.article-body blockquote {
  border-left: 3px solid var(--light-green);
  background-color: var(--cream-light);
  padding: 16px 24px;
  margin: 28px 0;
  font-style: italic;
  color: #555;
}

.article-body img {
  width: 100%;
  height: auto;
  margin: 24px 0;
}

.article-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.share-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream-light);
  color: var(--dark-green);
  margin-right: 8px;
  text-decoration: none;
  transition: 0.25s;
}

.share-links a:hover {
  background-color: var(--light-green);
  color: var(--white);
}

.related-section {
  background-color: var(--cream-light);
  padding: 80px 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .blog-section {
    padding: 60px 0;
  }
  .related-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .blog-card-img {
    height: 200px;
  }
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .blog-sidebar-card,
  .sidebar-cta {
    padding: 24px 20px;
  }
  .blog-card-body {
    padding: 22px 18px;
  }
}

/* ── Full-width "book a safari" CTA banner (between an article's body and
   its related-articles section) — more prominent than the sidebar CTA,
   which is easy to miss on mobile where the sidebar drops below the fold. */
.blog-cta-banner {
  background-color: var(--dark-green);
  padding: 64px 0;
  text-align: center;
}

.blog-cta-banner h2 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 10px 0 16px;
}

.blog-cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .blog-cta-banner {
    padding: 46px 0;
  }
  .blog-cta-banner h2 {
    font-size: 1.5rem;
  }
}

/* ── "From the Blog" section on the home page (index.php) ── */
.home-blog-section {
  padding: 90px 0;
  background-color: var(--cream-light);
}
