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

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f8ff;
}

.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-section {
  background-color: #f4f8ff;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  max-width: 1120px;
  margin: 1rem auto;
  min-height: 90vh;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem;
    min-height: 85vh;
  }
}

.hero-text {
  max-width: 480px;
  width: 100%;
  margin-right: 2rem;
  text-align: left;
}

.hero-subtitle {
  color: #f58220;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  user-select: none;
}

.hero-title {
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 1.5rem;
  color: #000000;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 2.75rem;
  }
}

.hero-button {
  background-color: #2f357f;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  user-select: none;
  text-decoration: none;
}

.hero-button:hover {
  background-color: #232a6a;
}

.hero-image-container {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  user-select: none;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .hero-image {
    max-width: 300px;
  }

  .hero-image-container {
    justify-content: center;
    padding-right: 0;
  }
}

/* Our Service Section */
.our-service-section {
  background-color: white;
  padding: 2.5rem 1rem; 
  text-align: center;
}

.our-service-title {
  color: #f58220;
  font-weight: 600;
  margin-bottom: 2rem;
  user-select: none;
  font-size: 1.5rem;
}

.our-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .our-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.service-icon {
  margin: 0 auto 1rem;
  width: 180px;
  height: 180px;
  user-select: none;
  object-fit: contain;
  display: block;
  background: transparent;
}

.service-title {
  color: #2f357f;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.service-description {
  font-size: 0.8rem;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.25rem;
  user-select: none;
  text-align: justify;
}

/* Responsive Our Service */
@media (max-width: 768px) {
  .our-service-section {
    padding: 2rem 1rem;
  }
  .our-service-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-icon {
    width: 120px;
    height: 120px;
  }
  .service-description {
    max-width: 100%;
    text-align: justify; 
    font-size: 0.95rem;
  }
}

/* Spacing between sections */
.our-service-section {
  margin-bottom: 2.5rem;
}

.carousel-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1rem;
}

/* Carousel Section */
.carousel-title {
  color: #f58220;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3.5rem;
  user-select: none;
  font-size: 1.5rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50px; 
  height: 100%;
  z-index: 1;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0) 100%);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.85) 60%, rgba(255, 255, 255, 0) 100%);
}

.carousel-wrapper.no-shadow::before,
.carousel-wrapper.no-shadow::after {
  display: none !important;
}

.carousel-flex-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.carousel-button {
  position: relative;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  border: none;
  color: #f58220;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(245, 130, 32, 0.08);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -10px;
}

.carousel-button:hover {
  background: #f58220;
  color: #fff;
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
}

@media (min-width: 1024px) {
  .carousel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.carousel-grid article {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
}

.carousel-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
}

.carousel-grid article:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.carousel-grid article.opacity-40 {
  opacity: 0.4;
  cursor: default;
}

.carousel-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-grid .p-4 {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-grid .text-xs {
  font-size: 0.75rem;
}

/* Responsive Carousel Section */
@media (max-width: 768px) {
  .carousel-section {
    padding: 1rem 1rem;
    margin-bottom: 2rem;
  }
  .carousel-title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .carousel-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .carousel-grid article {
    max-width: 95vw;
  }
  .carousel-grid img {
    height: 140px;
  }
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
  user-select: none;
}

.carousel-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  cursor: pointer;
  background-color: #d1d5db;
  transition: background-color 0.3s ease;
}

.carousel-dots span.active {
  background-color: #f58220;
}

.card-title {
  font-size: 0.875rem; 
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

/* Guide Section: How to Order Product & How to Book Training */
.section-guide {
  width: 100%;
  max-width: 1120px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.section-title {
  color: #f58220;
  font-weight: 600;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  user-select: none;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .guide-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.guide-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.guide-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
  user-select: none;
}

.guide-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2f357f;
}

.guide-card p {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.25rem;
  text-align: justify;
  max-width: 260px;
}

/* Scroll Animation */
.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.animate-fade-up.show {
  opacity: 1;
  transform: translateY(0);
}