/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f7;
}
.mypelajar-overview {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.box {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1150px;
    margin: 0 auto;
    background-image: url('../images/mypelajar5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.box2 {
    padding: 20px;
    background-color: #ff7542;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1150px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 100px;
}

.mypelajar-logo {
    width: 500px;
}

.helocore-logo {
    width: 100%; /* Allow image to resize */
    max-width: 740px; /* Keep it from exceeding 740px on large screens */
}
/* Helocore Container Styling */
.helocore-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.description {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-learn-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #ff7542;
    border-radius: 10px;
    text-decoration: none;
    width: 130px;
    margin-right: 60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Primary Functions Section */
.primary-functions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.primary-functions1 {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(1, 1fr);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.box-function {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.box-function:hover {
    transform: scale(1.05);
}

.function-item {
    text-align: center;
    position: relative;
}

.function-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.function-item p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.box-function:hover .function-item img {
    filter: blur(4px) brightness(0.7);
}

.box-function:hover .function-item p {
    opacity: 1;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .mypelajar-overview {
        padding: 40px 15px;
    }

    .box, .box2 {
        padding: 20px;
    }

    .logo-section, .helocore-container {
        gap: 20px; /* Reduce gap on small screens */
        flex-direction: column; /* Stack logo and text vertically */
        align-items: center; /* Center content */
        width: 100%; /* Full width on mobile */
        max-width: 80%; /* Matches the .logo-section width */
        margin: 0 auto;
        margin-top: 10%;
    }

    .mypelajar-logo, .helocore-logo {
        width: 80%; /* Make logos smaller for mobile */
        max-width: 100%;
    }

    .description {
        font-size: 1.8rem; /* Smaller text on mobile */
        line-height: 1.3;
    }

    .primary-functions {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
        gap: 15px;
    }

    .box-function {
        width: 100%; /* Make each function box full-width */
        margin-bottom: 15px;
    }

    .btn-learn-more {
        font-size: 1.2rem; /* Smaller button text */
        padding: 8px 16px;
    }
}

/* Further mobile responsiveness for screens <= 480px */
@media (max-width: 480px) {
    .logo-section, .helocore-container {
        max-width: 100%; /* Full-width container on very small screens */
        margin-top: 10%;
        
    }

    .mypelajar-logo, .helocore-logo {
        width: 100%; /* Full-width logos */
    }

    .description {
        font-size: 1.6rem; /* Even smaller font size */
    }

    .primary-functions {
        grid-template-columns: 1fr; /* Stack the function items vertically */
    }

    .btn-learn-more {
        width: 100%; /* Make button full-width */
        text-align: center;
    }
}
@media (max-width: 768px) {
    .helocore-container img {
      width: 100%; /* Increase width on smaller screens */
      max-width: none; /* Remove max-width constraint for mobile */
      height: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .helocore-container img {
      width: 100%; /* Further increase width on very small screens */
      height: 100%;
    }
  }

  .info-container {
    width: 65%;
    margin: auto auto 5rem auto;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    padding: 10px;
    border-radius: 10px;
    background: white;
    margin-top: 3%;
    align-items: center;
  }
  
  .info-container h2{
    color: #ff7542;
  }
  .info-container h2,
  .info-container h3 {
    width: 100%; /* Ensure headings take full width */
    text-align: center;
  }
  
  .info-item {
    width: 100%; /* Full width by default, adjusts on smaller screens */
    margin-bottom: 1rem;
  }
  
  .info-item h4 {
    font-size: 1.7rem;
    font-weight: bold;
  }
  
  .info-item p {
    font-size: 1.4rem;
    color: #555;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .info-container {
      width: 90%;
    }
  
    .info-item {
      width: 100%; /* Full width for each item on small screens */
    }
  
    .info-item h4 {
      font-size: 1.3rem;
    }
  
    .info-item p {
      font-size: 1rem;
    }
  }
  