@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;
  font-family: "Athiti", sans-serif;
}
html,
body {
  overflow-x: hidden;
}

/*----------root values ----------*/
:root {
  --green: #a0cf4f;
  --white: #fff;
  --black: #000;
  --darkbrown: #363636;
  --darkorange: darkorange;
  --gray: #808080;
  --red: #ff3131;
  --blue: #1535ea;
  --darkblue: #254558;
  /* --lg-font: 'Athiti', sans-serif;
--logo-font: 'Athiti', sans-serif; */

  /* --container-color: #1a1e21;
--second-color: rgba (77, 228, 255);
--text-color: #172317;
--bg-color: #fff; */
}

/*-------------------------------
        Header Navbar
--------------------------------*/
header {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column; /* จัดให้เป็น 2 แถว (top-bar และ bottom-bar) */
  position: relative;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  padding: 0;
  margin: 0;
}

header .nav {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column; /* แยกแถวบนและล่าง */
  justify-content: center;
  transition: 0.2s;
}

/* ===== แถวบน: โลโก้ + ชื่อภาควิชา ===== */
header .top-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 100px;
  justify-content: flex-start; /* โลโก้และชื่อภาควิชาอยู่ซ้าย */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* โลโก้ */
header .top-bar .logo img {
  width: 100px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ชื่อภาควิชา */
header .top-bar .site-title h1 {
  font-size: 18px;
  color: #222;
}
header .bottom-bar .site-title-en {
  display: none;
}

/* ปุ่ม toggle */
header .top-bar .toggle_btn {
  display: none; /* ซ่อนปุ่ม toggle สำหรับ desktop */
}

/* ===== แถวล่าง: เมนู ===== */
header .bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 60px;
  height: 60px;
  font-weight: 500;
}

/* เมนูใน bottom-bar */
header .bottom-bar .links {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-direction: row;
  margin: 0;
  padding: 0 40px;
}
header .bottom-bar .links li {
  list-style: none;
  display: flex;
  align-items: center;
}
header .bottom-bar .links a {
  color: #222;
  font-size: 1rem;
  padding: 5px 10px;
  transition: 0.2s;
  text-decoration: none;
}
header .bottom-bar .links a:hover {
  background: #f37737;
  border-radius: 5px;
  color: #fff;
}

