/* Blog Styles - Only apply to actual blog pages */
body.blog-page .blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

body.blog-page .blog-hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.blog-page .blog-hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
}

body.blog-page .blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.blog-page .blog-hero-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.blog-page .blog-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
    opacity: 0.9;
    color: white;
}

.blog-date, .blog-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-author {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.author-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.author-image img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    object-fit: cover !important;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 80px !important;
    max-height: 80px !important;
    flex-shrink: 0;
    display: block;
}

.author-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1.1rem;
    color: #4a9b8e;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.blog-content {
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8ff 100%);
}

/* General image constraints for blog pages */
.blog-content img {
    max-width: 100%;
    height: auto;
}

.blog-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(168, 230, 207, 0.3);
    padding: 3rem;
}

.blog-section {
    margin-bottom: 3rem;
}

.blog-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4a9b8e;
}

.blog-section h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #34495e;
    margin: 2rem 0 1rem;
}

.blog-section h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #34495e;
    margin: 1.5rem 0 0.8rem;
}

.blog-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.blog-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.blog-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #34495e;
}

.blog-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #4a9b8e;
    font-weight: bold;
    font-size: 1.2rem;
}

.blog-highlight {
    background: rgba(168, 230, 207, 0.2);
    border-left: 4px solid #4a9b8e;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.3);
}

.blog-highlight h3 {
    color: #4a9b8e;
    margin-top: 0;
}

.blog-nutrient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.nutrient-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.3);
    border-top: 3px solid #4a9b8e;
}

.nutrient-item h4 {
    color: #4a9b8e;
    margin-top: 0;
    font-size: 1.2rem;
}

.nutrient-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

.blog-cta {
    background: linear-gradient(135deg, #4a9b8e 0%, #6bb6ff 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 24px rgba(74, 155, 142, 0.3);
}

.blog-cta h3 {
    color: white;
    margin-top: 0;
    font-size: 1.8rem;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.blog-cta .btn {
    background: white;
    color: #4a9b8e;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Blog Index Styles */
.blog-header {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 50%, #b3e5fc 100%);
    color: #2c3e50;
    padding: 4rem 0;
    text-align: center;
}

.blog-header-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.blog-header-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: #34495e;
}

.blog-articles {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f8ff 100%);
}

/* Blog Mobile Styles */
@media (max-width: 768px) {
    body.blog-page .blog-hero {
        height: 40vh;
        min-height: 250px;
    }

    body.blog-page .blog-hero-content {
        padding: 1.5rem 2rem;
        width: 95%;
        max-width: 1000px;
    }

    body.blog-page .blog-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .author-image img {
        width: 80px;
        height: 80px;
        max-width: 80px;
        max-height: 80px;
    }

    .blog-body {
        padding: 0 1rem;
    }

    .blog-section h2 {
        font-size: 2rem;
    }

    .blog-section h3 {
        font-size: 1.4rem;
    }

    .blog-section p {
        font-size: 1rem;
    }

    .blog-nutrient-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta {
        padding: 2rem 1.5rem;
    }

    .blog-cta h3 {
        font-size: 1.5rem;
    }

    /* Blog Index Mobile Styles */
    .blog-header-content h1 {
        font-size: 2.5rem;
    }

    .blog-header-content p {
        font-size: 1.1rem;
    }
}
