/********** Template CSS **********/
:root {
    --primary: #d21d2f;
    --light: #ebedf7;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

h1,
h2,
h3 {
    font-family: "Roboto", sans-serif;
}
h1,
h2 {
    color: #181d38;
}
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}
@media (max-width: 991px) {
    .back-to-top {
        right: 10px;
        bottom: 50px;
    }
}
/*** 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-family: "Nunito", sans-serif;
    font-weight: 600;
    transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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;
    border-radius: 0px;
}

/*navbar css*/
.navbar {
    background-color: #333;
    color: #fff;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
}

.brand {
    font-size: 24px;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #181d38 !important;
    text-decoration: none !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
    font-size: 18px;
    font-weight: 500;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    gap: 8px;
    list-style: none;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.line1,
.line2,
.line3 {
    width: 30px;
    height: 4px;
    background-color: white;
    border: 1px solid #331a20;
    border-radius: 20px;
    margin: 2px;
    transition: all 0.3s ease;
}

/* Define the active class */
.nav-item .nav-link.active {
    color: #d21d2f !important;
    font-weight: bold;
}

/* Example hover effect for nav links */
.nav-item .nav-link:hover {
    color: #d21d2f !important;
}

/* Ensure the active class is visible even when the element is focused */
.nav-item .nav-link:focus {
    color: #d21d2f !important;
}

@media screen and (max-width: 991px) {
    .nav-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 58px;
        left: -100%; /* Initially off-screen to the left */
        width: 50%;
        padding: 20px;
        box-sizing: border-box;
        transition: left 0.5s ease-in-out; /* Add transition */
    }
    .nav-item .nav-link {
        margin-top: -30px;
        margin-left: 10px;
        font-weight: 300;
    }
    .nav-links.active {
        left: 0; /* Slide into view */
    }

    .burger {
        display: flex;
    }
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/*** Header Logo Css**/
.logocss {
    height: 80px;
}
/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

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

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: transparent;
    border: 1px solid #ffffff;
    font-size: 22px;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, 0.7), rgba(24, 29, 56, 0.7)),
        url(../img/allbackimg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Service ***/
.service-item {
    background: var(--light);
    transition: 0.5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: 0.5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: 0.5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}

/*** Team ***/
.team-item img {
    transition: 0.5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

/**** Why SrVs ****/
.counterback {
    background: linear-gradient(rgba(24, 29, 56, 0.7), rgba(24, 29, 56, 0.7)),
        url(../img/counterback.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white !important;
    padding: 30px 0px;
    background-attachment: fixed;
    margin-top: 70px;
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #ffffff !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #cccccc;
    transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/*** Gallery Start ***/
.galleryshadow {
    position: relative;
}

.galleryshadow .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 29, 56, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Adjust the color of the icon */

    border-radius: 20px 0px;
}

.galleryshadow:hover .overlay {
    opacity: 1;
}

.galleryshadow img {
    display: block;
    width: 100%;
    height: auto;
}

.galleryborder {
    border-radius: 20px 0px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px,
        rgba(0, 0, 0, 0.23) 0px 6px 6px;
}
/*** Events End ***/

/*** Course Card ***/
.coursecard {
    border: none;
    transition: transform 1s ease;
}
.coursecard:hover {
    transform: translateY(20px);
}

/**** Mission & Vision ***/
.missioncard {
    background: linear-gradient(rgba(24, 29, 56, 0.8), rgba(24, 29, 56, 0.8)),
        url(../img/mission.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.visioncard {
    background: linear-gradient(rgba(24, 29, 56, 0.8), rgba(24, 29, 56, 0.8)),
        url(../img/foot3.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/**** Rule Back Image ***/
.rulebackimg {
    background: linear-gradient(
            rgba(252, 252, 252, 0.8),
            rgba(252, 252, 252, 0.8)
        ),
        url(../img/ruleback.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/**** Select Field Fom ****/
.form-floating > .form-select {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.form-floating .form-select option[value=""] {
    display: none;
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(24, 29, 56, 0.8), rgba(24, 29, 56, 0.8)),
        url(../img/footerbackimg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 65px;
}
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #ffffff;
    border-radius: 8px;
    transition: 0.3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #ffffff;
    font-size: 15px;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #d21d2f;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, 0.1);
}

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

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*** Footer Fixed Navbar seen in small device**/

.footerfixednav {
    height: 45px;
    position: fixed;
    bottom: -3px;
    display: none;
    z-index: 1000;
    padding-top: 10px;
    border-radius: 30px 30px 10px 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #d21d2f;
}
.footerfixednav i {
    font-size: 22px;
}
@media (max-width: 991px) {
    .footerfixednav {
        display: block;
    }
    .copyright {
        padding-bottom: 55px;
    }
}
/***End Fixed Footer**/
