/* Custom animation for fade-in effect */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 15s ease-in-out;
}

/* Video loading style */
.video-container video {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-container video.loaded {
    opacity: 1;
}

/* Shape at the bottom of hero section */
.hero-bottom-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Lazy loading styling */
.lazy-loader {
    display: none;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-left {
    opacity: 0;
    animation: fadeInLeft 10s forwards;
}

.fade-in-right {
    opacity: 0;
    animation: fadeInRight 10s forwards;
}


/* Define the carousel container to hide overflow */
.carousel-container {
    width: 100%;
    background-color: white;
    overflow: hidden;
}

/* Style for the carousel items wrapper */
.carousel-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Each individual item occupies 33.333% of the container width (3 items visible) */
.carousel-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 5px 4px rgba(0, 0, 0, 0.06); /* Box shadow */
    position: relative;
    padding: 3cap; /* Space around each item */
}

/* Remove background and add consistent margins */
.carousel-container {
    background: none; /* Remove background */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make the images centered and consistent in size */
.carousel-item img {
    border-radius: 0.5rem;
    width: 100%;
    height: auto; /* Make sure the image scales properly */
}

/* Adjust hover effect for the image titles */
.carousel-item .group:hover .absolute {
    opacity: 1;
}


.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.top-8 {
    top: 2rem;
}

.left-0 {
    left: 0;
}

.left-4 {
    left: 1rem;
}

.left-8 {
    left: 2rem;
}

.transform {
    transform: translate(0, 0);
}

.translate-x-2 {
    transform: translateX(0.5rem);
}

.translate-y-2 {
    transform: translateY(0.5rem);
}

.rounded-lg {
    border-radius: 0.75rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.w-80 {
    width: 20rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.bg-red-600:hover {
    background-color: #d32f2f;
}

.hover\:bg-red-700:hover {
    background-color: #b71c1c;
}

.carousel {
    position: relative;
    height: 350px; /* Adjust height for larger images */
}

@media (min-width: 768px) {
    .carousel {
        height: 600px; /* Larger height for tablet and desktop */
    }
}

.image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 100; /* Initially hidden */
    margin-left: 120px;
}

.image-item img {
    width: 60%;
    height: 80%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 2); /* Softer shadow */
}

/* Positioning for the overlapping effect */
.image-item:nth-child(1) {
    z-index: 3;
    transform: translate(20px, 30px) scale(1);
}

.image-item:nth-child(2) {
    z-index: 3;
    transform: translate(40px, 50px) scale(1.05);
}

.image-item:nth-child(3) {
    z-index: 2;
    transform: translate(60px, 70px) scale(1.05);
}

/* Active class for showing the image */
.image-item.active {
    opacity: 1; /* Fully visible */
    transform: scale(1).3; /* Normal size */
    z-index: 5; /* Bring to the front */
}

/* Leaving class for hiding the image */
.image-item.leaving {
    opacity: 100; /* Fade out */
    transform: scale(0.9); /* Scale down slightly */
}

/* Animation for mobile */
@media (max-width: 768px) {
    .image-item {
        height: auto;
        width: 500px;
        margin-left: 40px;
    }

    .image-item:nth-child(1),
    .image-item:nth-child(3) {
        transform: scale(0.85); /* Smaller scale for mobile */
    }

    .image-item.active {
        transform: scale(1); /* Keep normal size */
    }
}

/* CSS for Wheel Rotation */
@keyframes roll {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.wheel-animate {
    animation: roll 5s linear infinite;
}

/* General Scroll Animations */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

#wheel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 10px;
    height: 10px;
}

  /* Add necessary styles for mobile and hover effects */
  #mobile-menu {
    display: none;
}

@media (min-width: 1024px) {
    #mobile-menu {
        display: block;
    }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Base style for all logos */
.certification-logo {
    height: 50px; /* Even larger logos for extra large screens */
    width: 70px;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect for logos */
.certification-logo:hover {
    transform: scale(1.1); /* Slightly enlarges the logo on hover */
}

/* Tablet and medium screen sizes */
@media (min-width: 768px) {
    .certification-logo {
        height: 50px; /* Even larger logos for extra large screens */
        width: 70px;
    }
}

/* Desktop and larger screens */
@media (min-width: 1024px) {
    .certification-logo {
        height: 100px; /* Even larger logos for extra large screens */
        width: 150px;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .certification-logo {
        height: 100px; /* Even larger logos for extra large screens */
        width: 150px;
        opacity: 50;
    }
}

 /* Custom CSS */
.swiper-slide {
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.5;
    transform: scale(0.8);
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.2);
}

.swiper-wrapper {
    width: 100%;
    height: max-content !important;
    padding-bottom: 64px !important;
    position: relative;
}

.swiper-pagination-bullet {
    background: #4f46e5;
}

@media (max-width: 768px) {
    .swiper-slide img {
        height: 48vh; /* Adjusts for smaller screens */
    }
}

/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it covers other elements */
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 123, 255, 0.3); /* Light blue */
    border-top: 8px solid #007bff; /* Dark blue */
    border-radius: 50%;
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader by default */
.hidden {
    display: none;
}


/* Scroll to Top Button Styling */
#scrollToTopBtn {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    background-color: #001e56; /* Gray-800 */
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #5c0101; /* Gray-700 */
}


