/*
Theme Name: My Divi Child Theme
Theme URI: http://www.zaxis.net/
Version: 1.0
Description: A customized version of Divi which adds a number of tiny features I need.
Author: Kimberly Allen
Author URI: http://www.zaxis.net/
Template: Divi
*/
:root {
    --primary: #2a3883;
    --white: #fff;
    --gray: #555de1;
    --graydark: #747474;
    --grayl: #ebebeb;
    --violetl: #e8ebfe;
    --violetl2: #dbdfff;
    --violet: #001dd5;
    --base: #4e515a;
}

.lity {
    z-index: 999999;
}

/* Box Featured Videos */
.box-featured-video .card-post-video {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 2.7rem;
    background: var(--violetl);
    align-items: center;
}

.box-featured-video.basic .card-post-video {
    padding: 2rem;
    border-top: 3px solid var(--violet);
}

.box-featured-video .card-post-video .featured-label {
    background: var(--white);
    display: inline-block;
    padding: 2px 10px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.box-featured-video.basic .card-post-video .featured-label {
    display: none;
}

.box-featured-video .card-post-video .wrap-info {
    flex: 1;
    padding: 0 2rem 0 0;
}

.box-featured-video .card-post-video .title {
    margin-top: 1rem;
    line-height: 1.3;
}

.box-featured-video.basic .card-post-video .title {
    font-size: 1.5rem;
}

.box-featured-video .card-post-video .title a:hover {
    text-decoration: underline;
}

.box-featured-video .card-post-video .desc {
    font-size: 1.25rem;
    margin: 5px 0 2rem;
    line-height: 1.3;
}

.box-featured-video.basic .card-post-video .desc {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.box-featured-video .card-post-video .wrap-img {
    height: 21rem;
    display: flex;
    flex: 0 57%;
    background: var(--violetl2);
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
}

.box-featured-video.basic .card-post-video .wrap-img {
    height: 15rem;
}

.box-featured-video .card-post-video .action a {
    display: inline-block;
    padding: 5px 24px;
    border-radius: 5px;
    border: 1px solid var(--graydark);
    text-transform: uppercase;
    font-weight: bold;
    transition: all .3s ease;
    font-size: 15px;
    color: var(--violet);
}

.box-featured-video .card-post-video .action a:hover {
    background: var(--violet);
    color: var(--white);
    border-color: var(--white);
}

/*Box Posts*/
.box-posts.horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.box-posts.horizontal .card-post {
    flex: 0 0 32%;
}

.box-posts.video .card-post {
    background: var(--grayl);
}

.box-posts.video .card-post .wrap-info {
    padding: 1rem;
}

.box-posts.horizontal .card-post .wrap-info {
    margin-top: 1rem;
}

.box-posts .card-post .wrap-img {
    height: 10rem;
    display: flex;
    background-position: center;
    background-color: var(--grayl);
    background-size: cover;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none !important;
    transition: all .3s ease;
}

.box-posts.latest-videos .card-post {
    margin-bottom: 1.5rem;
}

.box-posts.latest-videos .card-post:nth-child(n+10) {
    display: none;
}

.box-posts.latest-videos .wrap-show-all {
    text-align: center;
    flex: 0 100%;
}

.box-posts.latest-videos.show-all-active .wrap-show-all {
    display: none;
}

.box-posts.latest-videos.show-all-active .card-post:nth-child(n+10) {
    display: block;
}

.box-posts .wrap-show-all {
    display: none
}

.box-posts.latest-videos .wrap-show-all {
    display: block;
}

.box-posts.latest-videos .wrap-show-all a {
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid var(--violet);
    padding: 5px 10px;
    transition: all .3s ease;
}

.box-posts.latest-videos .wrap-show-all a:hover {
    background: var(--violet);
    color: var(--white);
}

.box-posts.latest-videos .card-post .wrap-img {
    height: 12rem;
}

.box-posts.normal .card-post .wrap-img {
    height: 24rem;
}

.box-posts.normal .card-post .title {
    font-size: 2rem;
}

.box-posts.hero .card-post .wrap-img:hover {
    opacity: .8;
}

.box-posts.hero .card-post .title {
    margin-bottom: 1rem;
}

.box-posts.hero .card-post .wrap-info {
    margin-top: 1rem;
}

.box-posts.video .card-post .wrap-img:before {
    background: var(--primary);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    opacity: .1;
}

.box-posts.video .card-post .wrap-img i, .box-featured-video .card-post-video .wrap-img i {
    display: flex;
    font-size: 1.5rem;
    transition: all .3s ease;
    color: var(--white);
    width: 3rem;
    height: 3rem;
    background: var(--violet);
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.box-posts.video .card-post .wrap-img:hover i, .box-featured-video .card-post-video .wrap-img:hover i {
    transform: scale(1.2);
}

.box-posts.vertical article {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--graydark);
    padding: 0 0 1.5rem 0;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
}

.box-posts.vertical .card-post .wrap-img {
    flex: 0 30%;
    height: 4rem;
    transition: all .3s ease;
}

.box-posts.vertical .card-post .wrap-img:hover {
    opacity: .8;
}

.box-posts.vertical .card-post .wrap-info {
    flex: 1;
}

.box-posts.vertical article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.box-posts article .title {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    padding: 0;
}

.box-posts article .desc {
    line-height: 1.3;
}

.box-posts article .action {
    display: flex;
    align-items: center;
    margin-top: .5rem;
}

.box-posts article .action time {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--graydark);
    font-size: 11px;
    margin-right: .5rem;
    line-height: 1;
    padding-right: .5rem;
    border-right: 1px solid var(--graydark);
}

.box-posts article .action a {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--violet);
    line-height: 1;
    font-size: 12px;
}

