.first-block {
    padding: 248px 0 195px;
    background-image: url('../images/main-bg.jpg');
    background-size: cover;
    color: #ffffff;
}

.announcement.first-block {
    background-image: url('../images/announcement.jpg');
}

.main-page .first-block .title,
.first-block.video-bg .title {
    font-size: 64px;
}
.main-page .first-block,
.first-block.video-bg {
    padding-top: 320px;
}

.first-block .title {
    margin: 0;
    color: #ffffff;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
}
.first-block .page-sub-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 50px;
    position: relative;
}
.first-block .page-sub-title:after {
    content: '';
    width: 50px;
    height: 2px;
    background: #8CBE56;
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
}
.first-block p {
    margin: 30px 0 0;
    font: italic normal 24px/1.7 'Century Schoolbook', serif;
}
.first-block .btn {
    margin: 60px 0 0;
}
.first-block .text-block {
    max-width: 530px;
}

.first-block.video-bg {
    position: relative;
    overflow: hidden;
    background: #000;
}

.first-block.video-bg .bg-video-wrapper {
    position: absolute;
    z-index: 0;
}

.first-block.video-bg > .container {
    position: relative;
    z-index: 1;
}

.bg-video-wrapper {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
}

.bg-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}


.banner {
    padding: 37px 0 15px;
    background: #3A8094;
    color: #fff;
    text-align: center;
    font-size: 24px;
}

.rallyhood-works {
    padding: 125px 0 80px;
    line-height:2.5;
}

.rallyhood-works-custom {
    padding: 60px 0 80px;
    line-height: 2.5;
}

.services-list {
    margin: 100px 0 0;
    text-align: center;
    justify-content: center;
}

.services-list.--landing-page-style {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    row-gap: 50px;
}

.services-list-item {
    padding: 0 20px;
    margin-bottom: 50px;
}

.services-list.--landing-page-style .services-list-item {
    border: 2px solid #008a9f;
    padding: 20px;
    margin-bottom: 0;
}

.services-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 115px;
    height: 115px;
    margin: 0 auto 40px;
    background: #8CBE56;
    border-radius: 50%;
}

.services-list.--landing-page-style .icon {
    margin-left: 0;
}

.services-list .icon.icon-small {
    width: 72px;
    height: 72px;
}

.services-list .icon.icon-small img {
    max-width: 50%;
    max-height: 50%;
}

.services-list .title {
    margin: 0 auto 40px;
    font-size: 24px;
    line-height: 1.3;
    color: #193C47;
}

.services-list-item.item-left {
    text-align: left;
}

.services-list-item.item-left .icon {
    margin-left: 0;
}

.services-list p {
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
}

.solutions-page .services-list .title {
    max-width: 81%;
    margin-left: 0;
}


.info-block {
    background: #3A8094 url('../images/circles-bg.png');
    background-position: 80% 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    color: #ffffff;
    overflow: hidden;
}

.info-block .row {
    align-items: center;
}

.info-block img {
    padding-top: 100px;
    max-width: unset;
}

.info-block h2 {
    color: #fff;
    text-align: left;
}

.info-block p {
    font-weight: 300;
    line-height: 1.68;
}

.info-block .mobile-image-carousel {
    position: absolute;
    z-index: 2;
    top: 165px;
    left: 90px;
}

.info-block .mobile-image-carousel img {
    max-width: 235px;
    height: auto;
    padding-top: 0;
    border-radius: 5px;
}

img.integration {
    display: block;
    margin-left: auto;
}

.scheme-block {
    margin: 90px 0 0;
    text-align: center;
}
.scheme-block img {
    margin: 0 auto;
}

.features-block-wrap {
    padding: 40px 20px 40px 30px;
    background: #327386;
    color: #FFFFFF;
    text-align: center;
}
.features-block {
    display: flex;
}
.features-block-wrap h2 {
    margin: 0 0 90px;
    color: #FFFFFF;
}
.features-block img {
    max-width: calc(100% - 60px);
    margin: 0 auto;
}
.features-block p {
    margin: 70px 0 0;
    font-size: 18px;
    font-weight: normal;
    line-height: 168%;
}
.features-block p span {
    display: block;
}
.features-block-wrap .slick-dots {
    width: 15px;
    margin: 0;
    padding: 0;
    text-align: center;
}
.features-block-wrap .slick-dots li button {
    border: 1px solid #fff;
}
.features-block-wrap .slick-dots li.slick-active button {
    background: #fff;
}

