/* Blog Styles - Cognitive Science of Yoga */

.blog-header {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: linear-gradient(135deg, #2a6b5e, #61c4db, #7ec8a0);
    color: white;
    text-align: center;
}

.blog-header h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 300;
}

/* Secondary Banner */
.secondary-banner {
    background-color: #f0f8f5;
    border-bottom: 3px solid #7ec8a0;
    padding: 1rem 0;
}

.secondary-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
    text-align: center;
}

.secondary-banner p {
    margin: 0;
    color: #2c3e50;
}

/* Blog Content */
.blog-content {
    width: min(96vw, 1280px);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
}

.pinned-section,
.regular-posts {
    width: 100%;
}

/* Section Titles */
.section-title {
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #7ec8a0;
}

/* Pinned Section */
.pinned-section {
    margin-bottom: 3rem;
}

.pinned-post {
    border-left: 4px solid #2a6b5e;
    padding-left: 1.5rem;
}

/* Blog Preview */
.blog-preview {
    display: block;
    width: 100%;
    background-color: white;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.blog-preview h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-preview h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-preview h3 a:hover {
    color: #2a6b5e;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-image {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-preview p {
    color: #555;
    line-height: 1.6;
}

/* Single Post Page */
.post-main {
    width: min(96vw, 1280px) !important;
    max-width: none !important;
    margin: 2rem auto !important;
    padding: 0 clamp(1rem, 4vw, 2rem) !important;
}

.post-content {
    width: 100%;
    line-height: 1.75;
}

.post-content > * {
    max-width: 100%;
}

.back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #2a6b5e;
    text-decoration: none;
    font-weight: 600;
}

.post-bottom-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e6ecef;
}

.back-btn:hover {
    color: #1f5449;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: #888;
    background-color: white;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .section-title {
        margin-bottom: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-content {
        padding: 2rem 1rem;
    }

    .blog-preview {
        padding: 1.5rem;
    }

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

    .pinned-post {
        padding-left: 1rem;
    }

    .post-main {
        width: 100% !important;
        margin: 1.5rem auto !important;
        padding: 0 1rem !important;
    }
}

@media (max-width: 480px) {
    .secondary-banner {
        padding: 0.75rem 0;
    }

    .blog-preview h3 {
        font-size: 1.05rem;
    }

    .post-meta {
        font-size: 0.82rem;
    }
}

/* Night Mode */
body.night-mode .blog-header {
    background: linear-gradient(135deg, #213d33, #182244, #214035);
}

body.night-mode .secondary-banner {
    background-color: #252525;
    border-color: #3a7a5a;
}

body.night-mode .secondary-banner p {
    color: #ccc;
}

body.night-mode .section-title {
    color: #e0e0e0;
    border-color: #3a7a5a;
}

body.night-mode .blog-preview {
    background-color: #252525;
}

body.night-mode .blog-preview h3,
body.night-mode .blog-preview h3 a {
    color: #e0e0e0;
}

body.night-mode .blog-preview h3 a:hover {
    color: #7ec8a0;
}

body.night-mode .blog-preview p {
    color: #b0b0b0;
}

body.night-mode .back-btn {
    color: #7ec8a0;
}

body.night-mode .back-btn:hover {
    color: #9fdcb9;
}

body.night-mode .post-bottom-back {
    border-top-color: #3a3a3a;
}

body.night-mode .no-posts {
    background-color: #252525;
    color: #888;
}
