/* Blog Styles */

.blog-hero {
    padding: 10rem 0 5rem;
    background-color: var(--bg-light);
    color: var(--text-main);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.blog-card {
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(25, 135, 84, 0.2);
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

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

.blog-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-readmore {
    gap: 0.5rem;
}

/* Layout Wrapper with Right Sidebar */
.blog-layout-wrapper {
    display: grid;
    grid-template-columns: 8.5fr 3.5fr;
    gap: 3rem;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

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

@media (max-width: 576px) {
    .blog-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Detail Page */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 8.5fr 3.5fr;
    gap: 3rem;
}

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

.blog-main-content {
    background: #ffffff;
    border-radius: 6px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

@media (max-width: 576px) {
    .blog-main-content {
        padding: 1.5rem;
    }
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }
}

.blog-post-image {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
}

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

.blog-post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.blog-post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.blog-post-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.blog-post-body blockquote {
    border-left: 4px solid var(--primary);
    background-color: #f8fafc;
    padding: 1.5rem;
    font-style: italic;
    font-size: 1.15rem;
    color: #475569;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.blog-post-body ul, .blog-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-body ul {
    list-style-type: disc;
}

.blog-post-body ol {
    list-style-type: decimal;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.recent-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

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

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-post-info h4 a:hover {
    color: var(--primary);
}

.recent-post-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