.rallyhood-premium {
    padding: 100px 0 160px;
}

.premium-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 100px;
}

.premium-cards a {
    padding: 35px 25px;
    color: #fff;
    font-size: 24px;
    line-height: 1.3;
    background: #193C47;
    max-width: 23%;
    display: block;
}

.reviews-block-wrap {
    margin: 180px 0 0;
    padding: 140px 0;
}
.reviews-block {
    display: flex;
    margin: 120px 0 0 -35px;
}
.reviews-block-wrap h2 {
    margin: 0;
}
.reviews-block-item {
    display: flex;
    flex-direction: column;
    flex: calc(33.333% - 35px);
    margin: 0 0 0 35px;
}
.reviews-block-item .review-text {
    position: relative;
    flex: 1;
    min-height: 226px;
    margin: 0 0 40px;
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 7px 50px rgba(236, 238, 239, 0.6);
}
.reviews-block-item .review-text:before {
    content: '';
    display: block;
    position: absolute;
    left: 40px;
    bottom: -13px;
    height: 0;
    width: 0;
    border-style: solid;
    border-width: 13px 11px 0;
    border-color: #fff transparent transparent transparent;
}
.reviews-block-item .review-text .title {
    margin: 0 0 15px;
    font-size: 24px;
    line-height: 135%;
    color: #3A8094;
}
.reviews-block-item .review-text p {
    margin: 0;
    font-size: 18px;
    line-height: 168%;
}
.reviews-block-item .name-wrap {
    min-height: 64px;
    padding: 0 0 0 46px;
}
.reviews-block-item .name {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 135%;
    font-weight: normal;
    color: #193C47;
}
.reviews-block-item .job {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.reviews-block-item .job .icon {
    margin: 0 10px 0 0;
}


.create-block-wrap {
    padding: 87px 0;
    background: url("../images/assets/create-bg.jpg");
    background-size: cover;
}

.create-block {
    display: flex;
    justify-content: space-between;
}

.create-block .left-block {
    width: 100%;
    color: #FFFFFF;
}

.create-block p {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 300;
}

.create-block p.med-font {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
}

.create-block p.med-font:not(:last-child) {
    margin-bottom: 50px;
}

.create-block p.small-font {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
}

.create-block p.small-font:not(:last-child) {
    margin-bottom: 25px;
}

.create-block .right-block {
    padding: 0 0 0 105px;
    text-align: right;
}
.create-block .right-block .btn {
    margin-left: auto;
}

.text-block {
    padding: 120px 0;
    font-weight: 300;
    color: #393939;
}

.text-block h2 {
    text-align: left;
}

.text-block-1 {
    background-image: url('../images/text-block-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    padding: 280px 0 250px;
}

.text-block-1 h2 {
    color: #fff;
}

.text-block-lead {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 40px;
}

.text-block-quote {
    font: italic normal 36px 'Century Schoolbook', serif;
    margin-bottom: 40px;
}

.text-block-quote-by {
    font: normal 22px 'Century Schoolbook', serif;
}

.divided-text-block {
    padding: 100px 0 80px;
    color: #fff;
    font-weight: 300;
}

.divided-text-block h2 {
    color: #fff;
}

.divided-text-block p {
    margin-bottom: 30px;
}

.divided-text-block.divided-text-block-1 {
    background: #193C47;
}

.divided-text-block.divided-text-block-2 {
    background: #3A8094;
}

.events-page-map h2 {
    color: #3A8094;
}

.events-page-map .sup-title {
    color: #393939;
    font-size: 18px;
    font-weight: 300;
}


.video-testimonial {
    background: #193C47 url('../images/circles-bg.png');
    background-position: 80% 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    padding: 140px 0 120px;
    color: #ffffff;
    overflow: hidden;
    font-weight: 300;
}

.video-testimonial .video-wrapper {
    padding-left: 20px;
}

.video-testimonial h2 {
    color: #fff;
    text-align: left;
}

.video-testimonial img {
    padding-left: 20px;
}

.video-carousel-wrapper {
    padding: 100px 0 140px;
    background: #193C47;
    color: #fff;
}

.video-carousel-wrapper h2 {
    color: #fff;
}

#videoCarousel {
    margin-top: 40px;
    width: 100%;
}

.video-carousel-wrapper .carousel-indicators {
    position: static;
    margin: 0;
    width: 100%;
    margin-top: 100px;
}

.carousel-indicators .col-md-3 {
    padding: 25px 15px;
    color: #bdbdbd;
    cursor: pointer;
    border-top: 2px solid #3A8094;
}

.carousel-indicators .col-md-3.active {
    color: #fff;
    background: none;
}

.carousel-indicators .col-md-3.active:before {
    content: '';
    position: absolute;
    background: #8CBE56;
    width: 100%;
    height: 6px;
    top: -2px;
    left: 0;
}

.indicator-number {
    color: #3A8094;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 10px;
}

.indicator-title {
    font-size: 24px;
    font-weight: normal;
    line-height: 1.35;
    margin-bottom: 5px;
}

.indicator-subititle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.35;   
}

