/* Blog Specific Styles */

/* Main Content */
.page-container {
    padding-top: 100px;
    min-height: 100vh;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--beige), white);
    padding: 6rem 0 2.5rem; /* Changed from 4rem to 2.5rem */
    padding-top: 200px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Container */
.blog-container {
    padding: 4rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    display: flex;
    flex-direction: column;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

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

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

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

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

.post-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--english-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-post .post-content {
    padding: 3rem;
}

.featured-post .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-post .post-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Post Cards */
.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.blog-post .post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-post .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--english-red);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post .post-content {
    padding: 2rem;
}

.blog-post .post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post .post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-meta span::before {
    content: '•';
    color: var(--english-red);
    font-weight: bold;
}

.post-meta span:first-child::before {
    display: none;
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--english-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.read-more-btn:hover {
    color: #8B4340;
    transform: translateX(5px);
}

.read-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    width: 100%;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--english-red);
    color: white;
    border-color: var(--english-red);
    transform: translateY(-2px);
}

.pagination-dots {
    color: var(--text-light);
    font-weight: bold;
    padding: 0 0.5rem;
}

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

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--english-red);
}

/* Categories */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.category-link:hover {
    color: var(--english-red);
    border-bottom-color: var(--english-red);
    transform: translateX(5px);
}

.post-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Recent Posts */
.recent-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-post-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.recent-post-title a:hover {
    color: var(--english-red);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Newsletter */
.newsletter-signup p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--english-red);
}

.newsletter-btn {
    padding: 0.75rem;
    background: var(--english-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #8B4340;
    transform: translateY(-2px);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--beige);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--english-red);
    color: white;
    transform: translateY(-2px);
}
.nav-logo {
    text-decoration: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .blog-hero {
        padding: 4rem 0 1.5rem; /* Reduced mobile bottom padding */
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .blog-container {
        padding: 2rem 0;
    }
    
    .blog-layout {
        gap: 1.5rem;
    }
    
    .featured-post .post-content {
        padding: 1.5rem;
    }
    
    .featured-post .post-title {
        font-size: 1.5rem;
    }
    
    .blog-post .post-content {
        padding: 1.5rem;
    }
    
    .blog-post .post-title {
        font-size: 1.2rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .recent-post {
        gap: 0.75rem;
    }
    
    .recent-post-image {
        width: 50px;
        height: 50px;
    }
    
    .recent-post-title {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .blog-sidebar,
    .footer,
    .pagination {
        display: none;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-hero {
        background: white !important;
        padding: 2rem 0;
    }
    
    .featured-post,
    .blog-post {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .post-image {
        height: auto !important;
    }
    
    .read-more-btn {
        display: none;
    }
}

/* Loading Animation for Images */
.post-img,
.featured-img {
    background: var(--light-gray);
    background-image: linear-gradient(
        90deg,
        var(--light-gray) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        var(--light-gray) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .featured-post,
    .blog-post,
    .read-more-btn,
    .pagination-btn,
    .category-link,
    .tag,
    .newsletter-btn {
        transition: none;
    }
    
    .featured-post:hover,
    .blog-post:hover {
        transform: none;
    }
    
    .read-more-btn:hover,
    .category-link:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.read-more-btn:focus,
.pagination-btn:focus,
.newsletter-btn:focus,
.category-link:focus,
.tag:focus {
    outline: 2px solid var(--english-red);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .featured-post,
    .blog-post,
    .sidebar-widget {
        border: 2px solid var(--text-dark);
    }
    
    .post-category {
        background: var(--text-dark);
        color: white;
    }
    
    .tag {
        border: 1px solid var(--text-dark);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 140px;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-post {
        grid-column: 1;
        margin-bottom: 2rem;
    }
    
    .featured-post .post-image {
        height: 250px;
    }
    
    .featured-post .post-content {
        padding: 2rem;
    }
    
    .featured-post .post-title {
        font-size: 1.8rem;
    }
    
    .featured-post .post-excerpt {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-layout {
        display: flex;
        flex-direction: column;
    }
    
    .blog-main {
        order: 1;
    }
    
    .blog-sidebar {
        position: static;
        order: 2;
        margin-top: 3rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width:
