/* queries.css */

/* --- Large Screens (Desktop/Laptops) --- */
@media screen and (min-width: 1200px) {
  .achievement-container {
    max-width: 1100px; 
  }
}

/* --- Tablets and Small Laptops --- */
@media screen and (max-width: 1024px) {
  .achievement-container {
    max-width: 90%;
    padding: 0 10px;
  }
  
  .title {
    font-size: 2.2rem;
  }
}

/* --- Mobile Devices (Phones) --- */
@media screen and (max-width: 768px) {
  #achievements {
    padding: 30px 15px;
  }

  .title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .achievement-item {
    padding: 20px; 
  }

  .achievement-item h2 {
    font-size: 1.2rem;
  }

  .achievement-item p {
    font-size: 0.95rem;
  }

  /* Adjusting the Button Container for Mobile */
 .button {
    padding: 10px 10px; 
    margin-top: 10px;   
    width: 100%;
    box-sizing: border-box; 
  }

  .btn {
    padding: 10px 15px; 
    font-size: 0.85rem;
  } 

  /* Footer adjustments */
  footer p:last-child {
    align-self: center; 
    padding-right: 0;
    font-size: 0.8rem;
  }
}

/* --- Small Mobile Devices --- */
@media screen and (max-width: 480px) {
 html, body {
    overflow-x: hidden;
    position: relative; /* This helps mobile browsers understand the boundaries */
    width: 100%;
  }
  .title {
    font-size: 1.5rem;
  }

  .achievement-item {
    border-radius: 10px; 
  }

  .achievement-container {
    gap: 20px; 
  }
  footer p {
    max-width: 90%;       
    margin: 5px auto;     
    overflow-wrap: break-word; 
    text-align: center;   
    font-size: 0.8rem;    
  }
}
