.slide8-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  padding: 0;
  width: 1600px;
  height: 950px;
}


@media (max-width: 1800px) {
  .slide8-content {
    height: 100%;
    width: 100%;
  }

}

@media (max-height: 700px) {
  .slide8-content {
    height: unset;
  }
}

.slide8-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.budget-container-8 {
  width: 100%;
  max-width: 1400px;
  padding: 50px;
  z-index: 2;
  position: relative;
}

.budget-title-8 {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.budget-subtitle-8 {
  font-size: 1.3rem;
  text-align: center;
  color: #475569;
  margin-bottom: 50px;
  font-weight: 500;
  max-width: 100% !important;
}


.budget-main-8 {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.budget-chart-section-8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.pie-chart-container-8 {
  position: relative;
  width: 400px;
  height: 400px;
}

.pie-chart-8 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    #1e40af 0deg 226deg,
    #4338ca 226deg 304deg,
    #059669 304deg 335deg,
    #dc2626 335deg 363deg,
    #f59e0b 363deg 360deg
  );
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.pie-chart-8:hover {
  transform: scale(1.02);
}

.chart-center-8 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.total-amount-8 {
  text-align: center;
}

.amount-8 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  display: block;
  line-height: 1;
}

.currency-8 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #6366f1;
  display: block;
  margin-top: 5px;
}

