/* ── Base: Variables, Body, Typography, Hero ──────────────────────────────── */
/* General Styles */
:root {
  --bg-dark: #0c0c0c;
  --text-white: #ffffff;
  --text-muted: #888888;
  --primary-red: #ff3b30;
  --accent-yellow: #ffcc00;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.course-page {
  margin-top: 150px;
}

/* Reusable Gradient Border */
.gradient-border {
  position: relative;
  isolation: isolate;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    to left,
    rgba(66, 134, 245, 0) 10%,
    rgba(94, 94, 94, 0) 14%,
    rgba(161, 161, 161, 0.5) 90%,
    rgba(161, 161, 161, 0.5) 50%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  border-radius: 24px;
}

/* Typography */
.main-heading {
  font-family: "Switzer", sans-serif;
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.sub-heading {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #aaaaaa;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .sub-heading {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Badges */
.badge-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .badge-pill {
    font-size: 0.6rem;
  }
}

/* CTA Buttons and Limited Seats */
.hero-cta-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.hero-cta-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 8px 8px 30px;
  backdrop-filter: blur(10px);
  gap: 20px;
}

.limited-text {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.btn-apply {
  background: #e3342f;
  color: #fff;
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background: #cc2a25;
  transform: translateY(-1px);
}

.btn-download {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  color: #fff;
}

/* Mobile CTA Styles - Stacked layout ONLY for small devices */
@media (max-width: 576px) {
  .hero-cta-pill {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    gap: 15px;
    backdrop-filter: none;
  }

  .limited-text {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .hero-buttons {
    width: 100%;
    padding: 0 15px;
    gap: 12px;
  }

  .btn-apply,
  .btn-download {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 50px;
    gap: 10px;
  }

  .btn-apply {
    background: #e3342f;
    box-shadow: 0 4px 15px rgba(227, 52, 47, 0.3);
  }

  .btn-download {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
  }
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.icon {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.react-icon {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.js-icon {
  top: 30%;
  left: 10%;
  animation-delay: 1s;
}
.node-icon {
  top: 10%;
  right: 15%;
  animation-delay: 2s;
}
.html-icon {
  top: 30%;
  right: 10%;
  animation-delay: 3s;
}

/* Kotlin/Android Floating Icons */
.kotlin-icon {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.android-icon-1 {
  top: 30%;
  left: 10%;
  animation-delay: 1s;
}
.android-icon-2 {
  top: 10%;
  right: 15%;
  animation-delay: 2s;
}
.android-icon-3 {
  top: 30%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ── Fanned Cards (course-hero) ───────────────────────────────────────────── */
.fanned-cards-container-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: transparent;
}

.fanned-cards-container-wrapper::before,
.fanned-cards-container-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 400px;
  z-index: 200;
  pointer-events: none;
}

.fanned-cards-container-wrapper::before {
  left: 0;
  background: linear-gradient(
    to right,
    #0c0c0c 0px,
    #0c0c0c 8px,
    transparent 100%
  );
}

.fanned-cards-container-wrapper::after {
  right: 0;
  background: linear-gradient(
    to left,
    #0c0c0c 0px,
    #0c0c0c 8px,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .fanned-cards-container-wrapper::before,
  .fanned-cards-container-wrapper::after {
    width: 150px;
  }
}

.fanned-cards-container {
  position: relative;
  padding-bottom: 50px;
  margin-bottom: 150px;
}

.fanned-cards {
  position: relative;
  height: 400px;
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fanned-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 280px;
  height: auto;
  overflow: hidden;
  background: #111;
  transform-origin: center 2000px;
  will-change: transform;
  cursor: pointer;
  border-radius: 10px;
}

.fanned-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curved-text-wrap {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 100;
  width: 90%;
  max-width: 900px;
}

.curved-text-wrap svg {
  width: 100%;
  overflow: visible;
}
.curved-text-wrap text {
  fill: #ffffff;
  font-size: 18px;
  font-family: "Caveat", cursive;
  letter-spacing: 4px;
}

/* ── Course Highlights Starburst (course-hero) ────────────────────────────── */
.course-highlights-container {
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.highlights-title {
  font-family: "Caveat", cursive;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 2rem;
  color: #fff;
  z-index: 5;
  margin: 0;
}

.highlight-item {
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  position: absolute;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.highlight-item::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-image: url("https://website-main.blr1.cdn.digitaloceanspaces.com/assets/website/Highlights-Arrow-Icon.svg");
  mask-image: url("https://website-main.blr1.cdn.digitaloceanspaces.com/assets/website/Highlights-Arrow-Icon.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.blue {
  background-color: #a0d8ef;
  color: #000;
}
.item-top-left {
  top: 20%;
  left: 15%;
}
.item-top-left::before {
  bottom: -105px;
  right: -50%;
  transform: rotate(2deg);
  margin: 100px;
  color: #a0d8ef;
  display: block;
  max-width: 180px;
  white-space: normal;
  word-wrap: break-word;
}

.yellow {
  background-color: #ffd966;
  color: #000;
}
.item-top-right {
  top: 20%;
  right: 15%;
}
.item-top-right::before {
  bottom: -16px;
  left: -7%;
  transform: rotate(110deg);
  color: #ffd966;
}

.pink {
  background-color: #ffafa3;
  color: #000;
}
.item-middle-right {
  top: 55%;
  right: -5%;
}
.item-middle-right::before {
  left: -25px;
  top: 25%;
  transform: translateY(-50%) rotate(170deg);
  color: #ffafa3;
}

.light-green {
  background-color: #dde394;
  color: #000;
}
.item-bottom-left {
  bottom: 15%;
  left: 5%;
}
.item-bottom-left::before {
  top: -6px;
  right: -8%;
  transform: rotate(300deg);
  color: #dde394;
}

.light-blue {
  background-color: #80caff;
  color: #000;
}
.item-bottom-right {
  bottom: 10%;
  right: 25%;
}
.item-bottom-right::before {
  top: -8px;
  left: -10%;
  transform: rotate(-170deg);
  color: #80caff;
}

@media (max-width: 992px) {
  .course-highlights-container {
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 50px;
  }
  .highlights-title {
    position: static;
    margin-bottom: 30px;
    font-size: 2rem;
  }
  .highlight-item {
    position: static;
    white-space: normal;
    text-align: center;
    width: 90%;
    max-width: 350px;
  }
  .highlight-item::before {
    display: none;
  }

  .main-heading {
    font-size: 3rem;
  }
  .fanned-card {
    width: 180px;
    margin-left: -90px;
  }
  .fanned-cards {
    height: 200px;
  }
  .floating-icons {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .highlights-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  .highlight-item {
    font-size: 0.78rem;
    padding: 8px 16px;
    max-width: 260px;
  }

  .main-heading {
    font-size: 2rem;
  }
  .fanned-cards {
    height: 200px;
    margin-bottom: -150px;
  }
  .fanned-card {
    width: 180px;
    margin-left: -100px;
  }
}
