/*
Theme Name: Bridge Child
Theme URI: http://demo.qodeinteractive.com/bridge/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: http://www.qodethemes.com/
Version: 1.0.0
Template: bridge
*/
@import url("../bridge/style.css");

:root {
    --primary: #8cc341;
    --secondary: #f5781e;
    --dark-gray: #333333;
    --medium-gray: #818181;
    --light-gray: #9D9D9D;
    --dark-blue: #252934;
    --container-width: 1230px;
}

html {
    --header-height: 125px;
}

* {
    box-sizing: border-box;
}

.content .container {
    background-color: transparent;
}

/* Defaults for non pagebuilder pages */
.content .title .container_inner {
    margin-top: 30px;
}

.content .title .container_inner .separator.small {
    background-color: transparent !important;
}

/* Custom blog styles */
.full-width-blog {
    background: black;
    width: 100%;
    min-height: calc(100vh - 471px);
}

.inner {
    width: 100%;
    max-width: var(--container-width);
    padding: 15px;
    margin-left: auto;
    margin-right: auto;
}

.p-lg {
    padding: 80px 40px;
}

.blog-header {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vw * .3125 + var(--header-height));
    min-height: max-content;
    padding: 0;
    padding-top: var(--header-height);
}

.blog-header .blog-header-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
}

.blog-header h1 {
    color: var(--primary);
    font-size: 72px;
    line-height: 78px;
    text-align: center;
    position: relative;
}

.full-width-blog .post-meta {
    color: var(--light-gray);
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.full-width-blog .post-meta .post-cats {
    display: flex;
}
.full-width-blog .post-meta .post-cats a {
    color: var(--light-gray);
    margin-left: 8px;
}
.full-width-blog .post-meta .post-cats a:hover {
    color: var(--primary);
}
.full-width-blog .post-meta .post-cats a:first-of-type {
    margin-left: 0;
}
.full-width-blog .post-meta .post-cats ul {
    display: flex;
    list-style-type: none;
    color: var(--light-gray);
}
.full-width-blog .post-meta .post-cats ul a {
    margin-left: 0;
    margin-right: 8px;
    color: var(--light-gray);
}

.full-width-blog .post-body * {
    color: white;
}

.full-width-blog .wp-block-quote {
    color: white !important;
}

.full-width-blog .post-body a {
    color: var(--primary);
}

.full-width-blog .post-body h2,
.full-width-blog .post-body h3,
.full-width-blog .post-body h4,
.full-width-blog .post-body h5,
.full-width-blog .post-body h6,
.full-width-blog .related-posts h2,
.full-width-blog .related-posts h3,
.full-width-blog .related-posts h4,
.full-width-blog .related-posts h5,
.full-width-blog .related-posts h6,
.wp-block-heading,
.wp-block-heading span {
    color: var(--primary) !important;
    margin-top: 1rem;
    line-height: 1.2;
}

.full-width-blog .post-body h2,
.full-width-blog .related-posts h2,
h2.wp-block-heading {
    font-size: 1.8rem;
}
.full-width-blog .post-body h3, h3.wp-block-heading {
    font-size: 1.5rem;
}
.full-width-blog .post-body h4,
.full-width-blog .post-body h5,
.full-width-blog .post-body h6,
.full-width-blog .related-posts h3 {
    font-size: 1.3rem;
}

.full-width-blog .post-body p, ul li, p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
ul {
    list-style-position: outside;
    margin-left: 40px;
}

.full-width-blog .post-body em {
    font-family: 'Poppins', sans-serif;
}

.related-posts {
    padding: 20px 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
}
.blog-card {
    background: var(--dark-gray);
    padding: 0;
}
.blog-card:hover {
    background: var(--dark-blue);
}
.card-img {
    position: relative;
    background: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
}
.card-img .card-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
}
.card-fallback-img {
    padding: 20px;
}
.card-body {
    position: relative;
    padding: 20px;
}
.card-body p {
    font-size: 1rem;
    color: white;
}
/* Media Queries */

@media (max-width: 1000px) {
    html {
        --header-height: 101px;
    }
    .blog-header {
        height: calc(100vw * .3125 + var(--header-height));
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .blog-header h1 {
        font-size: 48px;
        line-height: 50px;
    }
    .p-lg {
        padding: 40px 20px;
    }
    .related-posts {
        padding: 20px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}
