/* Theme Default CSS
==================================================*/
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900&display=swap');

html {
    scroll-behavior: smooth;
}

/* global classes */

hr {
    border-bottom: 1px solid #eceff8;
    border-top: 0 none;
    margin: 30px 0;
    padding: 0;
}
/* Theme info */
#theme-info {
    position: relative;
    color: transparent;
    font-size: 9px;
    z-index: -1;
}
/* Theme info end */
label {
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
}
*::-moz-selection {
    background: #d6b161;
    color: #fff;
    text-shadow: none;
}
::-moz-selection {
    background: #444;
    color: #fff;
    text-shadow: none;
}
*::-moz-placeholder {
    color: #555;
    font-size: 14px;
    opacity: 1;
}
*::-webkit-input-placeholder {
    color: #555;
    font-size: 14px;
    opacity: 1;
}
*:-ms-input-placeholder {
    color: #555;
    font-size: 14px;
    opacity: 1;

}
*::placeholder {
    color: #555;
    font-size: 14px;
    opacity: 1;
}
.theme-overlay {
    position: relative;
}
.theme-overlay:before {
    background: #4272d7 none repeat scroll 0 0;
    content: "";
    height: 100%;
    left: 0;
    opacity: 0.6;
    position: absolute;
    top: 0;
    width: 100%;
}

.separator {
    border-top: 1px solid #f2f2f2;
}

.hybtn {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: #4272d7 none repeat scroll 0 0;
    border: 2px solid #4272d7;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 0;
    padding: 13px 25px;
    text-align: center;
    text-transform: uppercase;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    vertical-align: middle;
    white-space: nowrap;
}

.hybtn:hover {
    background: transparent;
    color: #4272d7;
}

.hybtn.hybtn-lg {
    padding: 10px 25px;
}

.hybtn-xl {
    font-weight: 700;
    padding: 13px 31px;
}

.hybtn.hybtn-inline {
    background: transparent none repeat scroll 0 0;
    border: 0 none;
    color: #fff;
    padding: 0;
    text-decoration: none;
}

.hybtn.hybtn-inline:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb > .active {
    color: #888;
}

input:focus[type="url"],
input:focus[type="text"],
input:focus[type="email"],
input:focus[type="tel"],
input:focus[type="button"],
input:focus[type="submit"],
input:focus[type="search"],
button:focus[type="button"],
button:focus[role="button"],
button:focus,
input:focus {
    outline: none;
    text-decoration: none;
}
.btn:focus {
    box-shadow: 0 0 0 0;
}
.btn .icon {
    margin: 0;
}
.pagelayout-frontpage .card {
    border-radius: 0;
}

/* Start Header Area
==================================================*/
.main-menu li {
    display: inline-block;
    margin-left: 20px;
}
.main-menu li a {
    display: block;
    padding: 0 10px;
}
.header-area {
    border-top: 5px solid #4272d7;
}
.main-menu li.search-trigger a {
    border-left: 1px solid #666;
    padding-left: 30px;
}
.main-menu {
    margin-top: 5px;
}

.header-area.sticky {
    position: fixed;
    width: 100%;
    z-index: 9;
    background: rgba(255, 255, 255);
    padding: 20px 0;
}

.main-menu li.active a {
    color: #4272d7;
}

/* End Header Area */
/* Start Slider Area
==================================================*/
#slider1 .carousel-indicators,
#slider2 .carousel-indicators,
#slider3 .carousel-indicators,
#slider4 .carousel-indicators {
    list-style: none;
}
.single-slider {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-color: #ccc;
    display: table;
    width: 100%;
}

.slider-inner {
    display: table-cell;
    vertical-align: middle;
}

.slider-inner h1 {
    font-weight: 700;
    font-size: 70px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
}

.slider-inner h3 {
    font-size: 30px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 3px;
    font-weight: 400;
}

.slider-inner h5 {
    font-weight: 500;
    font-size: 19px;
    color: white;
}

.get-started-btn {
    margin-top: 40px;
    padding: 15px 35px;
    text-transform: capitalize;
    font-weight: 700;
    letter-spacing: 2px;
}

/* End Slider Area */
/* Start Hire Us Area
==================================================*/
.carousel-inner img {
    width: 100%;
    object-fit: cover;
}

.hire-us-content h6 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.hire-us-button {
    border-color: #fff;
    padding: 15px 40px;
    background: transparent;
}

.hire-us-button:hover {
    background: #333;
    color: #fff;
}

