/* Switzer Font with font-display: swap to eliminate render delay (FOIT) on LCP */
@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Switzer Regular'), local('Switzer-Regular'),
       url('https://fonts.cdnfonts.com/s/85792/Switzer-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Switzer Medium'), local('Switzer-Medium'),
       url('https://fonts.cdnfonts.com/s/85792/Switzer-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Switzer Semibold'), local('Switzer-Semibold'),
       url('https://fonts.cdnfonts.com/s/85792/Switzer-Semibold.woff') format('woff');
}

@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Switzer Bold'), local('Switzer-Bold'),
       url('https://fonts.cdnfonts.com/s/85792/Switzer-Bold.woff') format('woff');
}

/* Reset margins and padding only for courses page content (navbar is outside) */
.courses-page,
.courses-page * {
  margin: 0;
  padding: 0;
}
/* General Styles */
:root {
    --bg-dark: #0C0C0C;
  --text-white: #ffffff;
  --text-muted: #888888;
  --primary-red: #ff3b30;
  --accent-yellow: #ffcc00;
}

body {
  background-color: #000;
  color: #fff;
    font-family: 'Inter', sans-serif;
  /* overflow-x: hidden; */
  /* Navbar padding-top is handled by common-navbar.css */
}

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

.gradient-border::before {
    content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
    background: linear-gradient(to right, 
    rgba(148, 148, 148, 0.5) 0%,
    rgba(66, 134, 245, 0) 14%,
    rgba(94, 94, 94, 0) 50%,
        rgba(74, 74, 74, 0.5) 75%);
  -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;
}

.courses-page {
  max-width: 100%;
  padding: 130px 80px 60px;
  background-color: #000;
}

/* Header Section */
.courses-header {
  text-align: center;
  margin-bottom: 80px;
}

.courses-main-title {
  font-family: 'Switzer', sans-serif;
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: -1px;
  color: #fff;
}

.courses-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Category Section */
.course-category-section {
  margin-bottom: 80px;
}

.category-title {
  font-family: "Switzer", sans-serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: #fff;
  letter-spacing: -1px;
}

/* Horizontal Scroll Container */
.courses-scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  overflow-anchor: none;
}

/* Fade effect on left side - show when scrolled to right */
.courses-scroll-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to right, #000, transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.courses-scroll-container.scrolled-right::before {
  opacity: 1;
}

/* Fade effect on right side - only show when scrollable */
.courses-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(to right, transparent, #000);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.courses-scroll-container.has-scroll::after {
  opacity: 1;
}

.courses-scroll-container.at-end::after {
  opacity: 0;
}

.courses-track {
  display: flex;
  align-items: stretch;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: grab;
  user-select: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overflow-anchor: none;
  scroll-behavior: auto;
  will-change: scroll-position;
}

.courses-track:active {
  cursor: grabbing;
}

/* Hide scrollbar completely */
.courses-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Course Card */
.course-card {
  flex: 0 0 auto;
  width: 370px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(65deg, #101010, rgba(255, 255, 255, 0));
  border-radius: 40px;
  transition: all 0.3s ease;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: inset 0 0 15px 0 rgba(30, 30, 30, 0.5);
  touch-action: pan-x pan-y;
}

.course-card.gradient-border::before {
  border-radius: 40px;
}

.course-card:hover {
  transform: translateY(1px);
  transition: all 0.3s ease-in-out;
}

.course-card-inner {
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 15px;
}

/* Tech Icons */
.tech-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 80px;
  padding: 38px 15px;
  background: linear-gradient(
    to right,
    rgba(22, 22, 22, 0.8),
    rgba(29, 29, 29, 0.8)
  );
  border-radius: 20px;
  justify-content: center;
}

.tech-icons.gradient-border::before {
  border-radius: 20px;
}

.tech-icons.single-icon {
  justify-content: center;
}

.tech-icons img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Font Awesome Icons for Other Courses */
.tech-icons i {
  font-size: 45px;
}

.cyber-icon {
  color: #10b981;
}

.ml-icon {
  color: #a855f7;
}

.data-icon {
  color: #3b82f6;
}

.blockchain-icon {
  color: #3b82f6;
}

.ar-icon {
  color: #a855f7;
}

.test-icon {
  color: #f97316;
}

.devops-icon {
  color: #3b82f6;
}

