/* Blog Styles */

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
}

/* Blog Post Cards */
.blog-post-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.category-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #e9ecef;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-title {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.widget-content {
    padding: 1.5rem;
}

/* Search Form */
.search-form .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.search-form .form-control {
    border: 1px solid #e9ecef;
    border-right: none;
    padding: 12px 15px;
}

.search-form .btn {
    border-radius: 0;
    padding: 12px 20px;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--primary-color);
}

.post-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    flex-shrink: 0;
}

.recent-post-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.recent-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.recent-post-date i {
    margin-right: 5px;
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
    color: white;
}

.newsletter-widget .widget-title {
    background: rgba(255,255,255,0.1);
}

.newsletter-widget .widget-content p {
    color: rgba(255,255,255,0.9);
}

.newsletter-form .form-control {
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 1rem;
}

.newsletter-form .btn-block {
    width: 100%;
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.newsletter-form .btn-block:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

/* Individual Blog Post Styles */
.blog-post-section {
    padding: 60px 0;
}

.blog-post {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    margin-bottom: 3rem;
}

.post-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.post-header .post-category {
    position: static;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--primary-color);
}

.post-featured-image {
    position: relative;
}

.post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem 2rem 1rem;
}

.post-content {
    padding: 2rem;
}

.post-excerpt {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.post-excerpt .lead {
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
}

.post-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    margin: 2rem 0;
    font-style: italic;
}

/* Tags */
.post-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
}

.post-tags h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background: #f8f9fa;
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Social Share */
.post-share {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.post-share h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Post Navigation */
.post-navigation {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    padding: 2rem;
    margin-bottom: 3rem;
}

.nav-post {
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.nav-post:hover {
    background: var(--primary-color);
    color: white;
}

.nav-post:hover .nav-title a {
    color: white;
}

.nav-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.nav-post:hover .nav-label {
    color: rgba(255,255,255,0.8);
}

.nav-title {
    margin: 0;
    font-size: 1.1rem;
}

.nav-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Author Widget */
.author-widget .widget-content {
    text-align: center;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.author-bio {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Related Posts */
.related-posts-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.related-post-image {
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--primary-color);
}

.related-post-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .post-navigation .nav-post {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .post-navigation .next-post {
        text-align: center;
    }
}
