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

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111;
    background-color: #fafafa;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-style: italic;
    line-height: 1.2;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.header h2 {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
    font-style: normal;
    margin-top: 0.5rem;
}


.subheader {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.content {
    margin-bottom: 3rem;
}

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

.intro-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

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

.intro-section a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #000;
    transition: color 0.2s ease;
}

.intro-section a:hover {
    color: #666;
}

.articles-feed {
    max-width: 700px;
    margin: 0 auto;
}

.learn-more-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.articles-feed h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.cta {
    text-align: center;
}


.email-form {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.email-form h3 {
    margin-bottom: 1rem;
    color: #111;
}

.email-form p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

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

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: border-color 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: #000;
}

.submit-button {
    background: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.submit-button:hover {
    background: #333;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.article-preview {
    margin: 0 0 3rem 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.article-preview:last-child {
    border-bottom: none;
}

.article-preview h2 {
    display: none;
}

.article-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111;
    line-height: 1.3;
    font-weight: bold;
    font-style: normal;
}

.article-preview h3 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-preview h3 a:hover {
    color: #666;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.article-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-subheadline {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
}

.read-more-btn {
    background: none;
    color: #000;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #666;
}

.article-full {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.article-full h4 {
    font-size: 1.2rem;
    margin: 2rem 0 1rem 0;
    color: #111;
}

.article-full p {
    margin-bottom: 1.5rem;
}

/* Article page specific styles */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-style: normal;
}

.article-content {
    max-width: 700px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: #111;
    font-style: normal;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem 0;
    color: #111;
    font-style: normal;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100% !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.article-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #000;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

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

    .article-image img {
        max-height: 300px;
    }

    .email-form {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .form-group {
        flex-direction: column;
        gap: 1rem;
    }

    .email-input,
    .submit-button {
        width: 100%;
    }

    .article-preview {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .article-preview h3 {
        font-size: 1.5rem;
    }

    .article-subheadline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
        font-size: 14px;
    }
    
    .header h1 {
        font-size: 2rem;
    }

    .header h2 {
        font-size: 0.9rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-image img {
        max-height: 250px;
    }

    .article-preview h3 {
        font-size: 1.3rem;
    }

    .article-subheadline {
        font-size: 0.95rem;
    }
}
