/* ========================================
   Food Safety Page Styles
   ======================================== */

.food-safety-section {}

/* Hero Banner - Image Bottom */
.food-safety__banner .hero-banner__bg {
  object-position: center bottom;
}

/* Section Title */
.food-safety__intro {
  padding: 80px 20px 60px;
  text-align: center;
  background-color: #fff;
}

.food-safety__title {
  font-size: 48px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
}

.food-safety__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 4px auto 0;
}

.food-safety__subtitle {
  font-size: 18px;
  letter-spacing: 10%;
  text-align: center;
}

/* Content Section */
.food-safety__content {
  padding: 0 40px;

}

.food-safety__content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #F3ECE2;
  border-radius: 16px;
  overflow: hidden;
}

.food-safety__image {
  width: 50%;
  aspect-ratio: 2/1;
}

.food-safety__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.food-safety__text {
  flex: 1;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.food-safety__text p {
  font-size: 14px;
  line-height: 200%;
}

.food-safety__text p:last-child {
  margin-bottom: 0;
}

/* Features Section */
.food-safety__features {
  padding: 60px 20px 80px;
  background-color: #fff;
}

.food-safety__features-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
  max-width: 720px;
  margin: 0 auto;
}

.food-safety__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.food-safety__feature-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #99B863;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.food-safety__feature:nth-child(2n-1) .food-safety__feature-icon img {
  width: 70%;
  height: 70%;
  color: #fff;
}

.food-safety__feature-icon img {
  width: 60%;
  height: 60%;
  color: #fff;
}

.food-safety__feature-text {
  font-size: 18px;
}

@media (max-width: 768px) {
  .food-safety__intro {
    padding: 40px;
  }

  .food-safety__title {
    font-size: 36px;
  }

  .food-safety__subtitle {
    font-size: 16px;
  }

  .food-safety__content-wrapper {
    flex-direction: column;
  }

  .food-safety__image {
    flex: none;
    width: 100%;
  }

  .food-safety__image img {
    aspect-ratio: 16 / 9;
  }

  .food-safety__text {
    padding: 30px 24px;
  }

  .food-safety__text p {
    font-size: 14px;
  }

  .food-safety__features {
    padding: 40px 20px 80px;
  }

  .food-safety__features-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* ========================================
   Highlights Section (with background image)
   ======================================== */
.food-safety__highlights {
  position: relative;
  padding: 180px 20px;
  overflow: hidden;
}

.food-safety__highlights-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -2;
}

.food-safety__highlights-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  will-change: transform;
}

.food-safety__highlights-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.food-safety__highlight-card {
  flex: 1;
  max-width: 320px;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 0 40px;
}

/* Divider between cards */
.food-safety__highlight-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

.food-safety__highlight-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #fff;
}

.food-safety__highlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food-safety__highlight-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

.food-safety__highlight-desc {
  font-size: 14px;
  line-height: 180%;
}

@media (max-width: 768px) {
  .food-safety__highlights {
    padding: 80px 20px;
  }

  .food-safety__highlights-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 80px;
  }

  .food-safety__highlight-card {
    max-width: 100%;
    padding: 0;
  }

  .food-safety__highlight-image {
    width: 320px;
    height: 320px;
  }

  .food-safety__highlight-card:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 1px;
  }
}

/* ========================================
   Testing Reports Section
   ======================================== */
.food-safety__reports {
  padding: 80px 40px 100px;
  background-color: #fff;
}

.food-safety__reports-wrapper {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
}

.food-safety__report-card {
  flex: 1;
  background-color: #fff;
}

.food-safety__report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: #99B863;
  border-radius: 20px 20px 0 0;
}

.food-safety__report-name {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

.food-safety__report-more-link {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.food-safety__report-more-link:hover {
  opacity: 1;
}

.food-safety__report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.food-safety__report-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #ccc;
}

.food-safety__report-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #999;
}

.food-safety__report-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
}

.food-safety__report-date {
  font-size: 14px;
  color: var(--text-light);
}

.food-safety__report-btn {
  display: block;
  margin: 30px auto 0;
  padding: 12px 20px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.food-safety__report-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

@media (max-width: 768px) {
  .food-safety__reports {
    padding: 60px 40px 80px;
  }

  .food-safety__reports-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .food-safety__report-card {
    max-width: 100%;
  }

  .food-safety__report-header {
    padding: 12px 16px;
  }

  .food-safety__report-name {
    font-size: 15px;
  }

  .food-safety__report-item {
    gap: 10px;
  }

  .food-safety__report-icon {
    width: 18px;
    height: 18px;
  }
}