.usd-8 {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.budget-legend-8 {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 200px;
}

.legend-item-8 {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.legend-item-8:hover {
  transform: translateX(5px);
}

.legend-color-8 {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-color-8.personnel {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.legend-color-8.marketing {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.legend-color-8.mvp {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.legend-color-8.legal {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.legend-color-8.infra {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.legend-label-8 {
  flex: 1;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.legend-value-8 {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.9rem;
}

.budget-breakdown-8 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  max-width: 400px;
}

.breakdown-card-8 {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid;
}

.breakdown-card-8:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.personnel-card-8 {
  border-left-color: #1e40af;
}

.marketing-card-8 {
  border-left-color: #4338ca;
}

.mvp-card-8 {
  border-left-color: #059669;
}

.card-header-8 {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.card-header-8 img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.card-header-8 h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.card-content-8 p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 15px;
  font-weight: 500;
}

.card-amount-8 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #059669;
  text-align: right;
}

.budget-highlights-8 {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 30px;
}

.highlight-item-8 {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px 35px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-item-8:hover {
  transform: translateY(-5px);
}

.highlight-item-8 img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.highlight-content-8 h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
  line-height: 1.2;
}

.highlight-content-8 p {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.3;
}

/* ------------------------------------------------------------------- */

/* Desktop Small (1020px - 1440px) */
@media (min-width: 1024px) and (max-width: 1600px) and (min-height: 500px) {
  .slide8-content {
    padding: 0;
  }

  .budget-container-8 {
    max-width: 1200px;
    padding: 80px 30px;
  }

  .budget-title-8 {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }

  .budget-subtitle-8 {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .budget-main-8 {
    gap: 30px;
    margin-bottom: 25px;
  }

  .pie-chart-container-8 {
    width: 280px;
    height: 280px;
  }

  .chart-center-8 {
    width: 130px;
    height: 130px;
  }

  .amount-8 {
    font-size: 1.8rem;
  }

  .currency-8 {
    font-size: 0.95rem;
  }

  .usd-8 {
    font-size: 0.75rem;
  }

  .budget-legend-8 {
    gap: 8px;
    min-width: 160px;
  }

  .legend-item-8 {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .legend-color-8 {
    width: 12px;
    height: 12px;
  }

  .legend-label-8 {
    font-size: 0.8rem;
  }

  .legend-value-8 {
    font-size: 0.75rem;
  }

  .budget-breakdown-8 {
    gap: 12px;
    max-width: 320px;
  }

  .breakdown-card-8 {
    padding: 15px;
    border-radius: 15px;
  }

  .card-header-8 {
    margin-bottom: 10px;
  }

  .card-header-8 img {
    width: 32px;
    height: 32px;
  }

  .card-header-8 h3 {
    font-size: 1rem;
  }

  .card-content-8 p {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .card-amount-8 {
    font-size: 1.1rem;
  }

  .budget-highlights-8 {
    gap: 25px;
    margin-top: 15px;
  }

  .highlight-item-8 {
    padding: 15px 20px;
    border-radius: 15px;
  }

  .highlight-item-8 img {
    width: 35px;
    height: 35px;
  }

  .highlight-content-8 h4 {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .highlight-content-8 p {
    font-size: 0.75rem;
  }
}

/* Desktop Small (767px - 1020px) */
@media (min-width: 767px) and (max-width: 1100px) {
  .slide8-content {
    padding: 0;
  }

  .budget-container-8 {
    max-width: 900px;
    padding: 200px 30px;
  }

  .budget-title-8 {
    font-size: 2.6rem;
    margin-bottom: 10px;
  }

  .budget-subtitle-8 {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .budget-main-8 {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 35px;
    align-items: center;
  }

  .budget-chart-section-8 {
    gap: 30px;
  }

  .pie-chart-container-8 {
    width: 320px;
    height: 320px;
  }

  .chart-center-8 {
    width: 140px;
    height: 140px;
  }

  .amount-8 {
    font-size: 2rem;
  }

  .currency-8 {
    font-size: 1rem;
  }

  .usd-8 {
    font-size: 0.8rem;
  }

  .budget-legend-8 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    min-width: auto;
  }

  .legend-item-8 {
    padding: 10px 12px;
    border-radius: 10px;
    flex: 0 1 auto;
    min-width: 120px;
  }

  .legend-color-8 {
    width: 14px;
    height: 14px;
  }

  .legend-label-8 {
    font-size: 0.85rem;
  }

  .legend-value-8 {
    font-size: 0.8rem;
  }

  .budget-breakdown-8 {
    gap: 20px;
    max-width: 100%;
    width: 100%;
  }

  .breakdown-card-8 {
    padding: 20px;
    border-radius: 16px;
  }

  .card-header-8 img {
    width: 35px;
    height: 35px;
  }

  .card-header-8 h3 {
    font-size: 1.1rem;
  }

  .card-content-8 p {
    font-size: 0.8rem;
  }

  .card-amount-8 {
    font-size: 1.2rem;
  }

  .budget-highlights-8 {
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .highlight-item-8 {
    padding: 20px 25px;
    border-radius: 16px;
    flex: 0 1 auto;
    min-width: 250px;
  }

  .highlight-item-8 img {
    width: 40px;
    height: 40px;
  }

  .highlight-content-8 h4 {
    font-size: 1.1rem;
  }

  .highlight-content-8 p {
    font-size: 0.8rem;
  }
}

@media (max-width: 767px) {
  .slide8-content {
    padding: 0;
  }

  .budget-container-8 {
    max-width: 100%;
    padding: 90px 15px;
  }

  .budget-title-8 {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1.1;
  }

  .budget-subtitle-8 {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .budget-main-8 {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
    align-items: center;
  }

  .budget-chart-section-8 {
    gap: 20px;
    width: 100%;
  }

  .pie-chart-container-8 {
    width: 250px;
    height: 250px;
  }

  .chart-center-8 {
    width: 110px;
    height: 110px;
  }

  .amount-8 {
    font-size: 1.6rem;
    line-height: 1;
  }

  .currency-8 {
    font-size: 0.9rem;
    margin-top: 3px;
  }

  .usd-8 {
    font-size: 0.7rem;
    margin-top: 1px;
  }

  .budget-legend-8 {
    flex-direction: column;
    gap: 10px;
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }

  .legend-item-8 {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .legend-color-8 {
    width: 12px;
    height: 12px;
  }

  .legend-label-8 {
    font-size: 0.8rem;
  }

  .legend-value-8 {
    font-size: 0.75rem;
  }

  .budget-breakdown-8 {
    display: none;
    gap: 12px;
    max-width: 100%;
    width: 100%;
  }

  .breakdown-card-8 {
    padding: 15px;
    border-radius: 15px;
  }

  .card-header-8 {
    gap: 12px;
    margin-bottom: 12px;
  }

  .card-header-8 img {
    width: 30px;
    height: 30px;
  }

  .card-header-8 h3 {
    font-size: 1rem;
  }

  .card-content-8 p {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .card-amount-8 {
    font-size: 1.1rem;
  }

  .budget-highlights-8 {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
  }

  .highlight-item-8 {
    padding: 15px 20px;
    border-radius: 15px;
    width: 100%;
    max-width: 300px;
    gap: 15px;
  }

  .highlight-item-8 img {
    width: 35px;
    height: 35px;
  }

  .highlight-content-8 h4 {
    font-size: 1rem;
    margin-bottom: 3px;
  }

  .highlight-content-8 p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
}

@media (max-height: 700px) {
  .slide8-content {
    padding-top: 150px;
    padding-bottom: 120px;
  }
}