body {
  font-family: sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
}

.container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 2em;
  border-radius: 10px;
  margin-top: 2em;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

img.main-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1em;
}

h2 {
  color: #222;
}

.price {
  color: #009688;
  font-weight: bold;
  margin-bottom: 1em;
}

.itinerary {
  margin-top: 2em;
}

.day-itinerary {
  margin-bottom: 2em;
  background: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.day-image img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 1em;
}

/* Other packages section */
.others-section {
  max-width: 1200px;
  margin: 3em auto;
  padding: 1em;
}

.others-section h3 {
  margin-bottom: 1em;
  text-align: center;
}

.card-grid {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}

.package-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 280px;
  position: relative;
}

.card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: blue;
  border-radius: 50%;
  padding: 0.3em 0.4em;
  text-decoration: none;
}

.arrow-btn:hover {
  color: white;
  background-color: rgb(66, 26, 26);
  border-radius: 20px;
}

.card-content {
  padding: 1em;
}

.card-content h4 {
  margin: 0;
}

.card-content p {
  margin: 0.5em 0;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.back-btn:hover {
  background: #555;
}

#ph {
  border: none;
  background-color: green;
  padding: 15px;
  border-radius: 20px;
  color: white;
  width: fit-content;
  margin: auto;
  float: right;
}

.card-content h4,
.card-content p {
  text-align: center;
}

.day-text{
  text-align: justify;
  line-height: 1.3;
}

.booknow{
  padding: 10px 15px;
  background-color: rgb(4, 0, 222);
  border-radius: 15px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

@media screen and (min-width: 1000px) {
  #ph {
    border: none;
    padding: 15px;
    border-radius: 20px;
    color: white;
    font-size: 1em; /* 20% more than original 1.5em */
  }

  .day-itinerary1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .day-text {
    flex: 1.8;
    max-width: 70%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: justify;
  }

  .day-image {
    width: 40%;
    min-width: 200px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .day-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .others-section h3 {
    font-size: 2.16em; /* 1.8em + 20% */
  }

  .arrow-btn {
    font-size: 1em; /* 1em + 20% */
  }

  .card-content h4 {
    font-size: 1.32em; /* 1.1em + 20% */
  }

  .card-content p {
    font-size: 1.08em; /* 0.9em + 20% */
  }

  .icons {
    font-size: 1.08em; /* 0.9em + 20% */
  }
}

@media screen and (max-width: 1000px) {
  #ph {
    border: none;
    padding: 15px;
    border-radius: 20px;
    color: white;
    font-size: 1.5em; /* 20% more than original 1.5em */
  }

  .day-itinerary1 {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .day-text {
    width: 95%;
    margin-left: 2.5%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .day-image {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10%;
  }

  .day-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .others-section h3 {
    font-size: 3em; /* 1.8em + 20% */
  }

  .arrow-btn {
    font-size: 1.4em; /* 1em + 20% */
  }

  .card-content h4 {
    font-size: 1.32em; /* 1.1em + 20% */
  }

  .card-content p {
    font-size: 1.08em; /* 0.9em + 20% */
  }

  .icons {
    font-size: 1.08em; /* 0.9em + 20% */
  }
  .day-itinerary h3 {
    font-size: 3em;
  }

  .day-text {
    font-size: 2em;
  }
}