.video-wrapper {
    position: relative;
}

.video-wrapper video {
    max-width: 100%;
}

.video-wrapper button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    opacity: 1;
    height: 115px;
    width: 115px;
    background: url('../images/play-button.png');
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center center;
    border: none;
    outline: 0;
}

.video-wrapper button.hide {
    opacity: 0;
    pointer-events: none;
}

.contact-page .first-block p {
    font-weight: 300;
    line-height: 1.2;
}

.contact-form,
.video-form {
    max-width: 450px;
    margin: 50px auto;
    background: #fff;
    padding: 50px 40px;
    color: #30373E;
}

.contact-form .form-group,
.video-form .form-group {
    position: relative;
}

.contact-form label,
.video-form label {
    font-size: 24px;
    color: #30373E;
    font-weight: 300;
    line-height: 1.2;
}

.contact-form .form-control,
.video-form .form-control {
    border-radius: 0;
    font-size: 18px;
    padding: 6px 18px;
    box-shadow: none;
    border: 1px solid #bdbdbd !important;
    margin-bottom: 20px;
}

.contact-form .btn,
.video-form .btn {
    margin: 10px 0 0;
    width: 100%;
    padding: 12px 45px;
}

.modal .success-text,
.modal .error-text {
    font-size: 19px;
    margin: 15px 0;
}

.modal .success-text {
    color: green;
}

.modal .error-text {
    color: red;
}


.solutions-page .first-block {
    background-image: url('../images/solutions-bg.jpg');
}

.girl-scouts-page .first-block {
    background-image: url('../images/girl-scouts-bg.jpg');
}

.contact-page main {
    background-image: url('../images/contact-bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.legal-page .first-block {
    background-image: url('../images/solutions-bg.jpg');
}

.legal-page h2 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 25px;
}

.legal-page a {
    color: #8CBE56;
}

.legal-page a:hover {
    color: #393939;
}

.contact-page .first-block {
    background: none;
}

.contact-form .invalid .form-control,
.video-form .invalid .form-control {
    border-color: red !important;
    margin-bottom: 30px;
}

.form-group.invalid:after {
    content: 'Invalid or no value given';
    font-size: 14px;
    bottom: -22px;
    position: absolute;
}

.blog-item {
    padding: 100px 0;
    border-bottom: 5px solid #3A8094;
}

.blog-item:first-child {
    padding-top: 0;
}

.blog-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

img.footer-certificate {
    max-width: 300px;
    width: 100%;
}


/*** Girl Scouts Landing Page ***/
.girl-scouts-landing-page .sup-title {
    line-height: 1.8;
    font-weight: 300;
    color: #000;
}


/*** Testimonial Carousel ***/

.testimonial-carousel-wrapper {
    padding: 55px 0 75px;
}

.testimonial-carousel-wrapper h2 {
    margin-bottom: 60px;
}

#testimonialCarousel .carousel-item {
    padding: 0 60px 0 95px;
}

#testimonialCarousel .d-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 20px;
    grid-template-areas: "testimonial logo"
                        "name logo";
    align-items: center;
}

#testimonialCarousel .testimonial {
        grid-area: testimonial;
        font: italic normal 24px/1.5 'Century Schoolbook', serif;
}

