/* ========== Layout ========== */
.blog-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  gap: 32px;
}

/* Anchor scroll offset */
section {
  scroll-margin-top: 100px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

section:hover {
  transform: translateY(-4px);
}

/* ========== Sidebar Navigation ========== */
.sidebar-nav {
  width: 250px;
  padding: 100px 15px;
  background-color: #ffffff;
  border-right: 1px solid #ccc;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-nav h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #588157;
  padding-bottom: 6px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 10px;
}

.sidebar-nav a {
  color: #333;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav a i {
  color: #3a5a40;
  font-size: 1rem;
  min-width: 20px;
}

.sidebar-nav a:hover {
  color: #588157;
  transform: translateX(4px);
}

/* ========== Content Sections ========== */
.content {
  flex-grow: 1;
  padding: 0 10px;
}

.block-heading {
  font-size: 2rem;
  color: #3a5a40;
  margin-bottom: 1rem;
  text-align: center;
}

.header-for-content {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #3a5a40;
}

.content p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ========== Placeholder Image Styles ========== */
img.placeholder {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #ccc;
  margin: 1.5rem 0;
}

.hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 16px;
  border: 4px solid #ccc;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.hero-image:hover {
  transform: scale(1.015);
}

/* === Solar Content Image Styling === */
.content-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  border: 3px solid #ccc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
  }

  .sidebar-nav {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 16px;
  }

  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .sidebar-nav li {
    margin: 0;
  }
}

.content section {
  background-color: #f1efef77;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Fade-up animation */
.content section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings */
.header-for-content {
  border-left: 4px solid #3a5a40;
  padding-left: 12px;
  margin-bottom: 1rem;
}

/* Lists */
.content ul {
  padding-left: 1.5rem;
  list-style: none;
  position: relative;
}

.content ul li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.6rem;
  color: #333;
}

.content ul li::before {
  content: "🌞";
  position: absolute;
  left: 0;
  top: 0.08rem;
}

.callout-box {
  background-color: #dcfade;
  border-left: 4px solid #5b9666;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  color: #333;
}