/* Blog-specific styles */

/* Main content spacing for header */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Import Color System */
@import url('../../css/colors.css');

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 1rem;
}

.blog-description {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Posts Section */
.blog-posts {
    padding: 4rem 0;
    background: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Blog Post Cards */
.blog-card {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

/* Ensure all blog cards have consistent white background */
.blog-card,
.blog-card:first-child,
.blog-card:nth-child(1),
.blog-card:first-of-type {
    background-color: #ffffff !important;
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--primary-maroon);
}

.blog-card-author {
    font-weight: 500;
    color: #2980b9;
}

.blog-card-date {
    position: relative;
}

.blog-card-date::before {
    content: "•";
    margin-right: 0.5rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a252f;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-card-excerpt {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-maroon);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal) ease;
}

.blog-card-link:hover {
    color: var(--primary-dark);
}

.blog-card-link::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-card-link:hover::after {
    transform: translateX(3px);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Active navigation link */
.nav-link.active {
    color: var(--primary-maroon);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 3rem 0 2rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-description {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 2rem 0 1.5rem;
    }
    
    .blog-posts {
        padding: 3rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
