﻿.blog-detail-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f5f5f5;
}

.blog-detail-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #fff;
    padding: 25px;
    width: 100%;
    max-width: 750px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
}

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 12px;
    }

.blog-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
    .blog-detail-img:hover {
        transform: scale(1.1); /* 10% zoom */
    }
#modalBlogImg {
    transition: transform 0.3s ease;
}

    #modalBlogImg:hover {
        transform: scale(1.2); /* 20% zoom in modal */
    }

.blog-detail-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.blog-detail-meta-wrapper {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.blog-detail-content-wrapper {
    position: relative;
}

/* Show only ~2.5 lines */
.blog-detail-content {
    font-size: 1rem;
    line-height: 1.6;
    overflow: hidden;
    text-align: justify;
    transition: max-height 0.3s ease;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.see-more {
    display: inline-block;
    color: #007bff;
    cursor: pointer;
    margin-top: 5px;
    font-weight: 600;
}





/* Back button */
.btn-container {
    text-align: center;
}

.btn-back {
    padding: 12px 25px;
    border-radius: 10px;
}
.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}


/* Responsive */
@media (max-width: 768px) {
    .blog-detail-card {
        padding: 20px;
    }

    .blog-detail-title {
        font-size: 1.4rem;
    }

    .blog-detail-img {
        max-height: 300px;
    }
}
