/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    background-color: #eff6ff;
}

/* Main Content */
.main {
    padding: 40px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 16px;
    color: #374151;
}

.hero p {
    margin-bottom: 16px;
    font-size: 16px;
    color: #4b5563;
}

.inline-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.inline-link:hover {
    border-bottom-color: #2563eb;
}

/* Blog Section */
.blog-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1f2937;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.article-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card h3 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: #2563eb;
}

.article-card p {
    color: #6b7280;
    margin-bottom: 16px;
    font-size: 14px;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #1d4ed8;
    transform: translateX(4px);
}

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

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

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.offer-list,
.popular-list {
    list-style: none;
}

.offer-list li,
.popular-list li {
    margin-bottom: 8px;
}

.offer-list a,
.popular-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.offer-list a:hover,
.popular-list a:hover {
    color: #2563eb;
    padding-left: 8px;
}

.widget.promo {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border: none;
}

.widget.promo h3 {
    color: white;
}

.widget.promo p {
    margin-bottom: 16px;
    opacity: 0.9;
}

.promo-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #f97316;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Article Page Styles */
.article-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #6b7280;
    font-size: 14px;
}

.article-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #1f2937;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: #374151;
}

.article-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.tips-section {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.tips-section h3 {
    color: #15803d;
    margin-top: 0;
}

.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin: 32px 0;
}

.cta-section h3 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: white;
    color: #2563eb;
}

.related-articles {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.related-articles h3 {
    margin-bottom: 16px;
    color: #1f2937;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 12px;
}

.related-articles a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.related-articles a:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 32px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero {
        padding: 24px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-header,
    .article-content {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .blog-section h2 {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .nav ul {
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}