.hire-us-area {
    padding: 30px 0;
}

.hire-us-content h6 span {
    font-size: 30px;
}

/* End HIre Us Area */
/* Start Iconbox Area */
.single-course {
    height: 245px;
    display: table;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #cccc;
    position: relative;
    z-index: 1;
}

.single-icon-box {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #cccc;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.icon-box-content {
    position: absolute;
    left: 0;
    top: 210px;
    width: 100%;
    height: 100%;
    background: #4272d7;
    opacity: .9;
    color: #fff;
    z-index: -1;
    padding: 20px 30px 30px 30px;
    -webkit-transition: .6s;
    transition: .6s;
    cursor: pointer;
}

.icon-box-content:hover {
    top: 0;
}

.iconbox-content-heading {
    font-family: var(--font-lato);
    font-weight: 600;
    font-style: normal;
    margin: 0 0 15px;
    text-transform: capitalize;
    font-size: 16px;
    color: #fff;
    display: flex;
    align-items: center;
}

.iconbox-content-heading i {
    font-size: 30px;
    margin-right: 15px;
}

[dir="rtl"] .iconbox-content-heading i {
    margin-right: 0;
    margin-left: 15px;
}
.iconbox-content-body p {
    color: #f6f6f6;
    font-size: 14px;
    text-align: justify;
    margin-bottom: 25px;
}

.read-more-btn {
    text-transform: capitalize;
    font-weight: 600;
}

.read-more-btn i {
    margin-right: 5px;
}

/* End Iconbox Area */
/* Start Bemax Area
==================================================*/
.section-title-fp h4 {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.section-title-fp h4:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 3px;
    width: 50px;
    content: "";
    background: #adadad;
}

.item-icon i {
    width: 50px;
    height: 50px;
    max-height: 50px;
    max-width: 50px;
    background: #4272d7;
    color: #fff;
    font-size: 25px;
    text-align: center;
    line-height: 50px;
    display: inline-block;
    border: 1px solid #4272d7;
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 100px;
}

.item-icon i:hover {
    background: transparent;
    color: #4272d7;
}

.item-content {
    padding-left: 20px;
    margin-top: -4px;
}

.item-content h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.single-bemax-item {
    margin-bottom: 40px;
}

/* End Bemax Area */
/* Start Latest Project Area
==================================================*/
/* .project-bg-8 {background-image:url([[pix:almondb|almondb/project_08]]);} */
.single-project {
    height: 225px;
    display: table;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #cccc;
    position: relative;
    z-index: 1;
}

.project-inner {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: .3s;
    transition: .3s;
}

.project-inner:after {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    content: "";
    background: #4272d7;
    color: #fff;
    z-index: -1;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: .5s;
    transition: .5s;
}

.project-inner h5 {
    font-size: 16px;
    color: #cccc;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 5px;
    -webkit-transition: .3s;
    transition: .3s;
}

.project-inner h5 a {
    color: #d6d7d8;
}

.project-inner h5 a:hover {
    color: #fff;
}

