/*!
Theme Name: Tonkin Express Train
Theme URI: https://kmar.media/
Author: TiLu
Author URI: https://kmar.media/
Description: Website proudly made by Kmar
Version: 1.0.3
Text Domain: kmar
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
/* Alignments
--------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}
.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}

.alignright {
  display: inline;
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}

.gallery-caption {
  display: block;
}
.kmar-no_post_found {
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
}
@media only screen and (min-width: 768px) {
  .page-template-default main{
  padding-top: 200px;
  }
}
.page-template-default main{
  padding-top: 100px;
  }
  .the_content {
    font-size: 16px;
}

.the_content .has-drop-cap {
    margin-bottom: 50px;
}

.the_content h2,
.the_content h3,
.the_content h4,
.the_content h5,
.the_content h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.the_content h6 {
    font-size: 16px;
}

.the_content h5 {
    font-size: 18px;
}

.the_content h4 {
    font-size: 22px;
}

.the_content h3 {
    font-size: 25px;
}

.the_content h2 {
    font-size: 27px;
    line-height: 1.5;
}

.the_content p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.the_content ul {
    list-style: disc;
    padding-left: 18px;
}

.the_content ul li {
    line-height: 1.5;
    margin-bottom: 10px;
}

.the_content ol {
  list-style: decimal;
  padding-left: 18px;
  padding-bottom: 5px;
}

.the_content ol li {
  line-height: 1.5;
  margin-bottom: 10px;
}

.the_content blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    border-left: 5px solid #0955c7;
}

.the_content blockquote p {
    margin: 0 !important;
}

.line-wrapper {
  padding: 0 15px;
  margin-top: 84px;
  display: flex;
  align-items: center;
  gap: 44px;
}

.the-sub-title,
.route-destination-from,
.route-destination-to {
  font-family: "DidoRegular", serif;
  color: #041C2C;
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

.route-wrapper {
  margin-top: 113px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 65px;
  column-gap: 85px;
}

.route-wrapper .item-route-wrapper {
  position: relative;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 437px;
  overflow: hidden;
  isolation: isolate;
}

.route-wrapper .item-route-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.46) 28%, rgba(0, 0, 0, 0) 50%);
  pointer-events: none;
  z-index: 0;
}

.route-wrapper .item-route-wrapper .route-destination-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.route-destination-wrapper .route-destination-from, 
.route-destination-wrapper .route-destination-to {
  color: white;
}

.item-route-wrapper .route-destination-description {
  font-family: "Open Sans", serif;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: white;
}

.item-route-wrapper .route-image {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 300ms ease-in-out;
}

.item-route-wrapper:hover .route-image {
  transform: scale(1.05);
}

/* Route Section — Responsive
--------------------------------------------- */

/* Tablet: ≤ 991px */
@media only screen and (max-width: 991px) {
  .line-wrapper {
    margin-top: 50px;
    gap: 20px;
  }

  .the-sub-title {
    font-size: 26px;
  }

  .route-wrapper {
    margin-top: 60px;
    column-gap: 30px;
    row-gap: 40px;
  }

  .route-wrapper .item-route-wrapper {
    height: 360px;
    padding: 16px 20px;
  }
}

/* Mobile: ≤ 767px */
@media only screen and (max-width: 767px) {
  .line-wrapper {
    margin-top: 36px;
    gap: 12px;
  }

  .the-sub-title {
    font-size: 18px;
    white-space: normal;
  }

  .route-destination-from,
  .route-destination-to {
    font-size: 24px;
  }

  .route-wrapper {
    margin-top: 36px;
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 0;
  }

  .route-wrapper .item-route-wrapper {
    height: 260px;
    padding: 16px;
  }

  .item-route-wrapper .route-destination-description {
    font-size: 14px;
  }
}

.the-title.flex-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.route-cabin-wrapper {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inner-route-cabin-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.view-all-btn {
  margin-top: 40px;
}

.view-all-btn:hover {
  background-color: #041c2c;
  color: white;
}

/* Schedule & Operating Hours Grid
--------------------------------------------- */
.schedule-grid {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 50px;
  column-gap: 32px;
}

.schedule-card {
  border: 1px solid #D5CCB8;
  border-radius: 8px;
  background: white;
  display: flex;
  flex-direction: column;
  position: relative;
}

.schedule-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 23px 19px;
  background: #F7F5F1;
  border-radius: 8px 8px 0 0;
}

.schedule-card__city {
  font-family: "Open Sans", serif;
  font-weight: 600;
  font-size: 18px;
  color: #041c2c;
  white-space: nowrap;
}

.schedule-card__city--to {
  margin-left: auto;
}

.schedule-card__duration {
  font-family: "Open Sans", serif;
  font-weight: 500;
  font-size: 16px;
  color: #7a7a7a;
  white-space: nowrap;
}

.schedule-card__line {
  flex: 1;
  height: 1px;
  background: #c8c8c8;
  min-width: 16px;
}

.schedule-card__body {
  padding: 24px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-card__label,
.schedule-card__time {
  font-family: "Open Sans", serif;
  font-size: 16px;
  font-weight: 500;
  color: #999999;
}

.schedule-card__tear {
  position: relative;
  border-top: 1px dashed #c8c8c8;
  margin: 0;
}

.schedule-card__tear::before,
.schedule-card__tear::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 24px;
  background: #fff;
  top: 50%;
  transform: translateY(-50%);
}

.schedule-card__tear::before {
  left: -1px;
  border-radius: 0 12px 12px 0;
  border: 1px solid #d4d0c9;
  border-left: none;
}

.schedule-card__tear::after {
  right: -1px;
  border-radius: 12px 0 0 12px;
  border: 1px solid #d4d0c9;
  border-right: none;
}

.schedule-card__footer {
  margin-top: auto;
  padding: 30px 20px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-card__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.schedule-card__from {
  font-family: "Open Sans", serif;
  font-size: 16px;
  font-weight: 500;
  color: #999999;
}

.schedule-card__amount {
  font-size: 22px;
  font-weight: 700;
  color: #041c2c;
}

.schedule-card__unit {
  font-family: "Open Sans", serif;
  font-size: 16px;
  font-weight: 500;
  color: #999999;
}

.schedule-card__book {
  font-family: "Open Sans", serif;
  font-size: 18px;
  font-weight: 700;
  color: #041c2c;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

/* Schedule Grid — Responsive
--------------------------------------------- */
@media only screen and (max-width: 1023px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
    column-gap: 20px;
    margin-top: 28px;
  }
}

@media only screen and (max-width: 767px) {
  .schedule-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
    column-gap: 20px;
    margin-top: 28px;
  }

  .schedule-card__header {
    padding: 14px 16px;
  }

  .schedule-card__city {
    font-size: 17px;
  }

  .schedule-card__body {
    padding: 12px 16px;
  }

  .schedule-card__footer {
    padding: 12px 16px;
  }

  .schedule-card__amount {
    font-size: 18px;
  }
}

/* About The Destination Block
--------------------------------------------- */
.destination-block {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.destination-block__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.destination-block__title {
  width: 100%;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #4A4A4A;
  margin-bottom: 34px;
}

.destination-block__content {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #4A4A4A;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.destination-block__image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  display: block;
}

/* Destination Block — Responsive
--------------------------------------------- */
@media only screen and (max-width: 991px) {
  .destination-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
  }

  .destination-block__image img {
    height: 300px;
  }
}

@media only screen and (max-width: 767px) {
  .destination-block__title {
    font-size: 18px;
  }

  .destination-block__image img {
    height: 220px;
  }
}