/* ================================
   BLOG DETAIL PAGE - UNIFORM DESIGN
================================ */

.blog-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px; /* top padding for fixed navbar */
}

/* ================================
   MAIN FEATURED BLOG IMAGE (TOP)
================================ */
.blog-detail-img {
    width: 100%;
    height: 420px; /* uniform height */
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-detail-img:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

/* ================================
   BLOG TITLE
================================ */
.blog-detail h1 {
    font-size: 2rem;
    color: #08386c;
    margin: 20px 0;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

/* ================================
   BLOG DATE
================================ */
.blog-detail .blog-date {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    display: block;
    text-align: left;
}

/* ================================
   SHORT DESCRIPTION + AUTHOR NAME
================================ */
.blog-short-description,
.author-name {
    font-style: italic;
    color: #222;
    font-weight: 600;
    margin-top: 6px;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ================================
   BLOG CONTENT
================================ */
.blog-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

.blog-body p {
    margin-bottom: 18px;
}

/* First paragraph slightly larger */
.blog-body p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 22px;
}

/* Headings inside blog-body */
.blog-body h2,
.blog-body h3,
.blog-body h4 {
    color: #08386c;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: left;
}

/* ================================
   BLOCKQUOTE
================================ */
.blog-body blockquote {
    border-left: 4px solid #1e73be;
    padding-left: 15px;
    color: #555;
    font-style: italic;
    margin: 20px 0;
}

/* ================================
   LINKS
================================ */
.blog-body a {
    color: #1e73be;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-body a:hover {
    color: #155a96;
    text-decoration: underline;
}

/* ================================
   BLOG IMAGES (PARAGRAPH IMAGES)
================================ */
.blog-image {
    margin: 25px 0;
    text-align: center;
}

.blog-image img {
    width: 100%;
    height: 420px; /* same as top image */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image img:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

/* Left + Right images (same height & style) */
.blog-image-left {
    float: left;
    width: 45%;
    margin-right: 20px;
    margin-bottom: 15px;
}

.blog-image-right {
    float: right;
    width: 45%;
    margin-left: 20px;
    margin-bottom: 15px;
}

/* ================================
   BLOG IMAGES GALLERY (SIDE BY SIDE)
================================ */
.blog-images-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

.blog-gallery-item {
    margin: 0;
    text-align: center;
}

.blog-gallery-item img {
    width: 100%;
    height: 420px; /* uniform height */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-gallery-item img:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

/* ================================
   SEPARATOR LINE
================================ */
.blog-separator {
    margin: 40px 0;
    border: 0;
    height: 1px;
    background-color: #ccc;
}

/* ================================
   AUTHOR SECTION
================================ */
.blog-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.blog-author h3 {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

/* ================================
   RESPONSIVE DESIGN
================================ */

/* Tablet */
@media (max-width: 1024px) {
    .blog-detail {
        padding: 100px 15px 30px 15px;
    }

    .blog-detail h1 {
        font-size: 2.4rem;
    }

    .blog-detail-img,
    .blog-image img,
    .blog-gallery-item img {
        height: 360px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .blog-detail {
        padding: 110px 20px 40px 20px;
    }

    .blog-detail h1 {
        font-size: 2rem;
        margin: 20px 0 15px 0;
        padding: 0 8px;
    }

    .blog-detail .blog-date {
        padding: 0 8px;
        margin-bottom: 25px;
    }

    .blog-body {
        font-size: 1rem;
        line-height: 1.8;
        padding: 0 8px;
    }

    .blog-body p {
        margin-bottom: 16px;
    }

    .blog-body p:first-of-type {
        padding: 12px 8px;
        background-color: rgba(30, 115, 190, 0.05);
        border-left: 4px solid #1e73be;
        border-radius: 4px;
    }

    .blog-detail-img,
    .blog-image img,
    .blog-gallery-item img {
        height: 280px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .blog-image-left,
    .blog-image-right {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .blog-images-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .blog-separator {
        margin: 30px 8px;
    }

    .blog-author {
        padding: 20px 12px;
        background-color: rgba(240, 240, 240, 0.5);
        border-radius: 8px;
        margin-top: 20px;
    }

    .blog-author h3 {
        margin-bottom: 12px;
        font-size: 1.1rem;
    }

    .blog-author p {
        margin: 0;
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-detail {
        padding: 100px 16px 35px 16px;
    }

    .blog-detail h1 {
        font-size: 1.7rem;
        margin: 15px 0 10px 0;
        padding: 0 6px;
        line-height: 1.3;
    }

    .blog-detail .blog-date {
        padding: 0 6px;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }

    .blog-body {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 6px;
    }

    .blog-body p {
        margin-bottom: 14px;
    }

    .blog-body p:first-of-type {
        font-size: 1rem;
        padding: 10px 8px;
    }

    .blog-detail-img,
    .blog-image img,
    .blog-gallery-item img {
        height: 220px;
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .blog-separator {
        margin: 25px 6px;
    }

    .blog-author {
        padding: 16px 10px;
        margin-top: 18px;
    }

    .blog-author h3 {
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .blog-author p {
        font-size: 0.9rem;
    }
}
