/* Reset default body and html padding/margin */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent sideways scroll */
}
 
/* Apply box-sizing border-box globally */
*, *::before, *::after {
    box-sizing: border-box;
}
.new-image-section-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically */
    align-items: center;
    width: auto; /* Center horizontally */
    height: auto; /* Full viewport height for vertical centering */
    text-align: center; /* Center the text */
    padding: 10px; /* Add some padding */
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

.new-image-section-title {
    font-size: 3.6rem;
    color: #2b5797;
    /* margin-bottom: 10px; */
    /* border-bottom: 3px solid #2b972d; */
    padding-bottom: 5px;
    display: inline-block;   
}

.new-image-box-image0 {
    max-width: 50%; /* Responsive image scaling */
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Optional: Add rounded corners */
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .new-image-section-title {
        font-size: 2rem; /* Smaller font for tablets */
    }
}

@media (max-width: 480px) {
    .new-image-section-title {
        font-size: 2rem; /* Further reduce font size for mobile */
    }

    .new-image-section-container {
        padding: 10px; /* Adjust padding for smaller screens */
    }
}

/* background */


.back-oil-filteration {
    margin-top: 2rem;
    position: relative;
    background-image: url(../images/banner/oil.avif); /* Replace with your image URL */
    background-size: cover; /* Ensures the image covers the entire container */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    width: 100%; /* Full width for responsiveness */
    height: 600px; /* 85% of the viewport height */
    display: flex; /* Use flexbox for better control of child positioning */
    align-items: center; /* Vertically centers the text */
    justify-content: center; /* Aligns the text to the left */
    padding-left: 20px; /* Adds some padding for left alignment */
 padding-right: 20px; 
}
  
  .back-oil-filteration h1 {
    font-size: 6.8rem;
    padding-top: 400px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold; 
    margin-top: 200px;
    color: white; /* Adjust for readability */
    margin: 0; /* Removes default margin */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Optional: Adds text shadow for better visibility */
  }
  
  @media (max-width: 768px) {
    .back-oil-filteration h1 {
        font-size: 3.5rem; /* Adjust font size for tablets */
    }
  }
  
  @media (max-width: 480px) {
    .back-oil-filteration h1 {
        margin-top: 20px;
        padding-top: 240px;
        /* font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; */
        font-weight: bold;
        text-shadow: 2px 2px 5px rgb(255, 255, 255);
        font-size: 3.6rem; 
        color: #2b5797;/* Further adjustment for very small screens */
    }
    .back-oil-filteration{
        margin-top: 1rem;
        margin-bottom: 30px;
        background-size: contain; 
        height:270px; /* 85% of the viewport height */
    }
  }
  
  
  
  
  /* Overlay */
  .back-oil-filteration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.489); */
    z-index: 1;
  }

/* oil-filteration info section */
.oil-filteration-communicate {
    text-align: center;
    align-items: center;
    background-image: url(../images/Services/oil-filteration/backg2.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    min-height: 35vh;
    padding: 40px 20px;
}

.oil-filteration-communicate h3 {
    margin-top: 3rem;
    font-size: 3rem;
}

.oil-filteration-communicate p {
    font-size: 2rem;
}

/* Default styles (as provided) */
.oil-filteration-info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    font-size: 1.8rem;
    background-color: hsl(204, 90%, 92%);
    border: 1px solid hsl(206, 17%, 76%);
}

.oil-filteration-info-content {
    flex: 1;
    max-width: 65%;
    padding-right: 30px;
    color: #1b425d;
    /* color: #ffffff; */
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem;
}

.oil-filteration-info-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.oil-filteration-info-content .highlight2 {
    color: #ff6600;
    /* Change color for the word XGSLab */
    text-decoration: underline;
}

.oil-filteration-info-content .highlight {
    text-decoration: underline;
    font-weight: bold;
}

/* Style for the slideshow container */
.oil-filteration-image-container {
    flex: 1;
    max-width: 30%;
    position: relative;
}

/* Basic slideshow styles */
.oil-filteration-slideshow {
    position: relative;
    width: 100%;
    height: auto;
}

.oil-filteration-slideshow img {
    width: 100%;
    display: none;
    border-radius: 5px;
}

