.safety-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 250px;
  background: #0F0F0F;
  color: #FFFFFF;
  gap:10px;
  width:100%;
  height:auto;
}

.safety-container {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  height:auto;
}

/* ---- Top Section (Text + Image + Text) ---- */
.safety-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

.safety-col {
  flex: 1 1 280px;
  min-width: 250px;
}

.safety-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}

.safety-tag {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.safety-title {
  font-weight: 300;
  font-size: 40px;
  line-height: 1.2;
}

.safety-description p {
  color: #808080;
  font-size: 16px;
  line-height: 1.6;
}

.safety-image {
  width: 298px;        /* Figma width */
  height: 283px;       /* Figma height */
  overflow: hidden;    /* ensures image doesn't overflow container */
  display: flex;
  justify-content: center;
  align-items: center;
}

.safety-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* zoom effect like Figma */
  opacity: 1;          /* as in Figma */
  transform: scale(1); /* keep at 100% unless you want extra zoom */
  transition: transform 0.3s ease; /* optional for hover effects */
}

/* Optional: extra zoom on hover */
.safety-image img:hover {
  transform: scale(1.05);
}

/* ---- Bottom Section (Cards) ---- */
.safety-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  width: 100%;
      padding-bottom: 80px;
}

.safety-card {
  background: #141414;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease;
}

.safety-card:hover {
  transform: translateY(-4px);
}

.safety-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.safety-card-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #FFFFFF;
}

/* ---- Responsive for tablets and mobile ---- */


/* ---- Mobile layout ---- */
@media (max-width: 1000px) {
  .safety-section{
    padding: 0;
    height:auto;
  }
  .safety-container{
    margin-top:50px;

    height:auto;

  }
  .safety-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  flex-wrap: wrap;

  }

  .safety-text,
  .safety-description {
    align-items: center;
  }

  .safety-title {
    font-size: 28px;
  }

  .safety-description p {
    max-width: 90%;
    margin: 0 auto;
  }

  .safety-cards {
    grid-template-columns: repeat(1, 1fr); /* 2 cards per row */
    justify-items: center;
  }

  .safety-card {
    align-items: center;
    text-align: center;
    width: 90%;
  }

  .safety-col {
  flex: none;
}
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  .safety-title {
    font-size: 24px;
  }

  .safety-cards {
    grid-template-columns: 1fr; /* stack cards */
  }
}

/* ---- Large Screens (≥1441px) ---- */
@media (min-width: 1441px) {
  .safety-container {
    max-width: 80%;
  }

  .safety-top {
    width:1100px;
    max-width: none;
  }

  .safety-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .safety-section{
    padding: 0;
  }

  .safety-card{
    width: 250px;
  }
}