/* 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-air-break-switches-one {
    position: relative;
    background-image: url(../images/banner/training.png); /* 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: flex-start; /* Aligns the text to the left */
    padding-left: 20px; /* Adds some padding for left alignment */
}

.back-air-break-switches-one h1 {
    font-size: 6.8rem;
    /* font-weight: bold;  */
    margin-top: 0.1rem;
    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-air-break-switches-one h1 {
        font-size: 3.5rem; /* Adjust font size for tablets */
    }
}

@media (max-width: 480px) {
    .back-air-break-switches-one h1 {
        margin-top: 220px;
        /* 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-air-break-switches-one{
        margin-top: 5rem;
        margin-bottom: 30px;
        background-size: contain; 
        height:200px; /* 85% of the viewport height */
    }
}


/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 18px;
    line-height: 1.8;
    padding: 30px;
}

/* Wrapper Padding */
.container-wrapper {
    padding-left: 40px;
    padding-right: 40px;
}

/* Banner Section */
.back-hydro-power-plant {
    background-image: url('../images/banner/training.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
    position: relative;
    color: white;
}

.back-hydro-power-plant::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: rgba(0,0,0,0.4); */
    top: 0;
    left: 0;
}

.back-hydro-power-plant h1 {
    font-size: 3.8rem;
    font-weight: bold;
    z-index: 1;
}

/* Container Layouts */
.hydro-power-plant-container,
.hydro-power-plant-container2 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 20px;
    padding-left: 40px;
    padding-right: 40px;
}

.hydro-power-plant-column1,
.hydro-power-plant-column2 {
    flex: 1;
    min-width: 320px;
}

/* Titles */
.hydro-power-plant-title2,
.hydro-power-plant-section-title2 {
    font-size: 2.2rem;
    color: #2b5797;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Paragraph Styling */
.hydro-power-plant-column2 p,
.hydro-power-plant-container p,
.hydro-power-plant-container2 p {
    font-size: 1.8rem;
    text-align: justify;
    margin-bottom: 20px;
}


/* List Styling */
.hydro-power-plant-section-content2 ul {
    list-style-type: disc;
    padding-left: 30px;
}

.hydro-power-plant-container2 .hydro-power-plant-section-content2 ul li {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: justify;
}

/* Image Styling */
.hydro-power-plant-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hydro-power-plant-image1 {
    max-width: 100%;
    height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Highlight Banner */
.hydro-power-plant-mid-highlight-banner1 {
    font-size: 2.4rem;
    font-weight: bold;
    color: #2b5797;
    margin-top: 50px;
    margin-left: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .back-hydro-power-plant h1 {
        font-size: 3rem;
    }

    .hydro-power-plant-title2,
    .hydro-power-plant-section-title2 {
        font-size: 1.9rem;
    }

    .hydro-power-plant-section-content2 ul li,
    .hydro-power-plant-column2 p {
        font-size: 2rem;
    }

    .hydro-power-plant-container,
    .hydro-power-plant-container2 {
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 20px;
        font-size: 16px;
    }

    .back-hydro-power-plant {
        height: 300px;
        padding-left: 20px;
    }

    .back-hydro-power-plant h1 {
        font-size: 2.2rem;
    }

    .hydro-power-plant-mid-highlight-banner1 {
        font-size: 1.8rem;
        margin-left: 20px;
    }

    .hydro-power-plant-title2,
    .hydro-power-plant-section-title2 {
        font-size: 1.6rem;
    }
}