/* LAYOUT */

body {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222;
  max-width: 100%;  
  padding: 0;       
  margin: 0 auto;
}

/* Headings */
main h1, main h2, main h3, main h4, main h5, main h6 {
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}


/* Soft hierarchy */
h1 {
  font-size: 2.2rem;
  font-weight: 400;
  color: #222;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.6rem;
  font-weight: 400;
  color: #222;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #444;
}

h5, h6 {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
}

/* Content background over particles */
main {
  background: white;
  position: relative;
  z-index: 10;
  min-height: 80vh;
}

/* Particles Background */
#particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: transparent;
}

/* Content containers - no width constraints here */
.content {
  /* Outer container with no width limits */
}

.post-title {
  margin-bottom: 1rem;
}

/* SITE HEADER */
.site-header {
  text-align: center;
  padding: 3.5rem 0 1rem 0;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  text-align: centre;
  justify-content: center;
  gap: 3.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
    position: absolute;
    left: 3.5rem;  /* Distance from left edge */
    top: 50%;
    transform: translateY(-50%);
  height: 115px;
  width: auto;
}

.site-title {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 2.8rem;
  margin: 0;
  font-weight: 200;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.1em;
}

.site-title h1 {
  font-size: 3.0rem;
  margin: 0;
  font-weight: 100;
  letter-spacing: 0.1em;
}

.site-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: #666;
  font-style: italic;
  letter-spacing: 0.2em;
}

.post-date {
  display: block;
  margin-bottom: 2rem;
  font-style: italic;
}

img {
  max-width: 100%;
}

/* NAVIGATION */

/* Nav wrapper - main flex container */
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 3rem;
}

/* Search container */
.search-container {
  flex: 0 0 120px;
  margin-right: 2rem;
}

.search-container form {
  margin: 0;
}

.search-container input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Donate container */
.donate-container {
  flex: 0 0 120px;
  text-align: right;
}

.donate-btn {
  display: inline-block;
  background: transparent;
  color: #6b9270;
  border: 2px solid #6b9270;
  padding: 0.25rem 1.75rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.donate-btn:hover {
  background: rgba(107, 146, 112, 0.1);
  border-color: #2c5530;
  color: #2c5530;
  transform: translateY(-2px);
}

/* Override flex display for donate button */
.site-nav .donate-btn {
  display: inline-block;
  padding: 0.25rem 1.75rem;
  text-align: center;
}

/* Nav links */
.site-nav a {
  display: flex;
  padding-bottom: 0.5rem;
  padding: .5rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.site-nav .logo {
  font-weight: bold;
  padding-left: 0;
}

/* Main menu */
.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

/* Dropdown Menu Styles */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  display: block;
  width: 100%;
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.dropdown a:hover {
  background-color: #f8f9fa;
  color: #2c3e50;
}

.dropdown li:last-child a {
  border-bottom: none;
}

@media screen and (max-width: 48rem) {
  .site-nav,
  .main-menu {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.5rem;
    padding-left: 0;
  }
}

/* LISTS */

.post-snippet {
  margin-bottom: 1rem;
}

.post-snippet h3 {
  margin-bottom: 0.25rem;
}



/* SITEMAP STYLING */

.sitemap {
  margin: 2rem 0;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.sitemap ul {
  list-style: disc;
  padding-left: 2em;
  margin: 0 0 0.5em 0;
}

.sitemap-main {
  list-style: disc;
  padding-left: 1.2em;
}

.sitemap-sub {
  list-style: circle;
  padding-left: 1.5em;
  margin-top: 0.5em;
}

.sitemap a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

.sitemap a:hover {
  color: #3498db;
  text-decoration: underline;
}

.sitemap-sub a {
  font-weight: normal;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.post-card {
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-thumbnail {
  height: 120px;
  overflow: hidden;
  background: #f8f9fa;
}

.post-thumbnail img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-info {
  padding: 1rem;
}

.post-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.3;
}

.post-info h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.post-info h3 a:hover {
  color: #3498db;
}

.post-meta {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

.post-excerpt {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #555;
  margin: 0;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.view-all a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
}

.view-all a:hover {
  background: #f8f9fa;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .latest-posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .post-thumbnail {
    height: 150px;
  }
  
  .post-thumbnail img {
    height: 150px;
  }
}

/* HERO SECTION WITH PARALLAX */

.hero-section {
  position: relative;
  height: 80vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mobile fallback - disable parallax on small screens */
@media screen and (max-width: 768px) {
  .hero-parallax {
    background-attachment: scroll;
    height: 100%;
  }
  
  .hero-section {
    height: 60vh;
    min-height: 300px;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  max-width: 90%;
}

.hero-quote {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.4;
}

.hero-attribution {
  display: block;
  margin-top: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* MOBILE HEADER & NAV FIXES */
@media screen and (max-width: 768px) {
  
  /* Header adjustments */
  .site-header {
    padding: 2rem 0 1rem 0;
  }
  
  .site-branding {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  /* Logo stacks above */
  .site-logo {
    position: static;
    transform: none;
    height: 80px;
    margin: 0 auto;
  }
  
  /* Site title wrapping */
  .site-title {
    gap: 0.5rem;
  }
  
  .site-title h1 {
    font-size: 1.8rem;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .site-subtitle {
    font-size: 0.9rem;
    word-wrap: break-word;
  }
  
  /* Nav wrapping layout */
  .nav-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  
  .search-container {
    flex: 0 1 auto;
    margin: 0;
    order: -1;
  }
  
  .search-container input {
    width: 120px;
  }
  
  .main-menu {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    order: 1;
  }
  
  .main-menu li {
    flex: 0 0 auto;
  }
  
  /* Fix the links for mobile - remove flex display */
  .site-nav a {
    display: inline-block;
  }
  
  .donate-container {
    flex: 0 1 auto;
    margin: 0;
    text-align: center;
    order: 2;
  }
  
  .donate-btn {
    padding: 0.25rem 1.5rem;
    text-align: center;
  }
}
