/* Blog Styles */

/* Blog Container */
.blog-index .container,
.blog-post .container {
    max-width: 1200px;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header .intro {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Posts */
.featured-posts {
    margin-bottom: 4rem;
}

.featured-post-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.featured-post-card:hover {
    transform: translateY(-5px);
}

.featured-post-card .post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-card .post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.featured-post-card .post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 3;
    pointer-events: none;
}

.featured-post-card .post-content * {
    pointer-events: auto;
}

.featured-post-card .category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-post-card .category-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.featured-post-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.featured-post-card h3 a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.featured-post-card h3 a:hover {
    opacity: 0.9;
}

/* Blog Filters */
.blog-filters {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-filters h6 {
    color: #495057;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    background: white;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.category-filter:hover,
.category-filter.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #0d6efd;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d6efd;
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #0b5ed7;
}

.form-select {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.badge {
    transition: all 0.3s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-post-card .post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.blog-post-card .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card .post-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.blog-post-card .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.blog-post-card .post-meta i {
    flex-shrink: 0;
}

.blog-post-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-card h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post-card h3 a:hover {
    color: #0d6efd;
}

.blog-post-card .post-intro {
    color: #6c757d;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-post-card .read-more {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-card .read-more:hover {
    gap: 0.75rem;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.blog-pagination a,
.blog-pagination span {
    padding: 0.75rem 1.25rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.blog-pagination a:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.blog-pagination .current {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Blog Post Detail Page */
.post-header {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.post-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 2;
}

.post-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.post-header-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1rem;
}

.post-header-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.post-tag {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
}

.post-tag:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid #dee2e6;
}

.related-posts h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post-card {
        height: 300px;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .post-header {
        height: 350px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-body {
        padding: 2rem 15px;
    }
    
    .post-body p {
        font-size: 1rem;
    }
}


/* Blog Post Detail - Additional Styles */
.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 15px;
}

.post-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
}

.post-body blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
    font-size: 1.2rem;
}

.post-share {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.post-share h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

.related-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-card .card-body {
    padding: 1.5rem;
}

.related-post-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-post-card h4 a {
    color: #212529;
    text-decoration: none;
}

.related-post-card h4 a:hover {
    color: #0d6efd;
}

.post-header-meta i {
    font-size: 1.2rem;
}
