/*
Theme Name: Hello Elementor Child
Description: Custom child theme for BoothVision
Author: BoothVision
Template: hello-elementor
Version: 1.0.2
*/


/* =========================================================
   FONT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --orange-primary: #f5660b;

    --orange-gradient:
        linear-gradient(
            135deg,
            #ff7a28 0%,
            #f5660b 100%
        );

    --text-dark: #1e2329;

    --text-muted: #6b7280;

    --card-border:
        rgba(0, 0, 0, 0.06);

    --card-shadow:
        0 12px 32px -8px rgba(0, 0, 0, 0.05),
        0 4px 12px -2px rgba(0, 0, 0, 0.03);

    --card-shadow-hover:
        0 24px 48px -12px rgba(245, 102, 11, 0.18),
        0 12px 24px -6px rgba(0, 0, 0, 0.06);
}



/* =========================================
   BLOG BANNER
========================================= */

.bv-blog-banner {
    width: 100%;
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        #ff7a28 0%,
        #f5660b 100%
    );

    border-radius: 0;

    font-family: 'Plus Jakarta Sans', sans-serif;
}


/* Decorative background circles */

.bv-blog-banner::before,
.bv-blog-banner::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    pointer-events: none;
}


.bv-blog-banner::before {
    width: 350px;
    height: 350px;

    left: -120px;
    top: -180px;
}


.bv-blog-banner::after {
    width: 450px;
    height: 450px;

    right: -180px;
    bottom: -280px;
}


/* Banner content */

.bv-blog-banner-content {
    position: relative;
    z-index: 2;

    text-align: center;
}


/* Banner title */

.bv-blog-banner-title {
    margin: 0;

    color: #ffffff;

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-size: 52px;
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.5px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .bv-blog-banner {
        min-height: 200px;

        border-radius: 0 0 24px 24px;
    }

    .bv-blog-banner-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

}



/* =========================================================
   BLOG SECTION
========================================================= */

.bv-blog-section {
    width: 100%;
    padding: 70px 20px;

    box-sizing: border-box;

    font-family:
        'Plus Jakarta Sans',
        sans-serif;
}


/* =========================================================
   CONTAINER
========================================================= */

.bv-blog-container {
    width: 100%;
    max-width: 1240px;

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}


/* =========================================================
   BLOG GRID
========================================================= */

.bv-blog-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;

    box-sizing: border-box;
}


/* =========================================================
   SINGLE CARD
========================================================= */

.bv-blog-card {
    position: relative;

    cursor: pointer;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;
    max-width: none;

    border-radius: 24px;

    background: #ffffff;

    border: 1px solid var(--card-border);

    box-shadow: var(--card-shadow);

    overflow: hidden;

    text-decoration: none;

    font-family:
        'Plus Jakarta Sans',
        sans-serif;

    box-sizing: border-box;

    transition:
        all 0.4s cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}


/* =========================================================
   REMOVE LINK STYLING
========================================================= */

.bv-blog-card,
.bv-blog-card:hover,
.bv-blog-card:focus,
.bv-blog-card:active {
    text-decoration: none;
}


/* =========================================================
   BOTTOM ACCENT GRADIENT BAR
========================================================= */

.bv-blog-card::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--orange-gradient);

    opacity: 0;

    transform: scaleX(0.4);

    transform-origin: center;

    transition:
        all 0.4s cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}


.bv-blog-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(245, 102, 11, 0.25);

    box-shadow:
        var(--card-shadow-hover);
}


.bv-blog-card:hover::after {
    opacity: 1;

    transform: scaleX(1);
}


/* =========================================================
   IMAGE CONTAINER
========================================================= */

.bv-blog-image-wrap {
    position: relative;

    width: 100%;
    height: 230px;

    flex-shrink: 0;

    overflow: hidden;

    background: #f1f5f9;
}


/* =========================================================
   IMAGE
========================================================= */

.bv-blog-image {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    display: block !important;

    object-fit: cover;

    transition:
        transform 0.65s cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}


.bv-blog-card:hover .bv-blog-image {
    transform: scale(1.08);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.bv-blog-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.35) 100%
        );

    pointer-events: none;

    transition:
        opacity 0.3s ease;
}


/* =========================================================
   CONTENT
========================================================= */

.bv-blog-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    width: 100%;

    padding:
        26px 24px 28px;

    box-sizing: border-box;
}


/* =========================================================
   META
========================================================= */

.bv-blog-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 14px;

    color: var(--text-muted);

    font-size: 12px;

    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   META DOT
========================================================= */

.bv-meta-dot {
    width: 5px;
    height: 5px;

    flex: 0 0 5px;

    border-radius: 50%;

    background:
        var(--orange-primary);
}


/* =========================================================
   TITLE
========================================================= */

.bv-blog-card-title {
    margin: 0;

    padding: 0;

    color: var(--text-dark);

    font-family:
        'Plus Jakarta Sans',
        sans-serif;

    font-size: 20px;

    line-height: 1.38;

    font-weight: 800;

    letter-spacing: -0.4px;

    transition:
        color 0.3s ease;
}


.bv-blog-card:hover .bv-blog-card-title {
    color: var(--orange-primary);
}


/* =========================================================
   EXCERPT
========================================================= */

.bv-blog-excerpt {
    display: -webkit-box;

    overflow: hidden;

    margin:
        12px 0 0;

    padding: 0;

    color: var(--text-muted);

    font-family:
        'Plus Jakarta Sans',
        sans-serif;

    font-size: 14.5px;

    line-height: 1.6;

    font-weight: 500;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.bv-blog-image-placeholder {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #f1f5f9 0%,
            #e2e8f0 100%
        );
}


/* =========================================================
   PAGINATION
========================================================= */

.bv-blog-pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 55px;
}


.bv-blog-pagination .page-numbers {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding:
        0 13px;

    border:
        1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;

    color: var(--text-dark);

    font-family:
        'Plus Jakarta Sans',
        sans-serif;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.bv-blog-pagination .page-numbers:hover,
.bv-blog-pagination .page-numbers.current {
    border-color:
        var(--orange-primary);

    background:
        var(--orange-primary);

    color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .bv-blog-section {
        padding: 55px 20px;
    }

    .bv-blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 24px;
    }

    .bv-blog-image-wrap {
        height: 210px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .bv-blog-section {
        padding:
            40px 15px;
    }

    .bv-blog-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .bv-blog-image-wrap {
        height: 210px;
    }

    .bv-blog-content {
        padding:
            24px 20px 26px;
    }

    .bv-blog-card-title {
        font-size: 19px;
    }

    .bv-blog-excerpt {
        font-size: 14px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .bv-blog-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .bv-blog-image-wrap {
        height: 195px;
    }

    .bv-blog-content {
        padding:
            22px 18px 24px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.bv-blog-card:focus-visible {
    outline:
        3px solid
        rgba(245, 102, 11, 0.35);

    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bv-blog-card,
    .bv-blog-image,
    .bv-blog-card-title {
        transition: none;
    }

    .bv-blog-card:hover {
        transform: none;
    }

    .bv-blog-card:hover .bv-blog-image {
        transform: none;
    }

}