/* Blog Detail Page Styles */

:root {
    --primary-blue: #002e5b;
    --primary-green: #27ae60;
    --light-grey: #f8f9fa;
    --dark-text: #333;
    --medium-text: #666;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-color: #eee;
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* Base Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Sidebar (Right Side) */
.blog-sidebar .sidebar-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.blog-sidebar .sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 600;
}

/* Detail Hero Section */
.detail-hero {
    background:
        linear-gradient(rgba(0, 40, 85, 0.7), rgba(0, 40, 85, 0.7)),
        url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2073&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    padding: 120px 0 100px;
    color: var(--white);
    text-align: center;
}

.detail-hero .breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
}

.detail-hero .breadcrumbs a {
    color: white;
    text-decoration: none;
}

.detail-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 992px) {
    .detail-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 80px 0 60px;
    }

    .detail-hero h1 {
        font-size: 2.2rem;
    }

    .detail-hero .breadcrumbs {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .detail-hero h1 {
        font-size: 1.8rem;
    }
}

/* Article Content */
.article-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .featured-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 250px;
    }
}

.article-body {
    padding: 40px;
}

@media (max-width: 768px) {
    .article-body {
        padding: 25px;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--medium-text);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta span i {
    color: var(--primary-blue);
}

.article-content {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 25px;
}

/* Article Footer */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    gap: 20px;
}

@media (max-width: 768px) {
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.share-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-grey);
    color: var(--medium-text);
    transition: var(--transition);
}

.share-links a:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    background: var(--light-grey);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 25px;
    }
}

/* Related Posts */
.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-thumb {
    height: 200px;
}

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

.related-info {
    padding: 20px;
}

.related-info h4 {
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Widgets */
.search-widget .search-box {
    display: flex;
    background: #f5f7fa;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    overflow: hidden;
}

.search-widget input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    outline: none;
}

.search-widget button {
    padding: 0 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
}

.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    margin-bottom: 12px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: var(--medium-text);
    transition: color 0.2s;
}

.categories-list a:hover {
    color: var(--primary-blue);
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.recent-post-info span {
    font-size: 0.8rem;
    color: #aaa;
}
