/* Module / Service Detail Page Styles */

/* Module Hero */
.module-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.module-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.module-hero-bg::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  top: -20%;
  right: -10%;
  animation: floatShape 20s ease-in-out infinite;
}

.module-hero-bg::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  bottom: -15%;
  left: -10%;
  animation: floatShape 20s ease-in-out infinite;
  animation-delay: -10s;
}

.module-hero-bg.purple::before { background: var(--purple); }
.module-hero-bg.purple::after { background: var(--primary-light); }
.module-hero-bg.cyan::before { background: var(--blue); }
.module-hero-bg.cyan::after { background: var(--secondary-dark); }
.module-hero-bg.pink::before { background: var(--purple); }
.module-hero-bg.pink::after { background: var(--purple-light); }
.module-hero-bg.green::before { background: #10B981; }
.module-hero-bg.green::after { background: var(--blue); }
.module-hero-bg.orange::before { background: #ff9f43; }
.module-hero-bg.orange::after { background: var(--purple); }
.module-hero-bg.teal::before { background: #00c8c8; }
.module-hero-bg.teal::after { background: var(--blue); }
.module-hero-bg.gold::before { background: #F59E0B; }
.module-hero-bg.gold::after { background: var(--purple); }

.module-hero .container {
  position: relative;
  z-index: 1;
}

.module-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.module-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.module-hero-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.module-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
}

.module-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.module-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 60%);
}

/* Module Content Sections */
.module-section {
  padding: 80px 0;
}

.module-section-alt {
  padding: 80px 0;
  background: var(--bg-alt);
}

.module-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.module-section .section-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* What You Learn */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.learn-item:hover {
  border-color: rgba(37, 99, 235, 0.1);
  transform: translateX(4px);
}

.learn-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.learn-item-text h4 {
  font-family: var(--font-alt);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.learn-item-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Tools Used */
.tools-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 700px;
  margin: 32px auto 0;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tool-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.tool-chip i {
  font-size: 0.9rem;
}

/* Module Projects */
.module-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.module-project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: var(--transition-med);
}

.module-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-md);
}

.module-project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.module-project-card-body {
  padding: 16px 20px 20px;
}

.module-project-card-body h4 {
  font-family: var(--font-alt);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.module-project-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Module CTA */
.module-cta {
  text-align: center;
  padding: 80px 0;
}

.module-cta h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.module-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
  .module-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .module-hero-image {
    max-height: 350px;
  }

  .module-projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .module-projects {
    grid-template-columns: 1fr;
  }

  .module-section,
  .module-section-alt {
    padding: 60px 0;
  }

  .module-hero {
    padding: 120px 0 60px;
  }
}
