/* Blog Detail Page Styles */

/* Blog Hero */
.blog-hero {
    height: 50vh;
    min-height: 400px;
    background-image: url('/media/img/home/img_1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--main-text);
    padding: 2rem;
}

.blog-hero-content h1 {
    font-size: 48px;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 18px;
    opacity: 0.9;
}

/* Blog Detail Section */
.blog-detail {
    background-color: var(--main-bg);
    padding: 6rem 0;
}

.blog-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

/* Main Article */
.blog-article {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
}

.blog-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content-text h2 {
    font-size: 32px;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.blog-content-text h3 {
    font-size: 24px;
    color: var(--secondary-text);
    margin: 2.5rem 0 1rem;
    font-weight: 400;
}

.blog-content-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

/* Share Section */
.blog-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.blog-share h4 {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-weight: 400;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-text);
    color: var(--main-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #2d4f57;
    transform: translateY(-2px);
}

/* Back Button */
.blog-back {
    margin-top: 2rem;
}

.back-btn {
    display: inline-block;
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    opacity: 0.7;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.blog-sidebar h3 {
    font-size: 28px;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.sidebar-article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-article:hover .sidebar-image img {
    transform: scale(1.05);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-content h4 {
    font-size: 23px;
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-family: var(--font-title);
}

.sidebar-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.sidebar-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.sidebar-link:hover {
    opacity: 0.7;
}

/* Responsive Design */

/* Tablet (960px - 1280px) */
@media (min-width: 960px) and (max-width: 1279px) {
    .blog-detail-container {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }

    .blog-article {
        padding: 2.5rem;
    }

    .blog-hero-content h1 {
        font-size: 40px;
    }

    .blog-featured-image {
        height: 400px;
    }

    .blog-content-text h2 {
        font-size: 28px;
    }

    .blog-content-text h3 {
        font-size: 22px;
    }

    .blog-content-text p {
        font-size: 16px;
    }

    .sidebar-image {
        height: 150px;
    }
}

/* Mobile (up to 960px) */
@media (max-width: 959px) {
    .blog-hero {
        height: 40vh;
        min-height: 300px;
    }

    .blog-hero-content h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .blog-date {
        font-size: 16px;
    }

    .blog-detail {
        padding: 3rem 0;
    }

    .blog-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .blog-article {
        padding: 2rem 1.5rem;
    }

    .blog-featured-image {
        height: 250px;
        margin-bottom: 2rem;
    }

    .blog-content-text h2 {
        font-size: 24px;
    }

    .blog-content-text h3 {
        font-size: 20px;
    }

    .blog-content-text p {
        font-size: 16px;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
    }

    .blog-sidebar h3 {
        font-size: 20px;
    }

    .sidebar-image {
        height: 180px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-btn {
        font-size: 13px;
        padding: 0.6rem 1.2rem;
    }
}
