body {
    padding-top: 0; 
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

header {
    position: static;
    width: 100vw; 
    background-color: #333;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2%; 
    box-sizing: border-box;
    margin: 0; 
}

/* Left section styling for logo and menu */
.header-left {
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
}
nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 0.5rem; 
}

nav ul li a {
    text-decoration: none;
    color: #fbc852;
    font-weight: 600; 
    font-size: 1rem; 
    padding: 0.5rem;
    letter-spacing: 0.05em; 
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease; 
}

nav ul li a:hover {
    color: #fff;
    text-decoration: underline;
    transform: scale(1.05); 
}


/* Right section styling for contact icons */
.right-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem; /* Space between contact links */
    margin-top: 1rem;
}

.contact-info a {
    color: #fbc852;
    text-decoration: none;
    font-weight: bold;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

/* Ensure no horizontal scroll bars appear */
html {
    overflow-x: hidden;
}


.contact-info {
    margin-right: 2rem; 
    padding: 10px 20px; /* Adds padding inside the box */
    background-color: #444; /* Background color for the box */
    border-radius: 8px; /* Rounded corners for a nicer look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Initial shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
    display: flex;
    flex-wrap: wrap; 
    gap: 1.5rem;
    align-items: center;
    margin-top: 20px;
}

/* Icon styles */
.icon {
    width: 50px; 
    height: auto;
    margin-right: 0.5rem; /* Space after the icon */
}

/* Adjust contact info link styles */
.right-section .contact-info a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    margin-right: 0.5rem; /* Space between contact links */
}

.right-section .contact-info a i {
    margin-right: 0.3rem; /* Space between icon and text */
}


.right-section .contact-info a:last-child {
    margin-right: 0; /* No margin for the last item */
}

.right-section .contact-info a:hover {
    color: #fbc852; /* Hover effect to match navigation */
    text-decoration: underline;
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3); /* Larger shadow on hover */
    }


/* Optional: Adjust the margin/padding to fit your design */
.right-section > :not(:last-child) {
margin-right: 1rem; /* Right margin for all children except the last one */
    }

.video-container {
    width: 100%; /* Set the width to 60% of its container */
    max-width: 840px; /* You can adjust this value as needed */
    margin-right: 1rem;
}

.video-container video {
    width: 100%; /* Video fills the width of its container */
    height: auto; /* Height is set automatically to maintain aspect ratio */
    margin-right: 1rem;
}


