﻿/*--------------------------------------------------------------
# Blog Hero Section
--------------------------------------------------------------*/
.blog-main-hero {
    position: relative;
    background-image: url('/assets/img/cta_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0px 3px 40px #000;
}

    .blog-main-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, var(--background-color) 60%, transparent);
        pointer-events: none;
        z-index: 1;
    }


    /*  .features-main-hero .features-content {
        position: absolute;
    }*/

    .blog-main-hero .blog-hero-text {
        position: relative;
        padding-top: 40px;
        padding-bottom: 20px;
        z-index: 2;
    }


        .blog-main-hero .blog-hero-text h1 {
            font-size: 150px;
            font-weight: 400;
            background: linear-gradient( var(--accent-color) 10%, #000 90%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            padding-bottom: 10px;
        }

        .blog-main-hero .blog-hero-text p {
            margin-left: 8px;
            color: #656565;
            font-size: 18px;
        }

.blog-section {
    padding-top: 60px;
}

    .blog-section .container {
        margin: 0 auto;
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
    }

/* Main content area */
.main-content {
    flex: 3;
    min-width: 280px;
}

/* Sidebar */
.sidebar {
    flex: 1;
    min-width: 260px;
}

@media (max-width: 480px) {
    .blog-main-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

        .blog-main-hero .blog-hero-text h1 {
            font-size: 70px;
        }

        .blog-main-hero .blog-hero-text {
            padding-top: 20px;
            padding-bottom: 20px;
        }
}


    /*--------------------------------------------------------------
# Filter Buttons Section
--------------------------------------------------------------*/

    .filter-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
        padding: 0.5rem 0;
    }

    .filter-btn {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--background-color);
        padding: 0.4rem 1.5rem 0.4rem 1.0rem;
        border-radius: 60px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 500;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.3);
        border: 1px solid transparent !important;
        box-shadow: inset 0px 0px 8px #000;
    }

        .filter-btn:hover {
            /* background-color: color-mix(in srgb, var(--accent-color), transparent 70%);*/
            transform: translateY(-2px);
            box-shadow: 3px 3px 20px #000;
        }

    /* Circular indicator inside button */
    .circle-indicator {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: var(--background-color);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        border: 2px solid var(--accent-color);
    }

    /* Active state: circle background changes color, tick appears */
    .filter-btn.active {
        /* background-color: var(--accent-color);*/
        box-shadow: 3px 3px 20px #000;
    }

        .filter-btn.active .circle-indicator {
            background: var(--accent-color);
        }

        .filter-btn.active .btn-text {
            color: #B5B5B5;
            font-weight: 600;
        }

    @keyframes tickPop {
        0% {
            transform: scale(0.3);
            opacity: 0;
        }

        80% {
            transform: scale(1.2);
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }




    /*--------------------------------------------------------------
# Post Grid Section
--------------------------------------------------------------*/
    /* Container that holds ALL posts - vertical stack */
    .posts-grid {
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
        margin-bottom: 2rem;
        max-width: 800px; /* ← THIS controls max post width */
        margin-left: auto; /* Centers the posts */
        margin-right: auto; /* Centers the posts */
        width: 100%;
    }

    /* Each individual post - HORIZONTAL layout (image left, content right) */
    .post-card-horizontal {
        display: flex;
        flex-direction: row;
        background: var(--background-color);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .post-card-horizontal:hover {
            transform: translateY(-4px);
            box-shadow: 0 3px 40px #000;
        }

    /* Image section - LEFT side */
    .post-image {
        flex: 0 0 300px;
        min-height: 160px;
        background: #f0f0f0;
    }

        .post-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    /* Content section - RIGHT side */
    .post-content {
        flex: 1;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    /* Date styling */
    .post-date {
        font-size: 0.8rem;
        color: var(--accent-color);
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .category-badge {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 20px;
        width: fit-content;
    }

        .category-badge.insurtech {
            color: var(--accent-color);
        }

        .category-badge.news {
            background: #fff3e0;
            color: #e65100;
        }

    .post-title {
        font-size: 2rem;
        font-weight: 100;
        margin-bottom: 0.5rem;
        color: #B5B5B5;
    }

    .post-excerpt {
        color: rgba(255,255,255,0.4);
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .read-more {
        color: #B5B5B5;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        margin-bottom: 1rem;
        display: inline-block;
        width: fit-content;
    }

        .read-more:hover {
            color: var(--accent-color);
        }

    .post-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        color: #718096;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 0.75rem;
        margin-top: auto;
    }


    .read-time {
        font-size: 0.75rem;
        color: rgba(255,255,255,0.3);
    }

    /* Mobile responsive - stacks on small screens */
    @media (max-width: 640px) {
        .post-card-horizontal {
            flex-direction: column;
        }

        .post-image {
            flex: 0 0 180px;
        }
    }

@media (max-width: 480px) {
    .blog-section {
        padding-bottom: 0px;
    }
}
    /*--------------------------------------------------------------
# Article Widget Section
--------------------------------------------------------------*/
    .widget {
        background: var(--background-color);
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        position: sticky;
        top: 1rem;
    }

        .widget h3 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid rgba(255,255,255,0.2);
            color: #B5B5B5;
        }

    /* Widget item with image - horizontal layout */
    .widget-news-item {
        display: flex;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .widget-news-item:hover {
            background: rgba(0,0,0,0.2);
            padding-left: 0.5rem;
            padding-right: 0.5rem;
            margin-left: -0.5rem;
            margin-right: -0.5rem;
            border-radius: 0.5rem;
        }

        .widget-news-item:last-child {
            border-bottom: none;
        }

    /* Widget image styling */
    .widget-news-image {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 0.5rem;
        overflow: hidden;
    }

        .widget-news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    /* Widget content styling */
    .widget-news-content {
        flex: 1;
    }

    .widget-news-date {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.5);
    }

    .widget-news-title {
        margin-top: 5px;
        font-weight: 500;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
        color: #B5B5B5;
    }

    .no-posts {
        text-align: center;
        padding: 3rem;
        background: rgba(255,255,255, 0.02);
        border-radius: 1rem;
        color: rgba(255, 255, 255, 0.3);
    }



    /* Debug info */
    /*.debug-info {
    background: #e8f0fe;
    border-left: 4px solid #1a2a4f;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    display: none;
}*/



    /*--------------------------------------------------------------
# Blog CTA Section
--------------------------------------------------------------*/


    .blog-cta-section {
        position: relative;
        padding-top: 0px;
        padding-bottom: 80px;
        background-image: url("../img/cta_background.png");
        background-clip: content-box !important;
    }

        .blog-cta-section .cta-container {
            padding: 150px 60px;
        }

        .blog-cta-section img {
        }

        .blog-cta-section .cta-container .cta-content {
            position: relative;
            z-index: 2;
        }

            .blog-cta-section .cta-container .cta-content p {
                color: #9B9B9B
            }

            .blog-cta-section .cta-container .cta-content h3 {
                color: #C9C9C9;
                margin: 0;
                font-size: 36px;
                font-weight: 100;
            }


        .blog-cta-section .cta-content .standard-button {
            margin-top: 30px;
        }

@media (max-width: 480px) {
    .blog-cta-section {
        padding-top:30px;
        padding-bottom: 60px;
    }
        .blog-cta-section .cta-container .cta-content {
        text-align: center;
        }
        .blog-cta-section .cta-container {
            padding: 60px 60px;
        }

}


    /*--------------------------------------------------------------
# Standard Full Blog Section
--------------------------------------------------------------*/

    .full-blog-hero-section {
        position: relative;
        background-image: url('/assets/img/cta_background.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        box-shadow: 0px 3px 40px #000;
    }

        .full-blog-hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(360deg, var(--background-color), transparent 60%);
            pointer-events: none;
            z-index: 1;
        }

        .full-blog-hero-section .full-blog-hero-text {
            position: relative;
            padding-top: 40px;
            padding-bottom: 90px;
            z-index: 2;
        }


            .full-blog-hero-section .full-blog-hero-text h1 {
                font-size: 40px;
                font-weight: 100;
                color: #9B9B9B;
                padding-bottom: 10px;
            }

    /*  Main Image Section */

    .main-blog-image-section img {
        position: absolute;
        margin-top: -250px;
        width: 100%;
        max-width: 700px;
        border-radius: 20px;
        z-index: 2;
    }


    /*  Blog Post Meta Section   */
    .blog-post-meta {
        padding: 30px 30px;
    }

    .full-blog-date {
        padding-right: 50px;
        color: #9B9B9B;
    }

    .full-blog-category {
        font-weight: 500;
        color: var(--accent-color);
    }


    .circular-point {
        display: inline-block;
        width: 4px;
        height: 4px;
        background-color: var(--accent-color);
        border-radius: 50%; /* Makes it perfectly round */
        /* Optional enhancements: */
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); /* Subtle glow */
        /* For better alignment with text */
        vertical-align: middle;
        /* Animation for a little pop (optional) */
        transition: all 0.2s ease;
        margin-right: 5px;
    }


    /*  Body Text Section */
    .full-blog-body-text {
        overflow: visible !important;
        padding-top: 0px;
    }

        .full-blog-body-text .full-blog-content-container {
            position: relative;
            padding: 60px 60px;
            background: var(--background-color);
            box-shadow: 0px 0px 40px #000;
            border-radius: 20px;
            z-index: 2;
        }

        .full-blog-body-text h3 {
            font-weight: 400;
        }

        .full-blog-body-text h4 {
            font-weight: 400;
            color: var(--accent-color);
        }


        .full-blog-body-text .post-quote {
            margin-top: 40px;
            margin-bottom: 40px;
            padding: 30px 30px;
            background: #1C1C1C;
            border-left: 15px solid var(--accent-color);
            border-radius: 8px;
            font-style: italic;
            font-size: 20px
        }

            .full-blog-body-text .post-quote i {
                display: flex;
                align-items: flex-start;
                padding-right: 5px;
                font-size: 50px;
                color: var(--accent-color);
            }
