/* =========================================
   Blog Detail Page Styles
   ========================================= */

.main-content {
    padding-top: 120px; /* Sesuaikan dengan tinggi navbar */
    padding-bottom: 60px;
    background-color: #f9f9f9;
}

.blog-detail-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.blog-detail-content {
    flex: 1;
    max-width: 900px;
    padding: 50px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.blog-detail-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.blog-detail-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.blog-detail-content h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-detail-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

blockquote {
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #ecf0f1;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #34495e;
    position: relative;
}

blockquote p {
    margin-bottom: 0;
}

blockquote::before {
    content: '“';
    font-family: 'Georgia', serif;
    font-size: 4rem;
    color: #bdc3c7;
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.5;
}

.btn-secondary {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Link Styles */
.blog-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #2980b9;
}

/* Sidebar Styles */
.sidebar-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #34495e;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #3498db;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.recent-post-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.recent-post-content h5 a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: #3498db;
}

.post-date {
    font-size: 0.8rem;
    color: #7f8c8d;
}

/* Full-width Sidebar */
.sidebar-fullwidth {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.sidebar-content {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.sidebar-content .sidebar-section {
    flex: 1;
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-detail-layout {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
    }

    .blog-detail-content {
        max-width: 100%;
    }

    .sidebar-content {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-content .sidebar-section {
        max-width: 100%;
    }
}