/* ==========================================================================
   Sprouting Bloom - Blog Stylesheet
   Follows site design tokens: #F97415, #372315, #522E14, #FFF6F0, #FFE0C2, #F2E3D9
   Fonts: Nunito (body), Montserrat (headings)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Blog Listing Styles
   -------------------------------------------------------------------------- */
.blog-container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #FFFBF5;
}

.blog-container {
    max-width: 1200px;
    padding: 4rem 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Category Filter Tabs */
.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.category-pill {
    background-color: #FFFFFF;
    border: 1.5px solid #F2E3D9;
    color: #522E14;
    border-radius: 12rem;
    padding: 0.5rem 1.25rem;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background-color: #F97415;
    color: #FFFFFF;
    border-color: #F97415;
    box-shadow: 0 4px 12px rgba(249, 116, 21, 0.25);
}

/* Featured Article Card */
.featured-blog-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background-color: #FFFFFF;
    border: 2px solid #F2E3D9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(55, 35, 21, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(249, 116, 21, 0.12);
}

.featured-img-wrapper {
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.featured-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-blog-card:hover .featured-img-wrapper img {
    transform: scale(1.03);
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.badge-tag {
    display: inline-block;
    width: fit-content;
    background-color: #FFE0C2;
    color: #372315;
    font-size: 12px;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 10rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #956D50;
    font-size: 14px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.featured-title {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #372315;
    line-height: 1.35;
    margin: 0;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: #F97415;
}

.featured-excerpt {
    color: #522E14CC;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #F2E3D9;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.blog-card {
    background-color: #FFFFFF;
    border: 2px solid #F2E3D9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(55, 35, 21, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(249, 116, 21, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #956D50;
}

.blog-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #372315;
    line-height: 1.4;
    margin: 0;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #F97415;
}

.blog-card-excerpt {
    color: #522E14CC;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-card-footer {
    border-top: 1px solid #F2E3D9;
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.blog-author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #FFE0C2;
}

.blog-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #372315;
}

.blog-readmore-btn {
    color: #F97415;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}

.blog-readmore-btn:hover {
    gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   Blog Details / Article Page Styles
   -------------------------------------------------------------------------- */
.article-container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #FFFBF5;
}

.article-container {
    max-width: 1200px;
    padding: 3rem 2rem 5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 3rem;
}

/* Breadcrumbs */
.article-breadcrumbs {
    grid-column: 1 / -1;
    font-size: 14px;
    color: #956D50;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: -1rem;
}

.article-breadcrumbs a {
    color: #F97415;
    text-decoration: none;
}

.article-breadcrumbs a:hover {
    text-decoration: underline;
}

.article-main {
    display: flex;
    flex-direction: column;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-title {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #372315;
    line-height: 1.3;
    margin: 0;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #F2E3D9;
    border-bottom: 1px solid #F2E3D9;
    padding: 1.25rem 0;
    margin-top: 0.5rem;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.article-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFE0C2;
}

.article-author-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.article-author-name {
    font-size: 16px;
    font-weight: 700;
    color: #372315;
}

.article-author-role {
    font-size: 13px;
    color: #8F6E56;
}

.article-share-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: #956D50;
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #F2E3D9;
    color: #522E14;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background-color: #F97415;
    color: #FFFFFF;
    border-color: #F97415;
    transform: translateY(-2px);
}

.article-hero-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 2px solid #F2E3D9;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.article-content {
    color: #372315;
    font-size: 17px;
    line-height: 1.8;
}

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

.article-content h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #372315;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #F97415;
    padding-left: 0.85rem;
}

.article-content h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #522E14;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-content li {
    line-height: 1.7;
}

/* Callout Box */
.blog-callout {
    background-color: #FFF6F0;
    border-left: 4px solid #F97415;
    border-radius: 0 14px 14px 0;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}

.blog-callout h3,
.blog-callout h4 {
    margin: 0 0 0.5rem 0;
    color: #372315;
    font-family: "Montserrat", sans-serif;
    font-size: 19px;
}

.blog-callout p {
    margin-bottom: 0;
    color: #522E14;
}

/* Checklist Box */
.blog-checklist {
    background-color: #FFFFFF;
    border: 2px solid #F2E3D9;
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.blog-checklist h3 {
    margin-top: 0;
    color: #372315;
    font-family: "Montserrat", sans-serif;
}

.blog-checklist ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.blog-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.blog-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #F97415;
    font-weight: 700;
    font-size: 18px;
}

/* Author Bio Box */
.article-author-bio {
    background-color: #FFFFFF;
    border: 2px solid #F2E3D9;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFE0C2;
    flex-shrink: 0;
}

.bio-text h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #372315;
    margin: 0 0 0.25rem 0;
}

.bio-text .bio-role {
    color: #F97415;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bio-text p {
    color: #522E14CC;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: #FFFFFF;
    border: 2px solid #F2E3D9;
    border-radius: 16px;
    padding: 1.75rem;
}

.sidebar-widget-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #372315;
    margin: 0 0 1.25rem 0;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFE0C2;
}

.sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-recent-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
}

.sidebar-recent-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-recent-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-recent-info h4 {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #372315;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s ease;
}

.sidebar-recent-item:hover .sidebar-recent-info h4 {
    color: #F97415;
}

.sidebar-recent-info span {
    font-size: 12px;
    color: #956D50;
}

/* Consultation Widget */
.sidebar-cta-widget {
    background-color: #FFE0C2;
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-cta-widget h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #372315;
    margin: 0;
}

.sidebar-cta-widget p {
    color: #522E14;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.sidebar-cta-btn {
    background-color: #F97415;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
}

.sidebar-cta-btn:hover {
    background-color: #d8620e;
}

/* Related Posts Section */
.related-posts-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid #F2E3D9;
}

.related-posts-title {
    font-family: "Montserrat", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #372315;
    margin: 0 0 2rem 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Home Page Blog Preview Styles
   -------------------------------------------------------------------------- */
.blog-home-container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #FFFBF5;
}

.blog-home-container {
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.blog-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

.blog-viewmore-btn {
    width: fit-content;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
    padding: 0 2.5rem;
    background-color: #F97415;
    border-radius: 12rem;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 2rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.blog-viewmore-btn:hover {
    background-color: #d8620e;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .blog-container {
        padding: 3rem 2rem;
    }

    .article-container {
        padding: 2.5rem 1.5rem 4rem;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .featured-blog-card {
        grid-template-columns: 1fr;
    }

    .featured-img-wrapper {
        min-height: 240px;
        height: 260px;
    }

    .featured-content {
        padding: 2rem;
    }

    .blog-grid,
    .blog-home-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .featured-title {
        font-size: 22px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-author-bio {
        flex-direction: column;
        text-align: center;
    }

    .bio-avatar {
        margin: 0 auto;
    }

    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .blog-home-grid {
        grid-template-columns: 1fr;
    }

    .blog-category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        width: 100%;
        flex-wrap: nowrap;
    }

    .category-pill {
        white-space: nowrap;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .article-content {
        font-size: 16px;
    }
}
