/* Home Hero */
.max-hero {
    width: 100%;
    overflow: hidden;
}

.max-hero__slider {
    position: relative;
    width: 100%;
    height: 610px;
    overflow: hidden;
}

.max-hero__slide {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.max-hero__content {
    position: relative;
    z-index: 2;
    width: 55%;
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding-left: max(
        calc((100vw - 1320px) / 2 + 0px),
        24px
    );

    padding-right: 35px;
    padding-top: 50px;
    padding-bottom: 100px;

    background: linear-gradient(
        90deg,
        #f8f8f1 0%,
        #f7f2e5 75%,
        rgba(247, 242, 229, 0.9) 100%
    );
}

.max-hero__title {
    max-width: 650px;
    margin-bottom: 28px;
    color: var(--primary);
    font-size: clamp(34px, 2.6vw, 46px);
    font-weight: 700;
    line-height: 1.2;
}

.max-hero__description {
    max-width: 590px;
    margin-bottom: 54px;
    color: #111;
    font-size: 22px;
    line-height: 1.5;
}

.max-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.max-hero__media {
    position: relative;
    width: 45%;
    flex: 0 0 45%;
    height: 100%;
    overflow: hidden;
}

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

.max-hero__pagination {
    position: absolute;
    bottom: 45px !important;
    left: 50% !important;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    width: auto !important;
    transform: translateX(-50%);
}

.max-hero__pagination .swiper-pagination-bullet {
    width: 85px;
    height: 20px;
    margin: 0 !important;
    border: 1px solid var(--primary);
    border-radius: 30px;
    background: transparent;
    opacity: 1;
}

.max-hero__pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

.max-hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 6;
    width: 100%;
    height: 7px;
    background: rgba(8, 100, 77, 0.12);
}

.max-hero__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
}

/* Large desktop - Bootstrap container 1320px */
@media (min-width: 1400px) {
    .max-hero__content {
        padding-left: calc((100vw - 1320px) / 2 + 0px);
    }
}

/* Desktop - Bootstrap container 1140px */
@media (min-width: 1200px) and (max-width: 1399px) {
    .max-hero__content {
        padding-left: calc((100vw - 1140px) / 2 + 0px);
    }
}

/* Laptop - Bootstrap container 960px */
@media (min-width: 992px) and (max-width: 1199px) {
    .max-hero__content {
        padding-left: calc((100vw - 960px) / 2 + 0px);
    }
}

