/* Post wrapper with sidebar */
/* Desktop: wide layout */
.post-wrapper {
  display: flex;
  gap: 2em;
  max-width: 2400px;
  margin: 0 auto;
  padding: 0 1em;  /* Add padding so content doesn't touch screen edge */
}

.post-main {
  flex: 1;
  min-width: 700px;
  max-width: 2000px;
}



.post-content {
  line-height: 1.6;
}

/* Sidebar styling */
.post-sidebar {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.sidebar-section {
  background: var(--color-secondary);
  padding: 1em;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.sidebar-image {
  width: 100%;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.5em;
}

.sidebar-text {
  font-size: 0.9em;
  line-height: 1.5;
}

.sidebar-text h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1em;
}

.sidebar-text p {
  margin: 0.5em 0;
}

.sidebar-text ul {
  margin: 0.5em 0;
  padding-left: 1.2em;
}

.sidebar-text li {
  margin: 0.25em 0;
}

/* Tablet/smaller desktop: squeeze a bit but keep sidebar */
@media (max-width: 1600px) {
  .post-main {
    min-width: 600px;
    max-width: 900px;
  }
}

/* Tablet: main content gets more space, sidebar shrinks */
@media (max-width: 1200px) {
  .post-main {
    min-width: 500px;
    max-width: 800px;
  }
  
  .post-sidebar {
    flex: 0 0 300px;
  }
}

/* Small tablet: even tighter */
@media (max-width: 1000px) {
  .post-main {
    min-width: auto;  /* Allow it to shrink */
    max-width: 100%;
  }
  
  .post-sidebar {
    flex: 0 0 250px;
  }
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .post-wrapper {
    flex-direction: column;
  }
  
  .post-main {
    min-width: 0;
    max-width: 100%;
  }
  
  .post-sidebar {
    flex: 0 0 auto;
    width: 100%;
  }
}
