/* 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;
}
/* background */
.back-earthing-one {
  position: relative;
  padding-top: 60px;
  background-image: url(../images/banner/earthing.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: 20px; /* Adds some padding for left alignment */
}

.back-earthing-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-earthing-one h1 {
      font-size: 3.5rem; /* Adjust font size for tablets */
  }
}

@media (max-width: 480px) {
  .back-earthing-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-earthing-one{
    margin-top: 8rem;
    margin-bottom: 100px;
    background-size: contain; 
    height:150px; /* 85% of the viewport height */
  }
}



/* Overlay */
.back-earthing-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-earthing-one h1,
.back-earthing-one p {
  position: relative;
  z-index: 2; /* Content above overlay */
}

.title{
  padding-left: 20px;
}
.flyer{
  padding: 20px;
  font-size:1.6rem;
}

.flyer :hover{
  color: red;
}


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



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

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

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

.back-earthing h1 {
    font-size: 6rem;
    /* margin-top: 16rem; */
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: hsl(0, 0%, 100%);
}
.feature-item p{
  font-size: 1.5rem;

}
.feature-item ul li{
  font-size: 1.6rem;
  margin-left: 15px;
  padding: 10px;
}

section-content-list p{
  font-size: 1.6rem;
  
}

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

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

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

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

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

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

@media (max-width: 480px) {
  .back-earthing{
    min-height: 45vh;
    padding: calc(45vh / 2) 20px 10px 10px;
  }
    .back-earthing h1 {
        font-size: 6rem;
        /* margin-top: 5rem; */
    }

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


/* earthing imp points */

.earthing-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(to right, #00c6ff, #0072ff);
}

.earthing-title h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
}

.earthing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.earthing-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: start;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.earthing-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.earthing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.earthing-card i {
  font-size: 2rem;
  color: #28a745;
  margin-right: 1rem;
}

.earthing-card p {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

@media (max-width: 768px) {
  .earthing-card i {
    font-size: 1.5rem;
  }

  .earthing-card p {
    font-size: 1rem;
  }
}