/* Flow Interio Premium Blog Stylesheet */

/* Colors and Font Settings */
:root {
    --accent-color: #af6b2f;
    --accent-hover: #824b1d;
    --accent-light: #fdfaf7;
    --accent-callout-bg: #f5ece6;
    --text-dark: #2d2d2d;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
}

/* Reading Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1050;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    transition: width 0.1s ease-out;
}

/* Breadcrumb Styling */
.blog-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.blog-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-breadcrumbs a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}
.blog-breadcrumbs span.separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}
.blog-breadcrumbs span.current {
    color: rgba(255, 255, 255, 0.6);
}

/* Premium Blog Grid & Listing Cards */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.premium-blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.premium-blog-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 60%; /* 5:3 Aspect Ratio */
    background: #f0f0f0;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-meta i {
    color: var(--accent-color);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.2s;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-blog-card:hover .card-title {
    color: var(--accent-color);
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.premium-blog-card:hover .card-read-more {
    color: var(--accent-hover);
    gap: 8px;
}

/* Inner Blog Hero Section with Dark Overlay */
.blog-hero-banner {
    position: relative;
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.blog-hero-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.blog-hero-banner .container {
    position: relative;
    z-index: 2;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.blog-hero-meta i {
    color: var(--accent-color);
}

.blog-hero-category {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.blog-hero-banner h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

/* Inner Blog Layout - Magazine Style */
.magazine-blog-wrapper {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
    align-items: start;
}

.toc-wrapper {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.toc-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-title i {
    color: var(--accent-color);
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 10px;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--accent-color);
    border-left-color: rgba(175, 107, 47, 0.4);
    padding-left: 14px;
}

.toc-list a.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 600;
    padding-left: 14px;
}

/* Column 1: Article Area */
.article-column {
    width: 100%;
}

.article-content {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
}

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

.article-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #111111;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #222222;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* styled lists / checklist cards */
.styled-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 1.8rem 0;
    padding-left: 0;
    list-style: none;
}

.styled-checklist-grid.single-col {
    grid-template-columns: 1fr;
}

.styled-checklist-grid li {
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent-color);
    padding: 12px 18px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.styled-checklist-grid li:hover {
    transform: translateX(3px);
}

.styled-checklist-grid li i {
    color: var(--accent-color);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Premium Tip Callouts */
.pro-tip-callout {
    background-color: var(--accent-callout-bg);
    border-left: 5px solid var(--accent-color);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin: 2.2rem 0;
    box-shadow: 0 4px 15px rgba(175, 107, 47, 0.08);
}

.pro-tip-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-tip-content {
    font-size: 1rem;
    color: #4a4a4a;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

/* Image Placements in Article */
.article-image-box {
    margin: 2.2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.article-image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.article-image-caption {
    background-color: var(--bg-light);
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-style: italic;
}

/* Social Share Elements */
.social-share-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin: 3rem 0 2rem 0;
}

.social-share-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-share-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white) !important;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.fb { background-color: #1877f2; }
.share-btn.fb:hover { background-color: #145dbf; }
.share-btn.in { background-color: #0077b5; }
.share-btn.in:hover { background-color: #005988; }
.share-btn.wa { background-color: #25d366; }
.share-btn.wa:hover { background-color: #1da851; }
.share-btn.link { background-color: var(--accent-color); }
.share-btn.link:hover { background-color: var(--accent-hover); }

/* Copy Alert Popup */
.copy-alert {
    display: inline-block;
    background-color: #2d3748;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}
.copy-alert.show {
    opacity: 1;
}

/* Author Box styling */
.author-bio-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 3rem;
}

.author-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(175, 107, 47, 0.2);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.author-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Column 2: Sticky Sidebar */
.sidebar-column {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.sidebar-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Widget */
.sidebar-search-form {
    position: relative;
    display: flex;
}

.sidebar-search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.sidebar-search-input:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-white);
}

.sidebar-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recent Blogs Widget */
.recent-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-blog-item {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s;
}

.recent-blog-item:hover {
    transform: translateX(3px);
}

.recent-blog-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.recent-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-blog-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-blog-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.recent-blog-item:hover .recent-blog-title {
    color: var(--accent-color);
}

.recent-blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category & Service List Widgets */
.sidebar-links-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-links-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: var(--bg-light);
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-links-list li a:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.sidebar-links-list li a span.count {
    font-size: 0.75rem;
    background-color: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-muted);
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-links-list li a:hover span.count {
    background-color: rgba(255,255,255,0.2);
    color: var(--bg-white);
}

/* Sidebar Consultation CTA Widget */
.sidebar-cta-widget {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--bg-white);
    border-radius: 10px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(175, 107, 47, 0.15);
}

.sidebar-cta-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.sidebar-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.sidebar-cta-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.sidebar-cta-btn {
    background-color: var(--bg-white);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none !important;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: var(--accent-hover);
}

/* Bottom Premium CTA Banner */
.bottom-cta-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--bg-white);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    margin: 4rem 0 2rem 0;
    box-shadow: 0 8px 30px rgba(175, 107, 47, 0.2);
}

.bottom-cta-banner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bottom-cta-banner p {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 25px auto;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.bottom-cta-btn-large {
    background-color: var(--bg-white);
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none !important;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bottom-cta-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--accent-hover);
}

/* Related Blogs Section */
.related-blogs-section {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.related-blogs-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar-column {
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-top: 40px;
    }
    
    .toc-widget {
        display: none; /* Hide TOC on tablet/mobile as requested */
    }
}

@media (max-width: 991px) {
    .blog-hero-banner {
        padding: 140px 0 60px 0;
        min-height: 400px;
    }
    
    .blog-hero-banner h1 {
        font-size: 2.2rem;
    }
    
    .related-blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero-meta {
        font-size: 0.85rem;
        gap: 12px;
    }
    
    .article-content {
        font-size: 1.05rem;
    }
    
    .styled-checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .related-blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-cta-banner {
        padding: 40px 20px;
    }
    
    .bottom-cta-banner h2 {
        font-size: 1.75rem;
    }
    
    .bottom-cta-banner p {
        font-size: 0.95rem;
    }
}