.project-inner p {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.project-inner p a {
    color: #ccc;
    -webkit-transition: .3s;
    transition: .3s;
}

.project-inner p a:hover {
    color: #fff;
}

.courseall a:hover {
    color: #ccc;
}

.single-project:hover .project-inner:after {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    visibility: visible;
    opacity: .9;
}

.single-project:hover .project-inner {
    visibility: visible;
    opacity: 1;
}

/* End Latest Project Area */
/* Start Course Area
==================================================*/
.course-inner {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: .3s;
    transition: .3s;
}

.course-inner:after {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    content: "";
    background: #4272d7;
    color: #fff;
    z-index: -1;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: .5s;
    transition: .5s;
}

.course-inner h5 {
    font-size: 16px;
    color: #cccc;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 5px;
    -webkit-transition: .3s;
    transition: .3s;
}

.course-inner h5 a {
    color: #d6d7d8;
}

.course-inner h5 a:hover {
    color: #fff;
}

.course-inner p {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.course-inner p a {
    color: #ccc;
    -webkit-transition: .3s;
    transition: .3s;
}

.course-inner p a:hover {
    color: #fff;
}

.course-project {
    height: 225px;
    display: table;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #cccc;
    position: relative;
    z-index: 1;
}

.course-project:hover .course-inner:after {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    visibility: visible;
    opacity: .5;
}

.course-project:hover .course-inner {
    visibility: visible;
    opacity: .8;
}

/* End Course Area */
/* Start Choose Us Area
==================================================*/
/* .video-img-thumbnail {background-image: url(../img/video_01.jpg);} */
.video-img-thumbnail {
    height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #cccc;
}

.video-img-thumbnail a {
    position: relative;
    left: 0;
    right: 0;
    font-size: 60px;
    color: #fff;
    top: 40%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: .5s;
    transition: .5s;
}

.video-img-thumbnail a:hover {
    color: #4272d7;
}

.single-choose-item h6 {
    font-size: 16px;
    font-weight: 600;
    color: #555;
}

.single-choose-item h6 i {
    margin-right: 10px;
}

.single-choose-item p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.single-choose-item {
    margin-bottom: 20px;
}

/* End Choose Us Area */
/* Course Us Area
==================================================*/
.single-course-item h6 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .05rem;
    color: #555;
}

.single-course-item h6 i {
    margin-right: 10px;
}

.single-course-item p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.single-course-item {
    margin-bottom: 1px;
}

/* End Course Us Area */
/* Start Working With Us Area
==================================================*/
.hire-us-content span {
    font-size: 20px;
}

/* End Working With Us Area */
/* Start Carousel Area
==================================================*/
.blog-carousel img {
    width: 200px;
    display: inline-block;
    height: auto;
}

.single-blog-img {
    position: relative;
    float: left;
}

.single-blog-img span {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #222;
    width: 100%;
    text-transform: uppercase;
    color: #fff;
    font-size: 11px;
    padding: 0 10px;
}

.blog-content {
    padding-left: 220px;
}

.blog-btn {
    margin-top: 10px;
}

.post-heading {
    font-size: 18px;
    font-weight: 600;
    color: #555;
}

.post-content-text {
    margin: 0;
    color: #666;
    font-size: 15px;
    text-align: justify;
}

.blog-tags {
    display: inline-block;
    font-size: 13px;
}

.blog-tags i {
    font-size: 12px;
}

.blog-tags a {
    color: #555;
    font-weight: 600;
    -webkit-transition: .3s;
    transition: .3s;
}

.blog-btn .read-more-btn {
    color: #555;
    display: inline-block;
    margin-left: 20px;
}

.blog-btn .read-more-btn:hover {
    color: #4272d7;
}

.blog-tags a:hover {
    color: #4272d7;
}

.carousel-area .section-title-fp h4 {
    margin-bottom: 30px;
}

.carousel-area .section-title-fp h4:after {
    left: 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.testimonial-content i {
    font-size: 20px;
    color: #666;
    margin-right: 15px;
}

.testimonial-content p {
    font-size: 15px;
    color: #666;
    text-align: justify;
    margin: 0;
}

.testimonial-content p {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.testimonial-carousel img {
    display: block;
    width: 55px;
    height: auto;
    border-radius: 50%;
}

.author-img {
    padding-left: 30px;
}

.author-content a {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #555;
    -webkit-transition: .3s;
    transition: .3s;
}

.author-content span {
    display: block;
    line-height: 15px;
}

.author-content {
    padding-left: 15px;
}

.author-content a:hover {
    color: #4272d7;
}

/* End Carousel Area */
/* Start Brand Area
==================================================*/
.brand-item {
    display: table;
    width: 100%;
    position: relative;
    height: 100%;
}

.brand-item-inner {
    display: table-cell;
    vertical-align: middle;
}

/* End Brand Area */
/* Start ScrollUp */
.scrollUp {
    background: #4272d7;
    height: 40px;
    width: 40px;
    padding: 0;
    right: 30px;
    bottom: 30px;
    font-weight: 900;
    text-align: center;
    line-height: 37px;
    border-radius: 50%;
    font-size: 25px;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity .7s ease 0s, visibility .1s ease .8s;
    display: flex;
    position: fixed;
    z-index: 10009;
    justify-content: center;
    align-items: center;
}

.scrollUp a {
    position: absolute;
    right: 0;
    transform: translateY(-100%);
}

body.scrolled .scrollUp {
    opacity: 1;
    visibility: visible;
    transition: visibility 0s ease 0s, opacity .7s ease .1s;
}

/* End ScrollUp */
/* Tablet desktop :768px. */
@media only screen and (max-width: 991px) {
    .blockbgwhite {
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .blockbgwhite-t {
        margin-top: 25px;
    }

    .blockbgwhite-b {
        margin-bottom: 25px;
    }

    .blockbgcolor {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .blockbgcolor-t {
        padding-top: 25px;
    }

    .blockbgcolor-b {
        padding-bottom: 25px;
    }

    .single-slider {
        height: 500px;
    }

    .single-icon-box {
        width: 80%;
        margin: 0 auto;
        margin-bottom: 25px;
    }

    .single-course {
        width: 100%;
        margin: 0 auto;
    }

    .video-img-thumbnail {
        height: 300px;
        margin-bottom: 30px;
    }

    .section-title-fp {
        margin-bottom: 0;
    }

    .single-choose-item {
        display: block;
        margin-bottom: 30px;
    }

    .single-choose-item h6 {
        margin-bottom: 10px;
    }

    .single-course-item {
        display: block;
        margin-bottom: 10px;
    }

    .single-course-item h6 {
        margin-bottom: 5px;
    }

    .hire-us-img img {
        width: 100%;
    }

    .hire-us-content .section-title-fp {
        margin-bottom: inherit;
    }

    .carousel-area .section-title-fp {
        margin-bottom: inherit;
    }

    .blog-carousel {
        margin-bottom: 30px;
    }

    .brand-area {
        padding: 50px 0;
    }

    .widget-title {
        margin-bottom: 25px;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    .footer-area {
        padding-bottom: 20px;
    }
}

/* small mobile :320px. */
@media only screen and (max-width: 767.98px) {
    .blockbgwhite {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .blockbgwhite-t {
        margin-top: 20px;
    }

    .blockbgwhite-b {
        margin-bottom: 20px;
    }

    .blockbgcolor {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .blockbgcolor-t {
        padding-top: 20px;
    }

    .blockbgcolor-b {
        padding-bottom: 20px;
    }

    .single-slider {
        height: 400px;
    }

    .slider-inner h1 {
        font-size: 50px;
        font-weight: 500;
    }

    .slider-inner h3 {
        font-size: 25px;
        font-weight: 400;
        line-height: inherit;
    }

    .slider-inner h5 {
        font-weight: 400;
        font-size: 16px;
    }

    .get-started-btn {
        margin-top: 30px;
    }

    .hire-us-content {
        text-align: center;
    }

    .hire-us-area .col-12.text-end {
        text-align: center !important;
        margin-top: 20px;
    }

    .single-icon-box {
        width: 100%;
    }

    .single-course {
        width: 100%;
    }

    .working-with-us-area .hire-us-content {
        padding: 40px 0;
    }

    .blog-carousel img {
        width: 100%;
        height: 250px;
    }

    .blog-content {
        padding-left: 0;
    }

    .single-blog-img {
        margin-bottom: 30px;
    }

    .single-blog-item {
        margin-bottom: 30px;
    }
}
/*
 * Mohamed Nabih / Almondb SAFE PATCH v4 - FIRST VIEWPORT FIT
 * Append only to the bottom of the existing:
 * /theme/almondb/style/frontpage.css
 *
 * Remove previous custom patches first. Keep original templates and images.
 */

:root {
    /* Approximate space used by the header plus the requested divider/gap. */
    --mn-header-reserve: clamp(108px, 14vh, 156px);
    --mn-divider: #ead7d9;
}

/* A calm separator and short breathing space below the existing header. */
body.pagelayout-frontpage .header-area,
body.pagelayout-frontpage .navbar {
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--mn-divider);
    padding-bottom: 8px;
}

/* Fit the existing top image into the first viewport without cropping or stretching. */
body.pagelayout-frontpage .top-hero-banner-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - var(--mn-header-reserve)) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto 14px !important;
}

/* The active slider remains one slide at a time and fits the visible viewport. */
body.pagelayout-frontpage #slider1,
body.pagelayout-frontpage #slider2,
body.pagelayout-frontpage #slider3,
body.pagelayout-frontpage #slider4,
body.pagelayout-frontpage #header-carousel,
body.pagelayout-frontpage #slider1 .carousel-inner,
body.pagelayout-frontpage #slider2 .carousel-inner,
body.pagelayout-frontpage #slider3 .carousel-inner,
body.pagelayout-frontpage #slider4 .carousel-inner,
body.pagelayout-frontpage #header-carousel .carousel-inner,
body.pagelayout-frontpage #slider1 .carousel-item,
body.pagelayout-frontpage #slider2 .carousel-item,
body.pagelayout-frontpage #slider3 .carousel-item,
body.pagelayout-frontpage #slider4 .carousel-item,
body.pagelayout-frontpage #header-carousel .carousel-item {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - var(--mn-header-reserve)) !important;
}

body.pagelayout-frontpage #slider1 .carousel-item > img,
body.pagelayout-frontpage #slider2 .carousel-item > img,
body.pagelayout-frontpage #slider3 .carousel-item > img,
body.pagelayout-frontpage #slider4 .carousel-item > img,
body.pagelayout-frontpage #header-carousel .carousel-item > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - var(--mn-header-reserve)) !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Neutralize Almondb slider-4 inline values such as min-height:300px and cover. */
body.pagelayout-frontpage #slider4 .carousel-item[style],
body.pagelayout-frontpage #slider4 img[style],
body.pagelayout-frontpage #header-carousel .carousel-item[style],
body.pagelayout-frontpage #header-carousel img[style] {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - var(--mn-header-reserve)) !important;
    object-fit: contain !important;
}

/* Give the next content a clean separation, without changing its order. */
body.pagelayout-frontpage #slider1 + section,
body.pagelayout-frontpage #slider2 + section,
body.pagelayout-frontpage #slider3 + section,
body.pagelayout-frontpage #slider4 + section {
    margin-top: 16px !important;
}

@media (max-width: 767.98px) {
    :root {
        --mn-header-reserve: 108px;
    }

    body.pagelayout-frontpage .header-area,
    body.pagelayout-frontpage .navbar {
        margin-bottom: 8px !important;
        padding-bottom: 5px;
    }

    body.pagelayout-frontpage .top-hero-banner-img,
    body.pagelayout-frontpage #slider1 .carousel-item,
    body.pagelayout-frontpage #slider2 .carousel-item,
    body.pagelayout-frontpage #slider3 .carousel-item,
    body.pagelayout-frontpage #slider4 .carousel-item,
    body.pagelayout-frontpage #header-carousel .carousel-item,
    body.pagelayout-frontpage #slider1 .carousel-item > img,
    body.pagelayout-frontpage #slider2 .carousel-item > img,
    body.pagelayout-frontpage #slider3 .carousel-item > img,
    body.pagelayout-frontpage #slider4 .carousel-item > img,
    body.pagelayout-frontpage #header-carousel .carousel-item > img {
        max-height: calc(100svh - var(--mn-header-reserve)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pagelayout-frontpage .carousel-item,
    body.pagelayout-frontpage .carousel-item * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
/*
 * Mohamed Nabih / Almondb FOOTER REFINEMENT
 * Append only to the bottom of the existing:
 * /theme/almondb/style/frontpage.css
 *
 * This changes appearance only. It does not change footer text, links,
 * logo, social links, or Moodle data.
 */

:root {
    --mn-footer-red: #b90010;
    --mn-footer-red-deep: #8f000c;
    --mn-footer-coral: #ff5f5f;
    --mn-footer-text: #fff7f7;
    --mn-footer-muted: #ffdfe1;
    --mn-footer-line: rgba(255, 255, 255, .22);
}

/* Main frontpage footer: deep red, matching the existing site identity. */
body.pagelayout-frontpage #block20 > footer,
body.pagelayout-frontpage #block20 footer.footer-header-underline {
    position: relative;
    background: linear-gradient(135deg, var(--mn-footer-red-deep), var(--mn-footer-red)) !important;
    color: var(--mn-footer-text);
    border-top: 4px solid var(--mn-footer-coral);
    padding-top: clamp(2.25rem, 5vw, 4rem) !important;
    padding-bottom: clamp(1.75rem, 4vw, 3rem) !important;
}

body.pagelayout-frontpage #block20 > footer::before {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, .35);
    content: "";
}

body.pagelayout-frontpage #block20 > footer .container,
body.pagelayout-frontpage #block20 + .copyright-area .container {
    width: min(100% - 32px, 1180px);
    max-width: 1180px;
}

body.pagelayout-frontpage #block20 > footer .row {
    row-gap: 2rem;
}

