.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: 10px;
    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
================================ */

.main_aside {
    position: sticky;
    top: 90px;
}

.aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =============================== */


 .blog-head {
     text-align: center;
     margin-bottom: 40px;
 }

 .blog-h {
     font-size: 2rem;
     color: var(--site-color);
     font-weight: 700;
     text-align: center;
     font-family: Arial, sans-serif;
     margin-bottom: 15px;
     cursor: pointer;
     transition: transform 0.3s ease;
 }

 .blog-h:hover {
     transform: scale(1.01);
 }

 .blog-p {
     margin-top: 18px;
     font-size: 16px;
 }

 .blog-main {
     margin: 30px 0 20px 0;
 }

 .blog-card {
     height: auto;
     box-shadow: 0px 0px 50px 0px #ebebeb;
     border: none;
     border-radius: 5px;
     cursor: pointer;
     transition: transform 0.3s ease, background-color 0.3s ease;
     overflow: hidden;
 }

 .blog-img {
     position: relative;
     display: inline-block;
     width: 100%;
     overflow: hidden;
 }

 .blog-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

 .blog-icon1 {
     position: absolute;
     bottom: 9px;
     right: -1px;
     color: white;
     background-color: #000608;
     padding: 4px 8px;
     border-radius: 3px 0px 0px 3px;
     font-size: 10px;
     box-shadow: 2px 2px 10px 0px #000608;
     z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
 }
 
    .blog-card:hover .blog-card-img {
        transform: scale(1.05) rotate3d(1, 1, 1, 3deg);
    }

 .blog-card-body {
     padding: 20px;
 }

 .blog-card-h1 {
     font-size: 15px;
     font-weight: 700;
     color: var(--site-color);
 }

 /* == max show in two line then show dots == */
 .blog-description {
     font-size: 12px;
     color: #555555;
     line-height: 1.6;
     height: 41px;
     overflow: hidden;
     text-overflow: ellipsis;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     margin-bottom: 10px;
 }

 .blog-icon2 {
     color: #34b4ec;
     margin-right: 8px;
 }

 .blog-p2 {
     font-size: 14px;
     opacity: 0.7;
 }

 .blog-slash {
     margin: 0 15px;
     opacity: 0.9;
 }

 .blog-link {
     text-decoration: none;
     color: black;
     font-weight: 500;
     opacity: 0.5;
     align-items: center;
     font-size: 13px;
     display: inline-flex;
     gap: 8px;
     transition: opacity 0.3s ease;
 }

 .blog-link:hover {
     opacity: 1;
 }

 .blog-link .blog-icon3 {
     transition: transform 0.3s ease;
 }

 .blog-link:hover .blog-icon3 {
     transform: translateX(20px);
 }


 .blog-card .blog-img {
     position: relative;
 }

 .blog-card .blog-img::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-color: rgba(0, 0, 0, 0);
     transition: background-color 0.3s ease;
     z-index: 1;
 }

 .blog-card:hover .blog-img::before {
     background-color: rgba(0, 0, 0, 0.5);
 }

 .blog-card .blog-img .link-icn {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%) scale(0.8);
     background-color: var(--site-color);
     width: 40px;
     height: 40px;
     display: flex;
     justify-content: center;
     align-items: center;
     border-radius: 5px;
     color: #fff;
     opacity: 0;
     transition: opacity 0.3s ease, transform 0.3s ease;
     z-index: 2;
 }

 .blog-card .blog-img .link-icn i {
     font-size: 12px;
 }

 .blog-card:hover .blog-img .link-icn {
     opacity: 1;
     transform: translate(-50%, -50%) scale(1);
 }

.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__category::before {
    content: '\f02b';
}

.card__category::before,
.card__eye::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--site-color);
}


/* ===============================
   PAGINATION WRAPPER
================================ */

.section-pagination {
  background-color: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  /* display: inline-block; */
  padding: 10px 12px;
  max-width: fit-content;
    margin: 30px auto 0 auto;
}

/* Reset */
.section-pagination ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* ===============================
   PAGE ITEMS
================================ */

.section-pagination .page-item {
  margin: 2px;
  display: inline-block;
}

/* Base link */
.section-pagination .page-link {
  border: none;
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  background: transparent;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--site-color);
}

/* Hover */
.section-pagination .page-link:hover {
  background: rgba(var(--site-color-rgb), 0.15);
  color: rgb(var(--site-color-rgb));
}

/* ===============================
   ACTIVE PAGE
================================ */

.section-pagination .page-link-active,
.section-pagination .page-item.active .page-link {
  background: rgb(var(--site-color-rgb));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--site-color-rgb), 0.35);
}

/* Prevent hover override on active */
.section-pagination .page-link-active:hover {
  background: rgb(var(--site-color-rgb));
  color: #fff;
}

/* ===============================
   FIRST / LAST
================================ */

.section-pagination .page-link-first,
.section-pagination .page-link-last {
  font-weight: 500;
  padding: 8px 16px;
}

/* ===============================
   DISABLED (OPTIONAL)
================================ */

.section-pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}


@media (max-width: 576px) {
    .blog-card-img {
        aspect-ratio: 4 / 3;
    }
}

/* ===============================
   RESPONSIVE PAGINATION
================================ */

@media (max-width: 576px) {

  .section-pagination {
    display: flex;
    justify-content: center;
  }

  .section-pagination .page-item {
    margin: 2px 1px;
  }

  .section-pagination .page-link {
    padding: 6px 10px;
    font-size: 13px;
    gap: 4px;
    min-width: 36px;
    justify-content: center;
  }

  /* First / Last slightly smaller */
  .section-pagination .page-link-first,
  .section-pagination .page-link-last {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {

  .section-pagination .page-link {
    padding: 5px 8px;
    font-size: 12px;
    min-width: 32px;
  }

  /* Hide text, keep arrows/icons only (if used) */
  .section-pagination .page-link-first span,
  .section-pagination .page-link-last span {
    display: none;
  }
}
