
/* show hide parts according to current language */
html[lang="en"] .lang-ar,
html[lang="ar"] .lang-en{
    display: none;
}
html[lang="ar"]{
    body {
        direction: rtl;
    }
    #frontpageCarousel .carousel-caption{
        text-align: right;
    }
    #frontpageCarousel .carousel-caption h1 {
        font-size: 3.5rem;
        font-weight: 600;
        text-align: right;
    }
    #frontpageCarousel .carousel-control-next, .carousel-control-prev {
        left: 0 !important;
        right: auto !important;
    }
    #frontpageCarousel .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    }
    #frontpageCarousel .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    }
}

:root {
    --primary-navy: #001e4d;
    --accent-blue: #0056b3;
    --light-gray: #ececec;
    --text-dark: #333;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.row > * {
    flex-shrink: 0;
    max-width: 100%;
    padding-right: calc(1.5rem * .5);
    padding-left: calc(1.5rem * .5);
    margin-top:  1.5rem;
}

.btn-primary{
    --bs-btn-bg: #001e4d !important;
    --bs-btn-border-color: #001e4d !important;
    --bs-btn-hover-bg: #031838 !important;
    --bs-btn-hover-border-color: #031838 !important;
    --bs-btn-active-bg: #001e4d !important;
    --bs-btn-active-border-color: #0a53be !important;
    --bs-btn-disabled-bg: #001e4d !important;
    --bs-btn-disabled-border-color: #001e4d !important;
}
.btn-outline-primary {
    --bs-btn-color: #001e4d !important;
    --bs-btn-border-color: #001e4d !important;
    --bs-btn-hover-bg: #031838 !important;
    --bs-btn-hover-border-color: #031838 !important;
    --bs-btn-active-bg: #001e4d !important;
    --bs-btn-active-border-color: #001e4d !important;
    --bs-btn-disabled-color: #001e4d !important;
    --bs-btn-disabled-border-color: #001e4d !important;
}
a.btn.btn-primary {
    border-radius: 3px;
    height: 35px;
    line-height: 1;
    width: 90px;
}

@import url('./../fonts/lato/lato.css');

.lato-thin {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.lato-light {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.lato-regular {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.lato-bold {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.lato-black {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.lato-thin-italic {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.lato-light-italic {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.lato-regular-italic {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.lato-bold-italic {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.lato-black-italic {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: italic;
}


body {
    font-family: 'Lato', Tahoma, Geneva, Verdana, sans-serif;
}

.my-page-content {
    .small {
        font-size: 14px;
        font-weight: 400;
    }

    /* Carousel Styling */
    #frontpageCarousel {
        margin-top: 60px;
    }
    #frontpageCarousel .carousel-item {
        height: 600px;
        background-color: var(--primary-navy);
        margin-left: auto;
    }
    #frontpageCarousel .carousel-item img {
        object-fit: cover;
        opacity: 0.5; /* Overlay effect */
        height: 100%;
        width: 100%;
    }
    #frontpageCarousel .carousel-caption {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    #frontpageCarousel .carousel-caption h1 {
        font-size: 2rem;
        font-weight: 600;
    }
    #frontpageCarousel button.carousel-control-prev {
        right: 0;
        left: auto;
    }
    #frontpageCarousel button.carousel-control-next {
        margin-top: -120px;
    }
    #frontpageCarousel button.carousel-control-next span, button.carousel-control-prev  span{
        border: 1px solid;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        font-size: 5px;
        background-size: 50%;
    }

    /* small up animation */

    .animate {
        transition: transform 0.3s;
    }
    .animate:hover {
        transform: translateY(-5px);
    }

    /* General Sections */
    section {
        padding: 80px 0;
    }
    .section-title {
        color: var(--primary-navy);
        font-weight: 700;
        margin-bottom: 25px;
    }

    /* Our Library */
    section.our-library .category-card {
        border: none;
        box-shadow: var(--card-shadow);
        text-align: center;
        padding: 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    /* Our Courses */
    section.our-courses .card-body {
        padding: 15px 5px 0;
        color: #fff;
        background-color: #04204a;
        border-radius: 0 0 10px 10px;
        box-shadow: -1px -5px 5px 2px #081c561c;
    }
    section.our-courses .card {
        text-decoration: none;
        border: none;
    }
    section.our-courses .card:hover {
        box-shadow: 1px 1px 5px 5px #081c561c;
    }
    section.our-courses a img {
        height: 200px;
    }
    section.our-courses h6 {
        height: 50px;
        text-align: center;
    }

    /* Dark Section */
    .dark-section {
        background-color: var(--primary-navy);
        padding: 60px 0;
    }
    .dark-section .section-title {
        color: #fff;
    }
    .resource-card {
        background: white;
        padding: 30px;
        height: 100%;
        border-radius: 4px;
    }
    .resource-img img {
        max-width: 180px;
        /* height: -webkit-fill-available; */
    }
    .resource-img {
        height: 60px !important;
        display: inline-flex;
    }
    .resource-title {
        color: #14284d;
        font-size: 16px;
        margin: 12px;
    }
    .resource-info {
        font-size: 13px;
        line-height: 1.75;
        height: 130px;
    }

    /* Service Grid */
    .our-services .service-card {
        padding: 40px;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .service-navy {
        background-color: var(--primary-navy);
        color: white;
    }
    .service-gray {
        background-color: var(--light-gray);
        color: var(--text-dark);
    }
    .service-card {
        border: 20px solid #fff;
    }
    .footer-services i {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .about-section {
        padding: 50px;
    }
}
/* Bottom Copyright Bar */
footer.my-footer {
    background-color: var(--primary-navy);
    color: white;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer > div > div {
    margin-bottom: 35px;
}
.footer-logo {
    font-weight: bold;
    font-size: 1.2rem;
}
.footer-logo img {
    width: 200px;
    margin: 0 20%;
}
.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}
.call-link a{
    font-size: 12px;
    text-decoration: none;
    color: #fff;
}