/* HERO SECTION */
.blogdetails-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    font-family: "Montserrat", sans-serif;
}

/* OVERLAY */
.blogdetails-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* CONTENT */
.blogdetails-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.blogdetails-content h1 {
    font-size: 56px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.blogdetails-content p {
    font-size: 18px;
    color: #ddd;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .blogdetails-content h1 {
        font-size: 36px;
    }

    .blogdetails-content p {
        font-size: 16px;
    }

    .blogdetails-hero {
        height: 50vh;
    }
}

.blogdetails-main {
    padding: 80px 0;
    background: #fff;
}

.blogdetails-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* IMAGE */
.blogdetails-image img {
    width: 100%;
    border-radius: 8px;
}

.recent-blog {
    height: 50px;
}

.recent-list-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: start;
}


.back-btnblog {
    position: relative;
    display: inline-block;
    padding: 14px 30px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    /* IMPORTANT */
    z-index: 1;
    background: #242424;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #242424;
    margin-bottom: 20px;
}

.back-btnblog::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    /* niche theke start */
    width: 100%;
    height: 0%;
    /* initially hidden */

    background: #fff;

    z-index: -1;

    transition: height 0.4s ease;
}


.back-btnblog:hover::before {
    height: 100%;
}

.back-btnblog:hover {
      box-shadow: 
      0 10px 25px rgba(0,0,0,0.15),
      0 2px 5px rgba(0,0,0,0.1);
    color: #242424;
}

/* META */
.blog-meta {
    margin: 15px 0;
    font-size: 14px;
    color: #777;
}

/* TITLE */
.blog-title {
    font-size: 32px;
    font-weight: 600;
    margin: 15px 0;
}

/* TEXT */
.blogdetails-left p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* QUOTE */
.blog-quote {
    background: #f9f9f9;
    border-left: 4px solid #f4a100;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

.blog-quote span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

/* LIST */
.blog-list {
    padding-left: 20px;
}

.blog-content-wrapper {
  margin-top: 20px;
}

.content-title {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #222;
}

.content-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.blog-list li {
    margin-bottom: 10px;
    color: #444;
}

/* SIDEBAR */
.blogdetails-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-box {
  background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-box h3::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #d99100;
    position: absolute;
    bottom: -8px;
    left: 0;
}
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ITEM */
.recent-post-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* HOVER EFFECT */
.recent-post-item:hover {
    background: #f9f9f9;
    transform: translateX(5px);
}

.recent-thumb {
    width: 80px;
    height: 65px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.recent-post-item:hover img {
    transform: scale(1.1);
}

.recent-content {
    display: flex;
    flex-direction: column;
}

/* DATE */
.recent-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

/* TITLE */
.recent-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    transition: 0.3s;
}

/* TITLE HOVER */
.recent-title:hover {
    color: #d99100;
}


.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul li {
    margin-bottom: 10px;
}

.sidebar-box ul li a {
    text-decoration: none;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .blogdetails-wrapper {
        grid-template-columns: 1fr;
    }

        .blog-title {
        font-size: 22px;
    }
}