/* Reset + Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: #fff;
  color: #111;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Header */
.site-header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1rem;
}

.site-logo {
  width: 100px;
  height: auto;
  margin-right: 12px;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Navigation */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.35rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Hero Banner */
.hero-banner-custom,
.page-hero {
  position: relative;
  background-image: url('../images/banners/hero-banner.png');
  background-size: cover;
  background-position: center top -400px; /* 🔽 shifts the image down by 40px */
  height: 45vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 1rem;
}

.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-banner .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 2rem;
  border-radius: 10px;
}

.page-banner .banner-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
}

.banner-subtitle {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-top: 0.5rem;
  font-family: 'Source Sans Pro', sans-serif;
}

.hero-content {
  z-index: 2;
  max-width: 900px;
  padding: 1rem;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.hero-button {
  margin-top: 0.75rem;
  background-color: #014421;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
}

.all-posts-button {
  margin: 2rem auto 4rem auto;
  text-align: center;
}

/* Intro */
.intro-blurb {
  text-align: center;
  max-width: 70%;
  margin: 0 auto 2rem auto;
  padding: 3rem 1rem 0 1rem; /* 🔼 top padding added */
}

.intro-blurb p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #222;
}

/* Featured Post */
.featured-post {
  padding: 1rem 3rem;
  text-align: center;
  max-width: 70%;
  margin: 0 auto 2rem auto;
}

.featured-post h2,
.featured-post h3 {
  margin-bottom: 1rem;
}

.featured-post p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Recent + All Posts Layout */
.centered-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.centered-section h2 {
  text-align: center;
}

.recent-posts h2 {
  text-align: center;
}


.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto; /* ✅ This is what centers the grid container */
}

@media (max-width: 992px) {
  .recent-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
}

.recent-posts-grid-all-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin: 0 auto; /* ✅ This is what centers the grid container */
}


.post-preview {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.post-preview h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #014421;
}

.post-preview h3 a {
  text-decoration: none;
  color: #014421;
}

.post-preview p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2.3rem;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}

.pagination .current {
  background: #014421;
  color: white;
  font-weight: bold;
}

.pagination .page-numbers:hover {
  background-color: #ccc;
}

/* Footer */
.site-footer {
  background-size: cover;
  background-position: center bottom; /* 👈 this anchors the boom */
  background-repeat: no-repeat;
  height: 10vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.footer-content {
  z-index: 2;
  position: relative;
}

.archive-main,
.home-main {
  max-width: 1241px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Single Post View */
.post-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.75;
  font-size: 1.1rem;
}

.featured-image img {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.post-meta {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.back-to-posts {
  margin-top: 3rem;
  text-align: center;
}

.entry-content,
.post-content {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #111;
  max-width: 750px;
  margin: 0 auto;
  padding: 0rem 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1rem 1.5rem;
  padding-left: 1rem;
}

.entry-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

/* Single.php */

.related-articles {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f7f7f7;
  border-left: 5px solid #ddd;
}

.related-articles h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
}

.related-articles-list {
  list-style: none;
  padding-left: 0;
}

.related-articles-list li {
  margin-bottom: 0.5rem;
}

.related-articles-list a {
  text-decoration: none;
  color: #006799;
}

.related-articles-list a:hover {
  text-decoration: underline;
  color: #004466;
}
