/**
 * EIBO Career Hub - Course Detail Stylesheet
 */

/* ==========================================
   Hero Section
   ========================================== */
.cd-hero {
  padding: 120px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(26,115,232,0.08) 0%, rgba(0,0,0,0) 60%),
              radial-gradient(circle at 90% 80%, rgba(0,212,255,0.05) 0%, rgba(0,0,0,0) 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cd-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media(min-width: 992px) {
  .cd-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.cd-hero-content h1 {
  font-size: 2.8rem;
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  margin-top: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

@media(min-width: 768px) {
  .cd-hero-content h1 {
    font-size: 3.5rem;
  }
}

.cd-hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 32px;
}

.cd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 0.95rem;
}

.cd-hero-meta span {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}

.cd-hero-meta strong {
  color: #ffffff;
  margin-left: 6px;
}

/* ==========================================
   Quick Specs Grid
   ========================================== */
.cd-specs-section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cd-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media(min-width: 768px) {
  .cd-specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cd-spec-card {
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cd-spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 115, 232, 0.2);
  background: rgba(26, 115, 232, 0.02);
}

.cd-spec-icon {
  font-size: 1.5rem;
  color: var(--eibo-blue-light);
  margin-bottom: 10px;
}

.cd-spec-card strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 4px;
}

.cd-spec-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   Page Layout (Main & Sidebar)
   ========================================== */
.cd-main-section {
  padding: 60px 0 100px;
}

.cd-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media(min-width: 992px) {
  .cd-main-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.cd-content-area {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cd-section-title {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.cd-section-title span {
  color: var(--eibo-blue-light);
}

/* Timeline Highlights */
.highlights-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlights-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Tools Covered Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.tool-card {
  padding: 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.15);
  border-color: rgba(26, 115, 232, 0.3);
}

.tool-icon {
  font-size: 2.2rem;
}

.tool-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
}

/* Dynamic Accordion Syllabus */
.syllabus-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active {
  border-color: rgba(26, 115, 232, 0.25);
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.accordion-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.module-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eibo-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 100px;
  flex-shrink: 0;
}

.module-title {
  font-size: 1.15rem;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-weight: 600;
  flex-grow: 1;
}

.accordion-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--eibo-blue-light);
}

.accordion-panel {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content {
  padding: 0 24px 24px 124px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

@media(max-width: 576px) {
  .accordion-trigger {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .module-number {
    width: auto;
  }
  .accordion-content {
    padding: 0 20px 20px 20px;
  }
}

.syllabus-topics {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.syllabus-topics li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.syllabus-topics li i {
  color: var(--eibo-blue-light);
  margin-top: 5px;
  font-size: 0.8rem;
}

/* Projects Timeline */
.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-timeline-card {
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.project-timeline-card:hover {
  border-color: rgba(26, 115, 232, 0.2);
  transform: translateX(4px);
}

.project-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--eibo-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.project-timeline-card h3 {
  font-size: 1.4rem;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ==========================================
   Sticky Conversion Sidebar
   ========================================== */
.cd-sidebar-container {
  position: relative;
}

.cd-sidebar-sticky {
  position: sticky;
  transition: top 0.3s ease;
}

.cd-lead-card {
  padding: 36px 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cd-lead-card h3 {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
  text-align: center;
}

.cd-lead-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

.cd-lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cd-input-group {
  position: relative;
}

.cd-input-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.cd-input-group input,
.cd-input-group select,
.cd-input-group textarea {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

.cd-input-group input:focus,
.cd-input-group select:focus,
.cd-input-group textarea:focus {
  border-color: var(--eibo-blue-light);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
}

.cd-input-group select {
  cursor: pointer;
  appearance: none;
}

/* Custom dropdown chevron for select */
.cd-input-group-select::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
}

.cd-sidebar-benefits {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cd-sidebar-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cd-sidebar-benefit-item i {
  color: var(--eibo-blue-light);
}

/* Success lead modal overlay */
.success-lead-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
  animation: fadeIn 0.3s ease forwards;
}

.slm-content {
  max-width: 550px;
  width: 100%;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slm-content h2 {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
}

.slm-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================
   Sticky Sub-Navigation Bar
   ========================================== */
.cd-subnav {
  position: sticky;
  top: 72px; /* Offset below primary fixed navbar */
  z-index: 99;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.cd-subnav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.cd-subnav-inner::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.cd-subnav-inner a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.cd-subnav-inner a:hover {
  color: #ffffff;
  background: rgba(26, 115, 232, 0.05);
}

.cd-subnav-inner a.active {
  color: #ffffff;
  background: rgba(26, 115, 232, 0.15);
  border-color: rgba(26, 115, 232, 0.4);
  box-shadow: 0 0 15px rgba(26, 115, 232, 0.25);
}

/* ==========================================
   Success Stories & Placements Section
   ========================================== */
.placement-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media(min-width: 768px) {
  .placement-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.placement-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.placement-card:hover {
  transform: translateY(-5px);
  border-color: rgba(26, 115, 232, 0.25);
  box-shadow: 0 10px 25px rgba(26, 115, 232, 0.1);
}

.placement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--eibo-blue-light), transparent);
}

.placement-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.placement-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--eibo-blue-light);
  box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
}

.placement-info h4 {
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.placement-info .alumni-desg {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.placement-package {
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.placement-transition {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.transition-from, .transition-to {
  font-size: 0.82rem;
  font-weight: 500;
}

.transition-from {
  color: var(--text-muted);
}

.transition-to {
  color: var(--eibo-blue-light);
}

.transition-arrow {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.placement-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* ==========================================
   Google verified Alumni Reviews list
   ========================================== */
.reviews-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .reviews-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-2px);
}

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

.reviewer-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reviewer-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.reviewer-info strong {
  font-size: 0.95rem;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-source-google {
  color: #f59e0b; /* Google star color */
  font-size: 0.85rem;
}

.review-rating-stars {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================
   Relocated Hero Form Container Styling
   ========================================== */
.cd-hero-form-container {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
}

@media(min-width: 992px) {
  .cd-hero-form-container {
    margin-left: auto;
    margin-right: 0;
  }
}

/* ==========================================
   Sidebar Admissions Counselling Card
   ========================================== */
.cd-sidebar-info-card {
  padding: 36px 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.cd-sidebar-info-card h3 {
  font-size: 1.4rem;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
  text-align: center;
  color: #ffffff;
}

.cd-sidebar-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.sidebar-status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(26, 115, 232, 0.06);
  border: 1px solid rgba(26, 115, 232, 0.2);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--eibo-blue-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--eibo-blue-light);
}

.animate-pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(26, 115, 232, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
  }
}

.sidebar-slots-warning {
  text-align: center;
  font-size: 0.85rem;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}

.sidebar-slots-warning i {
  margin-right: 6px;
}

.sidebar-features-list {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sfl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sfl-icon {
  font-size: 1.25rem;
  color: var(--eibo-blue-light);
  margin-top: 2px;
}

.sfl-text strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.sfl-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
