/* ===================================
   Blog Page Styles
   =================================== */

/* Blog Hero Section */
.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #152238 100%);
    padding: 150px 0 100px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(30,144,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.blog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 22, 40, 0.8) 100%);
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero .hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.blog-hero .hero-subtitle {
    font-size: 20px;
    color: #a8c5e8;
    line-height: 1.6;
}

/* Featured Post */
.featured-post {
    background: #0a1628;
    padding: 80px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: linear-gradient(135deg, rgba(21, 34, 56, 0.5) 0%, rgba(10, 22, 40, 0.8) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(30, 144, 255, 0.3);
    border-color: #1e90ff;
}

.featured-image {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);
}

.featured-placeholder {
    font-size: 80px;
    color: rgba(30, 144, 255, 0.3);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
}

.featured-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.featured-content p {
    font-size: 16px;
    color: #a8c5e8;
    line-height: 1.8;
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #a8c5e8;
}

.post-meta .category {
    background: rgba(30, 144, 255, 0.2);
    padding: 6px 15px;
    border-radius: 50px;
    color: #1e90ff;
    font-weight: 600;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #1e90ff 0%, #00bfff 50%, #87ceeb 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    align-self: flex-start;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 144, 255, 0.5);
}

/* Blog Grid */
.blog-grid {
    background: #0a1628;
    padding: 80px 0;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.blog-card {
    background: linear-gradient(135deg, rgba(21, 34, 56, 0.5) 0%, rgba(10, 22, 40, 0.8) 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(30, 144, 255, 0.2);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: #1e90ff;
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.3);
}

.blog-image {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);
    overflow: hidden;
}

.image-placeholder {
    font-size: 60px;
    color: rgba(30, 144, 255, 0.3);
    transition: all 0.3s ease;
}

.blog-card:hover .image-placeholder {
    transform: scale(1.1);
    color: rgba(30, 144, 255, 0.5);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(30, 144, 255, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #a8c5e8;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-content p {
    font-size: 14px;
    color: #a8c5e8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e90ff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    gap: 12px;
    color: #00bfff;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-section .btn {
    padding: 16px 40px;
}

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(0, 191, 255, 0.1) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-text h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
}

.newsletter-text p {
    font-size: 18px;
    color: #a8c5e8;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 25px;
    border-radius: 50px;
    border: 2px solid rgba(30, 144, 255, 0.3);
    background: rgba(21, 34, 56, 0.5);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.newsletter-form input::placeholder {
    color: #a8c5e8;
}

.newsletter-form .btn {
    padding: 16px 35px;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .featured-content {
        padding: 40px;
    }
    
    .blog-posts {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }
    
    .blog-hero .hero-title {
        font-size: 36px;
    }
    
    .blog-hero .hero-subtitle {
        font-size: 16px;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .featured-content h2 {
        font-size: 24px;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    .newsletter-text h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .featured-content {
        padding: 20px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}