/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.blog-hero-subtitle {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* Search Bar */
.blog-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.blog-search input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 20px;
}

/* Blog Layout */
.blog-section {
    padding: 60px 0;
    background: #f8fafc;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Featured Post */
.featured-post {
    margin-bottom: 40px;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.featured-content {
    padding: 30px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.featured-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-info span {
    color: #888;
    font-size: 14px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background: white;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.card-author span {
    font-size: 13px;
    color: #666;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-content h4 a:hover {
    color: var(--primary-color);
}

.popular-post-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Categories List */
.categories ul {
    list-style: none;
}

.categories li {
    margin-bottom: 12px;
}

.categories a {
    display: flex;
    justify-content: space-between;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories a:hover {
    color: var(--primary-color);
}

.categories span {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 12px;
}

/* Newsletter Card */
.newsletter-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.newsletter-card h3:after {
    background: white;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
}

.privacy-note {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
}

/* CTA Card */
.cta-card {
    background: white;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.cta-whatsapp {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #25D366;
}

.cta-whatsapp a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

/* Blog Footer CTA */
.blog-footer-cta {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-footer-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.blog-footer-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-hero-title {
        font-size: 36px;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }

    .blog-hero-title {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}