/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #FFFFF0;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #422a19;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin: 0;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 0;
    font-size: 1.2em;
}

/* Navigation */
nav {
    background-color: #19b949;
    color: #050505;
    margin: 0;
    padding: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
    position: relative; /* To position the dropdown relative to this item */
}

nav ul li a {
    color: #1A1A1A;
    text-decoration: none;
    font-size: 1em;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Style for the dropdown */
ul li ul.dropdown {
    display: none; /* Hide the dropdown initially */
    position: absolute;
    background-color: #f1f1f1;
    padding: 0;
    list-style: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 200px; /* Set a fixed width for the dropdown */
}

/* Show the dropdown when hovering over the parent or the dropdown */
ul li:hover > ul.dropdown,
ul li ul.dropdown:hover {
    display: block;
    opacity: 1; /* Make it visible */
}

/* Delay the disappearing of the dropdown to make it more user-friendly */
ul li:hover > ul.dropdown {
    animation: dropdown-animation 0.3s forwards;
}

/* Style for the dropdown links */
ul li ul.dropdown li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    font-family: 'Arial', sans-serif;
}

/* Hover effect for the dropdown items */
ul li ul.dropdown li a:hover {
    background-color: #19b949;
    color: white;
    border-radius: 5px;
}

/* Keyframes for smooth dropdown transition */
@keyframes dropdown-animation {
    0% {
        opacity: 0;
        display: none;
    }
    100% {
        opacity: 1;
        display: block;
    }
}

/* Add a transition delay to the dropdown menu */
ul li ul.dropdown {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* Add a small amount of padding to the parent element */
  ul li {
    padding-bottom: 10px;
  }
  
  /* Ensure the dropdown stays visible when hovering between parent and dropdown */
  ul li:hover > ul.dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.3s;
  }

/* Adjust the brand section */
.brand {
    position: absolute; /* Keeps it within the header */
    top: 10px; /* Adjust as necessary to align with header */
    left: 20px; /* Keep it aligned to the left */
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10; /* Ensure it stays above other elements */
    max-width: calc(100% - 40px); /* Prevent it from overflowing horizontally */
}

/* Limit the size of the logo */
.brand img {
    width: 150px; /* Set an appropriate size for the logo */
    height: auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .brand {
        position: relative; /* Keeps it within the layout */
        top: 0;
        left: 0;
        transform: translateX(0); /* Center alignment not needed */
        display: flex;
        flex-direction: column; /* Stack logo above text */
        align-items: center;
        gap: 5px;
        padding: 10px 0; /* Add padding to fit in the nav */
    }

    .brand img {
        width: 100px; /* Smaller logo size for mobile */
    }

    .head-brand {
        font-size: 1rem; /* Adjust text size */
        margin-top: 5px;
    }
}