/* Tablet - Bootstrap container 720px */
@media (min-width: 768px) and (max-width: 991px) {
    .max-hero__slider {
        height: 560px;
    }

    .max-hero__content {
        width: 55%;
        flex-basis: 55%;
        padding-left: calc((100vw - 720px) / 2 + 0px);
        padding-right: 20px;
    }

    .max-hero__media {
        width: 45%;
        flex-basis: 45%;
    }

    .max-hero__title {
        font-size: 32px;
    }

    .max-hero__description {
        font-size: 17px;
        margin-bottom: 30px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .max-hero {
        height: auto;
        min-height: 0;
    }

    .max-hero__slider {
        height: auto !important;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .max-hero__slider .swiper-wrapper {
        height: auto !important;
        align-items: stretch;
    }

    .max-hero__slide {
        height: auto !important;
        min-height: 0;
        flex-direction: column;
    }

    .max-hero__media {
        position: relative;
        width: 100%;
        height: 240px;
        flex: 0 0 240px;
    }

    .max-hero__content {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        padding: 25px 16px 25px;
        order: 2;
        min-height: 25rem;
    }

    .max-hero__title {
        font-size: 27px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .max-hero__description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .max-hero__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .max-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .max-hero__pagination {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        transform: none;
        width: 100% !important;
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 24px 0 24px;
        order: 2;
    }

    .max-hero__pagination .swiper-pagination-bullet {
        width: 35px;
        height: 11px;
        margin: 0 !important;
    }

    .max-hero__progress {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        height: 5px;
        order: 3;
        flex-shrink: 0;
    }
}

/* About Banner */
.max-banner {
    position: relative;
    min-height: 520px;
    background: url("../img/hero/about.png") center center / cover no-repeat;
    overflow: hidden;
}

.max-banner__container {
    position: relative;
    z-index: 1;
    min-height: 520px;
}

.max-banner__container .row {
    min-height: 520px;
    align-items: center;
}

.max-banner__content {
    width: 100%;
    text-align: center;
}

.max-banner__content h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

.max-banner__content h1 span {
    display: block;
}

/* Responsive */
@media (max-width: 991.98px) {
    .max-banner,
    .max-banner__container {
        min-height: 420px;
    }
}

@media (max-width: 767.98px) {
    .max-banner,
    .max-banner__container {
        min-height: 350px;
    }

    .max-banner {
        background-position: 38% center;
    }

    .max-banner__content h1 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }
}

@media (max-width: 575.98px) {
    .max-banner,
    .max-banner__container {
        min-height: 300px;
    }

    .max-banner {
        background-position: 35% center;
    }
}

/* service Banner */
.max-svc-banner {
    position: relative;
    min-height: 520px;
    background: url("../img/hero/service.png") center center / cover no-repeat;
    overflow: hidden;
}

.max-svcbnr__content{
    width: 40%;
}

.max-svcbnr__content h1 {
    color: var(--white);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.max-svcbnr__content p {
    color: var(--white);
    font-size: clamp(1rem, 1vw, 1.4rem);
    line-height: 1.5;
}


/* Responsive */
@media (max-width: 991.98px) {
    .max-svc-banner,
    .max-banner__container {
        min-height: 420px;
        width: 100%;
    }
    .max-svcbnr__content{
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .max-svc-banner,
    .max-banner__container {
        min-height: 350px;
        width: 100%;
    }
    .max-svcbnr__content{
        width: 100%;
    }

    .max-svcbnr__content h1 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    .max-svc-banner {
        background-position: 38% center;
    }
}

@media (max-width: 575.98px) {
    .max-svc-banner,
    .max-banner__container {
        min-height: 300px;
        width: 100%;
    }
    .max-svcbnr__content{
        width: 100%;
    }

    .max-svc-banner {
        background-position: 35% center;
    }
}

/* Conatcus Banner */
.max-contact-banner {
    position: relative;
    min-height: 520px;
    background: url("../img/hero/contactus.png") center center / cover no-repeat;
    overflow: hidden;
}

.max-contactbnr__content{
    width: 40%;
}

.max-contactbnr__content h1 {
    color: var(--white);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.max-contactbnr__content p {
    color: var(--white);
    font-size: clamp(1rem, 1vw, 1.4rem);
    line-height: 1.5;
}


/* Responsive */
@media (max-width: 991.98px) {
    .max-contact-banner,
    .max-banner__container {
        min-height: 420px;
        width: 100%;
    }
    .max-contactbnr__content{
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .max-contact-banner,
    .max-banner__container {
        min-height: 350px;
        width: 100%;
    }
    .max-contactbnr__content{
        width: 100%;
    }

    .max-contactbnr__content h1 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    .max-contact-banner {
        background-position: 38% center;
    }
}

@media (max-width: 575.98px) {
    .max-contact-banner,
    .max-banner__container {
        min-height: 300px;
        width: 100%;
    }
    .max-contactbnr__content{
        width: 100%;
    }

    .max-contact-banner {
        background-position: 35% center;
    }
}

/* BLog Banner */
.max-blog-banner {
     min-height: 520px;
    overflow: hidden;
    background-color: var(--primary);
}

.max-blog-banner > .row {
     min-height: 520px;
}

.max-blog__content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 50px 15%;
    background-color: var(--primary);
}

.max-blog__content h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

.max-blog__image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: url("../img/hero/blog.png") center center / cover no-repeat;
}

/* Responsive */
@media (max-width: 991.98px) {
    .max-blog-banner,
    .max-blog-banner > .row {
        min-height: auto;
    }

    .max-blog__content {
        min-height: 250px;
        padding: 40px 8%;
    }

    .max-blog__image {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .max-blog__content {
        min-height: 200px;
        padding: 35px 25px;
    }

    .max-blog__content h1 {
        font-size: 1.8rem;
    }

    .max-blog__image {
        min-height: 230px;
    }
}