* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
  overflow-x: hidden;
}

/* Navbar Styles (Unchanged from Previous Digital Marketing Page) */
.btm {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  /* font-size: 1.1rem; */
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btm-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btm-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

/* Hero Section */
.courses-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
  overflow: hidden;
}

.courses-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(124, 58, 237, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.courses-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.courses-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.courses-hero .gradient-text {
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.courses-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Courses Section */
.courses-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 1s ease forwards;
  animation-delay: calc(var(--delay) * 0.2s);
}

.course-card:nth-child(1) {
  --delay: 1;
}

.course-card:nth-child(2) {
  --delay: 2;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.3);
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  z-index: -1;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.course-card:hover::before {
  left: 100%;
}

.course-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(124, 58, 237, 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover::after {
  opacity: 1;
}

.course-card a{
  text-decoration: none;
}

.course-icon {
  font-size: 2.5rem;
  color: #7c3aed;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.course-card:hover .course-icon {
  transform: scale(1.3) rotate(10deg);
  color: #a855f7;
}

.course-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.course-card:hover h3 {
  color: #7c3aed;
}

.course-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.course-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.course-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.course-btn:hover::after {
  left: 100%;
}

.course-btn:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #0a0a1a 0%, #14142b 50%, #1f1247 100%);
  padding: 5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(88, 28, 135, 0.3);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(88, 28, 135, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(147, 51, 234, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section {
  padding: 1rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #9333ea;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.footer-logo:hover i {
  transform: rotate(360deg);
}

.footer-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: #9333ea;
  transform: translateY(-3px) scale(1.2);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #9333ea;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #581c87, #9333ea);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
  width: 60px;
}

.footer-menu {
  list-style: none;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #9333ea;
  transform: translateX(5px);
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-input {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
  width: 100%;
  max-width: 200px;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #581c87, #9333ea);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.newsletter-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.newsletter-btn:hover::after {
  left: 100%;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(88, 28, 135, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(88, 28, 135, 0.3);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {

  .courses-hero {
    padding: 6rem 1rem 3rem;
  }

  .courses-hero h1 {
    font-size: 2.5rem;
  }

  .courses-container {
    grid-template-columns: 1fr;
  }

  .course-card {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-input {
    max-width: 100%;
  }
}
