/* ===================================
   Course Haircut Page Styles
   Modern & User-Friendly Design
   =================================== */

/* Main Container */
.course-haircut-container {
  min-height: 100vh;
  padding: 0 20px 60px 20px;
  background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
  direction: rtl;
  font-family: "Emkan", sans-serif;
}

/* ===================================
   Hero Section
   =================================== */

.course-hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 450px;
  margin: 140px auto 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background-image: url("/assets/img/IMG_1014.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.85) 0%,
    rgba(118, 75, 162, 0.85) 100%
  ); */
  z-index: 1;
}

.course-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  max-width: 800px;
}

.course-hero__badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.course-hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.4;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.course-hero__description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin: 0;
}

/* ===================================
   Course Info Cards Section
   =================================== */

.course-info-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: -60px auto 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.course-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.course-info-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-info-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c0d14 0%, #0f0d12 100%);
  border-radius: 16px;
  flex-shrink: 0;
}

.course-info-card__icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.course-info-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-info-card__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.course-info-card__value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* ===================================
   Video Section
   =================================== */

.course-video-section {
  max-width: 1400px;
  margin: 80px auto 0 auto;
}

.course-video-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 32px 0;
  position: relative;
}

.course-video-section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  margin: 16px auto 0 auto;
}

.course-video-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  background: #000;
}

.course-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

/* Custom Video Controls Styling */
.course-video::-webkit-media-controls-panel {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ===================================
   Purchase Section
   =================================== */

.course-purchase-section {
  max-width: 500px;
  margin: 80px auto 0 auto;
}

.course-purchase-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.course-purchase-card:hover {
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
}

.course-purchase-card__price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.course-purchase-card__price-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.course-purchase-card__price {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-purchase-card__currency {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.course-purchase-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-purchase-card__features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.course-purchase-card__features li svg {
  width: 20px;
  height: 20px;
  color: #667eea;
  flex-shrink: 0;
}

.course-purchase-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: "Emkan", sans-serif;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.course-purchase-card__button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.course-purchase-card__button svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg); /* For RTL */
  transition: transform 0.3s ease;
}

.course-purchase-card__button:hover svg {
  transform: rotate(180deg) translateX(-4px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
  .course-info-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .course-hero {
    height: 400px;
    margin-top: 120px;
    border-radius: 24px;
  }

  .course-hero__title {
    font-size: 2.2rem;
  }

  .course-hero__description {
    font-size: 1.1rem;
  }

  .course-info-section {
    margin-top: -40px;
    gap: 16px;
  }

  .course-info-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .course-haircut-container {
    padding: 0 15px 40px 15px;
  }

  .course-hero {
    height: 350px;
    border-radius: 20px;
  }

  .course-hero__content {
    padding: 24px;
  }

  .course-hero__title {
    font-size: 1.8rem;
  }

  .course-hero__description {
    font-size: 1rem;
  }

  .course-info-section {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
  }

  .course-info-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .course-info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .course-info-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .course-info-card__value {
    font-size: 16px;
  }

  .course-video-section {
    margin-top: 60px;
  }

  .course-video-section__title {
    font-size: 1.5rem;
  }

  .course-video-wrapper {
    border-radius: 16px;
  }

  .course-purchase-section {
    margin-top: 60px;
  }

  .course-purchase-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .course-purchase-card__price {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .course-hero {
    height: 300px;
    margin-top: 100px;
    border-radius: 16px;
  }

  .course-hero__badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .course-hero__title {
    font-size: 1.4rem;
  }

  .course-hero__description {
    font-size: 0.9rem;
  }

  .course-info-section {
    grid-template-columns: 1fr;
    margin-top: -30px;
  }

  .course-info-card {
    flex-direction: row;
    text-align: right;
  }

  .course-purchase-card__button {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-hero {
  animation: fadeInUp 0.8s ease forwards;
}

.course-info-card {
  animation: fadeInUp 0.6s ease forwards;
}

.course-info-card:nth-child(1) {
  animation-delay: 0.1s;
}
.course-info-card:nth-child(2) {
  animation-delay: 0.2s;
}
.course-info-card:nth-child(3) {
  animation-delay: 0.3s;
}
.course-info-card:nth-child(4) {
  animation-delay: 0.4s;
}

.course-video-section {
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.course-purchase-card {
  animation: fadeInUp 0.8s ease 0.5s forwards;
  opacity: 0;
}
