.container {
    width: 100%;
    margin: auto;
    text-align: center;
    margin-bottom: 30px;
}

.course {
    display: inline-block;
    width: 100%;
    max-width: 350px; /* Ensures it doesn't become too large */
    background: white;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.course:hover {
    transform: scale(1.05);
}

/* Responsive course image */
.course img {
    width: 100%; /* Ensures it takes full width of parent */
    max-width: 100%; /* Prevents overflow */
    height: auto; /* Keeps aspect ratio */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Buttons */
.course button, .course a button {
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.details-btn {
    background: #1d2951;
    color: white;
}

.details-btn:hover {
    background: #0056b3;
}

.link-btn {
    background: #1d2951;
    color: white;
}

.link-btn:hover {
    background: #0056b3;
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 90%; /* Makes it responsive on mobile */
    max-width: 500px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
}

.popup-content {
    text-align: left;
}

.close {
    float: right;
    font-size: 18px;
    cursor: pointer;
    color: red;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .course {
        width: 90%; /* Makes it fit smaller screens */
        margin: 10px auto; /* Centers it */
    }
}
.backgroundOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Popup Styling */
.popupContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    border-radius: 10px;
    z-index: 1000;
    animation: fadeInEffect 0.5s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeInEffect {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.popupContainer img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Close Button */
.dismissButton {
    background: red;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}



  .consultX-form {
      background: #ffffff;
      padding: 40px;
      border-radius: 12px;
      max-width: 600px;
      width: 100%;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .consultX-form h2 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 26px;
      color: #2c3e50;
    }

    .consultX-group {
      margin-bottom: 20px;
    }

    .consultX-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #2f4f4f;
    }

    .consultX-group input,
    .consultX-group textarea {
      width: 100%;
      padding: 12px 15px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 16px;
      background: #f9f9f9;
      transition: border 0.3s;
    }

    .consultX-group input:focus,
    .consultX-group textarea:focus {
      border-color: #007bff;
      outline: none;
      background: #fff;
    }

    .consultX-group textarea {
      resize: vertical;
      min-height: 100px;
    }

    .consultX-button {
      background-color: #007bff;
      color: white;
      border: none;
      padding: 14px 20px;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      width: 100%;
      transition: background-color 0.3s ease;
    }

    .consultX-button:hover {
      background-color: #0056b3;
    }

    @media (max-width: 600px) {
      .consultX-form {
        padding: 25px;
      }

      .consultX-form h2 {
        font-size: 22px;
      }
    }