/* =========================================================
   RIGHT TRACK - HOMEPAGE CUSTOM CSS
   File: assets/css/righttrack-home.css

   All custom homepage styling is kept here so index.php
   contains structure/content only.
   ========================================================= */

/* ---------------------------------------------------------
   COMPACT HOMEPAGE SPACING
   --------------------------------------------------------- */
.rt-homepage .call-to-action {
    margin: 0;
}

.rt-homepage .call-to-action .single-call-to-action {
    min-height: 0;
    padding-top: 38px;
    padding-bottom: 38px;
}

.rt-homepage .call-to-action .content-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.rt-homepage .call-to-action .content-box p {
    margin-bottom: 12px;
    line-height: 1.65;
}

.rt-homepage .rt-action-left {
    background-image: url('../../img/call-to-action/left-box-bg.jpg');
    background-position: center center;
    background-size: cover;
}

.rt-homepage .rt-action-center {
    background-image: url('../../img/call-to-action/center-box-bg.jpg');
    background-position: center center;
    background-size: cover;
}

.rt-homepage .rt-action-right {
    background-image: url('../../img/call-to-action/right-box-bg.jpg');
    background-position: center center;
    background-size: cover;
}

/* ---------------------------------------------------------
   RIGHT TRACK INTRODUCTION
   --------------------------------------------------------- */
.rt-home-intro {
    position: relative;
    padding: 30px 0 12px;
    background: #ffffff;
}

.rt-home-intro .rt-intro-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.rt-home-intro .rt-intro-image-wrap {
    position: relative;
    margin-right: 18px;
    padding: 0 0 9px 9px;
}

.rt-home-intro .rt-intro-image-wrap:before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 78%;
    height: 78%;
    border-left: 4px solid #fa7744;
    border-bottom: 4px solid #fa7744;
    z-index: 0;
}

.rt-home-intro .rt-intro-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

.rt-home-intro .rt-intro-image-label {
    position: absolute;
    z-index: 2;
    left: 22px;
    bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rt-home-intro .rt-intro-image-label span {
    display: inline-block;
    padding: 5px 9px;
    background: rgba(34,116,70,.94);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    border-radius: 2px;
}

.rt-home-intro .rt-intro-content {
    padding-left: 10px;
}

.rt-home-intro .rt-intro-eyebrow,
.rt-home-gallery .rt-gallery-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #fa7744;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.rt-home-intro .rt-intro-content h2 {
    margin: 0 0 10px;
    color: #2c2c2c;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.rt-home-intro .rt-intro-divider,
.rt-home-gallery .rt-gallery-divider {
    position: relative;
    width: 54px;
    height: 3px;
    margin: 0 0 14px;
    background: #fa7744;
}

.rt-home-intro .rt-intro-divider span,
.rt-home-gallery .rt-gallery-divider span {
    position: absolute;
    left: 18px;
    top: 0;
    width: 18px;
    height: 3px;
    background: #267346;
}

.rt-home-intro .rt-intro-lead {
    margin-bottom: 9px;
    color: #444444;
    font-size: 16px;
    line-height: 1.62;
}

.rt-home-intro .rt-intro-content p:not(.rt-intro-lead) {
    margin-bottom: 10px;
    color: #666666;
    font-size: 14px;
    line-height: 1.65;
}

.rt-home-intro .rt-intro-points {
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}

.rt-home-intro .rt-intro-points li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 23px;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
}

.rt-home-intro .rt-intro-points li i {
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #267346;
    color: #ffffff;
    font-size: 8px;
    line-height: 15px;
    text-align: center;
}

