/* ===================== BLOG SECTION — VISION GROW THEME ===================== */

/* Uses existing :root variables from Busy_pricing.css: --primary, --secondary, --dark, --light, --gray, --text */

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

/* ===== BLOG HERO ===== */
.blog-hero {
    background: linear-gradient(135deg, var(--primary), #00418a);
    padding: 140px 20px 70px;
    text-align: center;
    color: #fff;
}

.blog-eyebrow {
    display: inline-block;
    background: rgba(252, 175, 30, 0.15);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.blog-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.blog-hero-sub {
    font-size: 1.05rem;
    color: #d7e6f5;
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Search bar */
.blog-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    padding: 6px 6px 6px 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
}

.blog-search button {
    background: var(--secondary);
    color: var(--primary);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-search button:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== CATEGORY FILTER ===== */
.blog-filter-section {
    background: var(--gray);
    padding: 30px 20px 10px;
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 22px;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid rgba(0, 43, 91, 0.12);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cat-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.cat-btn.active {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(252, 175, 30, 0.35);
}

/* ===== POST META / CATEGORY LABEL (shared) ===== */
.post-cat-label {
    display: inline-block;
    background: #eaf6fb;
    color: #00418a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #777;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    color: var(--secondary);
}

/* ===== FEATURED POST ===== */
.blog-featured-section {
    background: var(--gray);
    padding: 30px 20px 50px;
}

.featured-card {
    display: flex;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 116, 162, 0.15);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 1100px;
    margin: 0 auto;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 116, 162, 0.25);
}

.featured-img {
    position: relative;
    flex: 1 1 45%;
    min-width: 300px;
    overflow: hidden;
}

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

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

.featured-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.featured-content {
    flex: 1 1 55%;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-content p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* ===== BLOG GRID ===== */
.blog-grid-section {
    padding: 50px 20px 70px;
    background: var(--gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 116, 162, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 116, 162, 0.22);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-img {
    overflow: hidden;
    height: 200px;
}

.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.08);
}

.blog-card-content {
    padding: 22px 24px 26px;
}

.blog-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* No results */
.blog-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1rem;
}

/* ===== PAGINATION ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
}

.page-btn {
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(0, 43, 91, 0.15);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-next {
    padding: 10px 20px;
}

/* ===== CTA STRIP ===== */
.blog-cta-strip {
    background: linear-gradient(90deg, var(--primary), #00418a);
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.blog-cta-strip h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-cta-strip p {
    color: #cfe0f2;
    margin-bottom: 26px;
    font-size: 1rem;
}

/* ===================== ARTICLE (blog-single.php) ===================== */

.article-hero {
    background: linear-gradient(135deg, var(--primary), #00418a);
    padding: 130px 20px 50px;
    color: #fff;
}

.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #b9cfe6;
}

.breadcrumb a {
    color: #cfe0f2;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    margin: 0 6px;
}

.article-hero .post-cat-label {
    background: rgba(252, 175, 30, 0.18);
    color: var(--secondary);
}

.article-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    max-width: 850px;
}

.article-hero .post-meta {
    color: #cfe0f2;
}

.article-hero .post-meta i {
    color: var(--secondary);
}

.article-hero-img {
    max-width: 1000px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.article-hero-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: block;
}

/* ===== ARTICLE BODY LAYOUT ===== */
.article-body-section {
    padding: 60px 20px 80px;
    background: var(--gray);
}

.article-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1100px;
}

.article-content {
    flex: 1 1 68%;
    background: #fff;
    padding: 40px 44px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 116, 162, 0.1);
    font-size: 1.02rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 36px 0 16px;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content a {
    color: #0076A5;
    font-weight: 600;
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--secondary);
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-list {
    margin: 0 0 22px 24px;
}

.article-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary);
    background: #fdf8ec;
    padding: 18px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 10px 10px 0;
}

.article-highlight-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #eaf6fb;
    border-left: 4px solid #0076A5;
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
}

.article-highlight-box i {
    color: #0076A5;
    font-size: 1.2rem;
    margin-top: 2px;
}

.article-highlight-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

.article-cta-box {
    background: linear-gradient(90deg, var(--primary), #00418a);
    color: #fff;
    text-align: center;
    padding: 36px 30px;
    border-radius: 14px;
    margin-top: 40px;
}

.article-cta-box h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.article-cta-box p {
    color: #cfe0f2;
    margin-bottom: 20px;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    flex: 1 1 28%;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #fff;
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 6px 20px rgba(0, 116, 162, 0.1);
}

.sidebar-box h4 {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    padding-left: 14px;
    border-left: 2px solid transparent;
    transition: all 0.25s ease;
}

.toc-list a:hover {
    color: var(--primary);
    border-left-color: var(--secondary);
    padding-left: 18px;
}

.sidebar-cta {
    background: #eaf6fb;
    text-align: center;
}

.sidebar-cta p {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 18px;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== RELATED POSTS ===== */
.related-posts-section {
    background: #fff;
    padding: 60px 20px 80px;
}

.related-posts-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 36px;
}

.related-posts-section .blog-grid {
    max-width: 850px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .article-sidebar .sidebar-box {
        flex: 1 1 260px;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-img img {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 20px 50px;
    }

    .blog-hero-title {
        font-size: 1.9rem;
    }

    .blog-hero-sub {
        font-size: 0.95rem;
    }

    .article-hero h1 {
        font-size: 1.6rem;
    }

    .article-content {
        padding: 28px 22px;
    }

    .article-hero-img {
        margin-top: -25px;
    }

    .article-sidebar {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .blog-categories {
        gap: 8px;
    }

    .cat-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .blog-card-img {
        height: 170px;
    }

    .article-content {
        font-size: 0.95rem;
    }
}