/* Blog Section Styles */
.blog-hero {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #ffffff;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Grid */
.blog-grid {
    padding: var(--spacing-xl) 0;
    background: #f8f9fa;
}

.blog-grid .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-date i, .blog-author i {
    color: #ff4757;
}

.blog-title {
    font-size: 1.4rem;
    color: #1e1e4b;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.blog-title a:hover {
    color: #ff4757;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: #ff2c40;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* No Blogs Message */
.no-blogs {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--text-muted);
}

.no-blogs i {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.no-blogs h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.no-blogs p {
    max-width: 500px;
    margin: 0 auto;
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #ff4757;
}

.featured-post .blog-image {
    height: 100%;
}

.featured-post .blog-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post .blog-title {
    font-size: 2rem;
}

/* Blog Sidebar */
.blog-sidebar {
    padding: 60px 0;
    background: white;
}

.sidebar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.sidebar-widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff4757;
    color: #333;
    font-weight: 700;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #ff4757;
}

.search-button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-button:hover {
    background: #ff6b81;
    transform: translateY(-2px);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 15px;
}

.category-link {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.category-link:hover {
    color: #ff4757;
    transform: translateX(5px);
}

.category-count {
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-title {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.recent-post-title:hover {
    color: #ff4757;
}

.recent-post-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 12px 24px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-link:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-2px);
}

.page-link.active {
    background: #ff4757;
    color: white;
}

/* Blog Detail Page */
.blog-detail {
    padding: var(--spacing-xl) 0;
    background: #f8f9fa;
}

.blog-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.blog-header .blog-meta {
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.blog-header .blog-title {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.blog-featured-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-detail .blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    color: var(--text-dark);
    border-top: 4px solid #ff4757;
}

.blog-detail .blog-content p {
    margin-bottom: var(--spacing-md);
}

.blog-detail .blog-content h2, 
.blog-detail .blog-content h3 {
    margin: var(--spacing-xl) 0 var(--spacing-md);
    color: #333;
}

.blog-detail .blog-content ul, 
.blog-detail .blog-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.blog-detail .blog-content li {
    margin-bottom: var(--spacing-xs);
}

.blog-detail .blog-content blockquote {
    border-left: 4px solid #ff4757;
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-blogs {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-normal);
}

.back-to-blogs:hover {
    color: #ff4757;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.share-buttons span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.share-button.facebook {
    background: #3b5998;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Related Blogs Section */
.related-blogs {
    padding: var(--spacing-xl) 0;
    background: #ffffff;
}

.related-blogs h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.related-blogs h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ff4757;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: var(--spacing-lg) 0;
        margin-top: 70px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .blog-cards {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
} 