#testimonialCarousel .testimonial .highlight {
    color: #008ba0;
}

#testimonialCarousel .testimonial-by {
    grid-area: name;
    margin-top: 25px;
}

#testimonialCarousel .testimonial-by .name,
#testimonialCarousel .testimonial-by .position {
    font: normal 24px/1.5 'Century Schoolbook', serif;;
}

#testimonialCarousel .testimonial-by img {
    width: 100px;
    height: 100px;
    border: 3px solid #193C47;
    margin-bottom: 15px;
    border-radius: 50%;
}

#testimonialCarousel .company-logo {
    grid-area: logo;
    text-align: center;
}

#testimonialCarousel .company-logo img {
    max-width: 300px;
    height: auto;
    margin-top: 30px;
}

#testimonialCarousel a[class^='carousel-control'] {
    width: 60px;
    height: 60px;
    opacity: 1;
    top: 40%;
    transform: translateY(-50%);
    border: 2px solid #999;
    border-radius: 50%;
    padding: 10px;
}

#testimonialCarousel a[class^='carousel-control'] span[class^='carousel-control'] {
    filter: invert(0.4);
}

#testimonialCarousel .carousel-indicators {
    position: static;
    margin-top: 40px;
}

#testimonialCarousel .carousel-indicators li {
    width: 14px;
    height: 14px;
    background: #ddd;
    border-radius: 50%;
}

#testimonialCarousel .carousel-indicators li.active {
    background: #777;
}

@media (max-width: 767px) {
    #testimonialCarousel .d-grid {
        grid-template-columns: 100%;
        grid-template-areas:    "testimonial"
                                "name"
                                "logo";
    }

    #testimonialCarousel .carousel-item {
        padding: 0 60px;
    }

    #testimonialCarousel .testimonial {
        font-size: 16px;
    }

    #testimonialCarousel .testimonial-by {
        margin-top: 40px;
    }
    
    #testimonialCarousel .testimonial-by .name,
    #testimonialCarousel .testimonial-by .position {
        font-size: 16px;
    }

    #testimonialCarousel .testimonial-by img {
        width: 80px;
        height: 80px;
    }

    #testimonialCarousel .company-logo img {
        max-width: 100%;
    }

    #testimonialCarousel a[class^='carousel-control'] {
        width: 45px;
        height: 45px;
        top: 30%;
    }

    #testimonialCarousel .carousel-indicators {
        position: static;
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ── Form Messages ─────────────────────────────────────── */
            .form-message {
                display: flex;
                align-items: flex-start;
                gap: 12px;
                padding: 16px 20px;
                border-radius: 8px;
                margin-bottom: 24px;
                font-size: 15px;
                line-height: 1.5;
                animation: formMsgSlideIn .4s ease-out;
            }
            .form-message strong {
                display: block;
                margin-bottom: 2px;
                font-size: 16px;
            }
            .form-message__icon {
                flex-shrink: 0;
                width: 22px;
                height: 22px;
                margin-top: 1px;
            }
 
            /* Success */
            .form-message--success {
                background: #f0fdf4;
                border: 1px solid #bbf7d0;
                color: #166534;
            }
            .form-message--success .form-message__icon { color: #22c55e; }
 
            /* Error */
            .form-message--error {
                background: #fef2f2;
                border: 1px solid #fecaca;
                color: #991b1b;
            }
            .form-message--error .form-message__icon { color: #ef4444; }
 
            /* Warning (client-side validation) */
            .form-message--warning {
                background: #fffbeb;
                border: 1px solid #fde68a;
                color: #92400e;
            }
            .form-message--warning .form-message__icon { color: #f59e0b; }
 
            /* Invalid field */
            .form-group.invalid .form-control {
                border-color: #ef4444;
                box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
            }
            .form-group.invalid .label { color: #dc2626; }
 
            /* Slide-in animation */
            @keyframes formMsgSlideIn {
                from { opacity: 0; transform: translateY(-10px); }
                to   { opacity: 1; transform: translateY(0); }
            }
            /* Fade-out (triggered by JS) */
            .form-message.is-hiding {
                animation: formMsgFadeOut .4s ease-in forwards;
            }
            @keyframes formMsgFadeOut {
                to { opacity: 0; transform: translateY(-8px); }
            }