/* Navbar Section */

/* Default (mobile view) - header normal hoga */
.site-header {
  position: relative;
}

/* Desktop view (freeze header on scroll) */
@media (min-width: 769px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  body {
    padding-top: 110px; /* header ki height ke equal adjust karo */
  }
}




/* Blog Content Section */


    body {
      font-family: 'Segoe UI', Roboto;
      margin: 0;
      padding: 0;
      background-color: #fff;
      color: #000;
    }

    .container {
      display: flex;
      max-width: 1200px;
      margin: auto;
      padding: 40px 60px;
      gap: 30px;
    }

    /* LEFT SIDE CONTENT */
    .blog-data-container {
      flex: 3;
      font-family: 'Segoe UI', Roboto;
    }

    h1 {
      font-size: 36px;
      font-weight: bold;
      line-height: 1.3;
      margin-bottom: 15px;
      font-family: Poppins;
      padding-top: 10px;
      font-family: 'Segoe UI', Roboto;
    }

    .category {
      color: #f4a300;
      font-size: 18px;
      margin-bottom: 10px;
      font-family: Roboto;
    }

    hr {
      border: none;
      border-top: 1px solid #eee;
      margin: 15px 0;
    }

    .image-container {
      margin: 20px 0;
    }

    .image-container img {
      width: 100%;
      height: 700px;
      border-radius: 5px;
      display: block;
    }

    .image-container1 {
      margin: 20px 0;
    }

    .image-container1 img {
      width: 600px;
      height: 300px;
      border-radius: 5px;
      display: block;
    }

    p, li {
      font-family: 'Segoe UI', Roboto;
      font-size: 17px;
      line-height: 1.6;
    }

    h2 {
      font-family: 'Segoe UI', Roboto;
      font-size: 28px;
      margin-top: 25px;
    }

    h3 {
      font-family: 'Segoe UI', Roboto;
      font-size: 22px;
      margin-top: 15px;
    }

    h4 {
        font-family: 'Segoe UI', Roboto;
    }

    a {
      text-decoration: none;
      color: #0077cc;
    }

    /* RIGHT SIDE SIDEBAR */
    .blog-sidebar {
      flex: 1;
      margin-top: 110px;
    }

    .sidebar-box {
      background: #f9f9f9;
      padding: 20px;
      margin-bottom: 25px;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .blog-sidebar h3 {
      font-size: 26px;
      margin-bottom: 15px;
      color: black;
      font-family: 'Segoe UI', Roboto ;
    }

    .social-icons-blog a {
      margin-right: 10px;
      font-size: 20px;
      color: #d30a11;
    }

    .popular-post {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }

    .popular-post img {
      width: 60px;
      height: 60px;
      margin-right: 10px;
    }

    .popular-post a {
      font-size: 16px;
      color: #000;
      font-family: 'Segoe UI', Roboto;
    }

    .popular-post a:hover {
      color: #F57C00;;
    }

  /* ✅ Responsive Design */
  @media (max-width: 992px) {
    .container {
      flex-direction: column;
      padding: 20px 15px;
    }

    .blog-sidebar {
      margin-top: 20px;
    }

    h1 {
      font-size: 28px;
    }

    h2 {
      font-size: 22px;
    }

    h3 {
      font-size: 18px;
    }
  }

  @media (max-width: 768px) {
    .image-container img {
      max-height: 450px;
    }

    p, li {
      font-size: 15px;
    }

    .blog-sidebar h3 {
      font-size: 20px;
    }

    .popular-post img {
      width: 50px;
      height: 50px;
    }

    .popular-post a {
      font-size: 14px;
    }
  }

  @media (max-width: 480px) {
    .container {
      padding: 15px 10px;
      gap: 15px;
    }

    h1 {
      font-size: 22px;
      padding-top: 0px;
    }

    h2 {
      font-size: 18px;
    }

    h3 {
      font-size: 16px;
    }

    .image-container img {
      max-height: 300px;
    }

    p, li {
      font-size: 14px;
    }

    .sidebar-box {
      padding: 15px;
    }

    .popular-post img {
      width: 40px;
      height: 40px;
    }

  }


      table {
      border-collapse: collapse;
      width: 100%;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    th, td {
      border: 1px solid #ccc;
      padding: 12px 16px;
      text-align: left;
    }

    th {
      background-color: #f2f2f2;
      font-weight: bold;
    }

    tr:hover {
      background-color: #f9f9f9;
      transition: 0.3s;
    }

/* Responsive - Tablets & Mobiles */
@media (max-width: 1024px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none; /* hide table head */
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 70%;   /* increase left space for label */
    text-align: left;
    word-wrap: break-word;
    min-height: 30px; 
    font-size: 14px;   /* prevents overlap */
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%); /* center align vertically */
    font-weight: bold;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    width: 40%;   /* label width */
    text-align: left;
  }
}
