html {
    font-size: 62.5%; /* 1rem = 10px */
}

.ser-section1 {
    width: 100%;
    height: 60rem; 
    background-image: 
        url('../assets/images/Rectangle 84.png'),
        url('../assets/images/person-front-computer-working-html.png');
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    position: relative;
    z-index: 1;
}

.ser-sec1-div1 {
    width : 100%;
    margin-top: 50rem;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: right;
    border-radius: 0.5rem;
   
    
}

.ser-sec1-div1-btn {
    width : 13rem;
    font-size: 1rem;
    background-color: #042896;
    color:white;
    border:none;
    border-radius: 0.4rem;
    cursor: pointer;
    display : flex;
    justify-content : center;
    align-items:center;
    padding:1rem 2rem;
    margin-right:8rem;
    transition : transform 0.3s ease;
}
.ser-sec1-div1-btn:hover{
    transform: scale(1.1); /* 10% bigger */
    cursor: pointer;
}

.ser-sec1-div1-img {
    width : 1.5rem;
    height : 1rem;
    margin-left : 1rem;
}
.ser-sec1-div1-div {
     position: relative;          /* Needed for z-index */
    z-index: 5;                  /* Ensure it's above background */
    background-color: #000000;
    width: 100%;
    height : auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
}


.ser-sec1-div1-div p {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color:white;
    padding:1rem;
}
.ser-sec2{
    width : 100%;
    text-align:center;

}
.ser-sec2 h1 {
    padding: 1rem 1rem;
    font-size: 2.5rem;
    color : #042896;
    text-decoration-line: underline;
    text-decoration-color: #042896; 
    text-decoration-thickness: 0.2rem;
    text-underline-offset: 0.6rem; 
}

.ser-sec3{
    width : 100%;
    height:auto;
    margin-bottom : 2rem;
       
}

.ser-sec3-maindiv{
    width : 100%;
    
    display:flex;
    justify-content:center;
    align-items:center;
   margin-top:2.5rem;

}
.ser-sec3-maindiv1{
    width : 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius:1rem;
    padding-bottom:2.5rem;
    
}
.ser-sec3-maindiv-numberleft{
    width : 3rem;
    height : 3rem;
    background-color : blue;
    border-radius:0.5rem;
    margin-top:-1.5rem;
    margin-left:1.5rem;
    
    display:flex;
    justify-content:center;
    align-items:center;
}

.ser-sec3-maindiv-numberright {
    width: 3rem;
    height: 3rem;
    background-color: blue;
    border-radius: 0.5rem;
    margin-top: -1.5rem;
    margin-left: 55.5rem; /* Adjust this as needed for your layout */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 10%; /* Adjust based on your container */
}

.ser-sec3-maindiv-numberright h1 {
    color: white;
    font-size: 1.5rem;
}

.ser-sec3-maindiv-numberleft h1{
    color:white;
    font-size:1.5rem;

}
.ser-sec3-maindiv-maincontainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 2rem;
}

.ser-sec3-maindiv-container {
    margin-top: 2rem;
    width: 90%;
   display: grid;
  grid-template-columns: 35% 65%;
    align-items: flex-start; /* Align items at the top */
    gap: 2rem;
}
.ser-sec3-maindiv-container.right {
    margin-top: 2rem;
    width: 90%;
   display: grid;
  grid-template-columns: 65% 35%;
    align-items: flex-start; /* Align items at the top */
    gap: 2rem;
}

/* ----------------- */
.with-overlay-text {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.with-overlay-text img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background:none;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  box-sizing: border-box;
  z-index: 3;
}
.ser-sec3-imagecontainer {
    width: 100%;
    margin-top: 0;
    height: 29rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ser-sec3-imagecontainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 12px;
  transition: transform 0.4s ease-in-out; /* transition on transform */
}

.ser-sec3-imagecontainer:hover img {
  transform: scale(1.1); /* zoom in on hover */
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: 12px;
  background: linear-gradient(
    167.65deg,
    rgba(57, 102, 255, 0.06) 17.5%,
    #042896 83.01%
  );
  opacity: 0.6;
  pointer-events: none;
}
/* ---------------------- */
.ser-sec3-maindiv-textcontainer {
    width: 100%; /* 65% of parent container */
}
.ser-sec3-maindiv-textcontainer p{
    font-size : 1.5rem;
    font-weight:500;
    font-family: 'Poppins', sans-serif;
    color:black;
    
}
.ser-sec3-maindiv-button{
    padding:1rem 2rem;
    border-radius:0.8rem;
    background-color:#042896;
    color:white;
    margin-left:65%;
    cursor:pointer;
    transition: transform 0.3s ease;
}
.ser-sec3-maindiv-button:hover{
    transform: scale(1.1); /* 10% bigger */
    cursor: pointer;
}

/* responsive design for mobile */

