/* General Section Style */
.courses {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white; /* White background for the section */
    padding: 50px 0;
    animation: fadeIn 1.5s ease-out;
  }
  
  /* Row style */
  .course-row {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    opacity: 0; /* Start as invisible */
    transform: translateY(50px); /* Start position off the screen */
    animation: slideInRow 0.5s ease-out forwards;
  }
  
  /* Card style */
  .course-card {
    background: lightblue; /* Light blue background for cards */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 350px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Initially hide cards */
    transform: translateX(-100%); /* Initially place cards off-screen to the left */
  }
  
  /* Hover effect */
  .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid royalblue;
    animation: popOut 0.3s forwards;
  }
  
  /* Glowing effect */
  .course-card:hover .course-icon {
    animation: glow 1s infinite alternate;
  }
  
  /* Icon style */
  .course-icon {
    font-size: 50px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
  }
  
  /* Course name style */
  .course-name {
    font-size: 18px;
    font-weight: bold;
    color: black;
  }
  
  /* Glow animation */
  @keyframes glow {
    0% {
      box-shadow: 0 0 10px royalblue;
    }
    100% {
      box-shadow: 0 0 20px royalblue;
    }
  }
  
  /* Popout animation */
  @keyframes popOut {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.05);
    }
  }
  
  /* Animation for each row (appear when scrolled into view) */
  @keyframes slideInRow {
    0% {
      opacity: 0;
      transform: translateY(50px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Floating effect for cards (from left to right) */
  @keyframes floatIn {
    0% {
      transform: translateX(-100%); /* Cards start off-screen */
      opacity: 0;
    }
    100% {
      transform: translateX(0); /* Cards move into their normal position */
      opacity: 1; /* Cards become visible */
    }
  }
  
  /* Sequential animation for cards in the row */
  .course-row .course-card:nth-child(1) {
    animation: floatIn 0.5s forwards;
    animation-delay: 0.2s;
  }
  .course-row .course-card:nth-child(2) {
    animation: floatIn 0.5s forwards;
    animation-delay: 0.4s;
  }
  .course-row .course-card:nth-child(3) {
    animation: floatIn 0.5s forwards;
    animation-delay: 0.6s;
  }
  
  /* Animation to fade in section */
  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  /* Responsive styles */
  @media (max-width: 1200px) {
    .course-row {
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .course-card {
      width: 200px;
      height: 300px;
    }
  }
  
  @media (max-width: 768px) {
    .course-card {
      width: 180px;
      height: 270px;
    }
  }
  
  @media (max-width: 480px) {
    .course-card {
      width: 150px;
      height: 220px;
    }
  }
  
  /* Large screen handling (ensures only 3 cards per row) */
  @media (min-width: 1201px) {
    .course-row {
      display: flex;
      justify-content: space-between;
    }
  }
.crse {
    width: 100%;
    text-align: center;
    color: black;
    height: 200px; /* Fixed height for larger screens */
    box-sizing: border-box; /* Ensure padding is included in height calculation */
}

/* Heading styles for the .mot section */
.crse h1 {
    padding: 30px 10px;
    font-size: 40px;
    padding-top: 62px; /* Space above the heading */
}

/* Media Query for devices less than 768px (Tablet and Mobile) */
@media (max-width: 768px) {
    .crse {
        height: auto; /* Allow the height to adjust based on content */
        padding: 20px; /* Add padding to adjust for smaller screens */
    }

    .crse h1 {
        font-size: 30px; /* Reduce font size for smaller screens */
        padding-top: 40px; /* Adjust padding for better spacing */
    }
}
  