/* ==========================================================================
   CTC Calculator page — scoped styles
   Every rule is namespaced under .ctc-calc-page so nothing here can leak
   into or override styles on any other page. Loaded after style.css /
   responsive.css, and only referenced by ctc-calculator.html.
   ========================================================================== */

.ctc-calc-page {
  position: relative;
}

/* ---------- Hero ---------- */

.ctc-calc-page .ctc-hero {
  position: relative;
  overflow: hidden;
}

.ctc-calc-page .ctc-hero::before,
.ctc-calc-page .ctc-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.ctc-calc-page .ctc-hero > * {
  position: relative;
  z-index: 1;
}

.ctc-calc-page .ctc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ctc-calc-page .ctc-eyebrow i {
  font-size: 12px;
}

/* ---------- Track cards ---------- */

.ctc-calc-page .ctc-track-card {
  --ctc-accent: #ff3c38;
  --ctc-accent-soft: rgba(255, 60, 56, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ctc-calc-page .ctc-track-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ctc-accent);
}

.ctc-calc-page .ctc-track-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25) !important;
}

.ctc-calc-page .ctc-track-card--java {
  --ctc-accent: #f57c00;
  --ctc-accent-soft: rgba(245, 124, 0, 0.1);
}

.ctc-calc-page .ctc-track-card--python {
  --ctc-accent: #2563eb;
  --ctc-accent-soft: rgba(37, 99, 235, 0.1);
}

.ctc-calc-page .ctc-track-card--mern {
  --ctc-accent: #06b6d4;
  --ctc-accent-soft: rgba(6, 182, 212, 0.1);
}

.ctc-calc-page .ctc-track-card--mean {
  --ctc-accent: #9946ff;
  --ctc-accent-soft: rgba(153, 70, 255, 0.1);
}

.ctc-calc-page .ctc-track-card--devops {
  --ctc-accent: #16a34a;
  --ctc-accent-soft: rgba(22, 163, 74, 0.1);
}

.ctc-calc-page .ctc-track-card--datascience {
  --ctc-accent: #e3184d;
  --ctc-accent-soft: rgba(236, 72, 153, 0.1);
}

.ctc-calc-page .ctc-icon-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ctc-accent-soft);
  transition: transform 0.25s ease;
}

.ctc-calc-page .ctc-track-card:hover .ctc-icon-circle {
  transform: scale(1.08);
}

.ctc-calc-page .ctc-icon-circle .course-icon-wrap {
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.ctc-calc-page .ctc-icon-circle i {
  font-size: 28px;
}

/* Plain Font Awesome icons (no built-in brand color) pick up the accent;
   devicon brand icons keep their own colors via .colored */
.ctc-calc-page .ctc-icon-circle i.fa-solid {
  color: var(--ctc-accent);
}

.ctc-calc-page .ctc-icon-circle img {
  width: 30px;
  height: 30px;
}

.ctc-calc-page .ctc-track-card .badge.ctc-ctc-badge {
  background: var(--ctc-accent-soft);
  color: var(--ctc-accent);
  font-weight: 600;
}

.ctc-calc-page .ctc-track-card .btn {
  background: var(--ctc-accent);
  border-color: var(--ctc-accent);
}

.ctc-calc-page .ctc-track-card .btn:hover {
  filter: brightness(0.92);
}

/* ---------- CTA ---------- */

.ctc-calc-page .ctc-cta {
  border-radius: 20px;
  overflow: hidden;
}

.ctc-calc-page .ctc-cta-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 60, 56, 0.1);
  color: #ff3c38;
  margin-bottom: 14px;
  font-size: 18px;
}

/* style.css has a generic .categories-top .btn rule (position: absolute)
   left over from the old search-box widget; undo it here so this button
   sits in normal flow below the paragraph instead of floating over the
   photo. Scoped to this page only. */
.ctc-calc-page .ctc-cta .caetgory-form .btn {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  display: inline-flex;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .ctc-calc-page .ctc-track-card {
    text-align: center;
  }
}
