/* ---------------------------- */
/*       THEMES/BASIC CSS       */
/* ---------------------------- */
.darker-theme {
    background-color: #2D6296;
    padding: 0.5vh 1vw;
}

.darkest-theme {
    background-color: rgb(7, 54, 73);
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-width: 100vw;   /* Constrain width to viewport */
}

body {
    display: flex;
    flex-direction: column;
    margin: 0; /* Reset default body margin */
}

p {
    color: white;
}
.flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.custom-font {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

/* ---------------------------- */
/*          NAVBAR CSS          */
/* ---------------------------- */
.navbar {
    background-color: rgba(68, 150, 231, 0.85); /* Slightly colored and transparent */
    transition: background-color 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    height: 15vh;
    min-height: 15vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional small shadow */
}

.navbar.scrolled {
    background-color: rgba(68, 150, 231, 0.85); /* Less transparent on scroll */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4); /* Glow at bottom */
}
.d-flex {
    display: flex; /* Use flex for alignment */
    align-items: center; /* Center items vertically */
}
.logo {
    height: auto; /* Maintain aspect ratio */
    width: 15vw;
    padding: 1vw;
}

.navbar-brand {
    display: flex; /* Use flex for alignment */
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease, background-color 0.3s ease;
    margin-left: 1vw;
    margin-right: 1vw;
    color: white;
    font-size: 1.5vw;
}

.nav-item {
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link.active {
    color: white;
    text-align: right;
}

.navbar-nav .nav-link:hover {
    background-color: #14229c;
    color: white;
    
}

.dropdown-item {
    color: white; /* Set text color for dropdown items */
}

.dropdown-item:hover {
    background-color: #14229c; /* Change background on hover */
    color: white; /* Ensure text remains visible on hover */
}

.dropdown-menu {
    left: 0; /* Align it with the left of the toggle */
    z-index: 1000; /* Ensure it appears above other elements */
}

.navbar-toggler {
    background-color: #FFFFFF;
    border: 0.1vw solid transparent;
}

/* ---------------------------- */
/*        CAROUSEL CSS          */
/* ---------------------------- */
.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 91vh; /* Full height for carousel items */
    overflow: hidden;
    animation: zoom 10s ease-in-out forwards;
}

.carousel-inner {
    z-index: 5;
    position: relative;
}

.carousel-inner img {
    width: 100%; /* Full width of the carousel */
    height: 100%; /* Full height of the item */
    object-fit: cover; /* Ensure the image covers the area */
}

.carousel-caption {
    position: absolute;
    text-align: center;
    padding: 1.5vh 1.5vw 0.5vh; /* Default padding */
    background-color: rgba(68, 150, 231, 0.8);
    border-radius: 1vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the caption */
    width: 70vw;
    height: 14vh;
}

.carousel-caption h1 {
    font-size: 2vw;
    margin-bottom: 0.5vh;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.carousel-caption p {
    font-size: 1.2vw;
    margin-bottom: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Sans Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 3vh;
    text-align: center;
}

/* CAROUSEL CONTROLS */
.carousel-control-prev,
.carousel-control-next {
    opacity: 1;
    visibility: visible;
    z-index: 11;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
}

/* ZOOM ANIMATION */
@keyframes zoom {
    0% {
        transform: scale(1.10);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1.04);
    }
}