@media (max-width: 640px) { /* Mobile view */
    #menuList a {
        color: black; /* Set text color to black on mobile */
    }
}

@media (min-width: 641px) { /* Desktop view */
    #menuList a {
        color: white; /* Set text color to white on desktop */

    }
}

/* Ensure that the buttons are responsive */
@media (max-width: 640px) { /* Mobile view */
    #slider-button-left,
    #slider-button-right {
        width: 36px; /* Smaller width */
        height: 36px; /* Smaller height */
    }

    #slider-button-left svg,
    #slider-button-right svg {
        height: 2rem; /* Adjust SVG size */
        width: 2rem; /* Adjust SVG size */
    }
}

@media (min-width: 641px) { /* Desktop view */
    #slider-button-left,
    #slider-button-right {
        width: 40px; /* Adjust size as needed */
        height: 40px; /* Adjust size as needed */
    }
}



/* Certification Logos Styling */
.certification-logos {
    position: absolute;
    bottom: 180px; /* Adjust bottom distance from page */
    right: 7px;   /* Adjust right distance from page */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;    /* Adjust space between logos */
    z-index: 30;
}

/* Logo Sizing */
.cert-logo {
    width: 80px; /* Control width of logos */
    height: auto;
    transition: transform 0.3s ease; /* Optional hover effect */
}

/* Optional: Hover effect for logos */
.cert-logo:hover {
    transform: scale(1.1); /* Slightly increase size on hover */
}

/* Adjust logo size for mobile screens */
@media (max-width: 640px) { /* You can adjust this breakpoint as needed */
    .cert-logo {
        width: 60px; /* Reduce width for mobile screens */
    }
}

/* Optional: Hover effect for logos */
.cert-logo:hover {
    transform: scale(1.1); /* Slightly increase size on hover */
}





/* Adjust the size of the navigation buttons */
.swiper-button-next, .swiper-button-prev {
    color: #1E3A8A; /* Blue-900 */
    font-size: 24px;
}

.swiper-slide {
    width: auto;
}


.logo-light {
    filter: brightness(0) saturate(100%) invert(100%);
    transition: filter 0.3s ease, font-weight 0.3s ease; /* Transition for smooth change */
    font-weight: bold; /* Thicker appearance */
}

.logo-dark {
    filter: brightness(0) saturate(100%) invert(0%);
    transition: filter 0.3s ease, font-weight 0.3s ease; /* Transition for smooth change */
    font-weight: normal; /* Normal appearance */
}
