/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --dark-brown: #1e3a5f;
    --dark-brown-light: #162d4a;
    --orange: #ff6b4a;
    --orange-light: #ff8a6a;
    --cream: #f5f1ed;
    --beige: #e8dfd6;
    --text-dark: #1a1a1a;
    --text-light: #c4b5a8;
    --text-gray: #8b7d71;
    --bg-light: #faf8f6;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

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

/* Header */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
}

.site-header h1 {
    margin: 0;
    font-size: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-header h1 a {
    color: var(--dark-brown);
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--dark-brown);
}

.btn-primary,
.site-nav a.btn-primary {
    background: var(--orange);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-primary:hover,
.site-nav a.btn-primary:hover {
    background: var(--orange-light);
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: var(--dark-brown);
    position: relative;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--white);
}

.hero .gradient-text {
    color: var(--white);
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--white);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-brown);
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--white);
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--dark-brown);
}

.features-header p {
    color: var(--text-gray);
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.feature-icon.blue {
    color: var(--blue-light);
}

.feature-icon.cyan {
    color: var(--cyan);
}

.feature-icon.orange {
    color: var(--orange);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--dark-brown);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Main Content / Posts Section */
.posts-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--dark-brown);
}

.section-header p {
    color: var(--text-gray);
    margin: 0;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-preview {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.post-preview:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-preview h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.post-preview h2 a {
    color: var(--dark-brown);
    text-decoration: none;
}

.post-preview h2 a:hover {
    color: var(--orange);
}

.post-preview time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.post-preview p {
    margin: 0 0 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

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

/* Full Post */
.post-full {
    max-width: 100%;
}

.post-page-content {
    padding: 60px 0;
    background: var(--white);
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.post-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-brown);
}

.post-author {
    margin: 0 0 5px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.post-header time {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.post-content {
    margin-bottom: 40px;
}

.post-content h2 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.post-content h3 {
    margin: 25px 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.post-content p {
    margin: 0 0 16px;
    color: var(--text-dark);
}

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

.post-content li {
    margin-bottom: 8px;
}

.post-content strong {
    font-weight: 600;
}

/* CTA Box in Post Content */
.cta-box {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.2);
}

.cta-box h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px;
    font-size: 1rem;
}

.cta-box p:last-child {
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--orange);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--orange-light);
}

/* Recommended Books */
.recommended-books {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
}

.recommended-books h3 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.book-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.book-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.book-item h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
}

.book-item h4 a {
    color: var(--orange);
    text-decoration: none;
}

.book-item h4 a:hover {
    text-decoration: underline;
}

.book-author {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
}

.book-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.back-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.pagination a:hover {
    text-decoration: underline;
}

.page-info {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    background: var(--white);
    border-radius: 12px;
}

/* CTA Section */
.cta-section {
    background: var(--dark-brown);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.cta-section p {
    color: var(--text-light);
    margin: 0 0 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background: var(--dark-brown-light);
    padding: 40px 0;
    text-align: center;
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--orange);
    text-decoration: none;
    font-size: 1.1rem;
}

.site-footer .copyright {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Mobile First - Larger Screens */
@media (min-width: 768px) {
    .hero {
        padding: 100px 0;
    }

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

    .site-nav {
        gap: 40px;
    }

    .post-preview h2 {
        font-size: 1.5rem;
    }

    .post-header h1 {
        font-size: 2.5rem;
    }

    .recommended-books {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .site-nav a:not(.btn-primary) {
        display: none;
    }

    .header-content {
        padding: 0 10px;
    }

    .logo img {
        height: 96px;
    }
}