/* ปุ่ม EN */
header .bottom-bar .action_btn {
  background: #f37737;
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

/* ===== Responsive ===== */
@media screen and (max-width: 1199px) {
  @media screen and (max-width: 768px) {
    header {
      padding: 0;
    }
    /* ซ่อนชื่อภาควิชาไทยบนมือถือ */
    header .top-bar .site-title {
      display: none;
    }
    header .bottom-bar {
      padding: 0 px;
    }
    /* แสดงชื่อภาควิชาใน bottom-bar บนมือถือ */
    header .bottom-bar .site-title-en {
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      flex-grow: 1; /* ขยายข้อความให้เต็มพื้นที่ */
      width: 100%; /* ให้พื้นที่เต็ม */
      font-weight: 500;
      color: #333;
      margin-top: 5px;
      line-height: 1.4;
      word-wrap: break-word;
      white-space: normal;
    }
    header .bottom-bar .site-title-en h1 {
      font-size: 14px;
    }
    header .top-bar {
      display: flex;
      align-items: center;
      justify-content: space-between; /* ซ้าย-ขวา */
      padding: 10px 20px;
      border-bottom: none;
    }
    header .top-bar .logo img {
      width: 65px;
    }

    /* แสดง toggle_btn ขวา */
    header .top-bar .toggle_btn {
      display: block;
      border: 1px solid #ddd;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.1);
      font-size: 20px;
      padding: 6px 8px;
      color: #222;
      cursor: pointer;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    header .top-bar .toggle_btn:hover {
      color: #f37737;
      transform: scale(1.05);
    }

    /* เมนูซ่อนในมือถือ */
    header .bottom-bar .links {
      display: flex;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(15px);
      position: absolute;
      top: 70px; /* อยู่ใต้ top-bar */
      left: 5%;
      width: 90%;
      border-radius: 10px;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      z-index: 1100;
    }

    /* เมื่อเมนูเปิด */
    header .bottom-bar .links.open {
      display: flex;
      max-height: 800px;
      overflow-y: auto;
    }

    /* ปรับลิงก์ในเมนูมือถือ */
    header .bottom-bar .links li {
      text-align: center;
      padding: 0.5rem 0;
    }

    header .bottom-bar .links li a {
      width: 100%;
      display: block;
      text-align: center;
      color: #222;
      font-size: 1rem;
      padding: 8px 0;
    }

    header .bottom-bar .links li a:hover {
      background: #f37737;
      color: #fff;
    }

    /* ปุ่ม EN บนมือถือ */
    header .bottom-bar .links li a.action_btn {
      font-size: 18px;
      padding: 6px 12px;
      border-radius: 6px;
      display: inline-block;
    }
  }
}

/*----------------------------------------------
                Banner-Hero Carousel
-----------------------------------------------*/
.myCarousel {
  width: 100vw;
  height: 80vh;
  margin-top: -60px;
  overflow: hidden;
  position: relative;
}
.myCarousel .myList .myItem {
  /* width: 180px;
  height: 250px; */
  position: absolute;
  /* top: 80%; */
  /* transform: translateY(-70%); */
  /* left: 70%; */
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  /* background-position: 50% 50%; */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 100;
  transition: 1s;
}

.myCarousel .myList .myItem:nth-child(1),
.myCarousel .myList .myItem:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 100%;
  height: 100%;
}
/* .myCarousel .myList .myItem:nth-child(3) {
  left: 67%;
}
.myCarousel .myList .myItem:nth-child(4) {
  left: calc(67% + 200px);
}
.myCarousel .myList .myItem:nth-child(5) {
  left: calc(67% + 400px);
}
.myCarousel .myList .myItem:nth-child(6) {
  left: calc(67% + 600px);
}
.myCarousel .myList .myItem:nth-child(n + 7) {
  left: calc(67% + 800px);
  opacity: 0;
} */

.myItem .content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  width: 400px;
  text-align: left;
  color: #fff;
  display: none;
}
.myList .myItem:nth-child(2) .content {
  display: block;
}

.content .title {
  font-size: 70px;
  text-transform: uppercase;
  color: #f37737;
  font-weight: bold;
  line-height: 1;
  opacity: 0;
  animation: animate 1s ease-in-out 0.3s 1 forwards;
}
.content .name {
  font-size: 70px;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1;
  text-shadow: 3px 4px 7px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: animate 1s ease-in-out 0.6s 1 forwards;
}
.content .des {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  margin-left: 5px;
  opacity: 0;
  animation: animate 1s ease-in-out 0.9s 1 forwards;
}
.content .myBtn {
  margin-left: 5px;
  opacity: 0;
  animation: animate 1s ease-in-out 1.2s 1 forwards;
}
.content .myBtn button {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border: 2px solid #fff;
  border-radius: 5px;
}
.content .myBtn button:nth-child(1) {
  margin-right: 15px;
  background: #fff;
  color: #f37737;
  border: 2px solid #fff;
  transition: 0.3s;
}
.content .myBtn button:nth-child(1):hover {
  background-color: #f37737;
  color: #fff;
  border-color: #f37737;
}
.content .myBtn button:nth-child(2) {
  background: #f37737;
  color: #fff;
  border: 2px solid #f37737;
  transition: 0.3s;
}
.content .myBtn button:nth-child(2):hover {
  background-color: #fff;
  color: #f37737;
  border-color: #fff;
}
/*---- Animate Content ------*/
@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(30px);
  }
  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

