/* =========================================
   Blog Single Page Styles (blogsingle.css)
   ========================================= */

.blog-main-wrapper {
    padding: 3rem 1.5rem 5rem 1.5rem;
    background-color: #fcfcfc; /* สีพื้นหลังสว่างอมเทานิดๆ ให้อ่านสบายตา */
}

.blog-container {
    max-width: 850px; /* บังคับความกว้างไม่ให้เกินนี้ เพื่อให้อ่านง่าย */
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem 4rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- Blog Header --- */
.blog-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-header h1 {
    color: #003db3;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 300;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Blog Cover Image --- */
.blog-cover {
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 450px;
}

/* --- Blog Content Typography --- */
.blog-content {
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    color: #003db3;
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.blog-content h3 {
    color: #003db3;
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.blog-content strong {
    font-weight: 600;
    color: #0f172a;
}

/* --- Video Embed (Responsive 16:9) --- */
.blog-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 3rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Tags --- */
.blog-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-item {
    background-color: #f1f5f9;
    color: #003db3;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.tag-item:hover {
    background-color: #e2e8f0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .blog-container {
        padding: 2rem 1.5rem;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-content {
        font-size: 1.05rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}