/* 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-telecom {
    position: relative;
    padding-top: 60px;
    background-image: url(../images/banner/telecom.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-telecom 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-telecom h1 {
        font-size: 3.5rem; /* Adjust font size for tablets */
    }
  }
  
  @media (max-width: 480px) {
    .back-telecom h1 {
        margin-top: 30px;
        /* font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; */
        font-weight: bold;
        /* text-shadow: 2px 2px 5px rgb(255, 255, 255); */
        font-size: 4rem; 
        /* Further adjustment for very small screens */
    }
  
    .back-telecom{
        padding-top: 1px;
        margin-top: 5rem;
        /* background-image: url(../images/software/cmms2.png); */
        /* margin-bottom: 30px; */
        /* background-size: contain;  */
        height:180px; /* 85% of the viewport height */
    }
  }
  
  
  
  /* Overlay */
  .back-telecom::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-telecom h1,
  .back-telecom p {
    position: relative;
    z-index: 2; /* Content above overlay */
  }
  


/* Power system container title */
.power-system-container-title {
    text-align: center;
    font-size: 2.5em;
    color: #222;
    margin-bottom: 20px;
    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: center;
}

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

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

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

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

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


.telecom-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .telecom-slider {
    display: flex;
    transition: transform 1s ease;
    width: calc(100% * 5);
  }

  .telecom-slide {
    min-width: calc(100% / 3);
  }

  .telecom-slide img {
    width: 300px;
    height: auto;
    margin-left: 20%;
    margin-bottom: 50px;
    text-align: center;
    border-radius: 2px;
  }