/* ===================================
   Blog Page Styles
   =================================== */

/* Hero Section */
.blog-hero {
    position: relative;
    min-height: 700px;
    background: url('/images/blogs_header.png') center / cover no-repeat;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-right: 30px;
    padding-top: 10px;
}

.hero-badge {
    display: inline-block;
    background: #0047AB;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 170px;
}

.cta-text {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.btn-learning-center,
.btn-whitepaper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.btn-learning-center {
    background: #0047AB;
    color: white;
    border: 2px solid #0047AB;
}

.btn-learning-center:hover {
    background: #003d99;
    border-color: #003d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
    color: white;
}

.btn-whitepaper {
    background: transparent;
    color: #0047AB;
    border: 2px solid #0047AB;
}

.btn-whitepaper:hover {
    background: #0047AB;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.2);
}

.btn-learning-center i,
.btn-whitepaper i {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Featured Post Card */
.featured-post-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

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

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

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

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

.featured-content {
    padding: 25px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.featured-badge {
    display: inline-block;
    background: #0047AB;
    color: white;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: #999;
    font-size: 0.8rem;
}

.featured-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

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

.read-time {
    color: #999;
    font-size: 0.85rem;
}

.read-more {
    color: #0047AB;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: #003d99;
    gap: 12px;
}

.read-more i {
    font-size: 0.85rem;
}

/* Latest Articles Section */
.latest-articles {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #0047AB;
    color: #0047AB;
}

.filter-btn.active {
    background: #0047AB;
    border-color: #0047AB;
    color: white;
}

/* Articles Grid */
.articles-grid {
    margin-top: 30px;
}

.article-item {
    transition: opacity 0.3s ease;
}

.article-item.hidden {
    display: none;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.article-category {
    display: inline-block;
    background: #e8f2ff;
    color: #0047AB;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #999;
    font-size: 0.8rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 60px;
}

.article-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

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

.read-time {
    color: #999;
    font-size: 0.85rem;
}

.read-more {
    color: #0047AB;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: #003d99;
    gap: 12px;
}

.read-more i {
    font-size: 0.85rem;
}

/* Load More Button */
.btn-load-more {
    background: #0047AB;
    color: white;
    border: 2px solid #0047AB;
    padding: 15px 50px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #003d99;
    border-color: #003d99;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 71, 171, 0.3);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0047AB 0%, #003d99 100%);
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 50px;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.newsletter-form .input-group {
    display: flex;
    gap: 15px;
}

.newsletter-form .form-control {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.btn-join {
    background: white;
    color: #0047AB;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-join:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .featured-post-card {
        margin-top: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .newsletter-card {
        padding: 40px 30px;
    }

    .newsletter-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-learning-center,
    .btn-whitepaper {
        display: block;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .featured-post-card {
        margin-top: 30px;
        padding: 20px;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    .category-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1.1rem;
        min-height: auto;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn-join {
        width: 100%;
    }

    .newsletter-card {
        padding: 30px 20px;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .newsletter-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .latest-articles {
        padding: 60px 0;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .article-image {
        height: 200px;
    }
}

