/*
Theme Name: MDF Recovery
Theme URI: http://mdfrecovery-co-uk.stackstaging.com/
Description: MDF Recovery Theme by Katatomic Limited
Version: 0.1.1
Author: Katatomic Limited
Author URI: http://katatomic.co.uk/
*/

/** 
 * Font Weights
 * Lato - 300, 400
 * Montserrat - 700
 * Barlow - 500, 600, 700
 */

/* GLOBAL STYLES */

html, body {
  height: 100%;
  margin: 0;
}

main {
  flex: 1;
}

body {
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

img {
    border-radius: 17px;
}

/* TYPOGRAPHY */

p {
    font-family: 'Lato', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1.4rem;
}

#hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.29);
    padding-top: 150px;
}

@media screen and (max-width: 991px) {
    
    #hero h1 {
        font-size: 2.5rem;
        padding-top: 0;   
    }
    
}

.hero-small h1 {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.29);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 4rem;
}

/* Lists */

ul, li {
    font-family: 'Lato', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1.4rem !important;
}

ul {
    padding-left: 20px !important;
}

.sectors h2, .partner h2, .stats h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    color: #44883e;
    font-size: 3rem;
    text-align: center !important;
}

.stats h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    color: #33895f;
    font-size: 4rem !important;
}

.green-box h2, h2.latest-posts {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    color: #33895f;
    font-size: 3rem;
}

.green-box p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300 !important;
    font-size: 1.5rem;
    color: #fff;
}

.green-box li::marker {
    color: #fff;
}


    @media screen and (max-width: 1199px) {
        
        .green-box h2 {
            font-size: 2rem!important;
        }
    
        .green-box p, .green-box ul li {
            font-size: 1rem!important;
        }
    }

.two-col h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    font-size: 2rem;
}

.three-col h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    color: rgb(68, 136, 62);
    font-size: 2rem;
}

.three-col span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300 !important;
    font-size: 1rem;
    color: rgb(117, 120, 123);
}

/* COLORS */

.bg-green {
    background: rgb(68, 136, 62);
}

.bg-green h2 {
    color: #fff;
}

.text-green {
    color: rgb(68, 136, 62);
}

.bg-grey {
    background: rgb(117, 120, 123);
}

.text-grey {
    color: rgb(117, 120, 123);
}

.bg-gold {
    background: rgb(242, 169, 0);
}

.text-gold {
    color: rgb(242, 169, 0);
}

/* BUTTONS */

.btn-nav, .btn-main {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    background: rgb(242, 169, 0) !important;
    color: #fff !important;
    border-radius: 7px !important;
    transition: 0.2s ease !important;
}

.btn-nav {
    border-radius: 7px !important;
}

.btn-nav:hover {
    background: rgb(68, 136, 62) !important;
}

.btn-main {
    padding: 15px 22px !important;
    margin-top: 15px !important;
}

.btn-main:hover {
    background: rgb(217, 152, 0) !important;
    text-decoration: none !important;
}

.btn-nav:focus, .btn-nav:active,
.btn-main:focus, .btn-main:active {
    box-shadow: none !important;
    outline: 0px !important;
}

/* Green buttons */

.btn-green {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    background: transparent !important;
    border: solid #44883e 2px !important;
    color: #44883e !important;
    border-radius: 0px !important;
    padding: 15px 22px !important;
    margin-top: 15px !important;
    transition: 0.3s ease !important;
    width: 70% !important;
}

.box-green:hover .btn-green {
    color: #fff !important;
    border: solid #fff 2px !important;
}

.box-green {
    border: solid #44883e 2px !important;
    transition: 0.3s ease !important;
    height: 300px;
    text-decoration: none;
}

.box-green:hover {
    background: #44883e !important;
    transition: 0.3s ease !important;
    text-decoration: none !important;
    color: #fff !important;
}

.box-green:hover p, 
.box-green:hover span p,
.box-green:hover h2, 
.box-green:hover span {
    color: #fff !important;
}

.resize {
    font-size: 1.2rem !important;
    padding: 10px 25px !important;
    transition: 0.3s ease-in-out !important;
}

/* Sector buttons */

.sectors .btn-success {
    background-color: #0B4F26;
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    padding: 30px 10px;
    border: none;
    border-radius: 5px;
}

.sectors .btn-success:hover {
    background-color: #09733A;
}

/*  NAVIGATION */

.navbar {
    background: #fff;
    border-radius: 0px;
    top: 0px !important;
}

.navbar-brand img {
    max-width: 140px;
}

/* Navigation items */

.nav-item .nav-link {
    color: #44883e!important;
    margin: 0px 2px !important;
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease-in-out;
}

.nav-item .nav-link:hover {
    color: #395542!important;
}

/* Dropdown styles */

