
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.jbh-subdropdown {
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(223, 231, 230) rgba(57, 207, 202, 0.1);
}

/* Corner Ribbon */
.price-tag-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff5c5c;
  color: white;
  padding: 8px 15px;
  font-weight: bold;
  font-size: 16px;
  z-index: 1;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-tag-ribbon .original-price {
  text-decoration: line-through;
  font-size: 14px;
  color: #ffeeee;
  margin-bottom: 2px;
}

.price-tag-ribbon .discount-price {
  font-weight: bold;
}

.price-tag-ribbon .discount-badge {
  position: absolute;
  top: -22px;
  right: 0;
  background-color: #ff3800;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  min-width: 80px;
  animation: pulse 1.5s infinite;
}

.price-tag-ribbon::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  border-top: 10px solid #d44747;
  border-left: 10px solid transparent;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes priceGlow {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Typography */
h1 {
  padding-top: 6vw;
  text-align: center;
  margin: 30px 0;
  color: #333;
  font-size: 32px;
}

.subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  font-size: 18px;
}

/* Navigation Menu */
.tab-navigation {
  display: flex;
  justify-content: center;
  background-color: #e6f2ff;
  border-radius: 10px;
  padding: 10px 20px;
  margin-bottom: 30px;
  gap: 50px;
  margin-top: 8vw;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  color: #39cfca;
  font-weight: 500;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.tab-button.active {
  background-color: #39cfca;
  color: white;
}

/* Course Cards */
.courses-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 4vw;
}

.course-card {
  width: 350px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.card-image {
  height: 245px;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

/* Level Badges */
.card-level {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
  margin-bottom: 15px;
  margin-right: 8px;
}

.level-all {
  background-color: #e6fff5;
  color: #39cfca;
}

.level-beginner {
  background-color: #fff0e6;
  color: #ff9d5c;
}

.level-intermediate {
  background-color: #e6f0ff;
  color: #5c9aff;
}

.level-offline {
  background-color: #e6e6ff;
  color: #7c7cff;
}

/* Card Text */
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.3;
}

.card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.card-details {
  margin-bottom: 15px;
}

.card-details ul {
  list-style: none;
  padding-left: 5px;
}

.card-details li {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

.card-details li:before {
  content: "•";
  color: #39cfca;
  position: absolute;
  left: 0;
}

/* Price Styling */
.price-highlight {
  font-size: 18px;
  background: linear-gradient(90deg, #ff5c5c, #ff9d5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  animation: priceGlow 2s infinite alternate;
}

/* Buttons */
.button-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.course-details-btn, .enroll-btn {
  flex: 1;
  padding: 10px 15px;
  text-align: center;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
  text-decoration: none;
  font-size: 14px;
}

.course-details-btn {
  background-color: #39cfca;
  color: white;
}

.course-details-btn:hover {
  background-color: #2fb6b0;
}

.enroll-btn {
  background-color: #4a7eff;
  color: white;
}

.enroll-btn:hover {
  background-color: #3a6ae0;
}

/* Media Queries */
/* Large Tablets (1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 28px;
    padding-top: 8vw;
  }
  
  .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .tab-navigation {
    gap: 30px;
    padding: 8px 15px;
  }
  
  .course-card {
    width: 300px;
  }
  
  .card-image {
    height: 220px;
  }
}

/* Small Tablets (768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
    padding-top: 10vw;
    margin: 20px 0;
  }
  
  .subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .tab-navigation {
    gap: 15px;
    flex-wrap: wrap;
    margin: 15vw 15px 20px;
  padding: 8px 15px;
  }
  
  .tab-button {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .courses-container {
    gap: 20px;
    padding: 0 15px;
  }
  
  .course-card {
    width: 45%;
    min-width: 280px;
  }
  
  .card-image {
    height: 180px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .card-description, .card-details li {
    font-size: 13px;
  }
}

/* Mobile Phones (480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 22px;
    padding-top: 15vw;
  }
  
  .subtitle {
    font-size: 14px;
    padding: 0 15px;
  }
  
  .tab-navigation {
    gap: 10px;
    padding: 5px 10px;
    margin: 25vw 10px 20px;
  }
  
  .tab-button {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .courses-container {
    gap: 15px;
  }
  
  .course-card {
    width: 100%;
    max-width: none;
  }
  
  .card-image {
    height: 200px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .course-details-btn, .enroll-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .price-tag-ribbon {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .price-tag-ribbon .original-price {
    font-size: 12px;
  }
}

/* Small Mobile Phones (320px) */
@media (max-width: 320px) {
  .tab-navigation {
    flex-direction: column;
    gap: 8px;
  }
  
  .tab-button {
    width: 100%;
    text-align: center;
  }
  
  .card-image {
    height: 170px;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .card-level {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .button-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .course-details-btn, .enroll-btn {
    width: 100%;
  }
}
