/********** Template CSS **********/
:root {
  --primary: #4682B4;
    --light: #F0FBFC;
    --dark: #181d38;
    --accent: #FFB84D; /* Add this as a custom orange color */
}

body, .container, .header-carousel {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    max-width: 100vw; /* Ensures content doesn’t exceed viewport width */
}

body {
    font-size: 90%; /* Slightly smaller base font for a zoomed-out appearance */
}

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

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


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


/* Optional: Add a hover effect to make the glass effect more interactive */
.glass-background:hover {
    background: rgba(255, 255, 255, 0.25); /* Slightly darker on hover for depth */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow on hover */
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    color: #181d38;
}

.btn.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    border-radius: 0px; /* Square shape */
    padding: 10px 20px;
}

.btn.btn-primary:hover {
    background-color: #1E1F60;
    color: #FFFFFF;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/*** Navbar Adjustments ***/

/* Navbar logo hover effect */
#navbar-logo img {
    transition: transform 0.3s ease;
}

#navbar-logo:hover img {
    animation: multiColorGlow 1s infinite alternate; /* Infinite animation */
    transform: scale(1.05); /* Slightly enlarge on hover */
}
      

        /* Default height for images on larger screens */
        .team-item .overflow-hidden {
            height: 300px;
        }

     
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
/* Navbar link styling */
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 20px;
    padding: 15px 0;
    color: #FFFFFF;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease; /* Smooth color change */
}

/* Underline effect on hover with animation */
.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px; /* Adjust distance from text */
    width: 0; /* Start with 0 width */
    height: 2px; /* Thickness of underline */
    background-color: orange; /* Change to desired color */
    transition: width 0.3s ease; /* Controls animation speed */
}

.navbar-brand img {
    height: 65px;
}
/* Animate underline on hover */
.navbar-light .navbar-nav .nav-link:hover::after {
    width: 100%; /* Full width on hover */
}

/* Style for active link without underline effect */
.navbar-light .navbar-nav .nav-link.active {
    color: orange; /* Set active link color */
}

/* Prevent underline on active links */
.navbar-light .navbar-nav .nav-link.active::after {
    width: 0; /* Ensure underline is hidden on active link */
}



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

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

/*** Header carousel ***/
.glass-background {
    display: inline-block; /* Ensures the background wraps closely around the text */
    padding: 10px 20px; /* Adjust padding to your preference */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black background */
    border-radius: 10px; /* Rounded corners */
    backdrop-filter: blur(10px); /* Glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
    margin: 0 auto; /* Center the background */
}

.glass-background h2 {
    margin: 0; /* Removes default heading margin */
    text-align: center; /* Centers the text */
}

.header-carousel .owl-carousel-item h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #FFD700; 
    line-height: 1.1;
    font-size: 1.5rem; /* Reduced size for a more compact view */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}



.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: .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, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

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

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

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

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

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

/*** Categories & Courses Scaling ***/
.category img,
.course-item img {
    transition: .5s;
    max-width: 100%; /* Ensure images fit within the screen */
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.05); /* Slightly reduced hover zoom */
}


/*Images of team height setting*/



/*** Team Image Hover ***/
.team-item img {
    transition: .5s;
}

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

/*** Testimonial Styling ***/
.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 .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .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: .5s;
}

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

/*** Footer Styling ***/
.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: 35px;
    transition: .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: .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 {
    letter-spacing: 1px;
    box-shadow: none;
}

/*** Header carousel for mobile ***/
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
        text-align: center;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
    .navbar-light .navbar-nav .nav-link::after {
        bottom: 2px;
        height: 1.5px;
    }
}

@media (max-width: 768px) {
    /* Directly target and override the overlay on mobile */
    .owl-carousel-item .position-absolute {
        background: none !important; /* Completely remove background */
    }

    /* Styles for the text and glass effect */
   /* Target the h2 text inside glass-background */
    .owl-carousel-item .glass-background h2.display-3 {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin: 0; /* Remove any margin that could cause overflow */
        padding: 0;
    }
     .glass-background {
        padding: 5px 10px; /* Slightly increase padding */
        background: rgba(0, 0, 0, 0.2); /* Slightly darker background */
        border-radius: 4px; 
        backdrop-filter: blur(2px); /* Light blur */
        -webkit-backdrop-filter: blur(2px); 
        box-shadow: none; 
    }

    /* Target the text inside glass-background */
    .glass-background h2.display-3 {
        font-size: 0.9rem !important; /* Increase font size slightly */
        color: #FFD700 !important; /* Bright yellow color for contrast */
        line-height: 1.2 !important;
        text-align: left;
        margin: 0; 
        white-space: normal; 
        word-wrap: break-word;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        color: #FFD700;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 3px 6px;
        border-radius: 4px;
        text-align: left;
        display: inline-block;
        margin-left: 5px;
        max-width: 70%;
        white-space: normal;
        word-wrap: break-word;
    }

    .header-carousel .owl-carousel-item {
        min-height: 500px;
        display: flex;
        align-items: center;
    }

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