/* Course Meta */
.course-meta {
  font-size: 0.75rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Course Title */
.course-title {
  font-family: "Switzer", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-title .title-specialization {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: #d1d5db;
  margin-top: 4px;
}

/* Course Description */
.course-desc {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.5;
  margin: 0;
  /* min-height: 44px; */
}

/* Card Actions Row (Learn More + Apply Now) */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

/* Animated CTA Indicators for Interactive CTAs */
@keyframes ctaArrowNudge {
  0%, 100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(4px);
  }
  55% {
    transform: translateX(1px);
  }
  75% {
    transform: translateX(4px);
  }
}

@keyframes ctaGlowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    border-color: rgba(220, 38, 38, 0.28);
  }
  50% {
    box-shadow: 0 0 8px 1px rgba(220, 38, 38, 0.35);
    border-color: rgba(220, 38, 38, 0.6);
  }
}

@keyframes ctaTextShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Learn More Button */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 5px 13px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.28);
  background-size: 200% auto;
  background-image: linear-gradient(90deg, #ffffff 0%, #ff6b81 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ctaTextShimmer 3s ease infinite, ctaGlowPulse 2.2s ease-in-out infinite;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.learn-more-btn i {
  font-size: 0.78rem;
  margin-top: 1px;
  -webkit-text-fill-color: #ff4d6d;
  color: #ff4d6d;
  animation: ctaArrowNudge 1.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.course-card:hover .learn-more-btn,
.learn-more-btn:hover {
  text-decoration: none;
  background-color: rgba(220, 38, 38, 0.16);
  border-color: rgba(220, 38, 38, 0.65);
  box-shadow: 0 0 12px 1px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
}

.learn-more-btn:active {
  transform: scale(0.96);
  background-color: rgba(220, 38, 38, 0.25);
}

/* Apply Now Button */
.apply-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #e40755);
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.apply-now-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  .courses-page {
    padding: 120px 50px 50px;
  }

  .courses-main-title {
    font-size: 3rem;
  }

  .category-title {
    font-size: 1.75rem;
  }

  .course-card {
    width: 350px;
  }

  .courses-track {
    gap: 25px;
  }
}

/* Tablet - 768px and below */
@media (max-width: 768px) {
  .courses-page {
    padding: 100px 30px 40px;
  }

  .courses-header {
    margin-top: 10px;
    margin-bottom: 50px;
  }

  .courses-main-title {
    font-size: 2.5rem;
  }

  .courses-subtitle {
    font-size: 1rem;
  }

  .course-category-section {
    margin-bottom: 60px;
  }

  .category-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .course-card {
    width: 240px;
    min-width: 240px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
  }

  .course-card.gradient-border::before {
    border-radius: 26px;
  }

  .course-card-inner {
    padding: 20px 16px 16px;
    gap: 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  .tech-icons {
    min-height: 60px;
    padding: 12px 10px;
    gap: 10px;
    border-radius: 16px;
  }

  .tech-icons.gradient-border::before {
    border-radius: 16px;
  }

  .tech-icons img {
    width: 36px;
    height: 36px;
  }

  .tech-icons i {
    font-size: 32px;
  }

  .course-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .courses-track {
    gap: 18px;
    align-items: stretch;
  }

  .courses-scroll-container::after {
    width: 80px;
  }

  .card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
  }

  .learn-more-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.28);
    background-size: 200% auto;
    background-image: linear-gradient(90deg, #ffffff 0%, #ff6b81 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ctaTextShimmer 3s ease infinite, ctaGlowPulse 2.2s ease-in-out infinite;
    gap: 6px;
    transition: transform 0.15s ease, background-color 0.2s ease;
  }

  .learn-more-btn:active {
    transform: scale(0.95);
    background-color: rgba(220, 38, 38, 0.2);
  }

  .learn-more-btn i {
    font-size: 0.7rem;
    margin-top: 1px;
    -webkit-text-fill-color: #ff4d6d;
    color: #ff4d6d;
    animation: ctaArrowNudge 1.5s ease-in-out infinite;
  }
}

