/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-hero p {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.blog-content {
    padding: 4rem 0;
    background-color: var(--white);
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-left: 5px solid var(--secondary);
}

.featured-post .post-image {
    height: 300px;
}

.featured-post .post-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--white) 100%);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.post-date {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.post-date::before {
    content: "📅";
    margin-right: 0.3rem;
}

.post-category {
    background: var(--light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content h2,
.post-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 a,
.post-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.post-content h2 a:hover,
.post-content h3 a:hover {
    color: var(--secondary);
}

.post-excerpt {
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.read-more {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--primary);
    gap: 0.8rem;
}

.read-time {
    color: var(--gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-time::before {
    content: "⏱️";
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-number,
.page-next {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--light);
    border-radius: 6px;
    transition: var(--transition);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    background: var(--white);
}

.page-number:hover,
.page-next:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-number.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
}

.sidebar-widget h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
}

.search-form {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--light);
    border-right: none;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--primary);
}

.search-form button {
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 50px;
}

.search-form button:hover {
    background: var(--secondary);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
}

.category-list li:hover {
    background: var(--light);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.category-list a:hover {
    color: var(--primary);
}

.category-list span {
    background: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
}

.recent-posts li:hover {
    background: var(--light);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
}

.recent-posts a:hover {
    color: var(--primary);
}

.recent-posts span {
    font-size: 0.8rem;
    color: var(--gray);
    display: block;
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: var(--white);
}

.newsletter-widget h3 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form .btn-primary {
    background: var(--secondary);
    border: none;
    font-weight: 600;
}

.newsletter-form .btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--light);
    color: var(--dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, #e67e22 100%);
    text-align: center;
    padding: 4rem 0;
}

.blog-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.blog-cta p {
    color: var(--light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design for Blog Page */
@media (max-width: 1200px) {
    .blog-layout {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-image {
        height: 250px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-content {
        padding: 3rem 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-content {
        padding: 2rem;
    }
    
    .post-content {
        padding: 1.25rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 3rem 0;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .page-number,
    .page-next {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Styles for Blog Page */
@media print {
    .blog-sidebar,
    .blog-cta,
    .pagination {
        display: none;
    }
    
    .blog-hero {
        background: none !important;
        color: #000 !important;
    }
    
    .blog-hero h1,
    .blog-hero p {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .blog-post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .featured-post {
        border-left: none;
    }
}