@media screen and (max-width: 1199px) {
  .myItem .content {
    width: 80vw;
    left: 10vw; /* จัดกึ่งกลาง */
  }

  .content .title {
    font-size: 40px;
  }
  .content .name {
    font-size: 40px;
  }
  .content .des {
    font-size: 18px;
    white-space: normal; /* บังคับตัดบรรทัด */
    word-wrap: break-word; /* กันคำยาวล้น */
  }
  /* ปุ่มสองปุ่มให้เรียงเป็นคนละบรรทัด */
  .content .myBtn {
    display: flex;
    flex-direction: column; /* 1 column */
    gap: 10px; /* ระยะห่างระหว่างปุ่ม */
    align-items: flex-start;
  }

  .content .myBtn button {
    margin: 0; /* reset margin เดิม */
  }
}

/*------------------------------------------- 
        Previous-Next Buttons
-------------------------------------------*/
.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f37737;
  color: #fff;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: monospace;
  font-weight: bold;
  transition: 0.5s;
  cursor: pointer;
}
.arrows button:hover {
  background: #fff;
  color: #333;
}

/*------------------------------------------- 
        Time Running Above Navbar
-------------------------------------------*/
.myCarousel .timeRunning {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 4px;
  background-color: #f37737;
  left: 0;
  top: 0;
  animation: runningTime 7s linear 1 forwards;
}
@keyframes runningTime {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/*------------------------------------------- 
        Responsive Design
-------------------------------------------*/
@media screen and (max-width: 1199px) {
  header {
    padding-left: 25px;
    padding-right: 25px;
  }
  .myList .myItem .content {
    left: 50px;
  }
  .content .title .content .name {
    font-size: 40px;
  }
  .content .des {
    font-size: 16px;
  }
}
@media screen and (max-width: 690px) {
  /* header nav a {
    font-size: 12px;
    margin-right: 0px;
} */
  header {
    padding-left: 20px;
    padding-right: 20px;
  }
  header nav a {
    padding: 0;
  }
  .myList .myItem .content {
    top: 40%;
  }
  .content .title .content .name {
    font-size: 20px;
  }
  .content .btn button {
    padding: 10px 15px;
    font-size: 12px;
  }
}

/* img {
max-width: 100%;
} */

/* .navbar-brand {
font-family: 'Athiti';
font-size: 30px;
color: #32435f !important;
}

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

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

.active .nav-link{
color: #a0cf4f !important;
} */

/*-----------------------Button---------------------------*/
.btn-theme {
  padding: 13px 46px;
  margin-right: 4%;
  background-color: white;
  transition: all 300ms ease-in;
}
.btn-theme:hover {
  padding: 13px 46px;
  margin-right: 4%;
  color: white;
  background-color: #a0cf4f;
}

/*--------------------------------------------
            Section Parallax หน้า INDEX 
---------------------------------------------*/
.section-parallax .container-fluid {
  background-image: url("../img/home/home-staff.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 50vh; /* ความสูงขั้นต่ำ 50% ของหน้าจอ */
  display: flex;
  align-items: center; /* จัดแนวตั้งตรงกลาง */
  justify-content: flex-end; /* ชิดขวา */
  padding: 2rem;
}

/* ปรับความกว้างของเนื้อหาใน section */
.section-parallax .heading-1,
.section-parallax .para {
  font-family: "Athiti", sans-serif;
  max-width: 600px; /* กำหนดความกว้างสูงสุด */
  width: 100%;
  margin-bottom: 1.5rem;
}

.section-parallax .btn-fit {
  width: auto !important;
  padding: 0.4rem 1rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-width: 0;
  max-width: max-content;
}

/* Responsive สำหรับหน้าจอขนาดเล็ก */
@media (max-width: 991px) {
  .section-parallax .container-fluid {
    background-attachment: scroll; /* ปิด parallax บนอุปกรณ์มือถือเพื่อประสิทธิภาพ */
    min-height: 50vh;
    padding: 1.5rem;
  }
  .section-parallax .heading-1,
  .section-parallax .para {
    max-width: 100%;
    text-align: center;
  }

  .section-parallax .btn {
    margin: 0 auto;
    display: block;
  }
}

/*-----------------------------------------
             Our Blog
-----------------------------------------*/
.headingStyle1 {
  margin-bottom: 5%;
}
.headingStyle1 .heading-1 {
  margin-top: 6%;
}
.headingStyle1 .heading-2 {
  margin-bottom: 3%;
  font-size: 20px;
}
.headingStyle1 .para-1 {
  width: 90%;
  margin-left: 5%;
  margin-bottom: 3%;
  color: rgba(0, 0, 0, 0.59);
}
.post-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-top: 2rem !important;
  padding-bottom: 2rem;
}
.filter-item {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--darkbrown);
  font-weight: 500;
  cursor: pointer;
}
.filter-item:hover {
  color: var(--darkbrown);
  font-weight: 600;
  text-decoration: none;
}
.active-filter {
  background: var(--darkorange);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
}
.post {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* ลดขนาด post ใน column */
  /* justify-content: center; */
  gap: 1rem;
  align-items: start;
}
@media (min-width: 768px) {
  .post {
    grid-template-columns: repeat(2, 1fr); /* แท็บเล็ต: 2 คอลัมน์ */
  }
}

