/********** Template CSS **********/
input,
button {
    color: white !important;
}
:root {
    --primary: #D81324;
    --secondary: #0B2154;
    --light: #F2F2F2;
    --dark: #111111;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Ensure the input text is black */
input.form-control {
    color: black !important; /* Makes the text you enter black */
}

/* Make placeholder text black */
input.form-control::placeholder {
    color: black !important; /* Makes the placeholder text black */
}


/*** Button ***/
.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}
/* Video Background */
#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-image: url('../img/robo.jpeg'); /* Path to your image */
    background-size: cover; /* Ensures the image covers the entire div */
    background-position: center center; /* Centers the image */
    z-index: -1; /* Places the background behind other content */
}


/* Ensure content is above the video */
section.vh-100 {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    #video-background {
        /* Keep the video responsive on mobile screens */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Make sure video adapts on larger screen sizes */
@media (min-width: 992px) {
    #video-background {
        object-fit: cover; /* Ensures the video will cover the entire area without stretching */
    }
}


        /* Ensure the content is displayed on top of the video */
        .registration-container {
            position: relative;
            z-index: 1;
        }

        .card {
            background-color: rgba(15, 15, 15, 0.8); /* Add slight transparency */
            border-radius: 25px;
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        }
.register-button  {
    background-color: var(--primary); /* Use your primary color */
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600; /* Medium font weight */
    border-radius: 10px 10px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.register-button:hover {
    background-color: #c7161f; /* Change to your desired hover color */
}
/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Ensure the password field container is relatively positioned */
.form-outline {
    position: relative;
}

/* Align the toggle password icon (eye icon) to the right of the input field */
.toggle-password {
    position: absolute;
    right: 15px; /* Distance from the right edge of the input */
    top: 70%;    /* Vertically center the icon */
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
}

/* Make sure the input field has padding on the right to prevent overlap with the eye icon */
.password-field {
    padding-right: 40px; /* Creates space for the eye icon */
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@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-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(0, 0, 0, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/404-2.html);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


/*** Service ***/
.service .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.service .nav .nav-link.active h4 {
    color: #FFFFFF !important;
}
/* For Small Screen Devices */
@media (max-width: 768px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 14px;
        padding: 12px 0;
    }

    .navbar-light .navbar-brand h2 {
        font-size: 22px; /* Adjust brand font size for mobile */
    }

    #video-background {
        object-fit: cover;
        width: 100%;
        height: 170%;
    }

    .card-body {
        padding: 1.5rem; /* Reduces padding for better use of space */
    }

    .col-md-10 {
        width: 100%; /* Full width on mobile */
    }

    .form-outline {
        margin-bottom: 1rem; /* More space for mobile screens */
    }

    .register-button {
        width: 100%; /* Make button full-width on small screens */
        padding: 12px;
        font-size: 18px; /* Adjust button font size */
    }

    .text-center a {
        font-size: 14px;
    }

    /* Adjust card's margin and padding for smaller devices */
    .card {
        margin-top: 30px;
        padding: 15px;
    }

    /* Make sure the text inside the card isn't too large on small screens */
    .h1, h4 {
        font-size: 1.5rem; /* Adjust heading font size */
    }
}

/* For Medium Screen Devices */
@media (max-width: 991px) and (min-width: 769px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 15px;
        padding: 15px 0;
    }

    #video-background {
        object-fit: cover;
        height: 1000%;
        width: 100%;
    }

    .card-body {
        padding: 2rem;
    }

    .register-button {
        padding: 14px 25px;
        font-size: 16px;
    }

    .text-center a {
        font-size: 16px;
    }
}
