/* Articles Page Styles */

.articles-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* Header Styles */
.articles-header {
    background: var(--articles-gradient);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.articles-header::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="articles-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23articles-pattern)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 2;
}

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

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-icon i {
    font-size: 2.5rem;
    color: white;
}

.articles-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.articles-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Header Decoration */
.header-decoration {
    position: relative;
    margin-top: 2rem;
}

.decoration-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    width: 100px;
    margin: 0 auto;
}

.decoration-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -6px;
}

.decoration-dots span {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
}

/* Main Content */
.articles-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.articles-section-title {
    font-size: 2.5rem;
    color: var(--articles-primary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.articles-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: var(--articles-secondary);
}

.article-image {
    height: 120px;
    background: var(--articles-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.article-image i {
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

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

.article-meta i {
    font-size: 0.8rem;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--articles-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    text-decoration: none;
    color: white;
}

/* Newsletter Signup */
.newsletter-signup {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    background: var(--articles-gradient);
    color: white;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.newsletter-form input::placeholder {
    color: #6b7280;
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--articles-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Newsletter signup continues... */
.newsletter-form button:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

/* Main article page styling */
.articles-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Full article view styles */
.article-full {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
    padding: 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.article-meta span {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--articles-primary);
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    color: var(--articles-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 3px solid var(--articles-primary);
    padding-bottom: 10px;
}

.article-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content ul {
    margin: 20px 0;
    padding-right: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tip-box {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    border: 2px solid var(--articles-primary);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.tip-box h3 {
    color: var(--articles-primary);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-box p {
    margin-bottom: 0;
    font-weight: 500;
}

.cta-box {
    background: linear-gradient(135deg, var(--articles-primary), #45a049);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    color: white !important;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.article-btn {
    display: inline-block;
    background: white;
    color: var(--articles-primary);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.article-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--articles-primary);
    text-decoration: none;
}

.article-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.article-tags h4 {
    margin-bottom: 15px;
    color: #333;
}

.tag {
    display: inline-block;
    background: var(--articles-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 5px;
    margin-bottom: 10px;
}

/* Disclaimer Box Styles */
.disclaimer-box {
    background: linear-gradient(135deg, #fff3cd, #fef5e7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    border-left: 5px solid #ff6b35;
}

.disclaimer-box h4 {
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.disclaimer-box p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box strong {
    color: #dc3545;
    font-weight: 600;
}

/* Articles Back Link Styles */
.articles-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    text-decoration: none !important;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1010;
    pointer-events: auto;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.articles-back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.articles-back-link i {
    font-size: 0.9rem;
    pointer-events: none;
}

.articles-back-link:focus,
.articles-back-link:active {
    color: white !important;
    text-decoration: none !important;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .articles-header h1 {
        font-size: 2.5rem;
    }
    
    .articles-header p {
        font-size: 1.1rem;
    }
    
    .articles-content {
        padding: 3rem 1rem;
    }
    
    .articles-section-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-signup {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form button {
        white-space: normal;
    }
    
    .article-full {
        padding: 20px;
        margin: 10px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .tip-box, .cta-box, .disclaimer-box {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .header-icon i {
        font-size: 2rem;
    }
    
    .articles-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
