/* Blog-specific styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0 60px;
}

.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
}

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

.blog-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Blog Main Content */
.blog-main {
    padding: 60px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.blog-content {
    max-width: 800px;
}

/* Blog Post Cards */
.blog-posts {
    margin-bottom: 40px;
}

.blog-post-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-post-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-post-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-hover);
}

/* CTA Section */
.cta-section {
    margin-top: 40px;
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.topic-list {
    list-style: none;
}

.topic-list li {
    margin-bottom: 12px;
}

.topic-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-list a:hover {
    color: var(--primary-color);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-link {
    display: block;
    padding: 16px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.tool-link strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-link span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post:hover {
    padding-left: 8px;
}

.recent-title {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.recent-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Blog Post Page Styles */
.blog-post-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.blog-post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Individual Blog Post Styles */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
}

.post-date {
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.post-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #34495e;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 25px;
    color: #2c3e50;
    border-left: 4px solid #667eea;
    padding-left: 20px;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 35px 0 20px;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 25px;
    text-align: justify;
    text-justify: inter-word;
}

.post-content ul, .post-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 30px 0;
    border-radius: 6px;
    font-style: italic;
    color: #555;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
}

.post-content th, .post-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.post-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.post-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    text-align: center;
}

.cta-button {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.blog-post-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.blog-post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 16px;
    color: var(--text-primary);
}

.blog-post-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.blog-post-content strong {
    color: var(--text-primary);
}

.blog-post-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.back-to-blog {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--primary-hover);
}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.legal-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.legal-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-nav a {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-nav a:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .blog-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-post-card {
        padding: 30px 20px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-main {
        padding: 40px 0;
    }
    
    .blog-post-card {
        padding: 20px 15px;
    }
    
    .blog-post-card h2 {
        font-size: 1.3rem;
    }
    
    .sidebar-widget {
        padding: 20px 15px;
    }
    
    .blog-post-content {
        padding: 40px 15px;
    }
    
    .blog-post-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
        margin: 30px 0 12px;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
        margin: 20px 0 8px;
    }
    
    .legal-footer {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .legal-nav {
        flex-direction: column;
        gap: 12px;
    }
    
    .legal-nav a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}