/* ---------------------------- */
/*     ABOUT SECTION CSS        */
/* ---------------------------- */
#about h3, #about p {
    color: #FFF;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#about .btn {
    background: #3498db;
    background-image: -webkit-linear-gradient(top, #3498db, #106194);
    background-image: -moz-linear-gradient(top, #3498db, #106194);
    background-image: -ms-linear-gradient(top, #3498db, #106194);
    background-image: -o-linear-gradient(top, #3498db, #106194);
    background-image: linear-gradient(to bottom, #3498db, #106194);
    -webkit-border-radius: 1.7vh;
    -moz-border-radius: 1.7vh;
    border-radius: 1.7vh;
    font-family: Arial;
    color: #ffffff;
    font-size: 1.4vh;
    padding: 1vh 2.2vw 1vh 2.2vw;
    text-decoration: none;
  }
  
#about .btn:hover {
    background: #3cb0fd;
    background-image: -webkit-linear-gradient(top, #3cb0fd, #9ecceb);
    background-image: -moz-linear-gradient(top, #3cb0fd, #9ecceb);
    background-image: -ms-linear-gradient(top, #3cb0fd, #9ecceb);
    background-image: -o-linear-gradient(top, #3cb0fd, #9ecceb);
    background-image: linear-gradient(to bottom, #3cb0fd, #9ecceb);
    text-decoration: none;
}

#about h3 {
    margin-top: 1vh;
}

#about a {
    color: white;
}

#about .row .col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center;  
}

.about-content {
    margin-left:1vw;
    margin-right: 1vw;
    margin-bottom: 1vh;
}

.about-content-image {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center;
    margin: 0 auto; /* Center the image-border div itself */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Shadow effect */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#about {
    margin-top: 0; /* No margin */
    padding-top: 0; /* No padding */
    width: 100%; /* Ensure it takes the full width */
    justify-content: center;
    display: flex;
    align-items: center;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 2vh; /* Add vertical spacing between the content sections */
    max-width: 100%;
}

#about .facility-separator {
    width: 100%;
}
#services .facility-separator {
    width:95%;
}
/* From Uiverse.io by adeladel522 */ 
.button {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 1vh 2vh rgba(0, 0, 0, 0.2);
    padding-block: 0.5rem;
    padding-inline: 1.25rem;
    background-color: rgb(0 107 179);
    border-radius: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    gap: 0.5rem;
    font-weight: bold;
    border: 0.2rem solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 1rem;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
    border-color: #ffffff99;
}

.button:hover .icon {
    transform: translate(0.25rem);
}

.button:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.button::before {
    content: "";
    position: absolute;
    width: 10vw;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -10vw;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        left: -10vw;
    }
    60% {
        left: 100%;
    }
    to {
        left: 100%;
    }
}



.image-spacing {
    height: 80%;
    width: 80%;
}

.image-border {
    border-radius: 0.3vw;
}

/* SERVICES CSS */
#services {
    background-color: rgb(7, 54, 73);
    padding: 6vh 0;
    justify-content: center;
    display: flex;
    align-items: center;
}

.services-content {
    margin-left:1vw;
    margin-right: 1vw;
    margin-top: 1vh;
    margin-bottom: 1vh;
}
#services h2, #services h3 {
    color: #ffffff;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#services h4 {
    margin-top: 1vh;
}

#services .row {
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-shadow {
    box-shadow: 0 0.2vh 0.2vw rgba(0, 0, 0, 0.3); 
}
#services .img-fluid {
    height: 100%;
    max-height: 300px; /* Optional: limits the maximum height */
    object-fit: cover;
}

#services .image-border {
    width: 90%;
    display: flex;  /* Add this to make it a flex container */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin: 0 auto; /* Center the image-border div itself */
    overflow: hidden;
    border-radius: 0.8vw;
    object-fit: cover;
}

.service-title {
    border-radius: 1vw;
    color: white;
    margin-bottom: 1vh;
}

.text-link {
    color: #ffffff; /* Initial color */
    transition: color 0.3s ease; /* Smooth color transition */
}

.text-link:hover {
    color: #00ccff; /* Change to a different color on hover */
}

.indent {
    text-indent: 2vw;
    color: white;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
#news-contact .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#news-contact .col-lg-6 {
    flex: 0 0 48%;  /* Take up about half the space */
    box-sizing: border-box;
    padding: 0 20px;
}

@media (max-width: 768px) {
    #news-contact .col-lg-6 {
        flex: 0 0 100%; /* Stacks the sections on smaller screens */
        margin-bottom: 20px; /* Adds spacing between the stacked sections */
    }
}
.service-location {
    color: #fdfdfd!important;
    font-size: small;
}

.zoom-image {    
    /* width: 110%!important; */
    height: auto;
    object-fit: cover;
}

/* Meet the Team Section */
#meet-the-team {
    background-color: #2D6296;
    color: white;
}
.image-wrapper {
    width: 80%;               /* Restrict width to the desired percentage */
    overflow: hidden;
    margin: 0 auto;           /* Center the wrapper if needed */
}

.zoomed-image {
    width: 100%;              /* Image takes full width of wrapper */
    height: 25vh;             /* Maintains aspect ratio */
    transform: scale(2.5);  
    transform-origin: 50% 20%;  /* Apply zoom */
    object-fit: cover;        /* Ensure it fills the wrapper area */
}

