:root {
  /* สีหลัก */
  --primary-bg: rgba(237, 235, 222, 255);
  --secondary-bg: rgba(26, 26, 26, 255);
  --text-color: #fff;
  --button-color: #fff;
  --img-bg: rgb(108, 108, 108);
  --card-bg: #e0e0e0;
  --bullet-color: black;
  --bullet-active-color: transparent;

  /* ฟอนต์ */
  --font-primary: "GothamBold", sans-serif;
  --font-secondary: "GothamBook", sans-serif;

  /* ขนาด */
  --header-font-size: 120px;
  --button-font-size: 20px;
  --button-font-size-md: 16px;
  --button-font-size-sm: 12px;
  --detail-font-size: 15px;
  --card-width: 300px;
  --card-width-md: 200px;
  --card-width-sm: 190px;
  --card-width-ssm: 140px;
  --blog-img-height: 600px;
  --bullet-size: 15px;
}

.blogs-section {
  background-color: var(--primary-bg);
}
#blogWheel {
  height: 110px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  position: relative;
  margin-bottom: 10px;
}
@supports (-webkit-touch-callout: none) {
  #blogWheel {
    /* ค่าที่ใช้อยู่แล้ว */
    /* height: 42px; */
    top: -6px;
  }
}
html.android-device #blogWheel,
html.ios-mobile-device #blogWheel {
  position: relative;
  top: -3px !important;
}

div.bg-blogs-list {
  background-color: #1a1a1a;
  color: white;
  height: auto;
}

div.blogs-layout-one {
  background-color: var(--secondary-bg) !important;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  flex-direction: column;
}

.head-text-logo-blogs {
  display: flex;
  justify-content: center;
  align-items: center;
}
.head-text-logo-blogs h1 {
  color: white;
  text-transform: uppercase;
  font-size: 120px;
  font-family: "GothamBold", sans-serif;
}
.blog-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: column;
  margin: 0 auto;
  margin-top: 2rem;
}
.blogs-text-button {
  font-family: var(--font-primary);
  font-weight: bold;
  font-size: var(--button-font-size);
  color: var(--button-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.blogs-text-button button {
  padding: 3px 40px;
}
.blog-mobile-button {
  display: none;
}

div.blogs-layout-two {
  background-color: var(--primary-bg);
  min-height: auto;
  padding: 30px 0;
}

.img-blogs {
  background-color: var(--img-bg);
  padding: 30px;
  border-radius: 20px;
  width: 350px;
  height: 300px;
}

h1.blogs-detail-text {
  font-family: var(--font-primary);
  font-weight: bold;
  font-size: var(--detail-font-size);
}

.blog-container {
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center !important;
  padding-top: 100px;
  padding-bottom: 50px;
}

.blog-img {
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  max-height: 650px;
}

.blog-img a {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-info {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 20px;
  bottom: 2%;
  color: white;
  width: 100%;
  padding: 20px;
}

.blog-line {
  width: 100%;
  height: 1px;
  background-color: white;
}

.blog-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.blog-item img {
  width: 50px;
}

.blog-item a {
  font-size: 30px;
  font-family: var(--font-secondary);
}

.card-blog {
  text-align: center;
  background-color: transparent;
  border: transparent;
  border-radius: 0% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-border-end:not(:nth-child(3n)) {
  border-right: 3px solid #e0e0e0;
}

.last-child {
  border: transparent;
}

.card-img {
  width: var(--card-width);
  height: var(--card-width);
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  /* aspect-ratio: 4/3; */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-title {
  width: var(--card-width);
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-family: var(--font-primary);
}

.card-text {
  width: var(--card-width);
  font-size: 1.4rem;
  max-width: 100%;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  white-space: normal;
  padding: 0 10px;
}

.mySwiper-blog {
  width: 80%;
}

.bullets {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.bullets div {
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  background-color: var(--bullet-color);
  border: 1px solid var(--bullet-color);
  cursor: pointer;
}

.bullets div.active {
  background-color: var(--bullet-active-color);
}
.blog-control-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 70px 0;
}
.blog-control-btn div:first-child {
  width: 50px;
}
.blog-control-btn div:last-child {
  width: 100px;
}
.blog-control-btn img {
  width: 100%;
  height: 100%;
}
.swiper-pagination-blog .swiper-pagination-bullet {
  background-color: #ffffff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-blog .swiper-pagination-bullet:hover {
  opacity: 0.8;
}

.swiper-pagination-blog .swiper-pagination-bullet-active {
  background-color: #0364ff;
  opacity: 1;
}

@media (max-width: 1200px) {
  .blogs-text-button {
    font-size: var(--button-font-size-md);
  }
  .blogs-text-button button {
    padding: 3px 20px;
  }
}
@media (max-width: 1024px) {
  .card-img {
    width: var(--card-width-md);
    height: var(--card-width-md);
  }
}
@media screen and (max-width: 992px) {
  .card-title {
    width: 250px;
    font-size: 1.2rem;
  }
}
@media (max-width: 768px) {
  .blogs-text-button button {
    font-size: var(--button-font-size-sm);
  }
  .blog-img {
    aspect-ratio: 16/9;
    border-radius: 20px;
  }
  .blog-item {
    gap: 10px;
  }
  .blog-item img {
    width: 30px;
  }

  .blog-item a {
    font-size: 18px;
  }

  .blog-info {
    padding: 10px;
    gap: 10px;
  }
  .head-text-logo-blogs h1 {
    font-size: 80px;
  }
  #blogWheel {
    height: 70px;
  }
  .card-text {
    font-size: 1rem;
  }
}
@media (max-width: 720px) {
  .custom-border-end:nth-child(2n + 1) {
    border-right: 3px solid #e0e0e0 !important;
  }
  .custom-border-end:nth-child(2n) {
    border-right: none !important;
  }
}
@media (max-width: 600px) {
  .blogs-text-button {
    display: none;
    row-gap: 8px;
    column-gap: 5px;
  }
  .blogs-text-button button {
    padding: 2px 10px;
  }
  .all-first button {
    padding: 2px 25px;
  }
  .blog-mobile-button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media screen and (max-width: 575px) {
  /* .custom-border-end,
  .custom-border-end:nth-child(2n + 1),
  .custom-border-end:nth-child(2n) {
    border-right: none !important;
    border: none !important;
  } */
  .mySwiper-blog {
    width: 90%;
  }
  .card-img {
    width: 170px;
    height: 170px;
  }
  .card-title {
    font-size: 18px;
    width: 180px;
  }
  .card-text {
    font-size: 12px;
  }
}
@media screen and (max-width: 480px) {
  .blog-img {
    border-radius: 10px;
  }
  .blog-item img {
    width: 20px;
  }

  .blog-item a {
    font-size: 14px;
  }
}
@media (max-width: 425px) {
  .head-text-logo-blogs h1 {
    font-size: 60px;
  }
  .blog-btn {
    gap: 8px;
  }
  #blogWheel {
    height: 55px;
  }
  .card-img {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 375px) {
  #blogWheel {
    height: 55px;
    margin-bottom: 0px;
  }
  .card-img {
    width: 120px;
    height: 120px;
  }
  .card-title {
    font-size: 15px;
    width: 150px;
  }
}
