/* /Users/alex/WebDevelopment/hugo-sites/gaiaforest/static/css/style.css */
/* LAYOUT */

/* Page title font weight */
h1, h2 {
  font-weight: 300;
  font-size: 2.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

header {
  max-width: 100%;
  padding: .5rem 2rem;
}

.site-header {
  max-width: 100%;
  padding: 0rem 1rem;
  box-sizing: border-box;
  overflow: visible;
}

body {
  color: #333;
  font-size: 125%;
  line-height: 1.5;
  max-width: 100%;
  padding: 0rem;
  margin: 0 auto;
}

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

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

.content {
  margin-bottom: 2rem;
}

img {
  max-width: 100%;
}

/* NAVIGATION */

.site-nav {
  display: flex;
  padding-bottom: 0.5rem;
}

.site-nav a {
  display: block;
  padding: .5rem 1rem;
}

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

.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 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;
}

/* === Site Branding (Logo + Title) === */
.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.seal-logo {
  height: 80px;
  width: auto;
}

.site-title h1 {
  font-size: 2rem;
  margin: 0;
font-family: "Estonia", Georgia, serif;
}

.site-subtitle {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

.home-hero {
  background-image: url('/media/headers/gaiaforest_aerial.jpeg');
  height: 65vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
}

.page-hero {
  background-image: url('/media/headers/gaiaforest_aerial.jpeg');
  height: 50vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
}

.overlay-text {
  background-color: rgba(0, 0, 0, 0.4); /* optional, for contrast */
  padding: 2rem;
  border-radius: 0.5rem;
}

.overlay-text h2 {
  font-family: 'Estonia', serif;
  font-size: 3rem;
  font-style: italic;
  letter-spacing: 0.2rem;
}

.overlay-text p {
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: 0.05rem;
}
/* Latest Posts Styling */
.latest-posts {
  margin: 2rem 0;
}

.post-preview {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

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

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

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

.post-summary {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

.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;
}

/* 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-subsub {
  list-style: square;
  padding-left: 2em;
  margin-top: 0.25em;
}

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

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

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

.sitemap-subsub a {
  font-weight: normal;
  color: #7f8c8d;
}


/* Also fix latest-posts if it's working */
.latest-posts {
  margin: 2rem 0;
  text-align: left; /* Override center alignment */
  max-width: 800px;
}

.post-preview {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Latest Posts Grid Layout */
.latest-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  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;
}

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

/* Remove old latest-posts styling to avoid conflicts */
.latest-posts .post-preview {
  display: none;
}

/* Constrain content images with both width and height limits */
.single-page img, .list-page img {
  max-width: 600px;   /* Prevents wide images from breaking layout */
  max-height: 500px;  /* Prevents tall images from dominating page */
  width: auto;
  height: auto;
  object-fit: contain; /* Maintains aspect ratio, fits within bounds */
}

/* Float the first image in single pages to the right for text wrapping */
.single-page img:first-of-type {
  float: right;
  max-width: 200px;
  max-height: 400px;
  margin: 0 0 1rem 1.5rem;
}
