/*
Blog Detail Page Styles
Separate CSS file for blog detail page to avoid conflicts
Optimized for Bootstrap 5 integration
*/

/* ===================================
   BLOG DETAIL PAGE STYLES
   =================================== */

/* Blog Detail Container */
.sbs-blog-detail {
    position: relative;
    min-height: 100vh;
    background-color: #F7F7F7;
}

/* Blog Detail Content Section */
.blog-detail-content {
    padding: 60px 28px 60px;
    min-height: calc(100vh - 284px - 278px);
    position: relative;
}

/* Blog Detail Article */
.blog-detail-article {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 40px;
}

.blog-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
}

.blog-detail-date {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #8E8E8E;
    line-height: 1.5;
}

.blog-detail-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #262626;
    margin: 0;
}

.blog-detail-content-text {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #414141;
}

.content-section {
    margin-bottom: 32px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-heading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #262626;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
}

.content-body p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #262626;
}

.content-body p:last-child {
    margin-bottom: 0;
}

/* Sidebar Styles */
.blog-detail-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 24px 0;
}

/* Related Posts Section */
.blog-detail-related {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}


.related-post-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: #F8F9FA;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    background: #F1F3F4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-post-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.related-post-date {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 12px;
    color: #8E8E8E;
}

.related-post-category {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #8E8E8E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    background: rgba(142, 142, 142, 0.1);
    border-radius: 4px;
}

/* View All Button (Sidebar) */
.view-all-section {
    text-align: center;
    margin-top: 4px;
}

.view-all-section .sbs-btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    color: #262626;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.view-all-section .sbs-btn-outline-sm:hover {
    background: #F8F9FA;
    border-color: #CFD4DA;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.view-all-section .sbs-btn-outline-sm:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.view-all-section .sbs-btn-outline-sm svg {
    width: 16px;
    height: 16px;
    color: currentColor;
}

@media (max-width: 576px) {
    .view-all-section .sbs-btn-outline-sm {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }
}

/* Staff Recruitment Section */
.staff-recruitment-section {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    border-radius: 12px;
    padding: 24px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.staff-recruitment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/recruitment-bg.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.staff-recruitment-section>* {
    position: relative;
    z-index: 2;
}

.recruitment-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.recruitment-tag {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-instruction {
    background: rgba(34, 197, 94, 0.9);
    color: #FFFFFF;
}

.tag-office {
    background: rgba(59, 130, 246, 0.9);
    color: #FFFFFF;
}

.tag-shuttle {
    background: rgba(245, 158, 11, 0.9);
    color: #FFFFFF;
}

.recruitment-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.recruitment-subtitle {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 14px;
    color: #E2E8F0;
    margin: 0 0 20px 0;
}

.recruitment-action {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recruitment-action:hover {
    transform: translateX(4px);
}

.recruitment-text {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
}

.recruitment-action svg {
    color: #FFFFFF;
}

/* No Related Posts */
.no-related-posts {
    text-align: center;
    padding: 32px 16px;
    color: #8E8E8E;
}

.no-related-posts p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design for Blog Detail */
@media (max-width: 1200px) {

    .blog-detail-article {
        padding: 22px;
    }

    .blog-detail-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .blog-detail-article {
        padding: 24px;
        margin-bottom: 24px;
    }

    .blog-detail-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .blog-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .blog-detail-content-text {
        font-size: 15px;
    }

    .content-heading {
        font-size: 18px;
    }



    .related-post-card {
        padding: 12px;
    }

    .related-post-image {
        width: 70px;
        height: 50px;
    }

    .related-post-title {
        font-size: 13px;
    }

    .staff-recruitment-section {
        padding: 20px;
    }

    .recruitment-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .blog-detail-article {
        padding: 6px;
    }

    .blog-detail-title {
        font-size: 20px;
    }

    .blog-detail-content-text {
        font-size: 14px;
    }

    .related-post-card {
        flex-direction: column;
        text-align: center;
    }

    .related-post-image {
        width: 100%;
        height: 120px;
    }

    .related-post-meta {
        justify-content: center;
    }
}

/* Left column enhancements to match Figma */
.blog-detail-category {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #8E8E8E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(142, 142, 142, 0.12);
}

/* Featured image size control */
.blog-detail-featured-image {
    width: 100%;
    max-width: 100%;
}

.blog-detail-featured-image img {
    border-radius: 8px;
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

@media (max-width: 992px) {
    .blog-detail-featured-image img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .blog-detail-featured-image img {
        height: 220px;
    }
}

/* Rich content defaults */
.blog-detail-content-text h2,
.blog-detail-content-text h3,
.blog-detail-content-text h4,
.blog-detail-content-text h5 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #262626;
    margin: 1.2em 0 0.6em;
}

.blog-detail-content-text p {
    margin-bottom: 16px;
}

.blog-detail-content-text ul,
.blog-detail-content-text ol {
    padding-left: 1.2rem;
    margin-bottom: 16px;
}

.blog-detail-content-text blockquote {
    border-left: 4px solid #DD1F01;
    padding: 8px 16px;
    margin: 16px 0;
    background: #FFF6F4;
}

.blog-detail-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.blog-detail-content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.blog-detail-content-text table th,
.blog-detail-content-text table td {
    border: 1px solid #E5E7EB;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .blog-detail-featured-image img {
        border-radius: 6px;
    }
}