/* Articles Section Specific Styles */

/* Articles Hero */
.articles-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f0fdfc 0%, #e6fffa 100%);
}

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

.articles-hero .hero-title {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.articles-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #5a6c7d;
    margin-bottom: 3rem;
}

/* Search and Filter */
.articles-search {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2b9d99;
    box-shadow: 0 0 0 3px rgba(43, 157, 153, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.filter-container {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2b9d99;
    box-shadow: 0 0 0 3px rgba(43, 157, 153, 0.1);
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: white;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2b9d99 0%, #258a86 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 14px;
    color: #888;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta .author {
    font-weight: 500;
    color: #2b9d99;
}

.article-meta .date::before,
.article-meta .read-time::before {
    content: "•";
    margin-right: 0.5rem;
    color: #cbd5e1;
}

/* Articles Grid */
.articles-grid-section {
    padding: 80px 0;
    background: #f0fdfc;
}

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

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(43, 157, 153, 0.15);
}

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

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

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

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.article-content {
    padding: 2rem;
}

.article-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #764ba2;
}

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

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2b9d99 0%, #258a86 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

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

.newsletter-form .btn {
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Navigation Active State */
.nav-link.active {
    color: #2b9d99;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .articles-search {
        flex-direction: column;
        width: 100%;
    }
    
    .search-container,
    .filter-container {
        width: 100%;
        min-width: auto;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .featured-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsive for Campaign Elements */
@media (max-width: 768px) {
    .campaign-message {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .campaign-message i {
        margin-right: 0;
    }
    
    .campaign-cta-banner {
        padding: 15px;
        margin-top: 1.5rem;
    }
    
    .recommended-badge {
        top: 15px;
        right: 15px;
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .author-image img {
        width: 150px;
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        padding: 100px 0 40px;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .featured-article {
        padding: 60px 0;
    }
    
    .articles-grid-section {
        padding: 60px 0;
    }
    
    .newsletter-section {
        padding: 60px 0;
    }
}

/* Campaign CTA Banner Styles */
.campaign-cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.campaign-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: white;
    text-align: left;
}

.campaign-message i {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.campaign-message span {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

.campaign-message .btn {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.campaign-message .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Recommended Badge for Campaign Articles */
.recommended-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.recommended-badge i {
    font-size: 10px;
}

/* Campaign Highlighted Articles */
.article-card.campaign-highlighted {
    border: 2px solid #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.article-card.campaign-highlighted:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}
.article-card.hidden {
    display: none;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    margin-bottom: 2rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message for Newsletter */
.newsletter-success {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 1rem;
    color: white;
    text-align: center;
}

/* Article Page Specific Styles */
.article-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.article-breadcrumb {
    margin-bottom: 2rem;
}

.article-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.article-breadcrumb span {
    color: #999;
    margin: 0 0.5rem;
}

.article-body {
    padding: 80px 0;
    background: white;
}

.article-content-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.article-content-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.article-content-body p {
    margin-bottom: 1.5rem;
    color: #666;
}

.article-content-body ul,
.article-content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content-body li {
    margin-bottom: 0.5rem;
    color: #666;
}

.article-content-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    font-style: italic;
}

.article-share {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #333;
}

/* Author Bio Section */
.author-bio {
    padding: 60px 0;
    background: #f8f9fa;
}

.author-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.author-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.author-text h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.author-text h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 500;
}

.author-text p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Article CTA Section */
.article-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.article-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

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

.related-articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* Responsive for author bio and CTA */
@media (max-width: 768px) {
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .author-image img {
        width: 150px;
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
    }
}