@media (min-width: 1024px) {
  .post {
    grid-template-columns: repeat(3, 1fr); /* เดสก์ท็อป: 3 คอลัมน์ */
  }
}
.post-box {
  background: var(--white);
  box-shadow: 0 4px 14px hsl(35deg 25% 15% / 10%);
  padding: 15px;
  border-radius: 0.5rem;
}
.post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
}
.category {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gray);
  text-align: left;
  margin: 1rem 0;
}
a.post-title {
  display: flex;
  text-decoration: none;
  text-align: left;
}
a.post-title:hover {
  color: var(--green);
}
.post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--darkorange);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-date {
  display: flex;
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 400;
}
.post-desc {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5rem;
  margin: 5px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--darkorange);
}
.profile-name {
  font-size: 1rem;
  font-weight: 500;
}

/*-----------------------------------------
            Blog New Layout สองคอลัมน์
-----------------------------------------*/
.news-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.news-left {
  flex: 1 1 65%;
}

.news-right {
  flex: 1 1 30%;
  text-align: center;
}

.fb-page {
  width: 100% !important;
  max-width: 100% !important;
}

/* 📱 มือถือ (stack บนล่าง) */
@media (max-width: 991px) {
  .news-layout {
    flex-direction: column;
  }
  .news-left,
  .news-right {
    flex: 1 1 100%;
  }
}

/*-----------------------------------------
            Blog Detail Page
-----------------------------------------*/
.sidebar-box h4 {
  color: var(--darkbrown);
  font-weight: bold;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-box a {
  color: #363636;
  text-decoration: none;
}

.block .blog-img {
  display: block;
  width: 100px;
  height: auto;
  border-radius: 0.5rem;
  background-size: 100px 80px;
  background-repeat: no-repeat;
}

.block .text {
  width: calc(100% - 100px);
}

.block .text .heading {
  font-size: 18px;
  font-weight: 300;
  padding-bottom: 10px;
}

.heading a {
  text-decoration: none;
  color: var(--darkbrown);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.block .text .heading a:hover,
.block .text .heading a:active,
.block .text .heading a:focus {
  color: var(--darkorange);
}

.block .text .meta > div a {
  color: var(--gray);
}

/*-----------------------------------------
            Facebook Page
-----------------------------------------*/
.fb-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.fb-page {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
}

/*-----------------------------------------
            Curriculum Page
-----------------------------------------*/
table thead tr.table-secondary th {
  white-space: nowrap;
  min-width: 40px;
}

/*-----------------------------------------
        Laboratory & Research Page
-----------------------------------------*/
.lab-card {
  position: relative;
  color: white;
  border-radius: 15px;
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 1rem;
}

.lab-card-overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 1rem;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
}

.lab-card h5 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.lab-card p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.lab-card a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}
.lab-card a:hover {
  color: var(--green);
  font-weight: bolder;
}

.swiper {
  padding-bottom: 50px;
}
.swiper-slide {
  height: auto;
}

/*---------------------------------------------------
                    Map
----------------------------------------------------*/
.map {
  background-color: #eee;
}

.contact-text a {
  text-decoration: none;
  color: #000;
}

