/* Carousel Styles */
.carousel-control-prev:hover,
.carousel-control-next:hover {
	background-color: rgba(255,255,255,0.5)
}

/* Blog Post Common Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TCC Content Styles */
.homepage-tcc-information {
  position: relative;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.tcc-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.desktop-image {
  flex: 1;
  max-width: 50%;
  object-fit: contain;
}

.tcc-content {
  flex: 1;
  text-align: center;
  padding: 20px;
}

.tcc-content p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  line-height: 1.6;
}

.button.gaevent {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  /* border-radius: 4px; */
  /* font-weight: bold; */
  transition: background-color 0.3s ease;
  font-style: italic;
}

/* .button.gaevent:hover {
  background-color: #ff9d00;
  color: white;
} */


/* Categories Section */

.block-static-block.widget,
.block-cms-link.widget {
  margin-bottom: 0;
}

.featured-categories {
  padding: 60px 0;
  background-color: white;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.category-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-card .image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background-color: #e9ecef;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Products Section */
.products-section {
  padding: 20px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-section .container h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #1c2e5c;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 50px;
}

.image-placeholder-product {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 500px;
  height: auto;
  padding: 35px 35px 70px;
  position: relative;
  width: 100%;
}

.product-card h3 {
  color: #fff;
  margin: 10px 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
}

.product-card p {
  font-size: 1rem;
  color: #fff;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  .product-card {
    margin-bottom: 30px;
    max-width: 100%;
    height: auto; /* 改为自适应高度 */
  }

  .image-placeholder-product {
    padding: 30px 25px 65px;
    min-height: 300px;
    max-height: 300px; /* 设置最大高度 */
  }

  .product-card h3 {
    font-size: 1.4rem;
    margin: 12px 0 8px;
  }
  
  .product-card p {
      opacity: 0
  }

  .btn-secondary {
    padding: 11px 18px;
    font-size: 0.95rem;
    bottom: 30px;
  }
}

@media (max-width: 576px) {
    /* Product Card Mobile Styles */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 5px;
  }

  .product-card {
    margin-bottom: 30px;
    max-width: 100%;
    height: auto; /* 改为自适应高度 */
  }

  .image-placeholder-product {
    padding: 25px 20px 60px;
    min-height: 300px; /* 设置最小高度 */
    max-height: 300px; /* 设置最大高度 */
  }

  .product-card h3 {
    font-size: 1.3rem;
    margin: 10px 0 5px;
  }
  
  .product-card p {
     opacity: 0
   }

  .btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
    bottom: 25px;
  }

  .btn-primary {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}