/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #ff6b6b;
}

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

.site-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: left 0.3s ease;
    z-index: -1;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    left: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Main content styles */
.main-content {
    background: white;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.primary-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 5px solid #ff6b6b;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

.hero-section a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-section a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.blog-articles h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.blog-articles h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

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

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

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

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

.article-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.article-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.article-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-card p a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.article-card p a:hover {
    text-decoration: underline;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid #ff6b6b;
}

.read-more:hover {
    background: #ff6b6b;
    color: white;
    transform: translateX(5px);
}

/* Sidebar styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.widget h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff6b6b;
}

.offer-links {
    list-style: none;
}

.offer-links li {
    margin-bottom: 0.8rem;
}

.offer-links a {
    color: #555;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.offer-links a::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    color: #ff6b6b;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.offer-links a:hover {
    background: #f8f9fa;
    color: #ff6b6b;
    padding-left: 2rem;
}

.offer-links a:hover::before {
    transform: translateX(5px);
}

.featured-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-articles a {
    color: #555;
    text-decoration: none;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
    transition: all 0.3s ease;
}

.featured-articles a:hover {
    background: #4ecdc4;
    color: white;
    transform: translateX(5px);
}

.widget.promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.widget.promo h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget.promo a {
    color: #ffd700;
}

.cta-button {
    display: inline-block;
    background: #ff6b6b;
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ff6b6b;
}

.cta-button:hover {
    background: transparent;
    color: #ff6b6b !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Article page specific styles */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    text-align: center;
    margin: -3rem -3rem 3rem -3rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

.article-content h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.4rem;
}

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

.article-content ul, 
.article-content ol {
    margin: 1rem 0 1.5rem 2rem;
    color: #555;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.tips-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.tips-box h3 {
    color: white !important;
    margin-bottom: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    color: white !important;
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-nav a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .content-grid {
        padding: 1.5rem;
    }
    
    .primary-content h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem;
    }
    
    .article-header {
        margin: -1.5rem -1.5rem 2rem -1.5rem;
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        gap: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .primary-content h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}