/* course-page.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Tahoma, sans-serif;
  background-color: #f8f7fa;
  color: #333;
  line-height: 1.4;
}
.courses-wrapper{
    min-height: 70vh;
    padding-bottom: 1rem;
}

.banner {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  position: relative;
}

#bannerImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#searchInput {
  width: 100%;
  max-width: 350px;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  border-radius: 2rem;
  border: 1px solid #004aad;
  background-color: #121212;
  color: #f0f0f0;
}

.courses {
  display: grid;
  place-items: center;
  gap: 0.5rem;

}

.card-grid,.course-header-row {
  display: grid;
  grid-template-columns: 1fr 0.4fr 0.4fr 120px;
  column-gap: 0.5rem;
  padding: 0.8rem 2rem;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  background-color: #fff;
  justify-self: center;
  color: #1a1a1a;
  align-self: stretch;
  cursor: pointer;
  border-radius: 0.3rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);

}
.course-header-row {
  font-weight: 600;
  color: #14213d;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
}

 h3 {
  font-size: 0.825rem;
  font-weight: 600;
  color: #1a1a1a;
}

 h3:hover {
  text-decoration: underline;
}

 p {
  color: #333;
  font-weight: 500;
  padding-block: 0.3rem;
  font-size: 0.85em;
}
.course-cost,.course-register{
    padding-left: 0.4rem;
}

span {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  color: #6a5cff;
  font-weight: bold;
}

.cost {
  color: #8b33ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-reg {
  background-color: transparent;
  padding: 0.5rem;
  color: #10178e;
  border-radius: 3rem;
  border: 1px solid #1a1a7a;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.5s ease;
}

.btn-reg:hover {
  background-color: #1a1a7a;
  color: #fff;
}

.btn-reg:active {
  transform: scale(0.98);
}

.search {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.enroll-btn {
  display: inline-block;
  font-size: 0.795rem;
  color: #8b33ff;
  text-decoration: none;
  font-weight: bold;
}

.enroll-btn:hover {
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #262d7888;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 1.5rem 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: 0.6rem;
  position: relative;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.modal-content input,
.modal-content textarea {
  width: 95%;
  padding: 0.8rem;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.modal-content button {
  width: 95%;
  background-color: black;
  color: white;
  padding: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: red;
}
.list-area{
    padding: 1rem;
}
.tabs-container {
  overflow-x: auto;
   white-space: nowrap;
   scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.tabs {
  display: flex;
  gap: 2rem;
 
  justify-content: center;
  scrollbar-width: none;
  margin-bottom: 1rem;
  padding-inline: 1rem;
}

.tabs-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar on WebKit */
}

.category-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.4rem 2rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 1.9rem;
  background-color: #fff;
  transition: background 0.3s;
  font-weight: 700;
}

.category-tab.active {
  background: #6a5cff;
  color: #fff;
  border: none;
}

.category-tab:hover:not(.active) {
  background: #6a5cff;
  color: #fff;
}
@media (max-width: 768px) {
  
 
  #searchInput {
    width: 100%;
  }
  
}
@media (min-width: 1768px) {

  .card-grid,.course-header-row {

  max-width: 1400px;
 
}
}
@media (max-width: 500px) {
   .courses {
  padding: 1rem;
}
  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .list-area{
    padding: 0.2rem;
}
  .tabs {
    gap: 1rem;
    margin-bottom: 1.5rem;
}
   h3 {
  font-weight: 700;
}
  .tabs {
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}
  .course-header-row {
      display: none;
  }

  .courses {
    gap: 1rem;
  }
}
