﻿/* Blog & Insights Page Styles */

/* Hero Section */
.blog-hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
    justify-content: center;
}

.blog-btn-primary {
    background: white;
    color: #1e3a8a;
    border-color: white;
}

.blog-btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.blog-btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.blog-btn-secondary:hover {
    background: white;
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Topic Filter Section */
.topic-filter-section {
    padding: 60px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.topic-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.topic-filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.topic-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topic-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.topic-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Featured Articles Section */
.featured-articles-section {
    padding: 80px 0;
    background: white;
}

.featured-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-articles-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1e293b;
    position: relative;
}

.featured-articles-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
    border-radius: 2px;
}

.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.featured-article-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
}

.featured-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.article-date {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.article-author {
    margin-bottom: 25px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.author-title {
    color: #64748b;
    font-size: 14px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #1e3a8a;
    gap: 12px;
}

.read-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: translateX(4px);
}

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

.latest-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-articles-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1e293b;
    position: relative;
}

.latest-articles-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
    border-radius: 2px;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.latest-article-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.latest-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e3a8a);
}

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

.latest-article-card .article-category {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 12px;
}

.latest-article-card .article-date {
    font-size: 13px;
    margin-bottom: 15px;
}

.latest-article-card .article-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.latest-article-card .article-excerpt {
    font-size: 14px;
    margin-bottom: 20px;
}

.latest-article-card .article-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 20px;
}

.latest-article-card .author-name {
    font-size: 14px;
}

.latest-article-card .author-title {
    font-size: 12px;
}

.latest-article-card .read-more-btn {
    font-size: 12px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="newsletter-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletter-grain)"/></svg>');
    opacity: 0.3;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.newsletter-content {
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 16px;
    background: white;
    color: #1e293b;
    outline: none;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-submit-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 18px 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background: #1e40af;
    
}

.newsletter-disclaimer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* WhatsApp Chat Button - Fixed positioning ensured */






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

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-description {
        font-size: 1.1rem;
    }
    
    .blog-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .blog-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .topic-filter-buttons {
        gap: 10px;
    }
    
    .topic-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .featured-articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-article-card {
        padding: 30px;
    }
    
    .latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .latest-article-card {
        padding: 25px;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-description {
        font-size: 1.1rem;
    }
    
    .form-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-input {
        border-radius: 15px 15px 0 0;
    }
    
    .newsletter-submit-btn {
        border-radius: 0 0 15px 15px;
        justify-content: center;
    }
    
    
    
    
}

@media (max-width: 480px) {
    .blog-hero-section {
        padding: 100px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .featured-articles-title,
    .latest-articles-title {
        font-size: 2rem;
    }
    
    .newsletter-title {
        font-size: 1.75rem;
    }
    
    .featured-article-card,
    .latest-article-card {
        padding: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .blog-hero-section,
    .newsletter-section {
        background: #000;
    }
    
    .blog-btn-primary {
        background: #fff;
        color: #000;
        border-color: #000;
    }
    
    .blog-btn-secondary {
        background: #000;
        color: #fff;
        border-color: #fff;
    }
}
/* Standardized WhatsApp Button - Consistent across all pages */
.whatsapp-btn,
.whatsapp-chat,
.whatsapp-chat-btn,
[class*="whatsapp"],
[class*="chat-btn"] {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    pointer-events: auto !important;
    transform: none !important;
    contain: none !important;
    perspective: none !important;
    filter: none !important;
    isolation: auto !important;
    mix-blend-mode: normal !important;
    backface-visibility: visible !important;
    will-change: auto !important;
    float: none !important;
    clear: none !important;
    vertical-align: baseline !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    object-fit: fill !important;
    object-position: 50% 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background-color: #25D366 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: none !important;
    font-size: 26px !important;
    justify-content: center !important;
    align-items: center !important;
}

.whatsapp-btn:hover,
.whatsapp-chat:hover,
.whatsapp-chat-btn:hover,
[class*="whatsapp"]:hover,
[class*="chat-btn"]:hover {
    color: #fff !important;
    text-decoration: none !important;
    transform: none !important;
}

/* Standardized Header - Consistent across all pages */
.new-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow: visible;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(10px);
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    transform: none !important;
    contain: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    bottom: auto !important;
    height: 80px !important;
    filter: none !important;
    perspective: none !important;
}