/* Consistent footer columns and clear hierarchy. */
body.pagelayout-frontpage #block20 .footer-widget {
    height: 100%;
    margin-bottom: 0 !important;
    padding: .25rem .25rem 0;
}

body.pagelayout-frontpage #block20 .footer-logo img {
    display: block;
    max-width: min(190px, 100%);
    max-height: 76px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-bottom: 1rem;
}

body.pagelayout-frontpage #block20 .footer-site-name,
body.pagelayout-frontpage #block20 .widget-title {
    color: #fff !important;
    font-weight: 900;
    line-height: 1.55;
    margin-bottom: .9rem !important;
}

body.pagelayout-frontpage #block20 .footer-header-underline {
    border-bottom: 1px solid var(--mn-footer-line);
    padding-bottom: .7rem;
    margin-bottom: 1rem !important;
}

body.pagelayout-frontpage #block20 .footer-header-underline h6 {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.55;
    margin: 0;
}

body.pagelayout-frontpage #block20 .footer-dec,
body.pagelayout-frontpage #block20 .address-line {
    color: var(--mn-footer-muted);
    line-height: 1.9;
}

body.pagelayout-frontpage #block20 .footer-dec p,
body.pagelayout-frontpage #block20 .address-line p {
    margin-bottom: .6rem;
}

