body {

  font-family: 'Outfit', sans-serif;
}


/* ✅ Main Section Wrapper */
.popular-courses-section {
  padding: 20px;
  background: #ffffff;
  text-align: center;
   font-family: 'Outfit', sans-serif;
}

/* ✅ Titles */
.section-title {
  color: #1A2C53;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}
 .highlight-text {
   
    color: #f8b615;
  }

@media (max-width: 575px) {
  .responsive-heading {
    margin-top: 0;
    font-size: 28px !important;
    text-align: center;
    position: relative;
    top: 20px;
  }
   .highlight-text {
    font-size: 28px;
    color: #f8b615;
  }
}


.section-subtitle {
  color: #444;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ✅ Grid Layout */
.course-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* ✅ Course Card */
.custom-course-card {
  width: 380px;
  border-radius: 16px;
  background: #fff;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ✅ Card Inner Styling */
.card-inner {
  display: flex;
  flex-direction: column;
  border: 5px solid #f4b400;
  border-radius: 16px;
  background: #fff;
  height: auto;
}

/* ✅ Top Badge */
.card-top-right {
  position: absolute;
  top: 0;
  right: 0;
  background: #1A2C53;
  width: 81px;
  height: 75px;
  border-bottom-left-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 6px;
  font-family: 'Outfit', sans-serif;
}

.badge-logo {
  width: 49px;
  height: auto;
  object-fit: contain;
}

/* ✅ Image Area */
.card-image-area {
  height: 300px;
  overflow: hidden;
  padding: 0 16px;
  margin-top: 16px;
}

.card-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ✅ Title */
.card-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 14px 20px 6px;
  color: #1A2C53;
  letter-spacing: 0.8px;
  line-height: 1.4;
  position: relative;
}

.card-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #f4c10f;
  margin-top: 6px;
  border-radius: 2px;
}

/* ✅ Description */
.card-description {
  font-size: 16px;
  margin: 0 20px 14px;
  color: #F4C10F;
  line-height: 1.8;
  font-weight: 500;
  background: rgba(244, 193, 15, 0.1);
  padding: 10px 14px;
  border-left: 4px solid #F4C10F;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-description:hover {
  background: rgba(244, 193, 15, 0.2);
  transform: translateY(-2px);
}

/* ✅ Bottom Section */
.card-bottom {
  position: relative; /* ✅ Needed for positioning popup */
  background: #152b5a;
  color: #fff;
  padding: 20px 18px;
  border-top-right-radius: 50px;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.card-bottom li {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 13.5px;
  display: block;
  text-align: center;
}

/* ✅ Book Now Button */
.book-btn {
  display: inline-block;
  margin-bottom: 25px;
  background-color: #FAC535;
  color: #ffffff;
  padding: 12px 100px;
  font-weight: 600;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.book-btn i {
  margin-right: 8px;
}

.book-btn:hover {
  background-color: #e7ab04;
  color: #0b182c;
  transform: translateY(-2px);
}

.card-popup {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 12px;
  background: #ffffff;
  color: #1A2C53;
  border: 2px solid #f4c10f;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: none;
  animation: popupSlide 0.4s ease forwards;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
}

.popup-content {
  position: relative;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* Animation */
@keyframes popupSlide {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.read-more-btn {
  background: #f4c10f;
  color: #1a2c53;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
  margin-top: 12px;
  transition: 0.3s ease-in-out;
  border: 2px solid #f4c10f;
}

.read-more-btn:hover {
  background: #ffffff;
  color: #1a2c53;
}

/* ✅ Popup Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ Responsive Layouts */
@media (max-width: 1199px) {
  .custom-course-card {
    width: 320px;
  }

  .card-image-area {
    height: 260px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-description {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .course-card-grid {
    flex-direction: column;
    align-items: center;
  }

  .custom-course-card {
    width: 100%;
    max-width: 400px;
  }

  .card-image-area {
    height: 220px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 14.5px;
    margin: 0 14px 10px;
  }

  .book-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .card-bottom {
    padding: 18px 14px;
  }

  .card-bottom li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-description {
    font-size: 14px;
  }

  .book-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}
.popup-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  background: rgba(244, 193, 15, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  color: #152b5a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(6px);
  z-index: 999;
}

.popup-close:hover {
  background: #152b5a;
  color: #fff;
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 15px rgba(244, 193, 15, 0.6);
}


/* ✅ Desktop Default — 4 Cards in Row (already handled by .flex-wrap + gap) */
/* ✅ Add Flex Responsive Breakpoints Below */

/* ✅ Tablets (2 in a row) */
@media (max-width: 991px) {
  .course-card-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .custom-course-card {
    width: calc(50% - 24px); /* 2 in row */
  }

  .card-image-area {
      height: 180px; 
  }
}

/* ✅ Mobile (1 in a row) */
@media (max-width: 576px) {
  .course-card-grid {
    flex-direction: column;
    align-items: center;
  }

  .custom-course-card {
    width: 100%;
    max-width: 400px;
     margin-top: 0 ;
  }

  .card-image-area {
    height: 220px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 14.5px;
    margin: 0 14px 10px;
  }

  .book-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .card-bottom {
    padding: 18px 14px;
  }

  .card-bottom li {
    font-size: 13px;
  }
  /* ✅ Book Now Button */
.book-btn {
  display: inline-block;
  margin-bottom: 25px;
  background-color: #FAC535;
  color: #ffffff;
  padding: 12px 85px;
  font-weight: 600;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.book-btn i {
  margin-right: 8px;
}

.book-btn:hover {
  background-color: #e7ab04;
  color: #0b182c;
  transform: translateY(-2px);
}
}
/* ipad  */


@media (min-width: 820px) and (max-width: 1024px) {
  .custom-course-card {
    width: calc(47% - 24px);
  }

  .card-image-area {
    height: 200px;
  }

  .card-description {
    font-size: 15px;
  }
}
@media (min-width: 1440px) {
  .course-card-grid {
    max-width: 1320px;
    margin: 0 auto;
  }

  .section-title {
    margin-bottom: 4px; /* reduce space below heading */
    font-size: 32px;     /* optional size tweak */
  }

  .section-subtitle {
    margin-top: 0;
    margin-bottom: 25px; /* reduce vertical gap */
    font-size: 16px;
    line-height: 1.5;
  }
}