/* Mobile - 576px and below */
@media (max-width: 576px) {
  .courses-page {
    padding: 90px 0 30px;
  }

  .courses-header {
    margin-top: 10px;
    margin-bottom: 35px;
    padding: 0 16px;
  }

  .courses-main-title {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
  }

  .courses-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .course-category-section {
    margin-bottom: 40px;
  }

  .category-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding: 0 16px;
  }

  /* Keep horizontal scroll on mobile with smaller cards */
  .courses-scroll-container {
    padding: 0 16px;
  }

  .courses-scroll-container::after {
    width: 50px;
  }

  .courses-track {
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    cursor: default;
    align-items: stretch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    overflow-anchor: none;
  }

  .course-card {
    width: 200px;
    min-width: 200px;
    border-radius: 20px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }

  .course-card.gradient-border::before {
    border-radius: 20px;
  }

  .course-card-inner {
    padding: 13px 12px 12px;
    gap: 8px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  .tech-icons {
    min-height: 44px;
    padding: 7px 6px;
    gap: 6px;
    border-radius: 12px;
  }

  .tech-icons.gradient-border::before {
    border-radius: 12px;
  }

  .tech-icons img {
    width: 25px;
    height: 25px;
  }

  .tech-icons i {
    font-size: 22px;
  }

  .course-meta {
    font-size: 0.62rem;
    letter-spacing: 0.15px;
    line-height: 1.3;
  }

  .course-title {
    font-size: 0.98rem;
    line-height: 1.25;
    min-height: 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .course-title .title-specialization {
    font-size: 0.78rem;
    margin-top: 2px;
  }

  .course-desc {
    font-size: 0.72rem;
    line-height: 1.32;
    color: #a1a1aa;
    margin: 0;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
  }

  .learn-more-btn {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.28);
    background-size: 200% auto;
    background-image: linear-gradient(90deg, #ffffff 0%, #ff6b81 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ctaTextShimmer 3s ease infinite, ctaGlowPulse 2.2s ease-in-out infinite;
    gap: 4px;
    transition: transform 0.15s ease, background-color 0.2s ease;
  }

  .learn-more-btn:active {
    transform: scale(0.94);
    background-color: rgba(220, 38, 38, 0.22);
  }

  .learn-more-btn i {
    font-size: 0.60rem;
    margin-top: 1px;
    -webkit-text-fill-color: #ff4d6d;
    color: #ff4d6d;
    animation: ctaArrowNudge 1.5s ease-in-out infinite;
  }
}

/* Very small mobile - 375px and below */
@media (max-width: 375px) {
  .courses-page {
    padding: 85px 0 25px;
  }

  .courses-header {
    margin-top: 10px;
    padding: 0 14px;
  }

  .courses-main-title {
    font-size: 1.65rem;
  }

  .courses-subtitle {
    font-size: 0.82rem;
  }

  .category-title {
    font-size: 1.15rem;
    padding: 0 14px;
  }

  .courses-scroll-container {
    padding: 0 14px;
  }

  .courses-scroll-container::after {
    width: 40px;
  }

  .courses-track {
    align-items: stretch;
  }

  .course-card {
    width: 180px;
    min-width: 180px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
  }

  .course-card.gradient-border::before {
    border-radius: 18px;
  }

  .course-card-inner {
    padding: 11px 10px 10px;
    gap: 7px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  .tech-icons {
    gap: 5px;
    min-height: 40px;
    padding: 6px 5px;
    border-radius: 10px;
  }

  .tech-icons.gradient-border::before {
    border-radius: 10px;
  }

  .tech-icons img {
    width: 22px;
    height: 22px;
  }

  .tech-icons i {
    font-size: 19px;
  }

  .course-meta {
    font-size: 0.58rem;
  }

  .course-title {
    font-size: 0.88rem;
    min-height: 2.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .course-desc {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .card-actions {
    margin-top: auto;
  }

  .learn-more-btn {
    font-size: 0.62rem;
    padding: 2px 7px;
    gap: 4px;
    border-radius: 8px;
  }

  .learn-more-btn i {
    font-size: 0.54rem;
  }
}


/* ── Floating Contact Widget ─────────────────────────────────────────────── */
.float-contact-widget {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 9999;
}

.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  flex-shrink: 0;
}

.float-btn:hover {
  transform: scale(1.12);
}

/* Tooltip label — slides in from the right on hover */
.float-btn__label {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.float-btn:hover .float-btn__label,
.float-btn:focus .float-btn__label {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp button */
.float-btn--whatsapp {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}

.float-btn--whatsapp:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}

.float-btn--whatsapp::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: float-pulse 2s ease-out infinite;
}

/* Call button */
.float-btn--call {
  background: #1a1a1a;
  border: 2px solid #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.float-btn--call:hover {
  background: #222;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}

.float-btn--call::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: float-pulse 2.4s ease-out infinite 0.6s;
}

@keyframes float-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Mobile — smaller buttons, no tooltip labels */
@media (max-width: 768px) {
  .float-contact-widget {
    bottom: 20px;
    right: 16px;
    gap: 12px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-btn__label {
    display: none;
  }
}
/* ─────────────────────────────────────────────────────────────────────────── */