main {
    background: url('images/background1.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left; /* Align text to the left */
    background-color: #f5f5f5;
    padding: 20px;
    height: auto;
}

.main-content {
    display: flex;
    align-items: center;
    flex-direction: row; 
    justify-content: space-between;
    width: 100%;
    max-width: 1200px; /* Adjust based on your page layout */
    gap: 2rem
}


h1 {
    font-family: 'Saira Stencil One', cursive;
    color: #fbc852;
    font-size: 48px;
}

p {
    font-size: 20px;
    color: #05020a;
}

button {
    padding: 15px 30px;
    font-size: 1.25em;
    color: #fff;
    background-color: #fbc852;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    margin-bottom: 10px;
}

button:hover {
    background-color: #ffe521;
    transform: translateY(-2px);
}

button:active {
    background-color: #ffe521;
    transform: translateY(1px);
}

.service-intro, .owner-bio {
background-color: #f5f5f5; 
margin: 20px auto;
padding: 20px;
width: 80%;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
color: #333; /* Dark text for readability */
}

.service-intro p, .owner-bio p, .gallery-section p, .facebook-feed p {
font-size: 18px; /* Slightly larger font for readability */
line-height: 1.6;
margin-bottom: 15px; /* Space between paragraphs */
}

.owner-bio h2, .gallery-section h2, .service-intro h2, .facebook-feed h2 {
color: #33691e; /* Color to harmonize with the theme */
margin-bottom: 10px;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    background: #fff;
    margin-top: 30px;
}

.feature-item {
    flex: 1;
    min-width: 150px;
    margin: 10px;
    text-align: center;
}

.feature-item img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.feature-item p {
    font-family: 'Arial', sans-serif;
    color: #333;
    font-weight: bold;
}

.service-overview {
    background-color: #e8f5e9;
    padding: 20px;
    margin: 20px auto;
    width: 50%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #c8e6c9;
}

.service-overview h1 {
    color: #fbc852;
    margin-bottom: 20px;
    font-family: 'Saira Stencil One', cursive;
    font-size: 36px;
}

.service-overview p {
    color: #424242;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.services-frame {
    background-color: #f9fafb; /* Light background color for the frame */
    border: 2px solid #e0e0e0; /* Subtle border for the frame */
    border-radius: 10px; /* Rounded corners for a sleek look */
    padding: 20px; /* Padding inside the frame */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    width: 70%; /* Make the inner frame slightly smaller */
    margin: 0 auto; /* Center the inner frame inside the outer frame */
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between each service item */
}

.service-item {
    display: flex;
    align-items: center;
    font-size: 16px; /* Font size for readability */
    color: #333; /* Text color */
        flex-basis: calc(15% - 40px); /* Adjust the percentage based on how many items per row you want */
    margin: 20px;
}

.service-item i {
    margin-right: 10px; /* Space between icon and text */
    color: #33691e; /* Icon color to match theme */
    font-size: 20px; /* Icon size */
}

.closing-note {
    font-size: 16px;
    color: #555;
    margin-top: 20px;
}

footer {
    background-color: #333;
    color: #fbc852;
    padding: 20px 0;
    font-size: 14px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}


main.about-main {
    background: url('images/background1.png') no-repeat center center;
    background-size: cover;
        display: flex;
        flex-direction: column; /* Stack main content vertically */
        align-items: center; /* Center children horizontally */
        justify-content: center; /* Center children vertically */
        text-align: center; /* Center text for all children */
        /* Other styles... */
        background-color: #f5f5f5; /* Existing grey background color */
        padding-top: 20px; /* Add some space at the top if needed */
        height: auto; /* Adjust height to fit content */
        /* Remove any specific height if it was set previously to 100vh or similar */
    }


    .about-intro, .about-commitment, .about-innovation, .about-values, .about-closing, .about-intro,
    .about-vision,
    .about-bahri,
    .about-team,
    .about-environment,
    .about-safety
     {
        background-color: #fff; /* White background for contrast */
        border: 5px solid #ddd; /* Solid border */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
        border-radius: 8px; /* Rounded corners */
        padding: 20px;
        margin: 20px auto;
        width: 80%; /* Adjust width as needed */
        text-align: center;
    }

    .about-team-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the image and the text */
}

.about-team-content {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the image and the text */
}