body.pagelayout-frontpage #block20 .address-line a,
body.pagelayout-frontpage #block20 .footer-menu a,
body.pagelayout-frontpage #block20 .footer-dec a {
    color: #fff !important;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .2s ease, padding-inline-start .2s ease;
}

body.pagelayout-frontpage #block20 .address-line a:hover,
body.pagelayout-frontpage #block20 .address-line a:focus-visible,
body.pagelayout-frontpage #block20 .footer-menu a:hover,
body.pagelayout-frontpage #block20 .footer-menu a:focus-visible,
body.pagelayout-frontpage #block20 .footer-dec a:hover,
body.pagelayout-frontpage #block20 .footer-dec a:focus-visible {
    color: #ffe4e5 !important;
    text-decoration: underline;
}

body.pagelayout-frontpage #block20 .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.pagelayout-frontpage #block20 .footer-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin: 0;
    padding: .45rem 0;
}

body.pagelayout-frontpage #block20 .footer-menu li:last-child {
    border-bottom: 0;
}

body.pagelayout-frontpage #block20 .footer-menu a::before {
    color: var(--mn-footer-coral);
    content: "•";
    font-weight: 900;
    margin-inline-end: .5rem;
}

/* Bottom copyright and social strip. */
body.pagelayout-frontpage #block20 + .copyright-area.black-bg,
body.pagelayout-frontpage .copyright-area.black-bg {
    background: var(--mn-footer-red-deep) !important;
    border-top: 1px solid var(--mn-footer-line);
    color: var(--mn-footer-muted);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

body.pagelayout-frontpage #block20 + .copyright-area .social-links,
body.pagelayout-frontpage .copyright-area.black-bg .social-links {
    padding-top: 0 !important;
    padding-bottom: .75rem;
}

body.pagelayout-frontpage #block20 + .copyright-area .social-links ul,
body.pagelayout-frontpage .copyright-area.black-bg .social-links ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
}