#meet-the-team .col-lg-3 {
    background-color:#3a6a99;
    padding: 1vw;
    margin-left: 1vw;
    margin-right: 1vw;
}

#meet-the-team h2 {
    font-size: xx-large;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#meet-the-team .custom-text {
    color: white;
}

#meet-the-team .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1vh;
}
.team-card {
    background-color: #1e1e1e;
    box-shadow: 0 0.4vh 0.8vw rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding-top: 0.5vh;
}


.team-card img {
    width: 100%;           /* Set image width to fill the container */
    height: 20vh;         /* Fixed height for all images */
    object-fit: cover;     /* Crops image to fit the container */
    border-radius: 10px;   /* Optional: Rounds the image corners */
}

.card-img-top {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* NEWS CSS */
#news {
    padding: 5vh 0; /* Adequate spacing */
}

#news h2 {
    color: white;
    font-family: 'Lucida Sans', sans-serif;
    margin-bottom: 3vh; /* Space below heading */
    font-weight: bold;
}
.news-link {
    display: flex;              /* Use flexbox for alignment */
    justify-content: center;    /* Center the button horizontally */
    margin-top: 1rem;          /* Adjust margin as needed */
}
.news-item {
    background-color: #2D6296;
    border-radius: 1vw; /* Rounded corners */
    padding: 3vh 4vw; /* Padding for the items */
    margin-bottom: 3vh; /* Spacing between items */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition effects */
    text-align: left; /* Left-align text */
    color: #e0e0e0; /* Light text color for readability */
}

.news-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Shadow on hover */
    transform: translateY(-0.02vh); /* Lift effect on hover */
}

.news-title {
    font-size: 1rem; /* Adjust size as needed */
    color: #dfe4f8; /* Customize color */
    margin-bottom: 0.5rem; /* Adjust spacing as needed */
}
.news-item a.btn {
    display: inline-block; /* Button style */
    color: white; /* Button text color */
    background-color: #007bff; /* Button background */
    border: none; /* No border */
    border-radius: 2vw; /* Rounded button */
    padding: 0.5vh 1vw; /* Button padding */
    text-transform: uppercase; /* Uppercase button text */
    transition: background 0.3s, transform 0.2s; /* Button transition */
    font-size: 1rem;
}

.news-item a.btn:hover {
    background-color: #0056b3; /* Darker background on hover */
    transform: translateY(-1px); /* Lift effect on hover */
}
/* CONTACT SECTION CSS */
#contact h3 {
    color:#fdfdfd;
}

#contact h2 {
    color: white;
    margin-top: 1vh; /* Adjust to your desired spacing */
}

.socialicons {
    padding-top: 5vh;
}

.icon-item {
    padding-left: 3vw;
}

.contact-section {
    margin-top: 3vh;
}

/* MISCELLANEOUS CSS */
.facility-separator {
    border: 0;
    height: 0.3vh;
    background-color: #ffffff;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4vh; /* Reduce space below the separator */
    margin-top: 4vh;
}

.section {
    margin-top: 0.2vh;
    margin-bottom: 0.2vh;
}

.form-label {
    color: #FFFFFF; /* Change this color */
    font-weight: bold; /* Optional */
    font-size: 1rem; /* Optional */
}

.form-control {
    border: 0.4vh solid #343a40;
}

/* ---------------------------- */
/* NEWS and CONTACT SECTION CSS */
/* ---------------------------- */
#contact {
    background-color: rgb(7, 54, 73);
    color: #f1f1f1;
}

/* Form Title */
#contact h2 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* Form Styling */
#contactForm {
    background-color: rgb(7, 54, 73);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Input and Textarea Styling */
#contactForm .form-control {
    background-color: #3a3a5d;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

#contactForm .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Label Styling */
#contactForm .form-label {
    color: #b8b8d1;
    font-weight: bold;
}

/* Button Styling */
#contactForm .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Subtle gradient */
    border: none;
    color: #ffffff;
    padding: 1.5vh 5vw; /* Padding in vh and vw */
    border-radius: 2vw; /* Rounded pill shape in vw */
    font-weight: bold;
    box-shadow: 0 0.4vh 1.2vh rgba(0, 123, 255, 0.4); /* Soft shadow in vh */
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