@media (max-width: 768px) {
    
    .ser-section1 {
        width : 100%;
        height: 25rem;
        background-size:contain;
    background-position:center;
    background-repeat:no-repeat; 
        
    }
    .ser-sec1-div1-btn {
        font-size: 0.6rem;
        padding: 0.2rem 1.8rem;
        margin-top:12.5rem;
        
    }

    .ser-sec1-div1-img {
        width: 1.2rem;
        height: 0.8rem;
    }
    .ser-sec1-div1 {
        margin: 2rem auto 0 auto; 
        width: 10rem;
        height: auto;
        padding: 1rem;
        flex-direction: row; 
    }

    
    .ser-sec1-div1-div{
        width : 100%;
        height : 3rem;
        margin-top:1em;
    }
    .ser-sec1-div1-div p{
        font-size : 0.8rem;
        margin-top:2rem;
    }
    .ser-sec2{
        margin-top : 1rem;
    }
    .ser-sec2 h1{
        font-size : 1.5rem;
        text-decoration-thickness: 0.15rem;
        text-underline-offset: 0.4rem; 
        padding: 0.4rem 0.4rem;
     }
      .ser-sec3-maindiv-numberright {
        width: 2.5rem;
        height: 2.5rem;
        margin-left: auto; /* Center it */
        margin-right: 2rem; /* Push it from the right */
        position: relative; /* Change to relative positioning */
        float: right; /* Float it to the right */
    }
    
    .ser-sec3-maindiv-numberright h1 {
        font-size: 1.2rem;
    }
     /* ---- */

     .ser-sec3-maindiv-maincontainer {
        padding: 0 1rem;
        flex-direction: column;
    }
     .ser-sec3-maindiv-container {
        display: flex;
        flex-direction: column; /* Stack vertically */
        width: 100%;
    }
    .ser-sec3-maindiv-container.right {
        display: flex;
        flex-direction: column; /* Stack vertically */
        width: 100%;
    }
    
    .ser-sec3-imagecontainer {
        width: 100%; /* Full width */
        height: 20rem; /* Fixed height */
        margin-bottom: 2rem; /* Space between image and text */
    }
    
    .ser-sec3-maindiv-textcontainer {
        width: 100%; /* Full width */
    }
    
    /* Adjust button positioning */
    .ser-sec3-maindiv-button {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    /* Adjust number positioning for mobile */
    .ser-sec3-maindiv-numberright,
    .ser-sec3-maindiv-numberleft {
        position: relative;
        margin: -1.5rem auto 0 auto;
        float: none;
    }   
    .ser-sec3-imagecontainer img {
        height: 30rem;
    } 
}

@media (max-width: 480px) {
    

    .ser-section1 {
        width: 100%;
        height: 53rem;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 2rem 40rem;
    }

    .ser-sec1-div1 {
        width: 90%;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        margin: 1rem auto;
    }

    .ser-sec1-div1-img {
        width: 2rem;
        height: auto;
    }

    .ser-sec1-div1-btn {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
        margin-top: 33.5rem;
    }

    .ser-sec1-div1-div1 {
        width : 100%;
        margin-top: 1rem;
        text-align: center;
        background-color : red;
    }
    .ser-sec1-div1-div{
        width : 100%;
    }
    .ser-sec1-div1-div p {
        width: 100%;
        font-size: 1.8rem;
        margin-top: 16rem;
        background-color: #000000;
        margin-right: 69rem;
    }

    .ser-sec2 {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .ser-sec2 h1 {
        font-size: 1.4rem;
        padding: 0.5rem 0;
        text-align: center;
    }
    .ser-sec3{
        width : 300%;
        
    }
    .ser-sec3-maindiv-numberright {
        width: 2rem;
        height: 2rem;
        margin-right: 1rem; /* Less space from the right */
    }
    
    .ser-sec3-maindiv-numberright h1 {
        font-size: 1rem;
    }
    
    /* For the very small screens, you might want to adjust the container */
    .ser-sec3-maindiv1 {
        width: 95%; /* Give more space */
        margin: 0 auto; /* Center the container */
    }

   

     .ser-sec3-maindiv-maincontainer {
        padding: 0 0.5rem;
        flex-direction: column;
    }
    
    .ser-sec3-maindiv-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .ser-sec3-maindiv-container.right {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .ser-sec3-imagecontainer {
        width: 100%;
        height: 15rem; /* Smaller height for phones */
    }
    
    .ser-sec3-maindiv-textcontainer {
        width: 100%;
    }
    
    /* Fix the 300% width issue */
    .ser-sec3 {
        width: 100% !important; /* Override the 300% */
    }    .ser-sec3-maindiv-textcontainer p {
        font-size: 1.2rem; /* Slightly larger text for readability */
    }
    
    .ser-sec3-maindiv-button {
        padding: 0.8rem 1.5rem; /* More touch-friendly size */
        font-size: 1rem;
    }
    
    /* Adjust number size for very small screens */
    .ser-sec3-maindiv-numberright,
    .ser-sec3-maindiv-numberleft {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .ser-sec3-maindiv-numberright h1,
    .ser-sec3-maindiv-numberleft h1 {
        font-size: 1.2rem;
    }
    
    
}