body.pagelayout-frontpage #block20 + .copyright-area .social-links li,
body.pagelayout-frontpage .copyright-area.black-bg .social-links li {
    margin: 0 !important;
}

body.pagelayout-frontpage #block20 + .copyright-area .social-links a,
body.pagelayout-frontpage .copyright-area.black-bg .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--mn-footer-line);
    border-radius: 50%;
    color: #fff;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

body.pagelayout-frontpage #block20 + .copyright-area .social-links a:hover,
body.pagelayout-frontpage #block20 + .copyright-area .social-links a:focus-visible,
body.pagelayout-frontpage .copyright-area.black-bg .social-links a:hover,
body.pagelayout-frontpage .copyright-area.black-bg .social-links a:focus-visible {
    background: var(--mn-footer-coral);
    border-color: var(--mn-footer-coral);
    color: #fff;
    transform: translateY(-2px);
}

body.pagelayout-frontpage #block20 + .copyright-area .small,
body.pagelayout-frontpage .copyright-area.black-bg .small {
    color: var(--mn-footer-muted);
    line-height: 1.8;
}

@media (max-width: 767.98px) {
    body.pagelayout-frontpage #block20 > footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
        text-align: center;
    }

    body.pagelayout-frontpage #block20 .footer-widget {
        padding-inline: .5rem;
    }

    body.pagelayout-frontpage #block20 .footer-logo img {
        margin-inline: auto;
    }

    body.pagelayout-frontpage #block20 .footer-menu li {
        border-bottom: 0;
        padding: .3rem 0;
    }

    body.pagelayout-frontpage #block20 .footer-menu a::before {
        margin-inline-end: .35rem;
    }
}