.oil-filteration-slideshow img.active {
    display: block;
}

/* Slideshow navigation buttons */
.oil-filteration-slideshow .prev,
.oil-filteration-slideshow .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.oil-filteration-slideshow .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.oil-filteration-slideshow .prev:hover,
.oil-filteration-slideshow .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .oil-filteration-info-section {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        font-size: 2.5rem;
    }

    .oil-filteration-info-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .oil-filteration-info-content p {
        font-size: 1.9rem;
    }

    .oil-filteration-image-container {
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .oil-filteration-info-section {
        padding: 15px;
        font-size: 2.2rem;
    }

    .oil-filteration-info-content {
        font-size: 1.8rem;
    }

    .oil-filteration-info-content p {
        font-size: 1.7rem;
    }

    .oil-filteration-slideshow .prev,
    .oil-filteration-slideshow .next {
        font-size: 20px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .oil-filteration-info-section {
        padding: 10px;
        font-size: 1.8rem;
    }

    .oil-filteration-info-content {
        font-size: 1.6rem;
    }

    .oil-filteration-info-content p {
        font-size: 1.5rem;
    }

    .oil-filteration-slideshow .prev,
    .oil-filteration-slideshow .next {
        font-size: 18px;
        padding: 10px;
    }
}

/*  */
.oil-filteration-section-container {
    font-family: Arial, sans-serif;
    margin-left: 30px;
    margin-right: 30px;
    /* background-color: #afe4ff; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    transition: all 0.3s ease-in-out;
}
.flyer{
    padding: 20px;
    font-size:2rem;
  }

  .flyer :hover{
    color: red;
  }

.oil-filteration-section-title {

    margin-top: 15px;
    font-size: 3rem;
    color: #2b5797;
    margin-bottom: 10px;
    /* border-bottom: 3px solid #2b972d; */
    padding-bottom: 5px;
    display: inline-block;
    text-align: left;
}

.oil-filteration-section-content {
    line-height: 1.6;
    /* color: #333;  */
}

.oil-filteration-section-content .highlight {
    font-weight: bold;
    color: #f39c12;
}

.oil-filteration-section-content p {
    margin-bottom: 15px;
    font-size: 1.7rem;
    text-align: justify;
}


.oil-filteration-section-content ul li {
    /* margin-bottom: px; */
    font-size: 1.6rem;
    text-align: justify;
    margin-bottom:15px;
    margin-left: 25px;
    margin-right: 20px;
}




@media (max-width: 768px) {
    .section-container {
        padding: 15pxpx;
    }

    .section-title {
        font-size: 24px;
    }

    .section-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 15px;
    }

    .section-title {
        font-size: 2.3rem;
        text-align: left;
    }

    .oil-filteration-section-title {
        font-size: 2.3rem;
    }

    .section-content {
        font-size: 13px;
    }

    .oil-filteration-section-content ul li {
        /* margin-bottom: px; */
        font-size: 1.6rem;
        text-align: left;
        margin-left: 25px;
        margin-right: 20px;
    }

}


.asp-features-section {
    margin-bottom: 30PX;
}


/* Power system container title */
.oil-filteration-system-container-title {
    text-align: center;
    font-size: 2.5em;
    color: #222;
    margin-bottom: 30px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s ease forwards;
}

/* Power system points */
.oil-filteration-system-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.oil-filteration-system-card {
    background-color: #1b425d;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: calc(0.1s * var(--order));
}

.oil-filteration-system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: #71e0f6;
    /* New background color on hover */
    text-align: justify;
}

.oil-filteration-system-card:hover h2,
.oil-filteration-system-card:hover ul li {
    color: #1b425d;
    /* Change text color to contrast with new background */
    text-align: justify;
}

.oil-filteration-system-card h2 {
    color: #ffcc00;
    font-size: 1.5em;
    margin-top: 0;
    text-align: justify;
}

.oil-filteration-system-card ul {
    list-style-type: none;
    padding: 0;
    text-align: justify;
}

.oil-filteration-system-card ul li {
    padding: 5px 0;
    color: #ffffff;
    text-align: justify;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .oil-filteration-system-card {
        width: 100%;
        max-width: 500px;
    }
}

/* Keyframes for fade-in animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}