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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #3fa0a7 0%, #2e7d83 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

header .subtitle {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #2e7d83;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #3fa0a7;
}

/* Main Content */
main {
    background-color: white;
    min-height: 60vh;
    padding: 2rem 20px;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #3fa0a7;
    margin-bottom: 2rem;
}

.hero h2 {
    color: #2e7d83;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

/* About Section */
.about-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.headshot {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .headshot {
        width: 180px;
    }
}

section h2 {
    color: #2e7d83;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3fa0a7;
}

section h3 {
    color: #3fa0a7;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

section ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

section li {
    margin-bottom: 0.5rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h3 {
    color: #2e7d83;
    margin-top: 0;
    border-bottom: none;
}

.card p {
    color: #666;
    margin: 1rem 0;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #3fa0a7;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.button:hover {
    background-color: #2e7d83;
}

/* Footer */
footer {
    background-color: #2e7d83;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

footer a:hover {
    border-bottom-color: white;
}

footer p {
    margin: 0.5rem 0;
}

/* Articles */
.featured-topic {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #3fa0a7;
    border-radius: 4px;
}

.featured-topic h3 {
    color: #2e7d83;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.featured-topic p {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.article-category {
    margin-bottom: 2.5rem;
}

.article-category h3 {
    color: #2e7d83;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3fa0a7;
}

.article-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.article-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.article-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3fa0a7;
    font-weight: bold;
}

.article-list a {
    color: #2e7d83;
    text-decoration: none;
    transition: color 0.3s;
}

.article-list a:hover {
    color: #3fa0a7;
    text-decoration: underline;
}

/* Individual Article Pages */
article {
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #3fa0a7;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

article h1 {
    color: #2e7d83;
    margin-bottom: 2rem;
}

.article-content pre {
    white-space: pre-wrap;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    background: none;
    border: none;
    padding: 0;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.article-footer a {
    color: #3fa0a7;
    text-decoration: none;
    font-weight: 500;
}

.article-footer a:hover {
    color: #2e7d83;
}

/* Resources Page */
.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #2e7d83;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

.resource-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.resource-card h3, .resource-card h4 {
    color: #2e7d83;
    margin-top: 0;
}

.resource-card ul {
    margin-top: 1rem;
    color: #555;
}

.legacy-note {
    background-color: #fff9e6;
    border-left: 4px solid #f0ad4e;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 3rem;
}

.legacy-note h2 {
    color: #856404;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.legacy-note p {
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .article-content pre {
        font-size: 1rem;
    }
}
