/* ========== BLOG HERO SECTION ========== */

.blog-hero {

    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.blog-hero-img {
    margin-top: 60px;
    width: 100%;
    height: 100%;
    /* Desktop height */
    object-fit: cover;
    display: block;
}

/* ========== BLOG CONTENT SECTION ========== */

.blog-content-section {
    width: 100%;
    padding: 80px 10%;
    background: #faf6f1;
    font-family: 'Georgia', serif;
    line-height: 1.7;
}

/* GRID LAYOUT */
.blog-layout {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 60px;
}

/* LEFT SIDEBAR */
.blog-sidebar .blog-title {
    font-size: 32px;
    font-weight: normal;
    line-height: 1.3;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.blog-date {
    font-size: 13px;
    margin-bottom: 18px;
    color: #444;
}

.blog-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* allow wrapping if needed */
}

.blog-tags .tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 1px;
    /* Sharper border per screenshot? No, users code had 15px. Screenshot looks boxy-pill. */
    border: 1px solid #c2b5a5;
    background: transparent;
    color: #444;
}


/* RIGHT BLOG CONTENT */
.blog-main .blog-heading {
    font-size: 42px;
    /* Larger heading */
    font-weight: normal;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.3;
}

.blog-main p {
    margin-bottom: 25px;
    font-size: 20px;
    color: #2c2c2c;
    line-height: 1.8;
}

/* INLINE IMAGE */
.blog-image-container {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

.blog-image-container img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

.img-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 14px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
}


.related-articles {
    padding: 60px 10%;
    background: #faf4ef;
    /* Match background */
    font-family: 'Georgia', serif;
}

.related-title {
    font-size: 24px;
    color: #4b4b35;
    /* Olive tone */
    margin-bottom: 30px;
    font-style: italic;
}

.related-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.related-slider {
    display: flex;
    gap: 40px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.related-card {
    width: 48%;
    /* 2 cards view */
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.related-card h3 {
    margin: 12px 0;
    font-size: 20px;
    font-weight: normal;
    color: #222;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tags span {
    font-size: 11px;
    padding: 2px 10px;
    border: 1px solid #8e8e8e;
    border-radius: 2px;
    color: #555;
    text-transform: uppercase;
}

.date {
    font-size: 12px;
    color: #777;
    text-align: right;
    display: block;
    margin-top: 5px;
}

/* Navigation Buttons */
.slide-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #e2dad0;
    padding: 10px;
    display: none;
    /* hidden for desktop */
}

.blog-list-section li{
  margin-left: 50px;
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 20px;
}

/* TABLET */
@media (max-width: 992px) {
    .related-card {
        min-width: 40%;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        grid-template-areas: "header" "content";
        /* Stack */
    }

    /* Move sidebar (header now) to top */
    .blog-sidebar {
        grid-area: header;
        margin-bottom: 10px;
    }

    .blog-main {
        grid-area: content;
    }

    .blog-hero-img {
        height: 400px;
    }

    .blog-content-section {
        padding: 60px 8%;
    }

    .related-articles {
        padding: 50px 40px;
    }
}

@media (min-width: 1561px) {
  .blog-main p {
    font-size: 24px;
    line-height: 1.8;
  }
  .related-card img {
    height: 350px;
  }
}

/* TABLET PORTRAIT & LARGE MOBILE (481px - 768px) */
@media (max-width: 768px) {
    .blog-hero-img {
        height: 300px;
        margin-top: 60px;
    }

    .blog-content-section {
        padding: 40px 5%;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar .blog-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .blog-main .blog-heading {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .blog-main p {
        font-size: 16px;
        margin-bottom: 18px;
        line-height: 1.6;
    }

    .blog-image-container {
        margin: 30px 0;
    }

    /* Related Articles */
    .related-articles {
        padding: 40px 20px;
    }

    .related-slider {
        flex-direction: column;
        gap: 30px;
    }

    .related-card {
        width: 100%;
        min-width: 100%;
    }
}