:root {
    --primary: #1a365d;
    --primary-dark: #0f2942;
    --secondary: #c53030;
    --accent: #2b6cb0;
    --light: #f7fafc;
    --dark: #1a202c;
    --gray: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

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

/* Navigation */
.navbar {
    background: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

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

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary); /* Use dark blue for better contrast */
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Email Capture */
.email-capture {
    background: var(--light);
    padding: 3rem 0;
}

.capture-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.capture-box h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.capture-box p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.email-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 1rem;
}

/* Posts Grid */
.latest-posts {
    padding: 4rem 0;
}

.latest-posts h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

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

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.post-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-card h3 a {
    color: var(--primary);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-excerpt {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-date {
    font-size: 0.875rem;
    color: var(--gray);
}

.center {
    text-align: center;
}

/* Course CTA */
.course-cta {
    background: var(--primary);
    color: #fff;
    padding: 4rem 0;
}

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

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.benefits {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

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

.footer-brand h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Blog Page */
.page-header {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.9);
}

.blog-content {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget a {
    color: var(--gray);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget a:hover {
    color: var(--accent);
}

/* Article Page */
.article-header {
    background: var(--primary);
    color: #fff;
    padding: 4rem 0 3rem;
}

.article-header .post-category {
    background: var(--secondary);
}

.article-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.3;
}

.article-meta {
    color: rgba(255,255,255,0.8);
}

.article-content {
    padding: 3rem 0;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-body h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
}

.article-body h3 {
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.375rem;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: #4a5568;
}

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

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

.article-body a {
    color: var(--accent);
    text-decoration: none;
}

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

.inline-cta {
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.inline-cta h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.inline-cta p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Course Page */
.course-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.course-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-hero .price {
    font-size: 3rem;
    font-weight: 800;
    color: #48bb78;
}

.course-hero .price-note {
    color: rgba(255,255,255,0.8);
}

.course-details {
    padding: 4rem 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.module-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.module-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.module-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.module-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .course-hero h1 {
        font-size: 2rem;
    }
}

/* Ensure course buttons have white text */
.btn-primary {
    color: #fff !important;
}