/* === COURSE PAGE === */

.course-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #05051a, #0a1030, #05051a);
  padding-top: 80px;
}

.course-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  text-align: center;
  letter-spacing: 4px;
}

/* COURSE GRID */
.course-grid-section {
  background: linear-gradient(180deg, #070728, #0a0a3a);
  padding: 60px 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.course-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(108,63,229,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(108,63,229,0.3);
}

.wide-card {
  grid-column: span 1;
}

/* override: 3 per row for row3 and row4 */
.course-grid .course-card:nth-child(9),
.course-grid .course-card:nth-child(10),
.course-grid .course-card:nth-child(11),
.course-grid .course-card:nth-child(12),
.course-grid .course-card:nth-child(13),
.course-grid .course-card:nth-child(14) {
  grid-column: span 1;
}

.card-bg {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

.card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.card-logo {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Course Colors */
.html-bg { background: linear-gradient(135deg, #e34c26, #f06529); }
.html-bg .card-logo { color: #fff; }
.html-bg .card-logo span { font-size: 1rem; vertical-align: super; }

.css-bg { background: linear-gradient(135deg, #264de4, #2965f1); }
.css-logo { color: #fff; }

.js-bg { background: linear-gradient(135deg, #c8a000, #f7df1e); }
.js-logo { color: #1a1a1a; font-size: 1rem; }

.mysql-bg { background: linear-gradient(135deg, #00618a, #007fa3); }
.mysql-logo { color: #fff; font-size: 1rem; }

.php-bg { background: linear-gradient(135deg, #4f5b93, #777bb4); }
.php-logo { color: #fff; }

.wp-bg { background: linear-gradient(135deg, #21759b, #464646); }
.wp-logo { color: #fff; font-size: 1.8rem; font-weight: 900; }

.c-bg { background: linear-gradient(135deg, #283593, #3949ab); }
.c-logo { color: #fff; font-size: 2.5rem; }

.cpp-bg { background: linear-gradient(135deg, #00599c, #0069b4); }
.cpp-logo { color: #fff; font-size: 1.8rem; }

.java-bg { background: linear-gradient(135deg, #b07219, #f89820); }
.java-logo { font-size: 2.5rem; color: #fff; }

.java2-bg { background: linear-gradient(135deg, #5382a1, #f89820); }
.java2-logo { color: #fff; font-family: 'Rajdhani', sans-serif; font-style: italic; }

.python-bg { background: linear-gradient(135deg, #1a3a5c, #2b5b8a); }
.python-logo { color: var(--teal); font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 600; }

.ethical-bg { background: linear-gradient(135deg, #0a0a0a, #1a1a2e); }
.ethical-logo { color: var(--teal); font-size: 2rem; }

.cs-bg { background: linear-gradient(135deg, #1a1a3a, #0d0d2e); border: 1px dashed rgba(108,63,229,0.3); }
.coming-soon-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 2px;
}

/* Card Footer */
.card-footer {
  background: #0a0a2e;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(108,63,229,0.2);
}

.card-footer span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: var(--white);
  letter-spacing: 1px;
}

.start-btn {
  background: rgba(108,63,229,0.3);
  border: 1px solid var(--purple);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
  transition: background 0.2s;
}
.start-btn:hover { background: var(--purple); }
.start-btn:disabled { opacity: 0.4; cursor: default; }

.coming-soon-card { cursor: default; }
.coming-soon-card:hover { transform: none; box-shadow: none; }

/* HIGHLIGHTS / VIDEO SECTION */
.highlights-section {
  max-width: 900px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid rgba(108,63,229,0.3);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 12px;
}

.video-thumb {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #1a0a3a, #0a0a2e);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  z-index: 2;
}
.play-btn:hover { color: var(--white); transform: scale(1.15); }

.coming-soon-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.3;
}

.highlight-label {
  color: var(--gray);
  font-size: 0.75rem;
  padding: 8px 12px 2px;
  font-family: 'Share Tech Mono', monospace;
}

.highlight-title {
  color: var(--white);
  font-size: 0.9rem;
  padding: 0 12px;
  font-weight: 600;
}

/* 3-col layout for rows 3 and 4 */
@media (min-width: 601px) {
  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  /* rows of 3 */
  .course-grid .course-card:nth-child(n+9):nth-child(-n+14) {
    /* override to 3 cols: handled via JS or just let it wrap */
  }
}

@media (max-width: 700px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .course-grid { grid-template-columns: 1fr; }
}
