/**
 * Blog Styling
 * Contains styles for blog listings, blog post pages and blog widgets
 */

/* Blog Header */
.page-heading {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    color: white;
    margin-bottom: var(--spacing-section);
}

.page-heading h6 {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.page-heading .line-dec {
    background-color: white;
    width: 50px;
    height: 2px;
    margin-bottom: var(--spacing-sm);
}

.page-heading h4 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.page-heading h4 em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.page-heading h4 span {
    color: rgba(255, 255, 255, 0.8);
}

.page-heading p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.page-heading img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Blog Post Card */
.blog-post-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 5px;
    padding: 5px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.post-date .day {
    font-size: 20px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.post-date .month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.post-content {
    padding: var(--spacing-md);
}

.post-category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.post-content h3,
.post-content h4 {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.post-content h3 a,
.post-content h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.post-content h3 a:hover,
.post-content h4 a:hover {
    color: var(--primary-color);
}

.post-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.post-meta span {
    color: var(--text-color-light);
    font-size: 14px;
}

.post-meta span i {
    color: var(--primary-color);
    margin-right: 5px;
}

.post-excerpt {
    color: var(--text-color-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.read-more,
.read-more-button {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: color var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.read-more:hover,
.read-more-button:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.read-more i,
.read-more-button i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.read-more:hover i,
.read-more-button:hover i {
    transform: translateX(5px);
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-post .post-image img {
    height: 400px;
}

.featured-post .post-content {
    padding: var(--spacing-lg);
}

.featured-post h3 {
    font-size: 28px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-lg);
}

.widget-title {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.widget-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    outline: none;
    transition: border-color var(--transition-speed) ease;
}

.search-form input:focus {
    border-color: var(--primary-color);
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.search-form button:hover {
    color: var(--primary-color);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color-light);
    transition: color var(--transition-speed) ease;
    text-decoration: none;
}

.categories-list li a:hover {
    color: var(--primary-color);
}

.categories-list li a span {
    color: var(--primary-color);
    font-size: 14px;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

/* Recent Posts Widget */
.recent-post-item {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image img {
    border-radius: 5px;
}

.recent-post-content h6 {
    font-size: 16px;
    margin-bottom: 5px;
}

.recent-post-content h6 a {
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
    text-decoration: none;
}

.recent-post-content h6 a:hover {
    color: var(--primary-color);
}

.recent-post-content .date {
    font-size: 12px;
    color: var(--text-color-light);
}

.recent-post-content .date i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Tags Widget */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 0 var(--spacing-md);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, var(--primary-color-hover) 0%, var(--primary-color) 100%);
}

/* Pagination */
.pagination-container {
    margin-top: var(--spacing-xl);
}

.pagination {
    display: inline-flex;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pagination li {
    list-style: none;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination li:last-child a {
    border-right: none;
}

.pagination li.active a,
.pagination li a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

/* Single Blog Post */
.blog-post {
    padding: var(--spacing-section) 0;
}

.blog-content {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-content .featured-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.blog-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-color-light);
}

.blog-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: 20px;
}

.blog-content ul li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-color-light);
}

.blog-content blockquote {
    background: rgba(139, 92, 246, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-color);
}

/* Blog Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    color: white;
    text-align: center;
    margin-bottom: var(--spacing-section);
}

.page-banner h6 {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.page-banner .line-dec {
    background-color: white;
    width: 50px;
    height: 2px;
    margin: 0 auto var(--spacing-sm);
}

.page-banner h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.page-banner h2 em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.page-banner .meta-data {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.page-banner .meta-data span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.page-banner .meta-data span i {
    margin-right: 5px;
}

/* Blog CTA */
.cta-blog {
    background: #f9f9f9;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-blog h4 {
    font-size: 28px;
    margin-bottom: var(--spacing-sm);
}

.cta-blog .line-dec {
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 0 auto var(--spacing-md);
}

.cta-blog p {
    margin-bottom: var(--spacing-lg);
}

.cta-blog .main-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.cta-blog .main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .page-heading {
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .page-heading img {
        margin-top: var(--spacing-lg);
    }
    
    .featured-post .post-image img {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .page-heading h4 {
        font-size: 28px;
    }
    
    .featured-post .post-content {
        padding: var(--spacing-md);
    }
    
    .featured-post h3 {
        font-size: 24px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .sidebar-widget {
        padding: var(--spacing-md);
    }
    
    .page-banner h2 {
        font-size: 28px;
    }
    
    .page-banner .meta-data {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}