.detail-container {
    height: 200vh;
    border: 1px solid red;
}


/* ===============================
   PAGE LAYOUT
================================ */

.section_main {
    /* background: #f7f8fa; */
    padding: 50px 0px;
    background-color: #eee;
    background-image: url("https://www.transparenttextures.com/patterns/ag-square.png");
    /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

.upside__container {
    position: relative;
    /* 🔥 REQUIRED */
    margin-top: -200px;  
    z-index: 2;
    /* banner se upar */
}


.section_main main {
    background: #fff;
    border-radius: 5px;
    padding: 24px;
    min-height: 400px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 3px solid var(--site-color);
}

/* ===============================
   ASIDE BASE
================================ */

.aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =============================== */


.main__article h1 {
    text-transform: none;
    line-height: 45px;
    letter-spacing: .64px;
    font-weight: 600;
    font-style: normal;
    color: #222222;
    font-size: 32px;
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity .24s ease-in-out;
    -o-transition: opacity .24s ease-in-out;
    transition: opacity .24s ease-in-out;
    margin-bottom: 5px;
    margin-top: 15px;
}

.main__article h2 {
    font-size: 25px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: .6px;
    color: #1f1f1f;
    margin-bottom: 5px;
    margin-top: 20px;
}

/* .main__article h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 34px;
    letter-spacing: .6px;
    color: #1f1f1f;
    margin-bottom: 5px;
    margin-top: 20px;
} */

.main__article h3, .main__article h4, .main__article h5, .main__article h6 {
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: .6px;
    color: #1f1f1f;
    margin-bottom: 5px;
    margin-top: 20px;
}

.main__article p {
    font-size: 16px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: .6px;
    color: #1f1f1f;
    margin: 5px 0px;
}

.main__article p b {
    font-weight: 700;
}

.main__article p a {
    color: var(--site-color);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.main__article p a:hover {
    color: var(--site-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog_views {
    position: absolute;
    width: 90%;
    transform: translateX(-50%);
    left: 50%;
    top: -25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 25px;
    background-color: #fff;
    border: 1.5px solid var(--site-color);
    /* margin-bottom: 15px; */
    border-radius: 5px;
}

.card__text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
}

.card__calender::before {
    content: '\f073';
}

.card__calender::before,
.card__eye::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--site-color);
}

[data-title]:after {
    content: attr(data-title);
    position: absolute;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    background-color: #fff;
    color: var(--date-color, #dc3545);
    font-size: 11px;
    padding: 3px 8px;
    bottom: 26px;
    right: 10px;
    border: 1px solid var(--date-color, #dc3545);
    font-weight: bold;
}

[data-title]:hover:after {
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* UNORDER LIST WITH TICK */

.un-order-list {
    list-style-type: none;
    padding-left: 20px;
    margin: 20px 0;
}

.un-order-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: .6px;
    cursor: pointer;
}

.tick {
    position: absolute;
    left: 0;
    color: green;
    font-size: 16px;
    transition: color 0.3s ease;
}

.un-order-list li:hover .tick i {
    color: #000000;
    transition: color 0.3s ease;
}


.card__category::before {
    content: '\f02b';
}

.card__category::before,
.card__eye::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--site-color);
}


/* ==================== order list ====================  */


.order-list {
    list-style-type: none;
    padding-left: 20px;
    margin: 20px 0;
    counter-reset: item;
}

.order-list li {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: .6px;
    color: #333333;
    counter-increment: item;
    cursor: pointer;
}

.order-list li::before {
    content: counter(item) ".";
    display: inline-block;
    margin-right: 10px;
    color: var(--site-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.order-list li:hover::before {
    color: #000;
    transition: color 0.3s ease;
}


/* =============================== 
    ARTICLE IMAGES    */

.main__article img {
    display: block;
    max-width: 100%;
    margin: 20px 0px;
    height: auto;
    width:100%;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ===============================
   QUESTIONNAIRE (Q&A STYLE)
================================ */

.questionnaire {
  margin: 30px 0;
}

/* ===== QUESTION ===== */

.questionnaire > .quest {
  position: relative;
  padding-left: 60px;
  margin-bottom: 14px;
  color: var(--question-color);
}

/* Q number badge */
.questionnaire > .quest::before {
  content: attr(data-counter);
  position: absolute;
  left: 0;
  top: -10px;
  width: 42px;
  height: 42px;
  border-radius: 5px;
  background: rgba(var(--site-color-rgb), 0.15);
  color: rgb(var(--site-color-rgb));
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Question text */
.questionnaire > .quest span {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
}

/* ===== ANSWER ===== */

.questionnaire > .answ {
  margin-left: 60px;
  padding: 14px 18px;
    position: relative;
  background: #f9fafb;
  border-radius: 10px;
  border-left: 3px solid rgba(var(--site-color-rgb), 0.35);
}

.questionnaire > .answ::before {
    font-size: 16px;
    content: "Ans";
    font-weight: 700;
    color: var(--site-color);
    top: 50%;
    left: -33px;
    letter-spacing: 4px;
    position: absolute;
    transform: translate(0, -50%);
    writing-mode: vertical-rl;
}

.questionnaire > .answ p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

/* ===== BLOG DETAIL CONTEXT ===== */

.blog_detail .questionnaire {
  margin-bottom: 40px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .questionnaire {
    padding: 18px;
  }

  .questionnaire > .quest {
    padding-left: 52px;
  }

  .questionnaire > .answ {
    margin-left: 0;
    margin-top: 10px;
  }

  .questionnaire > .quest span {
    font-size: 18px;
  }
}



.post-navigation {
  display: flex;
  gap: 24px;
  margin: 2rem 0 0 0;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

/* Divider */
.post-navigation hr {
  width: 2px;
  height: auto;
  border: none;
  border-left: 3px dashed rgba(0,0,0,.15);
  margin: 0;
}

/* Cards */
.previous-post,
.next-post {
  flex: 1;
}

.previous-post span,
.next-post span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  margin-bottom: 10px;
}

.previous-post span a,
.next-post span a {
  color: inherit;
  text-decoration: none;
}

.previous-post span a:hover,
.next-post span a:hover {
  color: var(--site-color);
}

/* Link Card */
.post-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 5px;
  text-decoration: none;
  background: #fafafa;
  transition: all .3s ease;
}

.post-link img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  margin: 0px;
}

.post-link:hover {
  background: rgba(var(--site-color-rgb), 0.08);
  /* transform: translateY(-2px); */
}

/* Title */
.post-title p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

.post-link:hover .post-title p {
  color: var(--site-color);
}

/* Alignments */
.previous-post {
  text-align: left;
}

.next-post {
  text-align: right;
}

.next-post .post-link {
  flex-direction: row-reverse;
}

/* Mobile */
@media (max-width: 768px) {
  .post-navigation {
    flex-direction: column;
  }

  .post-navigation hr {
    width: 100%;
    height: 1px;
    border-left: none;
    border-top: 2px dashed rgba(0,0,0,.15);
  }

  .next-post,
  .previous-post {
    text-align: left;
  }

  .next-post .post-link {
    flex-direction: row;
  }
}


/* Existing styles remain intact above 500px */

/* Responsive adjustments for screens <= 500px */
@media (max-width: 500px) {

    .main__article h1 {
        font-size: 24px;      /* smaller font */
        line-height: 32px;
        letter-spacing: 0.4px;
        margin-bottom: 4px;
    }

    .main__article h2 {
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
        margin-top: 15px;
    }

    .main__article h3,
    .main__article h4,
    .main__article h5,
    .main__article h6 {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
        margin-top: 15px;
    }
    .main__article p {
    font-size: 14px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: .6px;
    color: #1f1f1f;
    margin: 5px 0px;
}
.section_main main{
    padding: 15px;
}
.section_main__banner {
    position: relative;
    width: 100%;
    height: 270px !important;
    overflow: hidden;
    z-index: 1;
}
}
