*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    width: 100%;
    height: 100%;
}
.logo{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #9c86ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.logo img{
    width: 150px;
    height: auto;
}
.logo h3 a{
    text-decoration: none;
}
.logo .icon-button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        color: #064d70;
        background: #dccccc;
        border: none;
        outline: none;
        border-radius: 50%;
      }
      
      .icon-button:hover {
        cursor: pointer;
      }
      
      .icon-button:active {
        background: #cccccc;
      }

.body{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 100px;
    background-color: #9c86ed;
    color: white;
   

}
.body .Box1,.Box2,.Box3,.Box4{
    height: 300px;
    width: 300px;
    padding: 10px;
    border: 5px solid rgb(37, 56, 230);
    margin: 0;
}

  .Box1 ,  .Box2 , .Box3, .Box4{
   
    background-color: #4b0082;
    color: white;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .Box1:hover {
    background-color: #800080;
    transform: scale(1.1);
  }
  
  .Box2:hover {
    background-color: #800080;
    transform: scale(1.1);
  }
  .Box3:hover {
    background-color: #800080;
    transform: scale(1.1);
  }
  .Box4:hover {
    background-color: #800080;
    transform: scale(1.1);
  }
  .Box1 a{
    text-decoration: none;
    color: white;
  }
  .Box2 a{
    text-decoration: none;
    color: white;
  }
  .Box3 a{
    text-decoration: none;
    color: white;
  }
  .Box4 a{
    text-decoration: none;
    color: white;
  }
  .footer{
    height: 100%;
    width: 100%;

  }
  .footer a{
    text-decoration: none;
    color: white;
  }
  .footer .first, .footer .second, .footer .third {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 100px;
    background-color: #9c86ed;
    color: white;
}

.footer .first {
    border-bottom: 2px solid white; 
    border-top: 2px solid white;
}

.footer .second {
    border-bottom: 2px solid white; 
}
.footer .third{
    border-bottom: 2px solid white;
    
}
.lastpart{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #9c86ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.lastpart img{
    width: 150px;
    height: auto;
} 



 
/* Base styles (already provided by you) */

/* Responsive Design */

/* For screens less than 1200px wide (e.g., tablets and small desktops) */
@media (max-width: 1199px) {
  .body {
      flex-direction: column;
      padding: 20px;
  }

  .body .Box1, .body .Box2, .body .Box3, .body .Box4 {
      width: 100%;
      margin-bottom: 20px;
  }

  .logo {
      flex-direction: column;
      align-items: flex-start;
  }

  .logo h3 {
      margin: 10px 0;
  }
}

/* For screens less than 992px wide (e.g., tablets in portrait mode) */
@media (max-width: 991px) {
  .body {
      flex-direction: column;
      padding: 10px;
  }

  .body .Box1, .body .Box2, .body .Box3, .body .Box4 {
      width: 100%;
      margin-bottom: 10px;
  }

  .logo {
      flex-direction: column;
      align-items: flex-start;
  }

  .logo h3 {
      margin: 5px 0;
  }

  .footer {
      padding: 20px;
      flex-direction: column;
      align-items: center;
  }

  .footer .first, .footer .second, .footer .third {
      padding: 20px;
      width: 100%;
      text-align: center;
  }
}

/* For screens less than 768px wide (e.g., mobile devices) */
@media (max-width: 767px) {
  .logo {
      padding: 10px;
  }

  .logo img {
      width: 100px;
  }

  .body {
      padding: 10px;
      flex-direction: column;
  }

  .body .Box1, .body .Box2, .body .Box3, .body .Box4 {
      width: 100%;
      margin-bottom: 10px;
      padding: 15px;
  }

  .footer {
      padding: 10px;
      flex-direction: column;
      align-items: center;
  }

  .footer .first, .footer .second, .footer .third {
      padding: 10px;
      width: 100%;
      text-align: center;
  }
}