.contact-text a:hover {
  font-weight: bolder;
  color: #f37737;
}
.map-responsive {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*---------------------------------------------------
                Staff
----------------------------------------------------*/
.profile-area {
  padding: 20px 0;
}
.profile-area h2 {
  font-weight: bolder;
  text-align: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(to right, #0093e1, #00d9e5, #94f993);
  color: #eee;
  border-radius: 15px;
  padding: 8px 0;
  width: 100%;
  text-transform: uppercase;
}
.card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-radius: 15px;
  background-color: #fff;
  height: 100%;
}
.img1 img {
  height: 200px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  width: 100%;
  object-fit: cover; /* ปรับให้ภาพเต็มกรอบ โดยไม่บิดเบือน */
}
.img2 img {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 7px solid #fff;
  margin-top: -80px;
  object-fit: cover;
}
.card:hover .img2 img {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  padding: 5px; /* ขนาดของกรอบ */
  border-radius: 50%; /* วงกลม */
  transition: 0.7s;
}
.main-text {
  padding: 20px 0;
  flex-grow: 1; /* ให้เนื้อหาขยายเต็มที่ */
}
.main-text h3 {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
}
.main-text h5 {
  font-size: 16px;
  text-align: center;
  color: #363636;
  margin-bottom: 20px;
}
.main-text p {
  margin: 8px 0;
  font-size: 16px;
  padding: 0 30px;
  line-height: 1.5;
}
.main-text a {
  text-decoration: none;
  color: #333;
}
.main-text a:hover {
  color: #f37737;
}
.socials {
  text-align: center;
  padding-bottom: 20px;
}
.socials i {
  padding: 0;
  color: #f37737;
  font-size: 20px;
}
.socials a {
  text-decoration: none;
  color: #ff8606;
  font-weight: bold;
}
.socials a:hover {
  color: #254558;
}

/* Media Queries for responsiveness */
@media (max-width: 991px) {
  .profile-area h2 {
    font-size: 24px;
  }

  .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* แสดงเป็น 2 คอลัมน์เมื่อหน้าจอเล็กลง */
    gap: 15px;
  }

  .col-md-4 {
    flex: 1 0 48%; /* ให้คอลัมน์แต่ละอันมีขนาดประมาณ 48% */
  }
}

@media (max-width: 767px) {
  .profile-area h2 {
    font-size: 20px;
  }

  .row {
    display: grid;
    grid-template-columns: 1fr; /* แสดงเป็น 1 คอลัมน์เมื่อหน้าจอเล็กที่สุด */
    gap: 15px;
  }

  .col-md-4 {
    flex: 1 0 100%; /* ให้คอลัมน์เต็มขนาดหน้าจอ */
  }
}

/*---------------------------------------------------
                    Footer
----------------------------------------------------*/
.footer {
  background: var(--darkblue);
  width: 100%;
  height: 20%;
  padding: 2rem;
}
.footer img {
  width: 30%;
  margin-bottom: 1.5rem;
}
.footer h4,
h5 {
  color: #fff;
  font-weight: bold;
}
.footer .ft-head {
  color: #fff;
  font-size: larger;
  font-weight: 600;
}
.footer .ft-subhead {
  color: #fff;
  font-size: medium;
  font-weight: lighter;
}
.footer .copyright {
  color: #fff;
  text-align: center;
}

.footer hr {
  border: 0;
  height: 1px;
  background-image: -webkit-linear-gradient(left, #f0f0f0, #fff, #f0f0f0);
  background-image: -moz-linear-gradient(left, #f0f0f0, #fff, #f0f0f0);
  background-image: -ms-linear-gradient(left, #f0f0f0, #fff, #f0f0f0);
  background-image: -o-linear-gradient(left, #f0f0f0, #fff, #f0f0f0);
}

.footer p {
  color: #fff;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.footer ul {
  margin-top: 1rem;
  list-style: none;
  padding-left: 0;
}

.ft-link {
  line-height: 2rem;
  text-decoration: none;
  color: #fff;
}

.ft-link:hover {
  color: var(--darkorange);
  font-weight: 800;
}
