/* ========================================
   Blog Styles
   ======================================== */

/* Blog Header */
.blog-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a2d42 100%);
    text-align: center;
    color: var(--white);
}

.blog-header .page-title {
    color: var(--white);
    margin-bottom: 16px;
}

.blog-header .page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Post Section */
.featured-post-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--teal);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content {
    padding: 48px 48px 48px 0;
}

.featured-content h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--navy);
    transition: var(--transition);
}

.featured-content h2 a:hover {
    color: var(--teal);
}

.featured-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

.read-more {
    color: var(--teal);
    font-weight: 600;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
}

.post-category {
    background: var(--teal);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.post-date,
.read-time {
    color: var(--mid-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* All Posts Section */
.all-posts-section {
    padding: 80px 0;
    background: var(--white);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--navy);
    position: relative;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 40px 32px;
}

/* Ensure glass-dark newsletter is readable */
.newsletter-box.glass-dark h2,
.newsletter-box.glass-dark p {
    color: var(--white);
}

.newsletter-box h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.newsletter-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-body);
}

.newsletter-form button {
    white-space: nowrap;
}

/* Blog Post Page */
.blog-post {
    background: var(--white);
}

.post-header {
    padding: 140px 0 48px;
    background: var(--light-gray);
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mid-gray);
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--teal);
    gap: 4px;
}

.post-header h1 {
    font-size: clamp(32px, 6vw, 56px);
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--navy);
}

.post-intro {
    font-size: 22px;
    line-height: 1.6;
    color: var(--dark-gray);
}

.post-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    margin-top: -80px;
    margin-bottom: 64px;
}

.post-featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Post Content */
.post-content {
    padding: 0 0 80px;
}

.post-content h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--navy);
}

.post-content h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--navy);
}

.post-content h4 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--navy);
}

.post-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

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

.post-content li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.post-content ul li {
    list-style: none;
    position: relative;
    padding-left: 24px;
}

.post-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

.post-content ol li {
    padding-left: 8px;
}

.post-content a {
    color: var(--teal);
    text-decoration: underline;
}

.post-content a:hover {
    color: #15A8B8;
}

.post-content strong {
    font-weight: 600;
    color: var(--navy);
}

.post-content blockquote {
    background: var(--light-gray);
    border-left: 4px solid var(--teal);
    padding: 24px 32px;
    margin: 32px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-content blockquote p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 12px;
}

.post-content blockquote footer {
    color: var(--mid-gray);
    font-size: 16px;
    font-style: normal;
}

.post-cta {
    background: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 48px 0;
    text-align: center;
}

.post-cta h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.post-cta p {
    margin-bottom: 24px;
}

.post-cta .btn-primary,
.post-cta .btn-secondary {
    margin: 8px;
}

.post-cta .btn-primary {
    background: var(--teal) !important;
    color: var(--white) !important;
}

.post-cta .btn-secondary {
    color: var(--navy) !important;
}

/* Post Footer */
.post-footer {
    background: var(--light-gray);
    padding: 64px 0 80px;
}

.author-box {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
}

.author-info strong {
    display: block;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 4px;
}

.author-info p {
    color: var(--mid-gray);
    font-size: 16px;
}

.post-share {
    text-align: center;
    margin-bottom: 64px;
}

.post-share h4 {
    font-size: 16px;
    color: var(--mid-gray);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    padding: 10px 24px;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--mid-gray);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--navy);
}

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

.related-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 20px;
    font-size: 18px;
    color: var(--navy);
    line-height: 1.4;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--teal);
}

/* Responsive Design */
@media (max-width: 968px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 300px;
    }

    .featured-content {
        padding: 40px;
    }

    .post-header {
        padding: 120px 0 40px;
    }

    .post-featured-image {
        margin-top: 0;
        margin-bottom: 48px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .blog-header {
        padding: 120px 0 40px;
    }

    .post-content h2 {
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .post-content h3 {
        margin-top: 24px;
    }

    .featured-content {
        padding: 32px 24px;
    }

    .post-cta {
        padding: 32px 24px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }
}
