@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

* {
    font-family: "Ubuntu", sans-serif;
    text-transform: none;
}


.course-section {
    padding: 70px 20px 60px;
    background-color: #ffffff;
    
  }
  
  .course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .course-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s;
  }
  
  .course-card:hover {
    transform: translateY(-5px);
  }
  
  .course-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  
  .course-content {
    padding: 20px;
  }
  
  .course-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .course-content .author {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
  }
  
  .course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4caf50;
    font-weight: 500;
  }


  
.featured-courses {
    padding: 130px 20px;
    text-align: center;
    background-color: #ffffff;
    padding-bottom: 1rem; /* Reduce this value to lessen space */
    margin-bottom: -3rem;
  }

.section-header small {
    color: #666;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #693B69;
    margin: 10px 0;
  }
  
  .section-header .description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  



  .project-cta {
    background: linear-gradient(135deg, #693B69, #af7caf);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    max-width: 1000px;
    margin: 60px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .cta-text h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  .cta-text p {
    margin: 10px 0 0;
    max-width: 600px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e6f0ff;
  }
  
  .cta-button .btn-outline {
    padding: 10px 22px;
    background: white;
    color: #693B69;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .cta-button .btn-outline:hover {
    background-color: #e4c8f5;
  }


/* -------------------------------------------
   Container & Typography
-------------------------------------------- */
.wrapper {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ECD4EA;
  padding: 40px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container h1 {
  font-size: 32px;
  color: #562b63;
  margin-bottom: 20px;
}

/* -------------------------------------------
   Grid and Card Styling
-------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: #f9fbfc;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: start;
  gap: 15px;
}

.icon {
  font-size: 26px;
  margin-top: 5px;
}

.text h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #38243e;
}

.text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #444;
}

.info-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f2e6fb;
  border: 2px solid #38243e;
  color: #562b63;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* -------------------------------------------
   Popup Section
-------------------------------------------- */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: white;
  border-radius: 12px;
  padding: 20px 30px;
  max-width: 500px;
  color: #003f5c;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.popup-content .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}