/* Carousel Styling */
.carousel {
    opacity: 0.9;
    background-color: rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out;
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box; 
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.carousel-inner img {
    opacity: 0.85;
    transition: opacity 0.5s ease-in-out;
    height: 550px;
    width: 100%;
}

.carousel-inner img:hover {
    opacity: 1;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}
.carousel-inner {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#esia-mining-slide img {
    max-width: 74%; /* Set the desired maximum width */
    margin: 0 auto; /* Center the image */
}

/* Carousel Styling for Mobile */
@media (max-width: 768px) {
    .carousel {
        width: 100%; /* Ensure the carousel takes full width */
        margin: 0;
        padding: 0;
        border-radius: 0; /* Remove any extra border radius */
    }

    .carousel-inner img {
        height: 300px; /* Adjust the height for mobile view */
        object-fit: cover; /* Ensure the image covers the area without distorting */
    }

    .carousel-inner {
        height: auto; /* Make the carousel height flexible */
    }

    .carousel-caption {
        font-size: 1.1rem; /* Adjust caption size for mobile */
        padding: 5px 10px;
        bottom: 10%; /* Position the caption closer to the bottom */
    }

    /* Adjust carousel navigation buttons */
    .carousel-control-prev, .carousel-control-next {
        font-size: 1.5rem; /* Reduce the size of the arrows for mobile */
        top: 50%; /* Position the buttons vertically centered */
    }
    
    .carousel-control-prev {
        left: 5%; /* Position the left button */
    }
    
    .carousel-control-next {
        right: 5%; /* Position the right button */
    }
}


/* Main section */
main {
    background-image: url('../../images/2bg.jpg');
    background-color: rgba(66, 42, 25, 0.7);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.custom-bg-color {
    background-color: #DBE4EEE6 !important;
}

main h2 {
    font-size: 2.5rem;
    color: #3e7cb1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

main p {
    font-size: 1.1rem;
    color: #1F2937;
    line-height: 1.8;
}

main ul {
    padding-left: 20px;
}

main ul li {
    font-size: 1rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

main img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 410px;
    object-fit: cover;
}


/* Responsive Design */
@media (max-width: 768px) {
    main .row {
        flex-direction: column;
    }
    main img {
        margin-bottom: 20px;
    }
}



/* Logo Styling for About Us Section */
.about-logo {
    width: 100%; /* Ensure the logo takes full width on smaller screens */
    max-width: 300px; /* Set a max width for larger screens */
    height: auto;
    transition: all 0.3s ease; /* Smooth resizing transition */
}

/* Responsive Logo for Mobile Devices */
@media (max-width: 768px) {
    .about-logo {
        width: 80%; /* Resize logo on smaller screens */
        max-width: 150px; /* Set a smaller max-width for the logo on mobile */
        max-height: 70%;
        margin: 0 auto; /* Center the logo horizontally */
    }
}


/* Main section */
main {
    background-image: url('../../images/2bg.jpg');
    background-color: rgba(66, 42, 25, 0.7);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.custom-bg-color {
    background-color: #DBE4EEE6 !important;
}

main h2 {
    font-size: 2.5rem;
    color: #3e7cb1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

main p {
    font-size: 1.1rem;
    color: #1F2937;
    line-height: 1.8;
}

main ul {
    padding-left: 20px;
}

main ul li {
    font-size: 1rem;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

main img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 410px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    main .row {
        flex-direction: column;
    }
    main img {
        margin-bottom: 20px;
    }
}

/* Services Section */
.services {
    background-color: #faf3dd;
    padding: 50px 0;
}

.services h2 {
    color: #422a19;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: bold;
}

.services .card {
    width: 300px;
    height: 400px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
}

.services .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #1995AD;
}

.services .card-title {
    color: #422a19;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.services .card-text {
    font-size: 1rem;
    color: #333;
    text-align: center;
    padding: 0 10px;
    line-height: 1.6;
}
/* General carousel styling for mobile */
@media (max-width: 768px) {
    .carousel-inner .carousel-item {
      display: flex;
      justify-content: center; /* Center-align the card */
      flex-direction: column; /* Ensures cards stack vertically if needed */
    }
  
    .carousel-inner .carousel-item .col-md-4 {
      max-width: 100%; /* Make each card take full width on mobile */
      flex: 0 0 100%; /* Prevent cards from squeezing */
    }
  
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
      width: 2rem;
      height: 2rem;
    }
  
    /* Adjust card images for mobile */
    .card-img-top {
      height: auto;
      max-height: 250px; /* Keep a reasonable height for images */
      object-fit: cover; /* Ensure images are neatly cropped */
    }
  
    /* Adjust card text for better readability */
    .card-body h5 {
      font-size: 1.1rem; /* Slightly smaller font for card titles */
    }
  
    .card-body p {
      font-size: 0.9rem; /* Adjust paragraph font size */
    }
  }
  /* Adjust the carousel for mobile */
@media (max-width: 768px) {
    .carousel-inner .carousel-item {
      display: flex;
      justify-content: center; /* Center the card in the slide */
    }
  
    .carousel-inner .carousel-item .col-md-4 {
      display: none; /* Hide all cards by default */
    }
  
    .carousel-inner .carousel-item.active .col-md-4:first-child {
      display: block; /* Show only the first card per slide */
      max-width: 100%; /* Make it span the full width */
    }
  }
  
  

/* Footer */
footer {
    background-color: #19b949;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* Fat Footer Styling */
.fat-footer {
    background-color: #422a19;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: 20px;
    border-top: 2px solid #1995AD;
    width: 100%;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.fat-footer .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F1D3B2;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    padding-bottom: 30px;
}

.footer-sections {
    display: flex;
    justify-content: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 170px;
    height: auto;
}

.social-media a {
    margin: 0 15px;
    font-size: 2rem;
    color: white;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1995AD;
}

.footer-about, .footer-contact, .footer-certificates {
    max-width: 300px;
    text-align: left;
}

.footer-about h3, .footer-contact h3, .footer-certificates h3 {
    color: #1995AD;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-about p, .footer-contact p {
    font-size: 1rem;
    color: #f1f1f2;
}

.footer-certificates ul {
    list-style: none;
    padding: 0;
    font-size: 1rem;
    color: #f1f1f2;
}

.footer-certificates li {
    margin-bottom: 8px;
}

.fat-footer .footer-about {
    max-width: 300px;
    margin: 0 auto;
}

.fat-footer .footer-about h3 {
    font-size: 1.5rem;
    color: #F4A261;
    margin-bottom: 15px;
    text-align: left;
}

.fat-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fat-footer .footer-links li {
    margin-bottom: 8px;
}

.fat-footer .footer-links a {
    text-decoration: none;
    font-size: 1rem;
    color: #DDE2E4;
    transition: color 0.3s ease;
}

.fat-footer .footer-links a:hover {
    color: #F4A261;
}

.fat-footer .footer-certificates {
    max-width: 300px;
    margin: 0 auto;
}

.fat-footer .footer-certificates h3 {
    font-size: 1.5rem;
    color: #F4A261;
    margin-bottom: 15px;
    text-align: left;
}

.fat-footer .footer-contact {
    max-width: 300px;
    margin: 0 auto;
}

.fat-footer .footer-contact h3 {
    font-size: 1.5rem;
    color: #F4A261;
    margin-bottom: 15px;
    text-align: left;
}

.fat-footer .footer-contact p {
    font-size: 1rem;
    color: #F4A261;
}

