/* background */
/* 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;
}



.back-power-one {
    position: relative;
    padding-top: 60px;
    background-image: url(../images/banner/power.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 */
    margin-top: 50px;
    display: flex; /* Use flexbox for better control of child positioning */
    align-items: center; /* Vertically centers the text */
    justify-content: flex-start; /* Aligns the  ` text to the left */
    padding-left: 10px; /* Adds some padding for left alignment */
}

.back-power-one h1 {
    font-size: 6.8rem;
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* font-weight: bold;  */
    /* top: 55%; */

    /* padding: calc(300px/2) 20px 20px 20px; */
    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-power-one h1 {
        font-size: 3.5rem; /* Adjust font size for tablets */
    }
}

@media (max-width: 480px) {
    .back-power-one h1 {
        margin-top: 50px;
        padding-top: 160px;
        /* padding: 1px; */
        /* 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;
        /* padding-left: 10px;  */
        color: #2b5797;
        /* Further adjustment for very small screens */
    }

    .back-power-one{
        margin-top: 8rem;
        padding-left: 10px;
        margin-bottom: 100px;
        background-size: contain; 
        height:150px; /* 85% of the viewport height */
    }
}



/* Overlay */
.back-power-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.288);
    z-index: 1;
}

/* Text Styling */
.back-power-one h1,
.back-power-one p {
    position: relative;
    z-index: 2; /* Content above overlay */
}


.back-power {
    position: relative;
    text-align: left;
    background-image: url(../images/Services/power/backg.jfif);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
   
min-height: 85vh;
padding: calc(85vh / 2) 20px 10px 10px;
    
    /* font-size: 2rem; */
}

.flyer{
    padding: 20px;
    font-size:2rem;
  }

  .flyer :hover{
    color: red;
  }


/* Overlay */
.back-power::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.11);
    z-index: 1;
}

/* Text Styling */
.back-power h1,
.back-power p {
    position: relative;
    z-index: 2;
    /* Content above overlay */
}

.back-power h1 {
    font-size: 8rem;
    /* margin-top: 20rem; */
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: hsl(0, 0%, 100%);
}

.back-power h2 {
    margin-top: 1rem;
    font-size: 3.2rem;
    font-family: Arial;
    /* margin-right: 550px; */
    padding: 0.2em 0.5em;
}

/* Responsive Adjustments */
@media (max-width: 1900px) {
    .back-power {
        max-width: 1900px;
min-height: 85vh;
padding: calc(85vh / 2) 20px 10px 10px;
    }


}

@media (max-width: 768px) {
    .back-power {
        min-height: 65vh;
padding: calc(65vh / 2) 20px 10px 10px;
        background-attachment: scroll;
        /* Better performance on smaller devices */
    }

    .back-power h1 {
        /* margin-top: 10rem; */
        font-size: 6rem;
    }

    .back-power h2 {
        margin-right: 0;
        font-size: 3rem;
    }

    .back-power h3 {
        margin-right: 0;
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .back-power {
        min-height: 45vh;
padding: calc(45vh / 2) 20px 10px 10px;
    }

    .back-power h1 {
        font-size: 6rem;
        /* margin-top: 5rem; */
    }

    .back-power h2,
    .back-power h3 {
        font-size: 2.5rem;
        margin-right: 0;
        padding: 0.1em;
    }
}


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

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

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

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

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

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

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

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

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

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

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

.power-slideshow img.active {
    display: block;
}

/* Slideshow navigation buttons */
.power-slideshow .prev,
.power-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/*  */
.power-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;
}

.power-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;
}

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

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

.power-section-content p {
    margin-bottom: 15px;
    font-size: 1.6rem;
    text-align: justify;
}

.power-section-content  ul{
    list-style-position: inside; /* Ensures bullets are inside the padding */
    padding-left: 20px; /* Adjust as needed for the desired margin */
}

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


.power-section-list{
    line-height: 1.6;
    /* color: #333;  */
}



.power-section-list ul li {
    margin-bottom: 20px;
    font-size: 1.6rem;
    text-align: justify;
    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;
    }

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

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

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

}



/* Overlay */
.back-power-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.288);
    z-index: 1;
}

/* Text Styling */
.back-power-one h1,
.back-power-one p {
    position: relative;
    z-index: 2; /* Content above overlay */
}



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


/* Power system container title */
.power-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 */
.power-system-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.power-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));
}

.power-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;
}

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

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

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

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

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .power-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);
    }
}