.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    text-align: center;
}

.blog-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.blog-featured {
    margin-bottom: 4rem;
}

.blog-featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.blog-featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

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

.blog-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.blog-featured-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.blog-featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-featured-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-featured-title {
        font-size: 1.5rem;
    }
}

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.blog-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #667eea;
    color: white;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title:hover {
    color: #667eea;
}

.blog-card-summary {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-read-more {
    color: #667eea;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card-read-more:hover {
    color: #764ba2;
}

.blog-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-detail-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 0 1.5rem;
    margin: 2rem 0;
}

@media screen and (max-width: 1024px) {
    .blog-detail-main-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .blog-detail-sidebar {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 2px solid #eee;
    }
}

.blog-detail-main {
    min-width: 0;
}

.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-sidebar-widget {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.blog-sidebar-widget:hover {
    border-color: #667eea;
    background: #f5f5ff;
}

.blog-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-sidebar-item {
    display: block;
    padding: 0.75rem 0;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0.5rem;
}

.blog-sidebar-item:last-child {
    border-bottom: none;
}

.blog-sidebar-item::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.blog-sidebar-item:hover {
    color: #764ba2;
    padding-left: 1rem;
}

.blog-sidebar-item:hover::before {
    opacity: 1;
}

.blog-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-sidebar-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-sidebar-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.blog-sidebar-post-item {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-sidebar-post-item:last-child {
    border-bottom: none;
}

.blog-sidebar-post-title {
    font-weight: 600;
    color: #222;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.blog-sidebar-post-date {
    font-size: 0.8rem;
    color: #999;
}

.blog-sidebar-post-item:hover .blog-sidebar-post-title {
    color: #667eea;
}

.blog-breadcrumb {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-detail-hero {
    margin-bottom: 2rem;
}

.blog-detail-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16 / 9;
}

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

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

.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666;
}

.blog-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-detail-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.blog-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    .blog-detail-title {
        font-size: 1.8rem;
    }
    
    .blog-detail-meta {
        gap: 1rem;
    }
}

.blog-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
}

.blog-detail-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    margin: 2rem 0 1rem 0;
}

.blog-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin: 1.5rem 0 0.75rem 0;
}

.blog-detail-content p {
    margin-bottom: 1rem;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 1rem 0 1rem 2rem;
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-detail-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-detail-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid #667eea;
}

.blog-detail-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.blog-share {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 2.5rem 0;
    border-left: 4px solid #667eea;
}

.blog-share-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

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

.blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.blog-related-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #222;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.blog-comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
}

.blog-list-header {
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    border-radius: 0;
    text-align: center;
}

.blog-list-header h1 {
    color: #222;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.blog-list-header p {
    font-size: 1.1rem;
    color: #666;
}

@media screen and (max-width: 768px) {
    .blog-list-header {
        padding: 2rem 1rem;
    }
    
    .blog-list-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-list-header p {
        font-size: 0.95rem;
    }
}

.divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 1.5rem 0;
}
