/* --------------------------
   Blog Hero Section
-------------------------- */
.blog-hero {
    position: relative;
    background: url("../images/magadhsteelpipes.webp") center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.blog-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 20px 30px;
    border-radius: 10px;
}

.blog-hero .hero-pretitle {
    color: #ee1d24;
    /* Brand Red */
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --------------------------
   Blog Content Section
-------------------------- */
.blog-detail-page {
    padding: 60px 6%;
    background: #f9f9f9;
    border-radius: 12px;
}

.blog-detail-page .hero-title {
    font-size: 32px;
    color: #242176;
    /* Brand Blue */
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-detail-page .meta-pretitle {
    color: #ee1d24;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.blog-detail-page .meta {
    color: #555;
    font-size: 14px;
    margin-bottom: 25px;
}

.blog-detail-page .blog-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    text-align: justify;
}

/* --------------------------
   Blog Gallery
-------------------------- */
.blog-gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.blog-gallery-wrapper .gallery-item {
    flex: 1 1 calc(12.5% - 15px);
    /* 8-column grid */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-gallery-wrapper .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-gallery-wrapper .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --------------------------
   Comments Section
-------------------------- */
.blog-comments {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.blog-comments h3 {
    font-size: 24px;
    color: #242176;
    margin-bottom: 20px;
}

.blog-comments h4 {
    font-size: 20px;
    color: #242176;
    margin: 25px 0 15px 0;
}

.blog-comments .comment {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.blog-comments .comment:last-child {
    border-bottom: none;
}

.blog-comments .comment-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

/* Comment Form */
.blog-comments input,
.blog-comments textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.blog-comments button {
    padding: 12px 20px;
    background: #242176;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.blog-comments button:hover {
    background: #ee1d24;
}

/* --------------------------
   Messages (Success/Error)
-------------------------- */
.blog-messages {
    margin: 20px 0;
}

.blog-messages .message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 14px;
}

.blog-messages .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.blog-messages .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --------------------------
   Responsive
-------------------------- */
@media (max-width: 1024px) {
    .blog-gallery-wrapper .gallery-item {
        flex: 1 1 calc(25% - 15px);
    }
}

@media (max-width: 768px) {
    .blog-gallery-wrapper .gallery-item {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .blog-hero {
        height: 30vh;
    }

    .blog-hero .hero-pretitle {
        font-size: 14px;
    }

    .blog-detail-page .hero-title {
        font-size: 24px;
    }

    .blog-gallery-wrapper .gallery-item {
        flex: 1 1 100%;
    }
}