/* Blog Main Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-navy), var(--navy-light));
    color: white;
    border-radius: 1rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text);
}

.search-button {
    background: var(--primary-orange);
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: var(--orange-dark);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 40px;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    gap: 30px;
}

.blog-post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-light);
}

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

.post-image {
    aspect-ratio: 4 / 3; /* Enforce 4:3 ratio */
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-image img {
    padding: 5px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.post-category {
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.post-category:hover {
    background: var(--orange-dark);
    color: white;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-orange);
}

.post-summary {
    color: var(--gray-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--background);
    color: var(--gray-dark);
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.tag:hover {
    background: var(--gray-light);
    color: var(--primary-navy);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.post-stats {
    display: flex;
    gap: 15px;
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 1rem;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-light);
}

.sidebar-section h3 {
    margin: 0 0 20px 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 10px;
}

.featured-post {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.featured-post:last-child {
    border-bottom: none;
}

.featured-post h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.4;
}

.featured-post h4 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post h4 a:hover {
    color: var(--primary-orange);
}

.featured-date {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-orange);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.newsletter {
    background: linear-gradient(135deg, var(--primary-navy), var(--navy-light));
    color: white;
}

.newsletter h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 6px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--orange-dark);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-link {
    padding: 10px 16px;
    background: white;
    color: var(--primary-orange);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: var(--primary-orange);
    color: white;
}

.pagination-current {
    padding: 10px 16px;
    background: var(--primary-orange);
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-dark);
}

.no-posts h3 {
    margin-bottom: 10px;
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .search-wrapper {
        margin: 0 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .blog-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 10px;
    }
    
    .sidebar-section {
        padding: 20px;
    }
    
    .post-content {
        padding: 20px;
    }
}


.tag-current {
    background: var(--primary-orange) !important;
    color: white !important;
    font-weight: 600;
}