.rt-home-intro .rt-intro-btn {
    display: inline-block;
    margin-top: 13px;
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   KEEP INTRO -> INTERVENTIONS CLOSE TOGETHER
   --------------------------------------------------------- */
.rt-home-intro + .recent-causes {
    padding-top: 18px !important;
    padding-bottom: 32px !important;
}

.rt-homepage .recent-causes .sec-title {
    margin-bottom: 18px;
}

.rt-homepage .recent-causes .sec-title h2 {
    margin-bottom: 7px;
}

.rt-homepage .recent-causes .causes {
    margin-bottom: 22px;
}

.rt-homepage .recent-causes .causes-details {
    padding-top: 16px;
    padding-bottom: 18px;
}

.rt-homepage .recent-causes .causes-details .title {
    margin-top: 0;
    margin-bottom: 8px;
}

.rt-homepage .recent-causes .about-causes {
    margin-bottom: 7px;
}

.rt-homepage .recent-causes .causes-details p {
    margin-bottom: 11px;
    line-height: 1.55;
}

/* ---------------------------------------------------------
   SUPPORT / CHANGEMAKER
   --------------------------------------------------------- */
.rt-homepage .overlay-white.sec-padding {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

.rt-homepage .promote-project h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.rt-homepage .promote-project h2 {
    margin-top: 7px;
    margin-bottom: 9px;
}

.rt-homepage .promote-project p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   COMPACT HOME GALLERY
   --------------------------------------------------------- */
.rt-home-gallery {
    padding: 34px 0 35px;
    background: #ffffff;
}

.rt-home-gallery .rt-gallery-heading {
    max-width: 760px;
    margin: 0 auto 18px;
}

.rt-home-gallery .rt-gallery-heading h2 {
    margin: 0 0 9px;
    color: #2c2c2c;
    font-size: 30px;
    line-height: 1.2;
}

.rt-home-gallery .rt-gallery-divider {
    margin: 0 auto 12px;
}

.rt-home-gallery .rt-gallery-heading p {
    margin: 0;
    color: #777777;
    font-size: 14px;
    line-height: 1.6;
}

.rt-home-gallery .rt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 145px;
    gap: 8px;
}

.rt-home-gallery .rt-gallery-item {
    position: relative;
    overflow: hidden;
    background: #eeeeee;
    border-radius: 2px;
}

.rt-home-gallery .rt-gallery-item.rt-gallery-featured {
    grid-row: span 2;
}

.rt-home-gallery .rt-gallery-item a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.rt-home-gallery .rt-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.rt-home-gallery .rt-gallery-item:hover img {
    transform: scale(1.06);
}

.rt-home-gallery .rt-gallery-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-left: -21px;
    margin-top: -21px;
    border-radius: 50%;
    background: rgba(38,115,70,.92);
    color: #ffffff;
    font-size: 15px;
    line-height: 42px;
    text-align: center;
    opacity: 0;
    transform: scale(.7);
    transition: all .25s ease;
}

.rt-home-gallery .rt-gallery-item:hover .rt-gallery-overlay {
    opacity: 1;
    transform: scale(1);
}

.rt-home-gallery .rt-gallery-button-wrap {
    margin-top: 15px;
}

/* ---------------------------------------------------------
   FOOTER CALL TO ACTION
   --------------------------------------------------------- */
.rt-homepage .footer-call-to-action {
    padding-top: 24px;
    padding-bottom: 24px;
}

.rt-homepage .footer-call-to-action h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.rt-homepage .footer-call-to-action p {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   FACTS
   --------------------------------------------------------- */
.rt-homepage .fact-counter-wrapper.sec-padding {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

.rt-homepage .fact-counter-wrapper h2 {
    margin-top: 0;
    margin-bottom: 17px;
}

.rt-homepage .fact-counter-wrapper .single-fact {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------- */
.rt-homepage .testimonials-wrapper.sec-padding {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

.rt-homepage .testimonials-wrapper .sec-title {
    margin-bottom: 18px;
}

/* ---------------------------------------------------------
   CLIENT / PARTNER LOGOS
   --------------------------------------------------------- */
.rt-homepage .bg-color-eee.p_40 {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.rt-homepage .footer.sec-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */
@media (max-width: 991px) {
    .rt-home-intro .rt-intro-row {
        display: block;
    }

    .rt-home-intro .rt-intro-image-wrap {
        max-width: 620px;
        margin: 0 auto 25px;
    }

    .rt-home-intro .rt-intro-content {
        padding-left: 0;
    }

    .rt-home-gallery .rt-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 135px;
    }
}

@media (max-width: 767px) {
    .rt-homepage .call-to-action .single-call-to-action {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .rt-home-intro {
        padding: 25px 0 10px;
    }

    .rt-home-intro .rt-intro-content h2 {
        font-size: 25px;
    }

    .rt-home-intro .rt-intro-lead {
        font-size: 15px;
    }

    .rt-home-intro + .recent-causes {
        padding-top: 18px !important;
        padding-bottom: 25px !important;
    }

    .rt-home-gallery {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .rt-home-gallery .rt-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 6px;
    }

    .rt-home-gallery .rt-gallery-item.rt-gallery-featured {
        grid-row: span 2;
    }

    .rt-homepage .overlay-white.sec-padding,
    .rt-homepage .fact-counter-wrapper.sec-padding,
    .rt-homepage .testimonials-wrapper.sec-padding {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }
}

@media (max-width: 480px) {
    .rt-home-gallery .rt-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 105px;
    }

    .rt-home-intro .rt-intro-image-label {
        left: 15px;
        bottom: 15px;
    }

    .rt-home-intro .rt-intro-image-label span {
        padding: 4px 6px;
        font-size: 9px;
    }
}
