@import url("https://fonts.googleapis.com/css?family=Athiti&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Athiti", sans-serif;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

.text-theme {
  color: #0dcaf0;
  font-weight: bold;
}

.bg-theme {
  background: #f15922 !important;
  color: #fff;
}

.bg-theme1 {
  background: #7aa39a !important;
  --bs-table-bg: #7aa39a !important;
  --bs-table-color: #fff;
  color: #fff !important;
}

.bg-table1 {
  background-color: #fff1db !important;
  font-weight: bold;
}

.bg-table2 {
  background-color: #88c273 !important;
  font-weight: bold;
  color: #fff;
}

.bg-table3 {
  background-color: #d4bdac !important;
  font-weight: bold;
}

.bg-table4 {
  background-color: #536493 !important;
  font-weight: bold;
}

.bg-table5 {
  background-color: #ffb0b0 !important;
  font-weight: bold;
}

.bg-table6 {
  background-color: #d8d2d2 !important;
  font-weight: bold;
}

.bg-table7 {
  background-color: #fcde70 !important;
  font-weight: bold;
}

a {
  text-decoration: none;
  color: #f15922;
}

a:hover {
  color: #0dcaf0;
}

/*-----------------------Navbar---------------------------*/
.navbar {
  color: #f15922 !important;
  font-weight: bold;
  margin: 0 auto;
  justify-content: center;
  text-align: center;
}

.navbar .container,
.navbar .container-fluid {
  justify-content: center;
}

.navbar-brand {
  font-family: "Athiti", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #243b55 !important; /* น้ำเงินกรมท่าเข้ม ดูสุภาพและตัดกับพื้นขาวชัดเจน */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  margin: 0 auto !important;
  padding: 6px 0;
  text-align: center;
  white-space: normal;
}

.nav-link {
  font-size: 16px;
  margin: 10px;
  color: #1f1f29 !important;
  font-family: "Athiti", sans-serif;
}

.nav-link:hover {
  color: #f15922 !important;
}

.active .nav-link {
  color: #f15922 !important;
}

/*------------CUSTOMIZE THE CAROUSEL------------------------ */
/* Carousel base class */
.carousel {
  margin-top: 68px; /* ปรับเพิ่ม-ลดได้หาก Navbar สูงหรือเตี้ยกว่านี้ */
  margin-bottom: 0.75rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  top: 40%;
  bottom: 5rem;
  z-index: 10;
}

/* แสดงรูปภาพเต็มใบตามสัดส่วนจริง ไม่โดนตัดขอบบน-ล่าง */
.carousel-item {
  min-height: auto;
  height: auto;
}

.carousel-item > img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: auto;
  object-fit: contain;
  display: block;
}

.carousel-item h2 {
  font-size: 2.3rem;
  font-weight: 800;
}

.carousel-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.carousel-item span {
  margin-top: 5%;
  margin-bottom: 1.2rem;
}

/*-----------------------xs Mobile---------------------------*/
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 18px;
    padding: 4px 8px;
  }

  .carousel {
    margin-top: 56px;
    margin-bottom: 0.5rem;
  }

  .carousel-caption {
    top: 35%;
  }

  .carousel-item {
    min-height: auto;
  }

  .carousel-item > img {
    width: 100%;
    height: auto;
    min-height: auto;
    object-fit: contain;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
    font-weight: 800;
  }

  .carousel-caption h2 {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .carousel-caption h3 {
    font-size: 0.7rem;
    font-weight: 600;
  }

  .carousel-caption span {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
}

/*-----------------------iPad---------------------------*/
@media (min-width: 577px) and (max-width: 1023px) {
  .carousel {
    margin-top: 64px;
  }

  .carousel-caption {
    top: 35%;
  }

  .carousel-item {
    min-height: auto;
  }

  .carousel-item > img {
    width: 100%;
    height: auto;
    min-height: auto;
    object-fit: contain;
  }

  .carousel-caption h1 {
    font-size: 2rem;
    font-weight: 800;
  }

  .carousel-caption h2 {
    font-size: 1.7rem;
    font-weight: 800;
  }

  .carousel-caption h3 {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .carousel-caption span {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
}

/*-----------------------Button---------------------------*/
.btn-theme {
  padding: 0 auto;
  margin-right: 2%;
  background-color: #0dcaf0;
  color: #fff;
  transition: all 300ms ease-in;
}

.btn-theme:hover {
  padding: 0 auto;
  margin-right: 2%;
  color: #0dcaf0;
  background-color: white;
}

.btn-theme1 {
  padding: 0 auto;
  margin-right: 2%;
  background-color: #0dcaf0;
  color: #fff;
  transition: all 300ms ease-in;
}

.btn-theme1:hover {
  padding: 0 auto;
  margin-right: 2%;
  color: #fff;
  background-color: #32435f;
}

/*-----------------------Section-1---------------------------*/
.section-1 .heading-1 {
  margin-top: 8%;
}

.section-1 .heading-2 {
  margin-bottom: 3%;
  font-size: 20px;
}

.section-1 .para-1 {
  width: 90%;
  margin-left: 5%;
  margin-bottom: 3%;
  color: rgba(0, 0, 0, 0.59);
}

/*=============================================
		Our work Owl-carousel
==============================================*/
.product-section {
  width: 100%;
}

.image-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.product-card img {
  display: block;
}

.product-text > p > a {
  text-decoration: none;
  color: #212529;
  font-weight: 400;
}

.product-text > p > a:hover {
  color: #f15922;
}

/*-----------------------Footer---------------------------*/
.ft {
  background-color: #0dcaf0;
  color: #fff;
  padding: 15px 0;
}

/*-----------------------md Tablet---------------------------*/
@media screen and (max-width: 768px) {
  .section-1 .heading-1,
  section-1 .heading-2 {
    font-size: 25px;
  }
}

/*-----------------------xs Mobile---------------------------*/
@media screen and (max-width: 320px) {
  .section-1 .heading-1,
  section-1 .heading-2 {
    font-size: 25px;
  }

  .section-1 .col-md-4 {
    padding: 5%;
    margin-left: 8%;
  }
}
