@media only screen and (max-width:575.98px) {
    /* For the second section (Race Guard) */
    #pg7 .row:nth-of-type(2) {
      display: flex;
      flex-direction: column-reverse; /* Stack content and image, content first */
    }
    
    #pg7 .row:nth-of-type(2) .col-md-6 {
      text-align: center; /* Center the content */
    }
    
    #pg7 .row:nth-of-type(2) .col-md {
      text-align: center;
      margin-bottom: 20px;
    }
  
    #pg7 .row:nth-of-type(2) .col-md img {
      width: 90%;
      margin-bottom: 20px;
    }
  
    /* For the third section (Fire Guard) */
    #pg7 .row:nth-of-type(4) {
      display: flex;
      flex-direction: column-reverse; 
    }
  
    #pg7 .row:nth-of-type(4) .col-md-6 {
      text-align: center; 
    }
  
    #pg7 .row:nth-of-type(4) .col-md {
      text-align: center;
      margin-bottom: 20px;
    }
  
    #pg7 .row:nth-of-type(4) .col-md img {
      width: 90%;
      margin-bottom: 20px;
    }
  
    
   /* For the second section (Race Guard) */
   #pg7 .row:nth-last-child() {
    display: flex;
    flex-direction: column-reverse; 
  }

  #pg7 .row:nth-last-child() .col-md-6 {
    text-align: center; 
  }

  #pg7 .row:nth-last-child() .col-md {
    text-align: center;
    margin-bottom: 20px;
  }

  #pg7 .row:nth-last-child() .col-md img {
    width: 90%;
    margin-bottom: 20px;
  }
  #pg7 .row:nth-of-type(1) .col-md-6 {
    text-align: center; /* Center the content */
  }
  
  #pg7 .row:nth-of-type(1) .col-md {
    text-align: center;
    margin-bottom: 20px;
  }
  #pg7 .row:nth-of-type(3) .col-md-6 {
    text-align: center; /* Center the content */
  }
  
  #pg7 .row:nth-of-type(3) .col-md {
    text-align: center;
    margin-bottom: 20px;
  }
  #pg7 .row:nth-of-type(5) .col-md-6 {
    text-align: center; /* Center the content */
  }
  
  #pg7 .row:nth-of-type(5) .col-md {
    text-align: center;
    margin-bottom: 20px;
  }
  }