/*** Home Services Section ***/
.home-title-link {
    text-decoration: none;
    color: var(--green);
}

.home-title-link:hover {
    text-decoration: underline;
    color: var(--green);
}

.services-item a {
    width: 408px;
    height: 306px;
    overflow: hidden;
    position: relative;
    display: block;
}

.services-item a::before {
    position: absolute;
    top: 100%;
    height: 100%;
    width: 100%;
    background-color: #ffffff9c;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    content: "View More";
    opacity: 0;
    transition: all 0.2s ease-out;
    pointer-events: none;
    z-index: 1;
}

.services-item a:hover::before {
    top: 0;
    opacity: 100%;
}

.services-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.home-certified {
    padding: 0 0 50px 0;
    background-color: white;
    text-align: center;
}

.home-certified > h2 {
    font-size: 36px;
    font-weight: 500;
}

.home-certified > h2 span {
    font-weight: 600;
    color: var(--green);
}

.home-certified > h3 {
    font-size: 16px;
    font-weight: 500;
}

.home-certified-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 32px;
    row-gap: 24px;
    flex-wrap: wrap;
}

.home-certified-row img {
    width: 300px;
    max-width: 80vw;
    height: 200px;
    max-height: calc(0.67 * 80vw);
    object-fit: contain;
}


/*** Home Hero Video Section ***/

.hero-video-content {
    position: relative;
    height: auto;
    min-height: 400px;
    max-height: 860px;
    overflow: hidden;
}

.hero-video-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}


.hero-video-overlay {
    position: absolute;
    width: 100%;
    backdrop-filter: brightness(0.75);
    top: 0;
    bottom: 0;
    z-index: 0;
}

.hero-video-container video {
    display: block;
    min-height: 700px;
    width: 100%;
}

.hero-video-row-wrapper {
	position: absolute;
	max-width: 100%;
	width: 100%;
	top: 30%;
}


.hero-video-text {
	width: 100%;
	z-index: 99;
	color: #fff;
	text-align: center;
}

.hero-title {
	font-size: 4.5em;
	color: #05c240;
        font-weight: 700;
}

.hero-title span{
    color: var(--accent-color);
}

.h1-sub-heading {
	margin-top: 15px;
	font-size: 1.82em;
	color: #fff;
	font-weight: 500;
	font-style: italic;
	line-height: 1.3em;
}


/******** Media Queries *********/


@media (max-width: 2000px) {

    .hero-video-container video {
        width: 2400px !important;
    }
}

@media (max-width: 981px) {


    .hero-video-container #bgHeroVideo {
        display: none !important;
    }

    .hero-video-content {
        position: relative;
        height: auto;
        min-height: unset;
        max-height: unset;
        width: 100% !important;
        overflow: hidden;
        background-image: linear-gradient(180deg, rgba(15, 15, 15, .8) 25%, rgba(15, 15, 15, 1) 100%), url(/imageserver/UserMedia/engelmannroofing/hero_bg.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        padding: 80px 25px;
    }

    .hero-video-container {
        min-height: unset;
    }

    .hero-video-overlay {
        display: none;
    }

    .hero-video-row-wrapper {
        position: relative;
        max-width: 100%;
        width: 100%;
        top: 10%;
    }

    .hero-video-text h1 {
        max-width: 100%;
    }

.hero-title {
	font-size: 3.2em;
	color: #05c240;
}

}


.main-image.project-image {
	max-width: 1700px;
}

.main-image.project-image img {
	max-width: 100%;
}

/*** Image Slider ***/
.slider-container {
    width: 100%;
    max-width: 1700px;
    height: auto;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    width: 200%; /* Twice the width because of duplicated slides */
    height: auto;
    animation: scroll 40s linear infinite; 
}

.slide {
	width: 24.4%;
	flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/*** Keyframes ***/
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-122%); 
    }
}


@media (max-width: 500px) {

.hero-title {
	font-size: 2.5em;
	color: #05c240;
}

.h1-sub-heading {
	font-size: 1.25em;
}
}

/*** Project Of The Month ***/

#potm_section {
    padding: 80px 5%;
    background-color: var(--light-gray);
}
.potm-wrapper {
    max-width: 1450px;
}
.potm-wrapper h2 {
    color: var(--blue);
}
.potm-swiper {
    margin: 45px auto 20px;
}
.potm-swiper .swiper-slide {
    max-width: 500px;
    width: 100%;
    background: #ddd;
}
.potm-swiper .swiper-slide img {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.potm-swiper .swiper-button-prev,
.potm-swiper .swiper-button-next {
    color: #fff !important;
}
.potm-swiper .swiper-button-prev::after,
.potm-swiper .swiper-button-next::after {
    font-size: 25px !important;
    font-weight: 800;
}
.swiper-pagination-bullet {
    width: 15px !important;
    height: 15px !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--blue) !important;
}

.potm-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background-color: #f2f4f8;
    border: 5px solid #f2f4f8;
    border-radius: 5px;
    background-image: url(/imageserver/UserMedia/engelmannroofing/zoom_in_icon.svg);
    background-size: cover;
    background-position: center;
}