
/* ===== COURSE DETAIL PAGE STYLES ===== */

.course-hero {
  position: relative;
  overflow: hidden;
  padding: 65px 0 80px;
  background: linear-gradient(135deg, #0f62fe 0%, #1a58c7 50%, #1b9a63 100%);
  color: #fff;
  z-index: 1;
}

.course-hero-orbit {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 55%);
  opacity: 0.4;
}

.course-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.course-hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: #ffc107;
  font-weight: 700;
  margin-bottom: 12px;
}

.course-hero-text .eyebrow i {
  font-size: 14px;
}

.course-hero-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 800;
}

.course-hero-text .lead {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.95;
}

.course-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-section .rating-stars {
  display: flex;
  gap: 4px;
}

.rating-section .rating-stars i {
  color: #ffc107;
  font-size: 16px;
}

.rating-section .rating-value {
  font-weight: 700;
  font-size: 18px;
}

.rating-section .rating-count {
  font-size: 14px;
  opacity: 0.8;
}

.course-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.course-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-hero-visual img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.course-hero-visual .visual-card {
  width: 100%;
  max-width: 600px;
}

/* Course Overview Section */
.course-overview {
  padding: 60px 0;
  background: #f9fbff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.overview-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 98, 254, 0.15);
}

.overview-card i {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.overview-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.overview-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Course Content Section */
.course-content {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.content-main h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.learning-outcomes {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.learning-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.learning-outcomes li:last-child {
  border-bottom: none;
}

.learning-outcomes i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.module:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 16px rgba(15, 98, 254, 0.1);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.module-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.module-header h3 i {
  color: var(--primary);
}

.module-lessons {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.module p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Sidebar */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: fit-content;
}

.sidebar-card {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

/* Course Includes List - UX Optimizada */
.course-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-includes li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.course-includes li i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}

.info-list,
.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li,
.requirements-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.info-list li:last-child,
.requirements-list li:last-child {
  border-bottom: none;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.requirements-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0;
  border-bottom: none;
}

.requirements-list i {
  color: #555;
  font-size: 6px;
  margin-top: 7px;
  flex-shrink: 0;
}

.cta-card {
  background: linear-gradient(135deg, #0f62fe 0%, #1a58c7 100%);
  color: white;
  border: none;
}

.cta-card h2 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: white;
}

.cta-card p {
  font-size: 14px;
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.cta-card .btn {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .course-hero-content {
    grid-template-columns: 1fr;
  }

  .course-hero-text h1 {
    font-size: 28px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .course-hero-actions {
    flex-direction: column;
  }

  .course-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .course-overview {
    padding: 40px 0;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-content {
    padding: 40px 0;
  }

  .content-main h2 {
    font-size: 22px;
  }

  .module-header {
    flex-direction: column;
    gap: 8px;
  }

  .module-lessons {
    width: 100%;
    justify-content: center;
  }
}

/* ===== NEW COURSE ELEMENTS STYLES ===== */

/* Meta info in hero section */
.course-hero-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.meta-item i {
  font-size: 16px;
  opacity: 0.9;
}

.meta-item strong {
  font-weight: 600;
}

/* Course tags */
.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: transparent;
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #1a1a1a;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #1a1a1a;
  color: #fff;
}

/* Section blocks */
.section-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.section-block:last-child {
  border-bottom: none;
}

.section-block h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
  font-weight: 700;
}

.section-block p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Accordion styles */
.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item.open {
  border-color: #d0d0d0;
}

.accordion-header {
  width: 100%;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 15px;
}

.accordion-header:hover {
  background: #f5f5f5;
}

.accordion-item.open .accordion-header {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1;
}

.accordion-title i {
  color: #0f62fe;
  font-size: 16px;
}

.accordion-title span {
  font-weight: 600;
  color: #2d2d3f;
}

.accordion-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.module-duration,
.module-count {
  white-space: nowrap;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

.accordion-icon {
  font-size: 14px;
  color: #999;
  transition: transform 0.1s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
}

.accordion-item.open .accordion-content {
  display: block;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: #fff;
  gap: 0;
}

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item > i {
  color: #555;
  flex-shrink: 0;
  font-size: 14px;
}

.lesson-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lesson-info h4 {
  font-size: 14px;
  color: #5c5d6f;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

.lesson-duration {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* Instructor card */
.instructor-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-top: 16px;
}

.instructor-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd;
  flex-shrink: 0;
}

.instructor-info {
  flex: 1;
}

.instructor-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #1a1a1a;
}

.instructor-role {
  color: #555;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 16px;
}

.instructor-bio {
  color: #444;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 20px;
}

.instructor-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.instructor-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.instructor-stats .stat i {
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.instructor-stats .stat span {
  font-size: 14px;
  color: #333;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #0f62fe;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Reviews section */
.reviews-summary {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 20px 0;
}

.rating-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e0e0e0;
  padding-right: 48px;
}

.rating-number {
  font-size: 40px;
  font-weight: 700;
  color: #0f62fe;
}

.rating-stars-big {
  color: #ffc107;
  font-size: 18px;
  margin: 8px 0;
  letter-spacing: 2px;
}

.rating-count-big {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 80px 200px 40px;
  gap: 12px;
  align-items: center;
}

.rating-label {
  font-size: 13px;
  color: #666;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f62fe, #1a58c7);
  transition: width 0.3s ease;
}

.rating-percent {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
}

/* Reviews list */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.review-card {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.review-card:hover {
  border-color: #d0d0d0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1a1a1a;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.review-user h4 {
  font-size: 14px;
  margin: 0;
  color: #1a1a1a;
  font-weight: 600;
}

.review-rating-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.review-date {
  font-size: 12px;
  color: #0f62fe;
  font-weight: 500;
}

.review-rating {
  color: #ff9800;
  font-size: 12px;
  letter-spacing: 0;
}

.review-rating i {
  margin-right: 1px;
}

.review-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #666;
  font-size: 16px;
}

.review-menu:hover {
  color: #1a1a1a;
}

.review-text {
  color: #1a1a1a;
  line-height: 1.6;
  margin: 12px 0;
  font-size: 14px;
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #666;
}

.helpful-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  font-size: 16px;
  transition: color 0.2s ease;
}

.helpful-btn:hover {
  color: #0f62fe;
}

/* Pricing card */
.pricing-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
}

.price-section {
  padding: 24px 24px 20px;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
}

.price-currency {
  font-size: 28px;
  color: #1a1a1a;
  font-weight: 700;
}

.price-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
}

.discount-text {
  font-size: 15px;
  color: #e74c3c;
  font-weight: 500;
  margin-bottom: 12px;
}

.discount-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.discount-timer i {
  font-size: 14px;
  color: #999;
}

.discount-timer .days {
  color: #e74c3c;
  font-weight: 700;
}

.purchase-actions {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-actions .btn {
  font-weight: 600;
  padding: 16px 20px;
  border-radius: var(--btn-radius, 8px);
  cursor: pointer;
  transition: var(--btn-transition, all 0.25s ease);
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  display: block;
  border: 2px solid transparent;
}

.purchase-actions .btn.primary {
  background: var(--btn-blue-bg, #1c6bff);
  color: var(--btn-blue-text, #fff);
  border-color: var(--btn-blue-border, #1c6bff);
}

.purchase-actions .btn.primary:hover {
  background: var(--btn-blue-hover-bg, #0b4fd6);
  border-color: var(--btn-blue-hover-border, #0b4fd6);
}

.purchase-actions .btn.secondary {
  background: var(--btn-ghost-bg, #fff);
  color: var(--btn-ghost-text, #1c6bff);
  border-color: var(--btn-ghost-border, #c7d8f4);
}

.purchase-actions .btn.secondary:hover {
  background: var(--btn-ghost-hover-bg, #eef4ff);
  color: var(--btn-ghost-hover-text, #0b4fd6);
  border-color: var(--btn-ghost-hover-border, #1c6bff);
}

.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
}

.guarantee i {
  display: none;
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #666;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 14px;
  border: none;
}

.share-btn:hover {
  background-color: #0f62fe;
  color: #fff;
}

/* Responsive for instructor card */
@media (max-width: 768px) {
  .reviews-list {
    grid-template-columns: 1fr;
  }

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

  .instructor-image {
    width: 100%;
    height: 200px;
  }

  .instructor-stats {
    justify-content: space-around;
    gap: 16px;
  }

  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rating-big {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 16px;
  }

  .rating-bar {
    grid-template-columns: 70px 1fr 30px;
  }

  .accordion-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .accordion-meta {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
}

/* Program Levels Styling */
.program-level {
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.program-level:last-child {
  margin-bottom: 0;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.level-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1a1a1a;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, #1c6bff 0%, #0b4fd6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-badge.level-intermediate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.level-badge.level-advanced {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.level-subtitle {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 15px;
  font-style: italic;
}

.program-level .learning-outcomes {
  margin: 0;
}

.program-level .learning-outcomes li {
  padding: 8px 0;
}

@media (max-width: 720px) {
  .course-hero-meta-info {
    flex-direction: column;
    gap: 12px;
  }

  .meta-item {
    font-size: 13px;
  }

  .section-block h2 {
    font-size: 22px;
  }

  .accordion-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .program-level {
    padding: 18px;
  }
  
  .level-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
