/* Blog Specific Styles */

/* Active navigation link */
.nav-link.active {
    color: #f59e0b !important;
}

/* Blog Hero Section */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    padding: 3rem 0 4rem;
}

.blog-hero-content {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    line-height: 1.6;
}

/* Blog Content */
.blog-content {
    padding: 4rem 0;
    background: #f9fafb;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Main Blog Content */
.blog-main {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-image {
    height: 20rem;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-article-image {
    text-align: center;
    color: #64748b;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-category {
    background: #f59e0b;
    color: #0f172a;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.article-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.125rem;
}

.read-more-btn {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: #d97706;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.blog-post-card {
    display: grid;
    grid-template-columns: 1fr;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 12rem;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-post-image {
    text-align: center;
    color: #64748b;
}

.post-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-category {
    background: #f59e0b;
    color: #0f172a;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-date {
    color: #6b7280;
    font-size: 0.75rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.post-link {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.post-link:hover {
    color: #d97706;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
}

.pagination-btn.active {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f59e0b;
}

/* Search Widget */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.search-btn {
    padding: 0.75rem;
    background: #f59e0b;
    color: #0f172a;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #d97706;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #f59e0b;
}

.category-list span {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-meta {
    margin-bottom: 0.5rem;
}

.recent-post-date {
    color: #6b7280;
    font-size: 0.75rem;
}

.recent-post-title a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
}

.recent-post-title a:hover {
    color: #f59e0b;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
}

.newsletter-widget .widget-title {
    color: #0f172a;
}

.newsletter-widget p {
    color: #0f172a;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 1px solid #d97706;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.newsletter-btn {
    padding: 0.75rem;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-btn:hover {
    background: #1e293b;
}

/* Responsive Design */
@media (min-width: 640px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-article {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-image {
        height: auto;
    }
}

@media (min-width: 768px) {
    .blog-hero-title {
        font-size: 4rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-article {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-image {
        height: auto;
    }
}

@media (min-width: 1280px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog specific animations */
.blog-post-card,
.sidebar-widget {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved focus states for blog */
.search-input:focus,
.newsletter-input:focus {
    transform: translateY(-1px);
}

.pagination-btn:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}