#contactForm .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003a7f); /* Darker gradient */
    transform: translateY(-1vh); /* Slight lift on hover in vh */
    box-shadow: 0 0.6vh 1.5vh rgba(0, 86, 179, 0.5); /* Enhanced shadow on hover in vh */
}

#contactForm .btn-primary:active {
    transform: translateY(-0.3vh); /* Subtle depth when clicked in vh */
    box-shadow: 0 0.4vh 1vh rgba(0, 86, 179, 0.5); /* Active shadow in vh */
}
/* Centering Recaptcha and Button */
#contactForm .text-center .my-3 {
    margin-top: 2rem;
}

/*BIODIESEL SECTION */
.container-biodiesel {
    margin-top: 20vh;
}
.contact-button {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#what-is-biodiesel img.shadow {
    box-shadow: none !important;
    width: 100%;
}
.image-container img {
    object-fit: cover;
    transition: transform 0.3s ease; /* Smooth transition for zoom effect */
}

/* Zoom effect */
.image-container img.zoom:hover {
    transform: scale(1.1); /* Adjust scale to control zoom level */
}

.shadow-container {
    box-shadow: 
    0 0.5vh 0.5vw rgba(0, 0, 0, 0.2), /* Bottom shadow */
    0 -0.5vh 0.5vw rgba(0, 0, 0, 0.2); /* Top shadow */
}

    

/* Ensure all images have the same size, with margins and zoom effect */
#services .services-content img {
    width: 90%; /* Ensures images take up full width of their container */
    height: 300px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensure images fill the space and are cropped as needed */
    margin: 0 auto; /* Center the images */
    transition: transform 0.3s ease; /* Smooth zoom transition */
}
/* Optional: Shadow effect for images */
.img-shadow {
    box-shadow: 
        0 1vh 1vw rgba(0, 0, 0, 0.2), /* Bottom shadow */
        0 -1vh 1vw rgba(0, 0, 0, 0.2), /* Top shadow */
}

#contact h2 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 100;
}

#contact .message {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.col-md-2 a {
    text-decoration: none; /* Remove underline */
    color: #fff; /* White text */
    transition: color 0.1s, transform 0.3s ease; /* Add easing to smooth the movement */
    font-size: medium;
}

.col-md-2 a:hover {
    color: #267fd8; /* Change color on hover */
    transform: translateX(3px); /* Move slightly to the right */
}
/* ---------------------------- */
/* Biodiesel carousel image CSS */
/* ---------------------------- */
#biodiesel {
    height: 91vh; /* Full height for carousel items */
    overflow: hidden;
}

/* Image container styling */
.image-container {
    position: relative;
    width: 100%;
    height: 91vh; /* Adjust height of the image section */
    overflow: hidden;
}

/* Image styling to fill the container and maintain aspect ratio */
.biodiesel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fills the container without distortion */
    z-index: -1; /* Keep the image behind the content */
}

/* Content box that overlays on top of the image */
.content-box {
    position: absolute;
    background-color: rgba(7, 54, 73, 0.7); /* Semi-transparent background */
    padding: 2vw;
    border-radius: 1vw;
    width: clamp(30vw, 35vw, 40vw); /* Content box width scaling */
    color: white;
    top: 57.5%;
    left: 75%;
    transform: translate(-50%, -50%); /* Center the caption */
    box-sizing: border-box; /* Ensure padding doesn't affect width/height calculation */
}

/* Adjust text within content box */
.content-box p {
    font-size: clamp(0.6rem, 1vw, 0.8rem); /* Min 0.4rem, scaling based on 1vw, max 0.7rem */
    overflow-wrap: break-word; /* Ensure text wraps and doesn't overflow */
}

.content-box h3 {
    font-size: clamp(0.8rem, 1.2vw, 1rem); /* Min 0.7rem, scaling based on 1.2vw, max 0.9rem */
    overflow-wrap: break-word; /* Ensure heading text wraps as well */
}

#biodiesel .col-md-5 {
    height: 110vh;
}

.club {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  footer p, footer a, footer h5 {
    color: rgb(7, 54, 73); /* Replace with the color of your choice */
  }
  
  footer .footer-category p a {
    color: rgb(7, 54, 73); /* Sets the link text color to white */
  }

  footer .facility-separator {
    width:95%;
    color:rgb(7, 54, 73);
    background-color: rgb(7, 54, 73);;
}