/* Post Content Section */
/* Uses site-grid-rails.css for layout and style.css for typography/colors */

.post-content {
  background-color: white;
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
}

.post-content__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-content__grid {
  display: grid;
  grid-template-columns: 7fr 3fr; /* Changed to 70/30 columns */
  gap: 3rem;
  align-items: flex-start;
  min-height: 60vh;
}

.post-content__main-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.post-content__sidebar-column {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Article Styling */
.entry-content {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ica-green-deep, #1E312F);
}

.entry-content p {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.entry-content h1 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  color: var(--ica-green-deep, #1E312F);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-content h2 {
  font-family: 'Termina', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.entry-content h3 {
  font-family: 'Termina', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

.entry-content h4 {
  font-family: 'Termina', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
}

.entry-content h5 {
  font-family: 'Termina', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
  margin: 1.25rem 0 0.5rem 0;
  line-height: 1.4;
}

.entry-content h6 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  color: var(--ica-green-deep, #1E312F);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-size: 1.125rem;
}

.entry-content h1 { font-size: 2.5rem; }

.entry-content a {
  color: var(--ica-teal, #17968c);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.entry-content a:hover {
  border-bottom-color: var(--ica-teal, #17968c);
}

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

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--ica-teal, #17968c);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ica-green-deep, #1E312F);
  background-color: var(--ica-mint, #DCF4EF);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

.entry-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.entry-content .wp-caption {
  max-width: 100%;
  margin: 2rem 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.entry-content .wp-caption img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.entry-content .wp-caption-text {
  font-size: 0.875rem;
  color: var(--ica-green-deep, #1E312F);
  opacity: 0.8;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Page Links */
.page-links {
  margin: 2rem 0;
  text-align: center;
}

.page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background-color: var(--ica-teal, #17968c);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.page-links a:hover {
  background-color: var(--ica-green-deep, #1E312F);
}

/* Entry Footer */
.entry-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ica-mint, #DCF4EF);
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-categories,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.meta-label {
  font-family: var(--font-ui, 'Termina', sans-serif);
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-categories a,
.post-tags a {
  background-color: var(--ica-mint, #DCF4EF);
  color: var(--ica-green-deep, #1E312F);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.post-categories a:hover,
.post-tags a:hover {
  background-color: var(--ica-teal, #17968c);
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .post-content {
    padding: 3rem 0;
  }
  
  .entry-content {
    font-size: 1rem;
  }
  
  .entry-content h1 { font-size: 2rem; }
  .entry-content h2 { font-size: 1.75rem; }
  .entry-content h3 { font-size: 1.5rem; }
  .entry-content h4 { font-size: 1.25rem; }
  .entry-content h5 { font-size: 1.125rem; }
  .entry-content h6 { font-size: 1rem; }
  
  .entry-content blockquote {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
  }
  
  .post-meta {
    gap: 0.75rem;
  }
  
  .post-categories,
  .post-tags {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .post-content {
    padding: 3rem 0;
    min-height: 50vh;
  }
  
  .post-content__inner {
    gap: 1.5rem;
  }
  
  .post-content__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  .post-content__main-column {
    order: 1;
  }
  
  .post-content__sidebar-column {
    order: 2;
  }
  
  .entry-content p {
    font-size: 17px;
  }
  
  .entry-content h2 { font-size: 17px; }
  .entry-content h3 { font-size: 15px; }
  .entry-content h4 { font-size: 13px; }
  .entry-content h5 { font-size: 11px; }
}

@media (max-width: 480px) {
  .post-content {
    padding: 2rem 0;
  }
  
  .entry-content {
    font-size: 0.95rem;
  }
  
  .entry-content p {
    font-size: 17px;
  }
  
  .entry-content h1 { font-size: 1.75rem; }
  .entry-content h2 { font-size: 16px; }
  .entry-content h3 { font-size: 14px; }
  .entry-content h4 { font-size: 12px; }
  .entry-content h5 { font-size: 10px; }
  
  .entry-content blockquote {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}
