/* Blog Page Styles */

/* Full width reset */
.page-template-template-blog .site-content,
.page-template-template-blog .content-area,
.page-template-template-blog #primary {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.site-content {
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.blog-hero {
    background: #0A0E27;
    padding: 80px 40px 60px 40px;
}

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

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    color: white;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.blog-hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

/* Featured Posts Section */
.blog-featured-section {
    background: white;
    padding: 60px 40px;
}

.blog-featured-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Main Featured Post */
.featured-main-link {
    display: block;
    text-decoration: none;
}

.featured-main-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-main-link:hover .featured-main-image img {
    transform: scale(1.03);
}

.featured-main-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-main-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.featured-main-link:hover .featured-main-title {
    color: #00D9FF;
}

/* Post Category Badge */
.post-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #00D9FF;
    text-transform: capitalize;
}

/* Post Date */
.post-date {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Sidebar Posts */
.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-post {
    display: flex;
    gap: 16px;
    text-decoration: none;
    align-items: flex-start;
}

.sidebar-post-image {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.sidebar-post-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-post-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.sidebar-post:hover .sidebar-post-title {
    color: #00D9FF;
}

/* Recent Posts Section */
.blog-recent-section {
    background: white;
    padding: 60px 40px 100px 40px;
}

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

.recent-title {
    font-size: 2.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 30px 0;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #00D9FF;
    color: #00D9FF;
}

.category-btn.active {
    background: #0A0E27;
    border-color: #0A0E27;
    color: white;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    display: block;
}

.post-card-link {
    display: block;
    text-decoration: none;
}

.post-card-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-card-link:hover .post-card-image img {
    transform: scale(1.03);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card-link:hover .post-card-title {
    color: #00D9FF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-featured-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .featured-main-image img {
        height: 350px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 30px 50px 30px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-featured-section {
        padding: 50px 30px;
    }
    
    .featured-main-image img {
        height: 280px;
    }
    
    .featured-main-title {
        font-size: 1.5rem;
    }
    
    .blog-recent-section {
        padding: 50px 30px 80px 30px;
    }
    
    .recent-title {
        font-size: 1.875rem;
    }
    
    .category-filters {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .post-card-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 50px 20px 40px 20px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-description {
        font-size: 0.95rem;
    }
    
    .blog-featured-section {
        padding: 40px 20px;
    }
    
    .featured-main-image img {
        height: 220px;
    }
    
    .featured-main-title {
        font-size: 1.25rem;
    }
    
    .sidebar-post-image {
        width: 80px;
        height: 65px;
    }
    
    .sidebar-post-title {
        font-size: 0.9rem;
    }
    
    .blog-recent-section {
        padding: 40px 20px 60px 20px;
    }
    
    .recent-title {
        font-size: 1.5rem;
    }
    
    .post-card-title {
        font-size: 1.125rem;
    }
}

/* No Posts Message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.no-posts-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
    margin: 0 0 16px 0;
}

.no-posts-content p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.no-posts-content p:last-child {
    margin-bottom: 0;
}

.no-posts-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.no-posts-content a:hover {
    text-decoration: underline;
}