.box-posts article a:hover {
    text-decoration: underline !important;
}

.zaxis-post-content h2 {
    margin: 2rem 0
}

.zaxis-post-content .et_pb_button_wrapper {
    margin-top: 1rem;
}

/* Widget Media Contact*/
.widget-media-contact {
    border: 1px solid var(--graydark);
    padding: 20px 20px 15px;
}

.widget-media-contact h5 {
    padding: 0 !important;
}

.widget-media-contact a {
    font-size: 12px;
    color: var(--graydark);
    font-weight: bold;
}

.widget-media-contact a:hover {
    text-decoration: underline;
}

/* Head title lined */
.head-title-lined .elementor-heading-title {
    background: var(--violet);
    display: inline-block;
    color: var(--white) !important;
    padding: 2px 10px 5px;
}

/* Box Snippets */
.snippets-list.list {
    display: flex;
    flex-wrap: wrap;
    gap: 3%;
}
.snippets-list .box-snippets .txt{
    margin-top:0;
}
.snippets-list .box-snippets {
    flex: 0 1 31%;
    margin-bottom: 2%;
}

.box-snippets .wrap {
    display: block;
    color: var(--base);
    background: var(--violetl);
    padding: 1.5rem;
    transition: all .3s ease;
}

.box-snippets .wrap .txt a:hover {
    text-decoration: underline;
}

.box-snippets .cat {
    display: inline-block;
    background: var(--violet);
    color: var(--white);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 2px 5px;
    line-height: 1.3;
}

.box-snippets .txt {
    font-size: 1.2rem;
    margin: 1.2rem 0;
}

.box-snippets .action a {
    font-size: 13px;
    background: none;
    border: 2px solid var(--violet);
    color: var(--violet);
    text-transform: uppercase;
    padding: 5px 17px;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all .3s ease;
    display: inline-block;
}

.box-snippets .action a:hover {
    background: var(--violet);
    color: var(--white);
}

.elementor-template-canvas .ccf-form .form-control {
    border-radius: 1rem !important;
    padding: 0 1rem !important;
    height: 2.2rem;
    text-align: center;
    font-size: 1rem;
}

.elementor-template-canvas .ccf-form .main-label {
    text-align: center;
    font-weight: 600 !important;
}

.elementor-template-canvas .ccf-form-complete {
    text-align: center;
    padding: .5rem 30px;
    background: #a6efd1;
    color: #037848;
}

.elementor-template-canvas .ccf-form .form-submit {
    text-align: center;
}

.elementor-template-canvas .ccf-form .loading-img {
    display: block;
    margin: 10px auto 0;
}

.elementor-template-canvas .ccf-form .error {
    display: block ;
    float: none ;
    text-align: center ;
}

.elementor-template-canvas .form-submit .ccf-submit-button {
    text-align: center;
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: bold;
    font-size: 18px;
    padding: .5rem 3rem !important;
    border-radius: 2rem !important;
    border: 0 !important;
}

.elementor-template-canvas .form-submit .ccf-submit-button:hover {
    background: var(--gray) !important;
}

.zaxis-bar-title:after {
    content: '';
    display: block;
    height: 2px;
    background: var(--primary);
    margin: 1rem auto 0;
    width: min(7rem, 70%)
}

.zaxis-list ul {
    list-style: disc;
    margin-left: 1rem;
}

.zaxis-list ul li {
    margin-bottom: 1.5rem;
}

.zaxis-img-box {
    display: flex;
    height: 12rem !important;
    background: var(--primary);
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.zaxis-img-box:before {
    display: block;
    content: '';
    background: rgb(0 0 0 / 65%);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: all .3s ease;
}

.zaxis-img-box .title {
    font-size: 2rem !important;
    font-weight: bold;
    display: block;
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
    max-width: 15rem;
}

.zaxis-img-box:hover:before {
    opacity: .6
}

@media (max-width: 900px) {
    .zaxis-img-box .title {
        font-size:1.5rem !important;
    }

    .snippets-list .box-snippets {
        flex: 1 0 40%;
    }
}

@media (max-width: 750px) {
    .box-posts.latest-videos .card-post {
        flex:0 49%;
    }

    .box-featured-video .card-post-video {
        padding: 2rem;
    }

    .box-featured-video .card-post-video .wrap-info {
        order: 2;
        padding: 0;
        flex: 100%;
    }

    .box-featured-video .card-post-video .wrap-img {
        order: 1;
        flex: 1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .snippets-list .box-snippets {
        flex:1 1 auto;
        margin-bottom: 1.5rem;
    }

    .box-snippets .txt {
        font-size: 16px;
        line-height: 1.2;
    }

    .box-posts.horizontal .card-post {
        flex: 0 100%;
        margin-bottom: 2rem;
    }

    .box-posts.hero .card-post .title {
        font-size: 1.4rem;
    }

    .box-posts.normal .card-post .wrap-img {
        height: 16rem;
    }

    .box-featured-video .card-post-video .title, .box-featured-video.basic .card-post-video .title {
        font-size: 1.3rem;
    }

    .box-featured-video .card-post-video .desc, .box-featured-video.basic .card-post-video .desc {
        font-size: 1rem;
    }

    .box-featured-video.basic .card-post-video {
        padding: 1.5rem 1.5rem;
    }

    .box-featured-video .card-post-video {
        padding: 1rem;
    }

    .box-posts.latest-videos .card-post {
        flex: 0 100%;
    }

    .box-featured-video .card-post-video .wrap-img {
        height: 12rem;
    }

    .box-featured-video.basic .card-post-video .wrap-img {
        height: 10rem;
        margin: 0;
    }

    .zaxis-img-box {
        height: 8rem !important;
    }

    .embed-responsive iframe {
        max-width: 100%;
        height: 20rem;
    }
}
