[dir="rtl"] body {
    font-family: 'El Messiri', sans-serif;
}

body {
    font-family: 'Kanit', sans-serif;
}

.header {
    height: 150px;
    background-color: #0f3c63;
    color: #fff;
    padding: 10px;
}

.bg-red {
    background-color: #d42b26;
}

.btn-red {
    background-color: #d42b26;
    border-color: #d42b26;
    color: #fff;

}
.btn-red:hover {
    background-color: #fff;
    color: #d42b26;
}

.slider-title {
    font-size: 26px;
    display: inline-block;
    padding: 5px;
    border-radius: 10px;
}

.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-toggler-icon {
        color: white;
}

.bg-blue {
    background-color: #114d81;
}
.bg-lightblue {
    background-color: #688fae;
}

.font-white {
    color: #fff;
}
.font-blue {
    color: #114d81;
}

.custom-left-margin {
    margin-left: 20px;
}
.contact-button {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.contact-button:hover {
    background-color: white;
    color: black;
}
.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
}

.custom-carousel {
    max-height: 450px;
    overflow: hidden;
}

.custom-carousel .carousel-inner img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}
[dir="rtl"] .custom-carousel .carousel-inner img {
    transform: scaleX(-1); /* Mirror the image horizontally in RTL mode */
    -webkit-transform: scaleX(-1); /* Safari and Chrome */
    -moz-transform: scaleX(-1); /* Firefox */
    -ms-transform: scaleX(-1); /* IE 9+ */
    -o-transform: scaleX(-1); /* Opera */
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 5%;
    top: 5dvh;
    width: 40%;
    overflow: auto;
    height: 100%;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

[dir="rtl"] .overlay-text {
    left: auto;
    right: 5%;
}

.overlay-text2 {
    position: absolute;
    bottom: 0;
    left: 5%;
    top: 5dvh;
    height: 100%;
    flex-direction: column;
    align-items: center;
    color: #fff;
}
.banner1-text ul{
    list-style-type: none;
    padding-left: 0.25rem;
}

.banner1-text a {
    text-decoration: none;
    color: white;
}
.banner1-img{
    position: relative;
    overflow: hidden;
}

.banner1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: skewX(-12deg);
    transform-origin: bottom right;
}

[dir="rtl"] .banner1-img img {
    transform: skewX(12deg);
    transform-origin: bottom left;
}


.banner2-text {
    list-style-type: none;
}

.banner2-text a {
    text-decoration: none;
    color: white;
}
.banner2-img{
    position: relative;
    overflow: hidden;
}

.banner2-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: skewX(-10deg);
    transform-origin: top right;
}

[dir="rtl"] .banner2-img img {
    transform: skewX(10deg);
    transform-origin: top left;
}


.image-fit {
    object-fit: fill;
    width: 100%;
    height: 100%;
}
.custom-border {
    border: 3px solid #114d81;
}

.top-image {
    height: 180px;
    border: 1px solid grey;
}

.top-image img {
    width: 100%;
    height: 180px;;
    object-fit: cover;
}

[dir="rtl"] .top-image img {
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    -o-transform: scaleX(-1);
}

[dir="rtl"] .overlay-text2 {
    left: auto;
    right: 5%;
}

.hr-color {
    opacity: 100%;
    border-color: #114d81;
    border-width: 10px;
}
.pdfimage {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
}


.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
}

.custom-carousel {
    max-height: 555px;
    overflow: hidden;
}

.custom-carousel .carousel-inner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.news-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}


.btn-read-more {
    background-color: #114d81;
    border-color: #114d81;
    color: #fff;
    font-size: 20px;
}

.btn-read-more:hover {
    background-color: #d42b26;
    border-color: #d42b26;
    color: #fff;
}

@media screen and (max-width: 600px) {
    .overlay-text {
        margin: 2px;
        width: 100%;
        height: 100%;
        color: #fff;
        font-weight: bolder;
    }
    .top-image {
        height: 180px;
        border: 1px solid grey;
    }

    .top-image img {
        object-fit: cover;
    }

}

[dir="rtl"] .dropdown-menu[data-bs-popper] {
    left: unset;
}
