/* ================= GLOBAL FIX ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
/* ================= SEARCH BAR ================= */
/* ================= SEARCH CONTAINER ================= */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
}

/* INPUT */
#searchInput {
  width: 350px;
  max-width: 90%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 15px;
  transition: 0.3s;
  background: #fff;
}

#searchInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59,130,246,0.2);
}

/* BUTTON */
.search-btn {
  padding: 12px 18px;
  border: none;
  background: #3b82f6;
  color: white;
  font-weight: bold;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* NO RESULT TEXT */
#noResult {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  color: #666;
  display: none;
}
/* ================= SEARCH BOX CENTER ================= */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto;
}

/* ================= INPUT FIELD ================= */
#searchInput {
  width: 350px;
  max-width: 90%;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 30px 0 0 30px;
  outline: none;

  font-size: 16px;
  color: #111827;              /* ✅ DARK TEXT (VISIBLE) */
  background: #ffffff;         /* ✅ CLEAN WHITE BG */

  transition: 0.3s;
}

/* placeholder text */
#searchInput::placeholder {
  color: #9ca3af;              /* light grey */
}

/* focus effect */
#searchInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59,130,246,0.25);
}

/* ================= BUTTON ================= */
.search-btn {
  padding: 12px 18px;
  border: none;
  background: #3b82f6;
  color: white;
  font-weight: bold;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* ================= NO RESULT ================= */
#noResult {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  color: #6b7280;
  display: none;
}
/* HOVER EFFECT */
#searchInput:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
  #searchInput {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* COURSE HIDE ANIMATION */
.course-card {
  transition: all 0.3s ease;
}
/* ================= COURSE CARD ================= */
.course-card {
  width:100%;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.2);
}

/* ================= COURSE IMAGE ================= */
.course-img {
  width:100%;
  height:200px;
  object-fit:cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-img {
  transform: scale(1.08);
}

/* ================= FOOTER ================= */
footer {
  width:100%;
  padding:30px 15px;
}

/* links */
footer a {
  transition: 0.3s;
  display: inline-block;
}

footer a:hover {
  color: #facc15;
  transform: translateX(5px);
}

/* social hover */
footer .flex a:hover {
  transform: scale(1.2) rotate(5deg);
}

/* text */
footer p{
  line-height: 1.6;
  word-spacing:1px;
}

footer div p{
  text-align:left;
}

/* FIX TEXT OVERFLOW */
#footerText{
  text-align:center;
  white-space:normal;        /* FIXED */
  word-break:break-word;     /* IMPORTANT */
}

/* ================= ANIMATION ================= */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

/* Small Mobile (≤480px) */
@media (max-width:480px){

  .course-img {
    height:150px;
  }

  .course-card {
    border-radius:10px;
  }

  footer {
    padding:20px 10px;
  }

  footer div {
    text-align:center;
  }

  footer div p{
    text-align:center;
  }
}

/* Mobile (≤640px) */
@media (max-width:640px){

  .course-img {
    height:170px;
  }

}

/* Tablet (≤768px) */
@media (max-width:768px){

  .course-img {
    height:180px;
  }

  .course-card:hover {
    transform: translateY(-4px);
  }

}

/* Small Laptop (≤1024px) */
@media (max-width:1024px){

  .course-img {
    height:190px;
  }

}

/* Large Screens (>1024px) */
@media (min-width:1025px){

  .course-img {
    height:220px;
  }

  .course-card {
    max-width:100%;
  }

}