/* --- Blog Post Layout --- */
.post-header {
  padding: 100px 0 40px;
  text-align: center;
}

.post-meta {
  margin-bottom: 20px;
}

.post-keywords {
  font-size: 0.9rem;
  color: var(--accent-color);
  background: var(--text-primary);
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.post-header h1 {
  font-size: 4rem;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.post-hero {
  max-width: 1170px;
  margin: 0 auto 40px;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 1170 / 600;
  object-fit: cover;
  border-radius: 8px;
}

/* --- Content Section --- */
.post-body-section {
  padding: 60px 0;
  background-color: var(--bg-secondary);
}

.post-content-card {
  background: #ffffff;
  padding: 60px 50px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.05);
  border: 1px solid rgba(17, 48, 37, 0.02);
  max-width: 900px;
  margin: 0 auto;
}

.post-content {
  max-width: 100%;
  font-family: var(--font-body);
}

.post-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bg-color);
  opacity: 0.9;
  margin-bottom: 30px;
}

.post-content h2 {
  font-size: 2rem;
  color: var(--bg-color);
  margin: 50px 0 20px;
  font-family: var(--font-heading);
}

.post-content ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.post-content li {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--bg-color);
  opacity: 0.9;
  margin-bottom: 10px;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-primary);
}

.back-link:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .post-header h1 { font-size: 2.5rem; }
  .post-content p { font-size: 1.05rem; }
  .post-content-card { padding: 40px 25px; }
}

@media (max-width: 600px) {
  .post-content-card { padding: 30px 20px; border-radius: 16px; }
  .post-body-section { padding: 40px 0; }
}

/* --- Two-Column Layout & Sidebar --- */
.post-layout-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1170px;
  margin: 0 auto;
}

.post-main-content {
  min-width: 0;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
}

.sidebar-widget {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.04);
  border: 1px solid rgba(17, 48, 37, 0.02);
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--bg-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 48, 37, 0.1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

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

/* Categories Widget */
.categories-list li {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(17, 48, 37, 0.05);
  padding-bottom: 8px;
}

.categories-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.categories-list a {
  color: var(--bg-color);
  opacity: 0.8;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.categories-list a::after {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.categories-list a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--accent-color);
}

.categories-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Recent Posts Widget */
.recent-posts-list li {
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(17, 48, 37, 0.05);
  padding-bottom: 15px;
}

.recent-posts-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.recent-posts-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.recent-posts-list a:hover {
  opacity: 0.8;
}

.recent-post-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-color);
  opacity: 0.5;
  letter-spacing: 1px;
}

.recent-post-title {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bg-color);
  transition: color 0.3s ease;
}

.recent-posts-list a:hover .recent-post-title {
  color: var(--accent-color);
}

@media (max-width: 1024px) {
  .post-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
  }
  .post-sidebar {
    position: static;
  }
}

