/* ===== Blog Layout ===== */
  .blog-container {
    display: flex;
    gap: 30px;
    padding: 140px 40px 60px 40px; /* header + spacing */
    height: 100vh;
  }
  .content h1{
  font-size: 34px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.3;
}
.content h2{
  font-size: 26px;
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
}
.blog-right h1{
  font-size: 20px;
  font-weight: 600;
  color: #ff6600;
  margin-bottom: 10px;
}
.blog-right h2{
  font-size: 18px;
  font-weight: 600;
  color: #0b1c3d;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* General internal links inside content paragraphs */
#rightContent p a {
  color: #ff6600;        /* Accent color, tumhare theme me orange */
  text-decoration: none;  /* Underline remove */
  font-weight: 500;       /* Thoda bold */
  transition: all 0.3s ease; /* Smooth hover effect */
}

#rightContent p a:hover {
    text-decoration: underline; /* Hover pe underline */
    color: #e65c00;             /* Thoda darker shade on hover */
}
.blog-right a::after {
  content: ' →';
  transition: transform 0.3s ease;
}
.blog-right a:hover::after {
  transform: translateX(3px);
}

  /* Sidebar */
  .sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 200px); /* header + padding */
    padding: 20px;
    /* height: fit-content; */
  }
  #sidebar-component{
    display: flex;
  }

  .sidebar h3 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar h3 span {
    font-weight: 700;
    margin-left: 5px;
  }
  /* Default + sign */
.sidebar h3 span::after {
  content: "+";
}

/* When active show - */
.sidebar h3.active span::after {
  content: "-";
}

  .subtopics {
 max-height: 0;
  overflow: hidden;
  padding-left: 15px;
  margin-bottom: 15px;
  transition: max-height 0.7s ease;
  }

  .subtopics a {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

  .subtopics a:hover {
    color: #ff6b35;
  }

  /* Active accordion */
  .accordion.active + .subtopics{
    max-height: 500px;
  }
  .subtopics a.active-link {
  color: orange;
  font-weight: 600;
}

  /* Right content */
  .content, .blog-right {
    flex: 2.5;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 25px;
    min-height: 400px;
    max-height: calc(100vh - 160px); /* header + padding */
    overflow-y: auto;
  }

  .content h4 {
    margin-bottom: 15px;
    color: #111;
  }

  .content p {
    line-height: 1.7;
    color: #333;
  }

  /* Hamburger */
  .hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 10px 15px;
    /* background: #111; */
    /* color: #fff; */
    color: #ff6600;
    font-weight: bolder;
    border-radius: 8px;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
  }

  /* ================ right content CSS ====== */
  .blog-right h4 {
  color: #FF6600;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
/* Parent container animation */
.blog-right.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When active, reveal parent and children */
.blog-right.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: smooth fade-in for h4 and p separately */
.blog-right.reveal h4,
.blog-right.reveal p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.blog-right.reveal.active h4,
.blog-right.reveal.active p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s, 0.15s; /* stagger effect */
}
.blog-right.active {
  opacity: 1;
  transform: translateY(0);
}

.blog-right p {
  font-size: 16px;
  line-height: 1.6;
}

.blog-right img {
  max-width: 100%;
  border-radius: 8px;
  margin: 10px 0;
}
.video-container{
  position: relative;
  width: 100%;
  max-width: 800px;   /* video ki max width control */
  margin: 20px auto;  /* center align */
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
}

.video-container iframe{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

  /* Mobile */
  @media (max-width: 768px) {
    .blog-container {
      flex-direction: column;
      padding: 120px 20px 60px 20px;
      gap: 0;
    }

    .hamburger {
      display: block;
    }

    .sidebar {
      position: fixed;
      /* top: 180px; below header */
      left: -320px; /* hide sidebar initially */
      width: 280px;
      height: calc(100vh - 120px);
      background: #111;
      overflow-y: auto;
      transition: left 0.3s ease;
      z-index: 998;
      padding: 20px;
      border-radius: 0 12px 12px 0;
    }

    .sidebar.show {
      left: 0; /* slide in */
    }
  }
  .toc {
  background: #f9f9f9;
  border-left: 4px solid #ff7a00;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.toc h3 {
  margin-bottom: 10px;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin: 6px 0;
}

.toc a {
  text-decoration: none;
  color: #333;
}

.toc a:hover {
  color: #ff7a00;
}