html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    /* overflow-x: hidden; */
    height: 100vh; 
}

body {
    background-color: #f2f2f2 !important;
    overflow-x: hidden;
}

/*------------------------------ SECONDARY Carousel (Processing Solutions) --------------------------------*/

.processing-card img {
    /* width: 300px;
    border-radius: 10px; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.processing-container {
    /* position: relative; */
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 40px 0;
    text-align: center;
}
#carouselTitle {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}
.processing-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto; /* Allows horizontal scrolling */
    scroll-snap-type: x mandatory; /* Ensures smooth snapping */ 
}

.processing-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    /* border-radius: 10px; */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    flex: 0 0 auto; /* Prevent shrinking */
    width: 90%; /* Makes each card occupy most of the screen */
    max-width: 350px; /* Limits width for larger screens */
    scroll-snap-align: start; /* Ensures smooth scrolling */
    position: relative;
    /* width: 30%;  */
    height: 280px;  
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


.processing-card:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .processing-card:hover .processing-overlay,
.processing-overlay:hover {
    opacity: 1;
}
.processing-card:hover .processing-overlay1 {
    opacity: 0;
    visibility: hidden; /* Ensures it's not interactable when hidden */
}
.processing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.processing-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* height: 100%; */
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
}

.processing-overlay1 {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: left;
   height: 27%;
    opacity: 1;
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
}

.processing-overlay  h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.processing-overlay1 h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.processing-overlay1 p {
    font-size: 14px;
    margin-bottom: 5px;
}

.processing-overlay p {
    font-size: 12px;
    margin-bottom: 5px;
}

.processing-overlay a {
    font-size: 14px;
    color: white;
    font-weight: bold;
    text-decoration: underline;
}


/* MOBILE VIEW: Make it a Slider */
@media (max-width: 768px) {
    .processing-wrapper {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; 
       
        padding-left: 10px; /* Ensure space for first card */
        /* transition: transform 0.5s ease-in-out; */
        /* width: 300%; */
        
    }

    .processing-card {
        flex: 0 0 auto; 
        min-width: 90vw; /* Each card takes up 90% of the viewport width */
        scroll-snap-align: center;
    }
    
    
}



/* ------------------------------------------------------------Packaging solution---------------------------------------------------------------- */

/* Custom Styles */
.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #103144; /* Dark blue background */
    color: white;
    padding: 50px 0;
}

.carousel-content {
    max-width: 500px;
    padding: 20px;
}

.carousel-content h2 {
    font-size: 28px;
    font-weight: bold;
}

.carousel-content p {
    font-size: 16px;
    margin-top: 10px;
}

.carousel-content .btn {
    margin-top: 20px;
    border-radius: 50px;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    transition: 0.3s;
}

.carousel-content .btn:hover {
    background-color: white;
    color: #103144;
}

.carousel-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

/* Carousel Controls */
.carousel-control-prev, .carousel-control-next {
    width: auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 10px;
    transition: 0.3s;
}

/* .carousel-control-prev:hover, .carousel-control-next:hover {
    background: #008fd5;
    

} */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: black;
    padding: 12px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Hover effect: Button rotates slightly */
.prev-btn:hover {
    transform: translateY(-50%) rotate(-15deg);
}

.next-btn:hover {
    transform: translateY(-50%) rotate(15deg);
}
.carousel .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
}

.carousel-content {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}

.carousel-image {
    flex: 1;
    max-width: 50%;
    text-align: center;
}

.carousel-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel .container {
        flex-direction: column;
        text-align: center;
    }

    .carousel-content, .carousel-image {
        max-width: 100%;
    }

    .carousel-image img {
        max-height: 300px;
    }
}


.carousel-indicators [data-bs-target] {
    background-color: white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.7;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none; /* Remove unwanted border */
}

.carousel-indicators .active {
    background-color: #008fd5;
    opacity: 1;
    transform: scale(1.2); /* Slightly enlarge active indicator */
}
.carousel-indicators [data-bs-target]:hover {
     /* Ensure hover color is blue */
    opacity: 1;
    transform: scale(1.2); /* Slightly enlarge on hover */
}
/* ----------------------------CURRENT EVENT ------------------------*/
.current-events {
    width: 90%;
    margin: auto;
    text-align: center;
    padding: 50px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2f2483;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.event-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 250px; /* Fixed height for uniformity */
    max-height: 300px;
    /* for lazy scroll*/
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* 
.event-image {
    width: 40%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; Ensures image covers area without distortion */
    /* border-radius: 10px 0 0 10px;
} */
.event-image {
    width: 40%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops excess part but ensures it fills the box */
}



.event-info {
    flex: 1;
    padding: 20px;
    text-align: left;
    overflow: hidden;
}

.event-info h3 {
    font-size: 1.4rem;
    color: #2f2483;
    margin-bottom: 10px;
}

.event-info p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.know-more-btn {
    display: inline-block;
    padding: 10px 15px;
    background: #2f2483;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.know-more-btn:hover {
    background: #1d1a5b;
}
.event-card.loaded {
    opacity: 1;
    transform: translateY(0);
}


/* lazy load */
.current-lazy {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    
    .loaded {
    opacity: 1;
    transform: translateY(0);
    }