/* ==========================================================================
   MECHANICAL DESIGN COURSE DETAIL PAGE (DCICI Crimson & Deep Navy Palette)
   Includes: 3D Tilt, Mouse Radial Spotlight & Wave Kinetic Typography
   ========================================================================== */
:root {
  --mech-bg: #fafafa;
  --mech-card-bg: #ffffff;
  --mech-navy: #0c1b33;
  --mech-muted: #52525b;
  --mech-border: rgba(228, 228, 231, 0.85);
  --mech-border-hover: rgba(229, 35, 32, 0.35);
  --mech-red: #e52320;
  --mech-red-bright: #f03e3b;
  --mech-red-glow: rgba(229, 35, 32, 0.2);
  --mech-red-subtle: #fef2f2;
  --mech-navy-subtle: #eff6ff;
}

body {
  background-color: var(--mech-bg);
  color: var(--mech-navy);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ==============================================
   1. WAVE ANIMATION TARGETS
   ============================================== */
.wave-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.24em;
}

.wave-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.wave-animated.in-view .wave-char {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--char-index) * 18ms);
}

/* ==============================================
   2. HERO BANNER
   ============================================== */
.mech-hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(229, 35, 32, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(12, 27, 51, 0.08) 0%, transparent 55%),
              linear-gradient(180deg, #090e17 0%, #0c1b33 100%);
  padding: 90px 0 80px;
  color: #ffffff;
  overflow: hidden;
}

.mech-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

.mech-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.mech-hero-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--mech-red-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mech-red-bright);
}

.mech-hero-title {
  font-weight: 900;
  font-size: clamp(2.3rem, 3.8vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.mech-hero-title .highlight-red {
  color: var(--mech-red-bright);
}

.mech-hero-desc {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.mech-hero-img-wrap {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  will-change: transform;
}

.mech-hero-img-wrap img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: translateZ(20px);
}

/* Button & Tilt Physics */
.btn-tilt-container {
  perspective: 600px;
  display: inline-block;
}

.btn-brand-solid {
  position: relative;
  background: linear-gradient(135deg, var(--mech-red-bright) 0%, var(--mech-red) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  box-shadow: 0 6px 18px rgba(229, 35, 32, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transform-origin: top left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.btn-brand-solid:hover {
  transform: perspective(600px) rotateX(8deg) rotateY(-10deg) translate3d(-3px, -3px, 10px) scale(1.04);
  box-shadow: 8px 14px 28px rgba(229, 35, 32, 0.45);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==============================================
   3. CONTENT & HIGHLIGHT SECTIONS
   ============================================== */
.mech-section {
  position: relative;
  padding: 85px 0;
}

.mech-section-alt {
  background: #ffffff;
  border-top: 1px solid var(--mech-border);
  border-bottom: 1px solid var(--mech-border);
}

.mech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--mech-border);
  color: var(--mech-navy);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.mech-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--mech-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--mech-red);
}

.section-title {
  color: var(--mech-navy);
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.section-title .highlight-red {
  color: var(--mech-red);
}

.mech-text-lead {
  color: var(--mech-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.mech-media-card {
  position: relative;
  border-radius: 22px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--mech-border);
  box-shadow: 0 16px 36px -12px rgba(12, 27, 51, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
}

.mech-media-card img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: translateZ(20px);
}

/* Why DCICI Feature Pills */
.why-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}

.why-dcici-pill {
  background: #ffffff;
  border: 1px solid var(--mech-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mech-navy);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.why-dcici-pill i {
  color: var(--mech-red);
  font-size: 1rem;
}

.why-dcici-pill:hover {
  border-color: var(--mech-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(12, 27, 51, 0.06);
}

/* Structured Program Cards */
.program-tier-box {
  background: #ffffff;
  border: 1px solid var(--mech-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 12px -4px rgba(12, 27, 51, 0.03);
  transition: all 0.25s ease;
}

.program-tier-box:hover {
  transform: translateY(-2px);
  border-color: var(--mech-border-hover);
  box-shadow: 0 10px 24px -6px rgba(12, 27, 51, 0.07);
}

.program-tier-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--mech-red-subtle);
  color: var(--mech-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.program-tier-content h5 {
  color: var(--mech-navy);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.program-tier-content p {
  color: var(--mech-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* ==============================================
   4. CAREER OPPORTUNITIES CARDS (With Tilt & Radial Spotlight)
   ============================================== */
.careers-section {
  position: relative;
  padding: 85px 0 90px;
  background: radial-gradient(circle at 10% 20%, rgba(229, 35, 32, 0.03) 0%, transparent 45%),
              linear-gradient(180deg, #fbfbfb 0%, #f4f5f8 100%);
}

.career-card-modern {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--mech-border);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px -6px rgba(12, 27, 51, 0.04);
  transform-style: preserve-3d;
  overflow: hidden;
  will-change: transform;
}

.career-card-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(229, 35, 32, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.career-card-modern:hover::after {
  opacity: 1;
}

.career-icon-pod {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background-color: var(--mech-red-subtle);
  color: var(--mech-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transform: translateZ(30px);
  transition: transform 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}

.career-title {
  color: var(--mech-navy);
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 6px;
  transform: translateZ(20px);
}

.career-desc {
  color: var(--mech-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
  transform: translateZ(15px);
}

.career-card-modern:hover {
  border-color: var(--mech-border-hover);
  box-shadow: 0 20px 45px -12px rgba(12, 27, 51, 0.12),
              0 0 20px -5px rgba(229, 35, 32, 0.15);
}

.career-card-modern:hover .career-icon-pod {
  transform: translateZ(40px) scale(1.1) rotate(-6deg);
  background-color: var(--mech-red);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(229, 35, 32, 0.35);
}

/* ==============================================
   5. GAME CHANGER CTA
   ============================================== */
.game-changer-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(229, 35, 32, 0.15) 0%, transparent 50%),
              linear-gradient(180deg, #090e17 0%, #0c1b33 100%);
  padding: 85px 0;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.game-changer-section .section-title {
  color: #ffffff;
}

.game-changer-section .section-title .highlight-red {
  color: var(--mech-red-bright);
}

@media (max-width: 768px) {
  .why-pill-grid {
    grid-template-columns: 1fr;
  }
}