.about-team-content img {
    width: 40%; /* Adjust width as needed */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.services-main {
    padding: 20px;
}

.services-intro .intro-container {
    background-color: #fff; /* White background for contrast */
        border: 5px solid #ddd; /* Solid border */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
        border-radius: 8px; /* Rounded corners */
        padding: 20px;
        margin: 20px auto;
        width: 80%; /* Adjust width as needed */
        text-align: center;
}

.services-intro h1 {
    color: #fbc852; /* Adjust the color as needed */
    margin-bottom: 10px;
}

.services-intro p {
    color: #333; /* Adjust the color as needed */
    line-height: 1.6; /* Line height for better readability */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid layout */
    gap: 20px; /* Space between grid items */
    width: 100%; /* Grid takes full width */
    margin-top: 20px; /* Space between the intro box and grid */
    /* Add additional styling as needed */
}

.service-item img:hover {
    transform: translateY(-5px) scale(1.2); /* Move the image up by 5 pixels and scale up to 110% size */
    cursor: pointer; /* Change the cursor to indicate a clickable item */
}

.service-item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.service-item img {
    width: 200px;
    height: auto;
    border-radius: 50%;
    background-color: #f0f0f0;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item p {
    margin-top: 10px;
    font-weight: bold;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.contact-page {
    background-color: #f5f5f5; /* Light grey background for the entire page */
}


.contact-main, .book-main {
    padding: 20px;
    text-align: center;
}

    .contact-container, .book-container {
        background-color: #fff; /* White background */
        border: 5px solid #ddd; /* Solid border */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
        border-radius: 8px; /* Rounded corners */
        padding: 20px;
        margin: 20px auto;
        width: 80%; /* Adjust width as needed */
        text-align: center;
    }

    .book_intro {
        background-color: #fff; /* White background for contrast */
        border: 5px solid #ddd; /* Solid border */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for depth */
        border-radius: 8px; /* Rounded corners */
        padding: 20px;
        margin: 20px auto;
        width: 60%; /* Adjust width as needed */
        text-align: center;
    }

    

.cards-image {
    width: 100%; /* Makes the image span the full width of the container */
    height: auto; /* Maintains the image aspect ratio */
    margin-top: 20px; /* Adds some space between the last feature and the image */
}

/* Styles for the logo in the navigation menu */
.logo {
    height: 50px; /* Adjust the height as needed */
    margin-right: 8px; /* Adds spacing between logo and text */
}

/* Slideshow container */
.slideshow-container {
    align-content: left;
    max-width: 700px; /* Max width for larger screens */
    width: 100%; /* Full width on smaller screens */
    margin: auto; /* Center the slideshow */
    padding: 20px; /* Add padding inside the container */
    background-color: #f5f5f5; /* Light background color */
    border: 2px solid #ddd; /* Border to match other panels */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow: hidden; /* Prevents overflow if images are too large */
    position: relative;
    text-align: center;
}

/* Slide styling */
.mySlides {
    display: none; /* Hide all slides initially */
}

/* Image styling within the slideshow */
.mySlides img {
    width: 100%; /* Full width by default */
    height: 500px; /* Fixed height to unify display size */
    object-fit: cover; /* Ensures images cover the fixed height without distortion */
    border-radius: 8px; /* Rounds corners to match container */
}

/* Next & Previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
    border-radius: 50%; /* Circle-shaped buttons */
    user-select: none;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dot navigation styling */
.dot-container {
    text-align: center;
    padding: 10px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fade animation for slides */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

    
.machinery-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.machinery-item.reverse {
    flex-direction: row-reverse;
}
    
.machinery-item:nth-child(even) {
    flex-direction: row-reverse;
}
    
.machinery-text {
    flex: 1;
    padding: 20px;
}
    
.machinery-text h3 {
    color: #333;
    margin-bottom: 10px;
}
    
.machinery-text p {
    font-size: 16px;
    color: #555;
}

.machinery-image {
    width: 200px; /* Set a fixed width */
    max-width: 100%; /* Ensure it doesn’t exceed its container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Place media query outside of .machinery-image rule */
@media (max-width: 768px) {
    .machinery-item {
        flex-direction: column;
        align-items: center;
    }

    .machinery-item:nth-child(even) {
        flex-direction: column;
    }

    .machinery-image {
        width: 50%; /* Adjust width for smaller screens */
        margin-bottom: 10px;
    }
}

.equipment-gallery-section {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 20px 0;
}

.equipment-gallery-section h2 {
    color: #33691e;
    margin-bottom: 15px;
}

.equipment-gallery {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling for smaller screens */
}

.equipment-gallery img {
    width: 100%; /* Full width of the container */
    max-width: 25%; /* Ensures each image takes 25% of the row in large screens */
    height: auto;
    object-fit: cover; /* Crops images to fit within fixed height */
}

@media (max-width: 768px) {
    .equipment-gallery img {
        max-width: 50%; /* Adjust width for smaller screens */
    }
}

.owner-bio-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Space between images */
    justify-content: center;
}

.owner-bio-gallery img {
    width: 45%; /* Each image will take about half the container width */
    max-width: 300px; /* Set a max width for each image */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* Ensures images fill their container without distortion */
}

@media (max-width: 768px) {
    .owner-bio-gallery img {
        width: 100%; /* Stack images in a single column on smaller screens */
        
    }
}

.trust-quote {
    background-color: #fbc852; /* Light gold background */
    color: #333; /* Dark text color for contrast */
    text-align: center;
    padding: 0px;
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Saira Stencil One', cursive;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); /* Adds depth */
    border-radius: 8px; /* Slight rounding for a softer look */
    margin: 0px auto; /* Center alignment */
    max-width: 100%; /* Constrain width for readability */
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 0.5px;
}

.services-intro .intro-video {
    text-align: right;
    margin-top: 0px;
}

.services-intro .intro-video video {
    width: 100%; /* Make the video responsive */
    max-width: 300px; /* Set a maximum width */
    
}

.services-intro .video-caption {
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
    margin-top: 10px;
}
.payment-options {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.payment-options h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.payment-options ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.payment-options li {
    font-size: 18px;
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.payment-options li i {
    margin-right: 10px;
    color: #008000; /* Green for positive icons */
}

/* Layout: gallery on the right, Facebook feed on the left */
.gallery-and-feed {
    background-color: #f9fafb; /* Light background color for the frame */
    border: 2px solid #e0e0e0; /* Subtle border for the frame */
    border-radius: 10px; /* Rounded corners for a sleek look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    width: 80%; /* Make the inner frame slightly smaller */
    margin: 0 auto; /* Center the inner frame inside the outer frame */
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0px;
    align-items: start;
    padding: 20px;
}

.facebook-feed {
    flex: 1;
    max-width: 350px;
}

.gallery-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
}

.mySlides {
    display: none;
}

.mySlides img {
    display: block;
    margin: 0 auto;
}

.navigation {
    text-align: center;
    margin-top: 10px;
}

.navigation .prev,
.navigation .next {
    background-color: #ddd;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin: 5px;
}

.navigation .prev:hover,
.navigation .next:hover {
    background-color: #bbb;
}

.dots {
    margin-top: 10px;
}

.dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dots .dot.active {
    background-color: #717171;
}

/* Add a media query for mobile devices */

@media (max-width: 768px) {
    header {
        position: static; 
        width: 100%; 
        padding: 1rem 5%; 
        flex-direction: column; 
        align-items: flex-start;

    }

    .gallery-and-feed {
        grid-template-columns: 1fr; /* Stack sections */
        flex-direction: column; /* Stack sections vertically */
        align-items: center; /* Center-align the sections */
        gap: 10px; /* Reduced space between sections */
    }

    .facebook-feed,
    .gallery-section {
        width: 100%; /* Ensure both sections take full width on mobile */
        margin-bottom: 10px; /* Reduced space between sections */
    }

    .facebook-feed iframe {
        height: 300px; /* Adjust height to make it more compact */
    }
    .main-content {
        flex-direction: column; /* Stack the elements vertically */
        align-items: center; /* Center-align the content */
        gap: 1rem; /* Reduce the gap for mobile */
    }

    .video-container {
        order: 2; /* Place the video at the bottom */
        width: 100%; /* Ensure the video takes full width */
    }

    .service-overview {
        order: 1; /* Place the service overview at the top */
        text-align: center; /* Center-align the text for mobile */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        text-align: left;
        padding: 0;
    }

    .right-section {
        width: 100%;
        justify-content: space-around;
        margin-top: 1rem;
        flex-direction: column;
        text-align: left;
    }

    .logo {
        height: 2.5rem; /* Reduce logo size on smaller screens */
    }

    body {
        padding-top: 0; /* Adjusted to make room for stacked header on mobile */
    }
}

@media screen and (max-width: 768px) {


nav ul li {
    margin: 0.5rem 0; /* Reduce margin for smaller screens */

}

.contact-info {
    justify-content: flex-start;
    width: 100%;
}

/* Video container adjustments for mobile */
.video-container {
    width: 100%;
    max-width: 100%;
}

.feature-item img {
    width: 60px; /* Reduce image size for mobile */
}

button {
    width: 100%; /* Make button full-width for better usability */
    font-size: 1em;
}

.service-overview, .service-intro, .owner-bio, .features, .book-container {
    width: 90%;
    margin: 10px auto;
}

.book-container, .contact-container {
    width: 95%;  /* Set width to 95% for better spacing on mobile */
    margin: 10px auto;  /* Adjust margins for a balanced look */
    padding: 15px;  /* Reduce padding to save space */
}

iframe {
    width: 100%;  /* Make the iframe fill the container width */
    height: 1000px;  /* Adjust height automatically */
}

h1 {
    font-size: 28px;  /* Reduce header font size for smaller screens */
}

p {
    font-size: 16px;  /* Reduce text size for better readability */
}

.book-intro {
    padding: 10px;
    margin: 5px auto;
    width: 90%;  /* Wider area for better readability */
}

}

@keyframes fade {
    from {opacity: 0.4} 
    to {opacity: 1}
}
@media (max-width: 768px) {
    iframe {
        height: 1500px; /* Increase height for mobile view */
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .prev, .next {
        font-size: 14px; /* Reduce font size for arrows on smaller screens */
        padding: 8px;
    }
@media (max-width: 768px) {
    .book-container, .contact-container {
        padding: 1rem; /* Adds padding for mobile view */
    }
}
    .dot {
        height: 8px;
        width: 8px;
    }

    .mySlides img {
        height: 300px; /* Reduced height for smaller screens */
    }
}

@media (max-width: 480px) {
    .prev, .next {
        font-size: 12px;
        padding: 6px;
    }

    .facebook-feed,
    .gallery-section {
        padding: 10px;
    }

    .dot {
        height: 6px;
        width: 6px;
        margin: 0 3px;
    }

    .mySlides img {
        height: 250px; /* Further reduced height for mobile */
    }
} 