/* ============================================
   Products & Services Page Styles
   ============================================ */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  overflow: hidden;
  background: #0f172a;
}

.hero-photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 41, 59, 0.85) 50%,
    rgba(245, 67, 54, 0.55) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero-content .badge {
  font-size: 14px;
  padding: 8px 20px;
  margin-bottom: 24px;
}

.page-hero-content h1 {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-hero-content p {
  font-size: 22px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.page-hero .hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
}

.page-hero .hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ---------- Section Base ---------- */
.section {
  padding: 40px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title .subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 50px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Course System Chart Section ---------- */
.course-chart-section {
  background: #fff;
}

.course-chart-large {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--color-gray-200);
}

.course-chart-large img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Product Cards Grid (Overview) ---------- */
.products-overview-section {
  background: var(--color-gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.product-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-red);
}

.product-card:nth-child(2) .product-card-badge { background: var(--color-blue); }
.product-card:nth-child(3) .product-card-badge { background: var(--color-green); }
.product-card:nth-child(4) .product-card-badge { background: var(--color-yellow-dark); }
.product-card:nth-child(5) .product-card-badge { background: var(--color-teal); }
.product-card:nth-child(6) .product-card-badge { background: #8B5CF6; }

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.product-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-card-meta span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--color-gray-100);
  color: var(--text-tertiary);
  font-weight: 500;
}

.product-card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.product-card:hover .product-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Product Detail Sections ---------- */
.product-detail-section {
  background: #fff;
  padding: 60px 0;
}

.product-detail-section:nth-child(even) {
  background: var(--color-gray-50);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-detail-grid.reverse .product-detail-content {
  order: 2;
}

.product-detail-grid.reverse .product-detail-image {
  order: 1;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding: 6px 18px;
  border-radius: 50px;
}

.product-badge.red { color: var(--color-red); background: var(--color-red-bg); }
.product-badge.blue { color: var(--color-blue); background: var(--color-blue-bg); }
.product-badge.green { color: var(--color-green); background: var(--color-green-bg); }
.product-badge.yellow { color: var(--color-yellow-dark); background: var(--color-yellow-bg); }
.product-badge.teal { color: var(--color-teal); background: var(--color-teal-bg); }
.product-badge.purple { color: #8B5CF6; background: rgba(139, 92, 246, 0.1); }

.product-detail-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-detail-subtitle {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 24px;
  line-height: 1.6;
}

.product-detail-section.blue-theme .product-detail-subtitle { color: var(--color-blue); }
.product-detail-section.green-theme .product-detail-subtitle { color: var(--color-green); }
.product-detail-section.yellow-theme .product-detail-subtitle { color: var(--color-yellow-dark); }
.product-detail-section.teal-theme .product-detail-subtitle { color: var(--color-teal); }
.product-detail-section.purple-theme .product-detail-subtitle { color: #8B5CF6; }

.product-detail-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-detail-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pdf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.pdf-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.pdf-icon.red { background: var(--color-red-bg); }
.pdf-icon.blue { background: var(--color-blue-bg); }
.pdf-icon.green { background: var(--color-green-bg); }
.pdf-icon.yellow { background: var(--color-yellow-bg); }
.pdf-icon.teal { background: var(--color-teal-bg); }
.pdf-icon.purple { background: rgba(139, 92, 246, 0.1); }

.product-detail-image {
  position: relative;
}

.pdi-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
}

.pdi-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.16);
}

.pdi-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.pdi-wrap:hover img {
  transform: scale(1.02);
}

/* ---------- CTA Section ---------- */
.products-cta-section {
  background: #fff;
  padding: 40px 0 60px;
}

.products-cta-box {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-light) 50%, var(--color-yellow) 100%);
  border-radius: 24px;
  padding: 70px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.products-cta-box::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.products-cta-box::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.products-cta-content {
  position: relative;
  z-index: 1;
  color: #fff;
  flex: 1;
}

.products-cta-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.products-cta-content p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 24px;
}

.products-cta-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.products-cta-features span {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}

.products-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-detail-grid.reverse .product-detail-content {
    order: 1;
  }

  .product-detail-grid.reverse .product-detail-image {
    order: 2;
  }

  .product-detail-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .products-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 50px 36px;
  }

  .products-cta-features {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .page-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .page-hero-content h1 {
    font-size: 36px;
  }

  .page-hero-content p {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-title {
    font-size: 28px;
  }

  .products-cta-box {
    padding: 40px 24px;
    gap: 30px;
  }

  .products-cta-content h2 {
    font-size: 26px;
  }
}