.dropdown-menu {
    border: 0px !important;
    padding: 12px 15px !important;
    -webkit-box-shadow: 5px 5px 17px -3px rgba(0, 0, 0, 0.35);
    box-shadow: 5px 5px 17px -3px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease-in-out;
}

.dropdown-item:focus, .dropdown-item {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 300 !important;
    font-size: 1rem !important;
    color: #44883e!important;
    padding: 7px 7px !important;
    transition: all 0.3s ease-in-out;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: #fff!important;
    background-color: #44883e !important;
    transition: all 0.3s ease-in-out;
}

.dropdown .dropdown-menu {
    display: none;
    margin-top: 0 !important;
    transition: all 0.3s ease-in-out !important;
}

/* Mobile nav */

.navbar-light .navbar-toggler {
    color: #fff !important;
    border: none !important;
}


/* Two column layouts */

.two-column-smaller img {
    width: 100%;
}

/* Sectors section */

.sectors {
    background: #eeeeee;
}

.partner {
    max-width: 80%;
}

/* Featured posts */

.featured-post {
    position: relative;
    padding: 0 10px 80px 10px !important;
}

.featured-posts-grid {
    font-family: 'Lato', sans-serif !important;
}

.featured-posts-grid .post-title a {
    color: #44883E;
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
}

.featured-posts-grid .post-date {
    color: #F2A900;
    font-weight: 600;
}

.btn-absolute {
    position: absolute;
    bottom: 0;
    left: 10px;
}

/* ANIMATIONS */

.appear-1, .appear-2, .appear-3 {
    opacity: 0; /* Initially hidden */
    transform: translateX(-20px); /* Slightly shifted left */
    animation: fadeIn 1s ease forwards; /* Fade and slide in */
}

.appear-1 {
    animation-delay: 0s;
}

.appear-2 {
    animation-delay: 1s;
}

.appear-3 {
    animation-delay: 2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CSS animation class */

.cssanimation {
    opacity: 0;
    transform: translateY(25%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.cssanimation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hover animation */

.hvr-forward {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
}

.hvr-forward:hover, .hvr-forward:focus, .hvr-forward:active {
    -webkit-transform: translateX(8px);
    transform: translateX(8px);
}

/* FORMS */

.contact-form {
    background: #efefef;
    border-radius: 20px;
    border: 10px solid #00652F;
}

.contact-form label {
    font-size: 1.1rem!important;
    font-weight: 400!important;
}

.contact-form textarea {
    height: 100px!important;
    border: none;
}

.contact-form input {
    border: none;
    margin: 0!important;
}

.contact-form li.gfield {
    padding: 0!important;
}

.contact-form .gform_legacy_markup_wrapper .top_label div.ginput_container {
    margin: 0;
}

ul#gform_fields_1 {
    padding: 0 !important;
}

#gform_confirmation_message_1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

#gform_wrapper_1 .gform_body input[type=text]:focus {
    outline: 4px solid #43863d !important;
    outline-offset: -2px !important;
}

#gform_wrapper_1 .gform_body textarea:focus {
    outline: 4px solid #43863d !important;
    outline-offset: -2px !important;
}

.gform_legacy_markup_wrapper .gfield_required {
    color: rgb(68, 136, 62) !important;
}

.gform_button {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700 !important;
    background: rgb(242, 169, 0) !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 15px 22px !important;
    margin-top: 15px !important;
    transition: 0.3s ease !important;
    border: none !important;
    text-transform: uppercase !important;
}

.gform_button:hover {
    background: rgb(68, 136, 62) !important;
    transition: 0.3s ease !important;
    text-decoration: none !important;
}

/* NEWS SECTION */

#news-page {
    padding-top: 50px;
}

#news-btn .btn-main {
    margin-left: auto !important;
}

#news-page img {
    border-radius: 10px !important;
}

#news-page .card {
    border-radius: 20px;
    -webkit-box-shadow: 5px 5px 17px -3px rgba(0, 0, 0, 0.2);
    box-shadow: 5px 5px 17px -3px rgba(0, 0, 0, 0.2);
}

#news-page a {
    text-decoration: none !important;
}

#news-page a .card {
    transition: all 0.3s ease-out !important;
}

#news-page a:hover .card {
    background: rgba(68, 136, 62, 0.75);
    transition: all 0.3s ease-out !important;
    transition-delay: 0.05s !important;
}

#news-page h3 {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 500 !important;
    color: rgb(68, 136, 62);
    font-size: 1.4rem;
    padding: 0px 20px;
    transition: all 0.3s ease-in-out !important;
}

#news-page i {
    padding: 0px 23px !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.2rem;
    color: rgb(68, 136, 62);
    transition: all 0.3s ease-in-out !important;
}

#news-page span {
    font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.2rem;
    color: grey;
    transition: all 0.3s ease-in-out !important;
}

#news-page p {
    transition: all 0.3s ease-in-out !important;
    font-size: 1.1rem;
}

