/* Simple, clean styles for J&M's AI Lab */

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

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

/* Header */
header {
    background: #f8f9fa;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: #3498db;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover {
    background: #e3f2fd;
}

nav a.active {
    background: #3498db;
    color: white;
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog posts */
.blog-posts h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.post-preview {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.post-preview h3 {
    margin-bottom: 0.5rem;
}

.post-preview h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.5rem;
}

.post-preview h3 a:hover {
    color: #3498db;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.post-preview p {
    margin-bottom: 1rem;
    color: #555;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual post styles */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: #7f8c8d;
    font-size: 1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.post-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

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

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 4px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #f8f9fa;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #eee;
    color: #7f8c8d;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* About page */
.about-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.partner {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.partner-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.partner h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.partner .title {
    text-align: center;
    color: #3498db;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.contact-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .post-preview {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    nav a {
        margin: 0 0.5rem;
        font-size: 1rem;
    }
}