/* ========================================
   COMPONENT STYLES
   ======================================== */

/* ========================================
   VIDEO POPUP STYLES
   ======================================== */
.video-container {
  position: relative;
  margin: 20px 0;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(234, 60, 18, 0.2);
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: translateY(-5px);
}

.video-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(234, 60, 18, 0.9);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: var(--orange);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  color: white;
  font-size: 24px;
  margin-left: 5px;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 30px 20px 20px;
}

.video-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.video-info p {
  margin: 0 0 10px 0;
  opacity: 0.9;
}

.video-duration {
  background: rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  position: absolute;
  top: 15px;
  right: 15px;
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  background: var(--white);
  border-radius: 15px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  overflow: hidden;
}

.video-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  width: 80vw;
  height: 45vw;
  max-width: 800px;
  max-height: 450px;
}

.video-details {
  padding: 20px;
}

/* ========================================
   TESTIMONIALS STYLES
   ======================================== */
.testimonials-section {
  padding: 60px 0;
  background: var(--romantic);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--orange);
  font-size: 2.5em;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(234, 60, 18, 0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.quote-icon {
  font-size: 3em;
  color: var(--orange);
  opacity: 0.3;
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  margin: 30px 0 20px 0;
  font-size: 1.1em;
  color: #333;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  margin: 0;
  color: var(--orange);
  font-size: 1.1em;
}

.author-role, .author-course {
  margin: 0;
  color: #666;
  font-size: 0.9em;
}

.rating {
  display: flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 1.2em;
}

.star.filled {
  color: #ffd700;
}

/* ========================================
   COURSES GRID STYLES
   ======================================== */
.courses-section {
  padding: 60px 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(234, 60, 18, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: var(--romantic);
  box-shadow: 0 15px 40px rgba(234, 60, 18, 0.2);
}

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.course-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--orange);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
}

.course-content {
  padding: 25px;
}

.course-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.course-category, .course-level {
  background: var(--romantic);
  color: var(--orange);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
}

.course-title {
  color: var(--orange);
  margin: 0 0 15px 0;
  font-size: 1.3em;
}

.course-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-stats {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #666;
}

.stat-icon {
  font-size: 1em;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.course-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
}

.current-price {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.2em;
}

.course-btn {
  padding: 10px 20px;
  font-size: 0.9em;
}

.courses-cta {
  text-align: center;
  margin-top: 50px;
}

/* ========================================
   RESPONSIVE DESIGN FOR COMPONENTS
   ======================================== */

/* Tablet and Mobile - Large */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.2em;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Tablet Portrait and Mobile Landscape */
@media (max-width: 768px) {
  .section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .course-btn {
    width: 100%;
    text-align: center;
  }

  .video-wrapper {
    width: 95vw;
    height: 53vw;
    max-height: 400px;
  }

  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .testimonial-card {
    padding: 25px 20px;
  }

  .course-card {
    margin-bottom: 15px;
  }

  .course-content {
    padding: 20px;
  }

  .course-stats {
    flex-direction: column;
    gap: 10px;
  }

  .course-meta {
    flex-wrap: wrap;
  }

  /* Video Thumbnail Mobile */
  .video-thumbnail img {
    height: 180px;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    font-size: 20px;
  }

  .video-info {
    padding: 25px 15px 15px;
  }

  .video-info h3 {
    font-size: 1.1em;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .testimonials-section {
    padding: 40px 0;
  }

  .courses-section {
    padding: 40px 0;
  }

  .testimonial-card {
    padding: 20px 15px;
  }

  .testimonial-text {
    font-size: 1em;
    margin: 20px 0 15px 0;
  }

  .quote-icon {
    font-size: 2.5em;
    top: 15px;
    left: 15px;
  }

  .author-info {
    gap: 10px;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
  }

  .author-name {
    font-size: 1em;
  }

  .author-role, .author-course {
    font-size: 0.8em;
  }

  .course-content {
    padding: 15px;
  }

  .course-title {
    font-size: 1.2em;
  }

  .course-description {
    font-size: 0.9em;
  }

  .course-stats {
    margin: 15px 0;
  }

  .stat-item {
    font-size: 0.8em;
  }

  .course-footer {
    margin-top: 20px;
    padding-top: 15px;
  }

  .current-price {
    font-size: 1.1em;
  }

  .video-wrapper {
    width: 95vw;
    height: 56vw;
    max-height: 280px;
  }

  .video-thumbnail img {
    height: 150px;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .play-icon {
    font-size: 18px;
  }

  .video-info {
    padding: 20px 12px 12px;
  }

  .video-info h3 {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .video-info p {
    font-size: 0.9em;
    margin-bottom: 8px;
  }

  .video-duration {
    font-size: 0.8em;
    top: 10px;
    right: 10px;
  }

  .video-close {
    width: 35px;
    height: 35px;
    font-size: 25px;
    top: 10px;
    right: 15px;
  }

  .video-details {
    padding: 15px;
  }

  .video-details h3 {
    font-size: 1.1em;
  }

  .video-details p {
    font-size: 0.9em;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .section-title {
    font-size: 1.6em;
  }

  .testimonial-card {
    padding: 15px 12px;
  }

  .course-content {
    padding: 12px;
  }

  .video-wrapper {
    width: 98vw;
    height: 58vw;
    max-height: 250px;
  }
}