#news-page a:hover h3,
#news-page a:hover i,
#news-page a:hover span,
#news-page a:hover p {
    color: #fff !important;
    transition: all 0.3s ease-in-out !important;
}

#news-page .card-footer {
    border-radius: 0px 0px 20px 20px !important;
    font-family: 'Lato', sans-serif !important;
}

/* Pagination */

.pagination a {
    font-family: 'Lato', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.2rem;
    color: grey;
    padding: 0px 10px !important;
}

.pagination a:hover {
    color: black;
}

.pagination span {
    padding: 0px 10px !important;
}


/* Single news article */

#single-news-article {
    padding-top: 50px !important;
}

#single-news-article h1 {
    font-family: 'Barlow', sans-serif !important;
    font-weight: 500 !important;
    color: #008000;
    font-size: 3rem;
}

#single-news-article a {
    color: rgb(68, 136, 62);
    text-decoration: none;
}

#single-news-article a:hover {
    color: rgb(242, 169, 0);
}

/* Navigation links */

#prevnext .btn:focus {
    outline: none;
    box-shadow: none;
}

#prevnext .btn {
    font-family: 'Lato', sans-serif !important;
    font-weight: 400 !important;
    color: #212529 !important;
}

#prevnext .btn:hover {
    color: rgb(68, 136, 62) !important;
    transition: 0.3s ease !important;
}

.nav-previous {
    float: right !important;
}

/* CONTACT */

#contact a, #contact li {
    font-family: 'Lato', sans-serif !important;
    font-weight: 300;
    color: rgb(117, 120, 123);
    font-size: 1.3rem;
    transition: 0.3s ease;
    text-decoration: none;
}

/* ACCORDION */

#faqAccordion {
    font-family: 'Lato', sans-serif !important;
}

#faqAccordion .accordion-button {
    font-family: 'Lato', sans-serif !important;
    color: #333;
    font-size: 1.2rem !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#faqAccordion .accordion-button::after {
    margin-left: 0.8rem;
    margin-right: 0;
    order: 2;
}

#faqAccordion .accordion-button:focus {
    box-shadow: none;
}

#faqAccordion .accordion-button:hover {
    background-color: #f8f9fa;
    color: #44883e;
}

#faqAccordion .accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2344883e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#faqAccordion .accordion-button:not(.collapsed):after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f2a900'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#faqAccordion .accordion-button:not(.collapsed) {
    background-color: rgb(68, 136, 62);
    color: white;
}

#faqAccordion .accordion-body {
    font-family: 'Lato', sans-serif !important;
    background-color: #fffbf0;
    color: #4a4c4f;
}

#faqAccordion .accordion-item .accordion-collapse.show {
    background-color: #f8f9fa;
}

/* FOOTER */

footer a, footer p, footer span {
    text-decoration: none;
    font-family: 'Lato', sans-serif !important;
    font-weight: 500;
    color: #fff;
    font-size: 1rem;
}

footer a:hover {
    color:#ccc;
}

footer .bi {
    padding-right: 10px;
}

/* RESPONSIVE STYLES */

@media screen and (min-width: 1100px) {
    #mobile-nav {
        display: none !important;
    }
}

@media screen and (min-width: 991px) {
    .sectors .btn-success {
        min-height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }
    
    .two-column-image {
        padding: 75px !important;
    }
    
    .video-box {
        padding: 40px 50px 0 50px !important;
    }
}

@media screen and (min-width: 870px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0 !important;
        transition: all 0.3s ease-in-out !important;
    }
}

@media screen and (max-width: 1450px) {
    .resize {
        font-size: .9rem !important;
        padding: 18px 25px !important;
    }
    
    .nav-item .nav-link {
        margin: 0px 5px !important;
        font-size: .5rem;
    }
    
    #wide-hero-one h1 {
        font-size: 4rem;
    }
    
    #wide-hero-one h3 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 991px) {
    
    .video-box {
        padding: 20px !important;
    }
    .dropdown-menu {
        padding: 0 0 20px 15px!important;
        -webkit-box-shadow: none;
        box-shadow: none;
        transition: all 0.3s ease-in-out;
        margin-top: 5px;
    }
    
    .dropdown-menu li {
        background: #f4f4f4;
        margin-bottom: 5px;
    }
    
    .navbar-collapse {
        padding-bottom: 20px;
    }
}

@media screen and (max-width: 870px) {
    .row {
        --bs-gutter-x: 0!important;
    }
    
    .hero-small h1 {
        font-size: 2.4rem;
    }
    
    .sectors h2, .partner h2, .stats h2, h2.latest-posts, #single-news-article h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 767px) {
    
    .featured-post {
        margin-bottom: 20px;
    }
    
    #single-news-article p, #single-news-article li {
        font-size: 1rem!important;
    }
}