/* 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: 60px 80px;
  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;
}

/* 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;
  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;
  scroll-behavior: smooth; /* Fallback smooth scrolling */
  will-change: scroll-position; /* Optimize for smooth scrolling */
}

.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;
  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);
}

.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;
  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;
}

/* 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;
}

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

/* Learn More Button */
.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: right;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 5px;
  cursor: pointer;
  user-select: none;
  padding-left: 10px;

  background: linear-gradient(
    to right,
    #fff 50%,
    #dc2626,
    #aa0373
  );

  background-size: 200% auto;
  background-position: left center;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: background-position 0.4s ease, gap 0.3s ease;
}

.course-card:hover .learn-more-btn,
.learn-more-btn:hover {
  text-decoration: none;
  gap: 12px;
  background: linear-gradient(to right, #dc2626, #aa0373);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.learn-more-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  margin-top: 3px;
}

.course-card:hover .learn-more-btn i,
.learn-more-btn:hover i {
  background-position: right center;
  gap: 12px;
}

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

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  .courses-page {
    padding: 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: 40px 30px;
  }

  .courses-header {
    margin-top: 20px;
    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: 320px;
  }

  .courses-track {
    gap: 20px;
  }

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

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

  .courses-header {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

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

  .courses-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

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

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

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

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

  .courses-track {
    gap: 15px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    cursor: default;
  }

  .course-card {
    width: 280px;
    min-width: 280px;
    scroll-snap-align: center;
  }

  .course-card-inner {
    padding: 25px 20px;
    gap: 12px;
  }

  .tech-icons {
    min-height: 70px;
    padding: 15px 12px;
    gap: 12px;
  }

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

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

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

  .course-title {
    font-size: 1.2rem;
  }

  .course-desc {
    font-size: 0.9rem;
    min-height: auto;
    line-height: 1.4;
  }

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

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

  .courses-header {
    margin-top: 20px;
    padding: 0 15px;
  }

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

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

  .category-title {
    font-size: 1.2rem;
    padding: 0 15px;
  }

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

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

  .course-card {
    width: 260px;
    min-width: 260px;
  }

  .course-card-inner {
    padding: 20px 18px;
  }

  .tech-icons {
    gap: 10px;
    min-height: 65px;
    padding: 12px 10px;
  }

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

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

  .course-title {
    font-size: 1.1rem;
  }

  .course-desc {
    font-size: 0.85rem;
  }
}


/* ── 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;
  }
}
/* ─────────────────────────────────────────────────────────────────────────── */
