/* ========================================================== */
/* ===== COURSE DETAIL PAGE - DARK THEME ===== */
/* ========================================================== */

:root {
  --bg: #002153;
  --surface: #0A2A5A;
  --card: #0F2F5F;
  --card-hover: #1A3B6B;
  --accent: #4AA8C7;
  --accent2: #00D9B1;
  --text: #E8EAF0;
  --muted: #8892A4;
  --border: #1A3B6B;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --radius: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================== */
/* ===== SECTION LABEL ===== */
/* ========================================================== */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.7rem, 0.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 168, 199, 0.10);
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(74, 168, 199, 0.15);
  margin-bottom: 1rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ========================================================== */
/* ===== PAGE HERO ===== */
/* ========================================================== */

.page-hero {
  position: relative;
  padding: 120px 0 60px;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(74, 168, 199, 0.08), transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 217, 177, 0.05), transparent 50%);
  z-index: 0;
}

.page-hero__pattern {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234AA8C7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-sub {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 20px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-item i {
  color: var(--accent);
}

.pill-level {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================== */
/* ===== DETAIL WRAPPER ===== */
/* ========================================================== */

.detail-wrapper {
  padding: 40px 0 60px;
  background: var(--bg);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ========================================================== */
/* ===== LEFT COLUMN ===== */
/* ========================================================== */

.detail-block-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.detail-block-card:hover {
  border-color: var(--accent);
}

.detail-block-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-block-card h3 i {
  color: var(--accent);
}

.detail-block-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===== CHECKLIST ===== */
.grid-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.check-point {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 0;
}

.check-point i {
  color: var(--accent2);
  font-size: 1rem;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--accent);
}

.accordion-title-bar {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.3s ease;
}

.accordion-title-bar:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-title-bar span i {
  color: var(--accent);
  margin-right: 8px;
}

.chevron-icon {
  color: var(--accent);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.accordion-item.is-open .chevron-icon {
  transform: rotate(180deg);
}

.accordion-inner-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.is-open .accordion-inner-content {
  max-height: 500px;
  padding: 0 18px 18px;
}

.accordion-inner-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.accordion-inner-content ul li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.accordion-inner-content ul li:last-child {
  border-bottom: none;
}

.accordion-inner-content ul li i {
  color: var(--accent2);
}

.accordion-inner-content p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0;
}

/* ===== PROJECT BOX ===== */
.project-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.project-box:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.project-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-name i {
  color: var(--accent2);
}

.project-detail {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
  padding-left: 28px;
}

/* ========================================================== */
/* ===== RIGHT SIDEBAR ===== */
/* ========================================================== */

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

/* ===== COURSE MEDIA ===== */
.course-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.course-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #002153;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== PRICE ===== */
.course-price-box {
  text-align: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.current-price {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.original-price {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.discount-badge {
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== ENROLL BUTTON ===== */
.btn-enroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #002153;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(74, 168, 199, 0.2);
  margin-bottom: 16px;
}

.btn-enroll:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(74, 168, 199, 0.35);
  color: #002153;
}

/* ===== PERKS ===== */
.perks-heading {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.perks-heading i {
  color: var(--accent);
}

.sidebar-perks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-perks li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-perks li i {
  color: var(--accent2);
  font-size: 0.8rem;
}

/* ========================================================== */
/* ===== ENQUIRY FORM ===== */
/* ========================================================== */

.enquiry-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.enquiry-card h4 i {
  color: var(--accent);
}

.enquiry-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.enquiry-form .form-group {
  margin-bottom: 10px;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: var(--muted);
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 60px;
}

.btn-enquiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #002153;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-enquiry:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

.enquiry-success {
  background: rgba(0, 217, 177, 0.10);
  border: 1px solid var(--accent2);
  color: var(--accent2);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 0.9rem;
}

/* ========================================================== */
/* ===== RELATED COURSES ===== */
/* ========================================================== */

.related-section {
  padding: 60px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.related-image {
  height: 160px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-body {
  padding: 16px 20px 20px;
}

.related-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 168, 199, 0.10);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}

.related-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.related-body p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.related-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.related-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.related-meta span i {
  margin-right: 4px;
}

.related-price {
  font-weight: 700;
  color: var(--accent2);
}

/* ========================================================== */
/* ===== TESTIMONIALS ===== */
/* ========================================================== */

.testimonial-section {
  padding: 60px 0;
  background: var(--bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #FFB800;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testimonial-text {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #002153;
  font-weight: 700;
  font-size: 1.2rem;
}

.author-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.92rem;
}

.author-role {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ========================================================== */
/* ===== CTA SECTION ===== */
/* ========================================================== */

.cta-section {
  padding: 60px 0 80px;
  background: var(--surface);
}

.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #002153;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(74, 168, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(74, 168, 199, 0.35);
  color: #002153;
}

/* ========================================================== */
/* ===== RESPONSIVE ===== */
/* ========================================================== */

@media (max-width: 1024px) {
  .detail-grid {
      grid-template-columns: 1fr 340px;
      gap: 24px;
  }
  
  .related-grid,
  .testimonial-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
      padding: 80px 0 40px;
      min-height: auto;
  }
  
  .detail-grid {
      grid-template-columns: 1fr;
      gap: 24px;
  }
  
  .sticky-sidebar {
      position: static;
  }
  
  .grid-checklist {
      grid-template-columns: 1fr;
  }
  
  .related-grid,
  .testimonial-grid {
      grid-template-columns: 1fr;
      max-width: 400px;
      margin: 0 auto;
  }
  
  .detail-block-card {
      padding: 18px 16px;
  }
  
  .sidebar-card {
      padding: 18px 16px;
  }
  
  .cta-box {
      padding: 30px 20px;
  }
  
  .meta-pills {
      flex-wrap: wrap;
      justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
      font-size: 1.8rem;
  }
  
  .pill-item {
      font-size: 0.7rem;
      padding: 4px 12px;
  }
  
  .current-price {
      font-size: 1.6rem;
  }
  
  .course-media img {
      height: 160px;
  }
  
  .btn-enroll {
      font-size: 0.9rem;
      padding: 12px;
  }
}