/********** Template CSS **********/
:root {
    --primary: #8d4b98;
    --secondary: #757575;
    --light: #f3f6f8;
    --dark: #5c5c5c;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #ffffff;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: 0.5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #eeeeee;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url(../img/banner.jpg) center center no-repeat;
    background-size: cover;
}

/*.page-header {*/
/*    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),*/
/*        url(../img/carousel-1.jpg) center center no-repeat;*/
/*    background-size: cover;*/
/*}*/

.breadcrumb-item + .breadcrumb-item::before {
    color: #999999;
}

/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

/*** Courses ***/
.courses {
    min-height: 100vh;
    /* background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat; */
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}

/*** Team ***/
.team-items {
    margin: -0.75rem;
}

.team-item {
    padding: 0.75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #ffffff;
    transition: 0.5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}

/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

/* Change Swiper navigation arrow color */
.swiper-button-next,
.swiper-button-prev {
    color: #000 !important; /* غير اللون هنا */
    font-weight: bold;
}

/* لو حابب تكبر حجم الأسهم */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
}
.swiper-button-next,
.swiper-button-prev {
    color: #8d4b98 !important; /* Bootstrap Red */
}

.containerLanguage {
    background-color: var(--primary);
    /* border-radius: 0px 0px 0px 5px; */
    position: fixed;
    z-index: 10;
    top: 30%;
    right: -100px;
    width: 100px;
    transition: all ease-in 100ms;
}
.containerLanguage.active {
    right: 0;
}
.containerLanguage p {
    font-size: 1rem;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all ease-in 50ms;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 5px;
    width: 100%;
    margin: 0px;
    &:hover {
        letter-spacing: 3px;
        background-color: rgb(29, 29, 29);
    }
}
.translateTool {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 10px 0px 0px 10px;
    position: absolute;
    top: 0;
    left: -50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in 50ms;
    cursor: pointer;
    &:hover {
        background-color: rgb(28, 28, 28);
    }
}
.translateTool svg {
    width: 2rem;
    color: white;
}

.container-school {
    width: 30%;
    transition: transform 0.3s ease;
    /* background-color: #8D4B98; */
}

.container-school:hover {
    transform: scale(1.1);
}
.container-school:hover .inner-container-school {
    box-shadow: 0px 0px 10px 0px #00000052;
}

.image-facility {
    width: 100%;
    height: 40vh;
    object-fit: cover;
}

.image-news {
    height: 55vh;
    width: 100%;
    object-fit: cover;
}

.contaner-hero-slider {
    margin-top: -112px;
}
.custom-link {
    color: black !important; /* mobile */
}
.image-school {
    height: 35vh;
    object-fit: cover;
}
.image-school-popup {
    width: 100% !important;
    max-height: 90vh;
    object-fit: contain;
}
.facility-card {
    position: relative;
    height: 350px;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}
.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.facility-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.559),
        rgba(0, 0, 0, 0.7)
    );
    z-index: 1;
}
.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}
.card-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.445);
}
.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0.9;
    transition: transform 0.3s ease;
}
.facility-card:hover .card-icon {
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    .facility-card {
        height: 300px;
    }
    .card-content h3 {
        font-size: 1.5rem;
    }
    .card-icon {
        font-size: 2rem;
    }
}
@media (min-width: 768px) {
    .custom-link {
        color: white !important; /* md and up */
    }
}
@media (max-width: 768px) {
    .contaner-hero-slider {
        margin-top: 0px;
    }
    .containerLanguage {
        top: 20%;
    }
}
@media (min-width: 768px) {
    .container-navbar {
        background: linear-gradient(to bottom, black, transparent) !important;
    }
}

















/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
/* =====================CALENDAR==START=================================== */
       :root {
            --primary: #8D4B98;
            --event-highlight: #f1c40f;
            --today: #f1c40f;
            --weekend: #f5b7b1;
            --text: #2c3e50;
            --light-bg: #ecf0f1;
            --border: #bdc3c7;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
            color: #333;
        }

        .containerCalendar {
            width: 100%;
            max-width: 1200px;
            margin: 20px auto;
            background: #303030;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            padding-bottom: 20px;
            border-radius: 10px;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: var(--primary);
            color: white;
        }

        .header h1 {
            font-size: 1.8rem;
            margin: 0;
            color: white;
        }

        .header button {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.3s;
        }

        .header button:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .calendar-nav {
            display: flex;
            gap: 10px;
        }

        .month {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background-color: #444;
        }

        .day-header {
            background-color: var(--primary);
            color: white;
            text-align: center;
            padding: 15px 10px;
            font-weight: bold;
        }

        .day {
            background-color: #303030;
            min-height: 120px;
            padding: 10px;
            position: relative;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid #444;
        }

        .day:hover {
            background-color: #3a3a3a;
        }

        /* إزالة تأثيرات التمرير من الأيام التي تحتوي على أحداث */
        .day.has-events {
            background: linear-gradient(135deg, #303030 0%, #303030 90%, var(--event-highlight) 90%, var(--event-highlight) 100%);
            border: 1px solid var(--event-highlight);
        }

        .day.has-events:hover {
            background: linear-gradient(135deg, #303030 0%, #303030 90%, var(--event-highlight) 90%, var(--event-highlight) 100%);
            transform: none;
            box-shadow: none;
        }

        .day.other {
            background-color: #252525;
            color: #666;
            border: 1px solid #444;
            cursor: default;
        }

        .day.other:hover {
            background-color: #252525;
        }

        .day.today {
            background-color: var(--primary);
            border: 2px solid var(--today);
        }

        .day.weekend {
            background-color: #303030;
            border: 1px solid #444;
        }

        .weekend:hover {
            background-color: #3a3a3a;
        }

        .day-number {
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .hijri-date {
            font-size: 0.8rem;
            color: #aaa;
            margin-bottom: 5px;
        }

        .day-events {
            display: flex;
            flex-wrap: wrap;
            gap: 3px;
            margin-top: 10px;
        }

        .event-indicator {
            display: inline-block;
            width: 6px;
            height: 6px;
            background-color: var(--event-highlight);
            border-radius: 50%;
            margin-right: 2px;
        }

        .event-count {
            color: var(--event-highlight);
            font-size: 0.8rem;
            font-weight: bold;
        }

        .details {
            position: absolute;
            background: white;
            border: 1px solid var(--border);
            border-radius: 5px;
            padding: 15px;
            z-index: 1000;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
            width: 500px;
            color: var(--text);
        }

        .details.right {
            left: 0;
            top: 0;
        }

        .details.left {
            right: 0;
            top: 0;
        }

        .details h3 {
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid var(--border);
            color: var(--primary);
        }

        .event-item {
            margin-bottom: 8px;
            padding: 8px;
            border-radius: 3px;
            background: var(--light-bg);
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-start;
        }

        .event-image {
            width: 200px;
            height: 120px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 10px;
        }

        .event-content {
            flex: 1;
        }

        .event-content strong {
            display: block;
            margin-bottom: 5px;
            color: var(--primary);
        }

        .event-content p {
            margin: 0 0 5px 0;
            font-size: 0.9rem;
        }

        .loading {
            text-align: center;
            padding: 20px;
            font-size: 1.2rem;
            color: white;
        }

        @media (max-width: 768px) {
            .day {
                min-height: 80px;
                padding: 5px;
            }

            .day-number {
                font-size: 1rem;
            }

            .hijri-date {
                font-size: 0.7rem;
            }

            .details {
                width: 250px;
                z-index: 1000;
            }

            .event-image {
                width: 60px;
                height: 45px;
            }
        }
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
/* =====================CALENDAR==END=================================== */
