
/* === Responsive Nav === */
@media (max-width: 992px) {
  .navbar {
    padding: 0 20px;
    height: 80px;
  }

  .navbar .logo img {
    height: 120px;
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(239, 235, 243, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    transition: right 0.3s ease;
    padding: 100px 30px 0;
    z-index: 1000;
  }
  .nav-links.show {
    right: 0;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 10px 0;
    display: block;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar .logo img {
    height: 100px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0 15px;
  }

  .navbar .logo img {
    height: 80px;
  }
}

.courses-section {
  /* padding: 40px 20px; */
  padding: 80px 15px 60px;
  max-width: 1200px;
  margin: auto;
}

/* ... continue with all your other existing styles ... */
.courses-section h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.course-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #e6d4f8;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
}

.course-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-content h2 {
    font-size: 1.6rem;
    color: #4b0082;
    margin-bottom: 10px;
}

.course-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.course-content button {
    align-self: flex-start;
    background-color: #b67ff9;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.course-content button:hover {
    background-color: #a052e0;
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #6a1b9a;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: #6a1b9a;
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #a16bc2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #7e4caa;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

/* Animation Styles */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .fade-in-section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Footer - Updated to match first version */
footer {
  background-color: transparent;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap; /* Prevent wrapping */
  margin-top: 15px;
  overflow-x: auto;   /* Allow horizontal scroll if needed */
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.footer-contact h3 {
    font-size: 1.3rem;
    margin: 30px;
    font-weight: 700;
}

.footer-contact p {
    font-size: 1rem;
    margin: 10px 0;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ddd;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #ddd;
}