/********** a-dairy CSS **********/
:root {
    --primary: #5B8C51;
    --secondary: #EDDD5E;
    --light: #a8df4f;
    --dark: #404A3D;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 500 !important;
}



/* Namespaced styles for the product section */
.product-section .product-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
/* Ensure all product images fit into the same format */
.card-img-top {
    width: 100%;
    height: 200px; /* You can adjust the height to your desired value */
    object-fit: contain; /* This will fit the entire image inside the box, maintaining aspect ratio */
    background-color: #f0f0f0; /* Add a background color in case there is some space left around the image */
}



.product-section .product-item:hover {
  transform: translateY(-5px);
}

.product-section .product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-section .product-item:hover .product-overlay {
  opacity: 1;
}

.product-section .product-overlay .btn {
  margin: 0 5px;
}

.product-section .text-primary {
  font-weight: bold;
}

/* Responsive grid adjustments */
.product-section .col-md-6 {
  padding: 10px;
}

.product-section .col-lg-4,
.product-section .col-xl-3 {
  padding: 10px;
}



/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}


.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@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;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@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: url(../img/banner.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 5px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 6px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-experience {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -45px;
    bottom: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/*** Service ***/
.service-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    border-radius: 10px;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    z-index: 1;
}

.service-item .service-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s ease-out;
    z-index: 2;
}

.service-item:hover .service-img::after {
    width: 0;
    left: auto;
    right: 0;
}

.service-item .service-text .service-icon {
    width: 140px;
    height: 140px;
    padding: 15px;
    margin-top: -70px;
    margin-bottom: 40px;
    background: #FFFFFF;
    border-radius: 140px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .1);
}

.service-item .service-text h5,
.service-item .service-text p {
    transition: .5s;
}

.service-item:hover .service-text h5,
.service-item:hover .service-text p {
    color: #FFFFFF;
}

.service-item .service-text .btn {
    color: var(--secondary);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .25);
}

.service-item .service-text .btn:hover {
    color: var(--dark);
    background: var(--secondary);
}


/*** Product ***/
.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.product-item:hover .product-overlay {
    opacity: 1;
    padding-top: 0;
}






/*** Footer ***/
.footer {
    color: #c3cf68;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #c3cf68;
    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 {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}
/* General Preloader Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.971); /* Semi-transparent white background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Ensure it's above all other content */
    opacity: 1;
    transition: opacity 0.5s ease-out;
  }
  
  /* Preloader Image */
  #preloader img {
    width: 80px; /* Default size for mobile */
    margin-bottom: 15px; /* Space between GIF and text */
  }
  
  /* Preloader Text */
  #preloader p {
    font-size: 16px;
    font-weight: 500;
    color: #333; /* Text color */
    margin: 0;
  }
  
  /* Desktop View */
  @media screen and (min-width: 768px) {
    #preloader img {
      width: 120px; /* Larger size for desktop */
    }
  
    #preloader p {
      font-size: 20px; /* Larger text for desktop */
    }
  }
  
  /* Large Desktop View */
  @media screen and (min-width: 1200px) {
    #preloader img {
      width: 150px; /* Even larger size for large desktops */
    }
  
    #preloader p {
      font-size: 24px; /* Even larger text */
    }
  }
  
  /* Optional: Hide Preloader with Fade-Out Effect */
  .hidden {
    opacity: 0;
    pointer-events: none;
  }
  /* Popup Styling */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }
  .popup-overlay.active {
    visibility: visible;
    opacity: 1;
  }
  .popup-content {
    position: relative;
    background: url('img/log.png') no-repeat center center / cover;
    border-radius: 10px;
    padding: 30px; /* Adjusted padding for better content spacing */
    max-width: 400px; /* Increased width for better text layout */
    text-align: center;
    box-shadow: 0 4px 10px rgba(30, 181, 50, 0.6); /* Slightly darker shadow */
    color: #fff; /* Changed text color for better contrast */
  }
  .popup-content h2 {
    margin: 0 0 15px; /* Added bottom margin for spacing */
    font-size: 28px; /* Larger font for better emphasis */
    color: #f7e247; /* Eye-catching yellow for title */
  }
  .popup-content p {
    font-size: 18px; /* Increased font size for readability */
    color: #5B8C51; /* Softer white color */
    margin: 10px 0 20px; /* Added spacing below text */
  }
  .popup-content button {
    background: #9eda1be8;
    color: white;
    padding: 12px 24px; /* Slightly larger button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
  }
  .popup-content button:hover {
    background: #45a049;
  }
  .close-btn {
    position: absolute;
    top: -50px; /* Adjusted position for better alignment */
    right: 15px;
    background: transparent;
    border: none;
    font-size: 22px; /* Larger font for close button */
    color: white;
    cursor: pointer;
    font-weight: bold;
  }
  .close-btn:hover {
    color: #ff0000;
  }
  
