/* rice.css - Styles specific to rice.html page */

.hero-slideshow {
  position: relative;
  height: 100vh;
  /* Fallback */
  height: 100svh;
  /* Mobile modern */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  margin-top: -76px;
  padding-top: 76px;
}

.slides-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-contact-btn {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  background-color: #3498db;
  color: white;
  transition: background-color 0.3s ease;
}

.hero-contact-btn:hover,
.hero-contact-btn:focus {
  background-color: #2980b9;
  outline: none;
}

.prev-slide,
.next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3;
  user-select: none;
}

.prev-slide {
  left: 20px;
}

.next-slide {
  right: 20px;
}

.prev-slide:hover,
.next-slide:hover,
.prev-slide:focus,
.next-slide:focus {
  background: rgba(0, 0, 0, 0.6);
  outline: none;
}

.slide-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.slide-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slide-dots .dot.active,
.slide-dots .dot:hover,
.slide-dots .dot:focus {
  background-color: #3498db;
  outline: none;
}

/* Product Overview Section */

.product-overview {
  padding: 4rem 2rem;
  background-color: #ffffff;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.product-overview .section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #475569;
  flex-grow: 1;
}

.product-card .btn-secondary {
  background-color: transparent;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.product-card .btn-secondary:hover,
.product-card .btn-secondary:focus {
  background-color: #3498db;
  color: white;
  outline: none;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
  outline: none;
}

/* Location Section */

.location-section {
  padding: 4rem 2rem;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.location-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.location-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.location-text {
  flex: 1 1 300px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
}

.location-text p {
  margin-bottom: 1.5rem;
}

.location-text .btn-primary {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  background-color: #3498db;
  color: white;
  transition: background-color 0.3s ease;
}

.location-text .btn-primary:hover,
.location-text .btn-primary:focus {
  background-color: #2980b9;
  outline: none;
}

.location-map {
  flex: 1 1 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  height: 300px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Responsive */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .location-content {
    flex-direction: column;
  }

  .location-map {
    height: 250px;
  }
}

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