/* General Styles (shared across all devices) */
.banner {
  height: 100vh;
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(./source/img_update1/16.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.m1, .m2, .m3, .m4, .m5 {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
  animation: fadeIn 1.5s ease-in forwards;
  opacity: 0;
}

.t1 h1, .t2 h1, .t4 h1, .t5 h1, .t6 h1 {
  font-size: 32px;
  margin: 0 0 40px 0;
  color: #000;
  letter-spacing: 2px;
  animation: slideDown 1.2s ease-in-out forwards;
  opacity: 0;
}

/* Flex containers */
.d1, .d2, .d3, .d4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Small cards */
.d1 div, .d4 div {
  width: 120px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: calc(var(--i) * 0.2s);
  cursor: pointer;
  color: #333;
}

/* Larger cards */
.d2 div, .d3 div {
  width: 100%;
  max-width: 600px;
  background: transparent;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: left;
}

.d2 div:hover, .d3 div:hover, .d4 div:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  color: #000;
}

.d2 div img, .d3 div img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.4s ease;
}

.d2 div img:hover, .d3 div img:hover {
  transform: scale(1.05);
}

.d2 div p, .d3 div p {
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0;
  color: #444;
}

.d3 div h1:hover {
  color: #000;
}

/* Carousel */
.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.review-card {
  min-width: 280px;
  max-width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.carousel-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 10px;
  color: #333;
  transition: color 0.3s ease;
}

.carousel-btn:hover {
  color: #000;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .t1 h1, .t2 h1, .t4 h1, .t5 h1, .t6 h1 {
    font-size: 45px;
  }

  .d1 div, .d4 div {
    width: 150px;
  }

  .d2 div, .d3 div {
    width: 600px;
  }

  .review-card {
    flex: 0 0 33.3333%;
  }

  .carousel-track {
    width: 960px;
  }
}

/* Responsive for tablets & phones */
@media (max-width: 767px) {
  .t1 h1, .t2 h1, .t4 h1, .t5 h1, .t6 h1 {
    font-size: 28px;
  }

  .d1 div, .d4 div {
    width: 100px;
    padding: 15px;
  }

  .d2 div, .d3 div {
    width: 100%;
    max-width: 100%;
  }

  .review-card {
    min-width: 260px;
    max-width: 280px;
    padding: 15px;
  }

  .carousel-wrapper {
    margin-top: 20px;
  }
}

/* Mobile small devices */
@media (max-width: 480px) {
  .t1 h1, .t2 h1, .t4 h1, .t5 h1, .t6 h1 {
    font-size: 24px;
  }

  .m1, .m2, .m3, .m4, .m5 {
    padding: 30px 15px;
  }

  .d1 div, .d4 div {
    width: 90px;
    padding: 10px;
  }

  .review-card {
    min-width: 220px;
    max-width: 260px;
    padding: 12px;
  }
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Extras */
.t6 {
  text-align: center;
}

.d6 {
  width: 100%;
  max-width: 500px;
  height: 150px;
  margin: auto;
  position: relative;
  text-align: center;
  overflow: hidden;
}

#img-bk {
  position: absolute;
  top: 0;
  left: 0;
  height: 150px;
  background-color: #0f411a;
  transition: 0.5s;
  z-index: -1;
  width: 100%;
}

area {
  cursor: pointer;
}

.d6-2 {
  width: 100%;
  text-align: center;
  margin: 0 0 40px 0;
}

.d6-3 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.d6-3::-webkit-scrollbar {
  display: none;
}

.d6-3 .review-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 300px;
  max-width: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.d6-3 .review-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.d6-3 .review-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.d6-3 .review-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Mobile tweaks for d6-3 */
@media (max-width: 768px) {
  .d6-3 {
    gap: 15px;
    padding: 15px;
  }

  .d6-3 .review-card {
    min-width: 260px;
    max-width: 300px;
    padding: 15px;
  }
}

#img1 {
  max-width: 350px;
  max-height: 350px;
  width: 100%;
  height: auto;
}

/* ---------- PREMIUM NEW SAFETY SECTION ---------- */

.safe-section {
    padding: 80px 20px;
    background: #f6f7f9;
}

.safe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.safe-text {
    max-width: 550px;
}

.safe-text h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0b1220;
    letter-spacing: -0.3px;
}

.safe-text p {
    font-size: 18px;
    color: #434343;
    line-height: 1.7;
    margin-bottom: 28px;
}

.safe-btn {
    background: #0f411a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all .3s ease;
    box-shadow: 0 6px 18px rgba(15,64,26,0.15);
}

.safe-btn:hover {
    background: #145625;
    transform: translateY(-4px);
}

.safe-image img {
    width: 420px;
    max-width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
    transition: all .5s ease;
}

.safe-image img:hover {
    transform: translateY(-6px) scale(1.02);
}

@media (max-width: 980px) {
    .safe-container {
        flex-direction: column-reverse;
        padding: 40px;
        text-align: center;
    }
    
    .safe-text {
        max-width: none;
    }

    .safe-text h1 {
        font-size: 32px;
    }

    .safe-image img {
        width: 75%;
        margin: 0 auto;
    }
}

/* === WHY CHOOSE US SECTION === */
.why-choose-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f8f9fb, #ffffff);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.why-title h1 {
  font-size: 36px;
  font-weight: 700;
  color: #0b1220;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: slideDown 1s ease forwards;
}

/* Cards Container */
.why-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Individual Card */
.why-cards .card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px 20px;
  width: 160px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

.why-cards .card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.why-cards .card img {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.why-cards .card img:hover {
  transform: scale(1.1);
}

.why-cards .card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0b1220;
  line-height: 1.4;
}

/* === Animations === */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .why-title h1 {
    font-size: 32px;
  }

  .why-cards .card {
    width: 140px;
    padding: 25px 15px;
  }
}

@media (max-width: 768px) {
  .why-title h1 {
    font-size: 28px;
  }

  .why-cards {
    gap: 20px;
  }

  .why-cards .card {
    width: 120px;
    padding: 20px 15px;
  }
  

  .why-cards .card img {
    width: 60px;
    height: 60px;
  }

  .why-cards .card h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .why-title h1 {
    font-size: 24px;
  }

  .why-cards .card {
    width: 100px;
    padding: 15px 10px;
  }

  .why-cards .card img {
    width: 50px;
    height: 50px;
  }

  .why-cards .card h3 {
    font-size: 13px;
  }
}

