/* ==========================================================================
   gt-refresh.css — ปรับโฉมธีม gtp โดยคงโทนสีเดิม
   โหลดเป็นไฟล์สุดท้ายใน themes.php → ถ้าอยากกลับไปแบบเดิม ลบบรรทัด <link> ของไฟล์นี้ออกบรรทัดเดียว
   โทนสี: ฟ้า #01b7f2 / กรม #2d3e52 / เหลือง #fdb714
   ========================================================================== */

:root {
  --gt-blue: #01b7f2;
  --gt-blue-dark: #0399cb;
  --gt-navy: #2d3e52;
  --gt-navy-dark: #22303f;
  --gt-yellow: #fdb714;
  --gt-text: #4a5563;
  --gt-muted: #7b8794;
  --gt-bg-soft: #f4f8fb;
  --gt-radius: 14px;
  --gt-shadow: 0 4px 18px rgba(45, 62, 82, .08);
  --gt-shadow-hover: 0 14px 32px rgba(45, 62, 82, .16);
}

/* ---------- พื้นฐาน ---------- */
body {
  font-family: "Kanit", "Lato", sans-serif;
  font-weight: 300;
  color: var(--gt-text);
  font-size: 15px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: "Kanit", sans-serif; }
a { transition: color .2s ease; }
a:hover, a:focus { color: var(--gt-blue); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- แถบบนสุด ---------- */
#header .topnav {
  background: var(--gt-blue);   /* สีเดิม */
  height: 34px;
}
#header .topnav ul.quick-menu > li > a {
  line-height: 34px;
  font-size: 12px;
  letter-spacing: .06em;
  color: #fff;
}
#header .topnav ul.quick-menu > li > a:hover { color: var(--gt-navy); }

/* ---------- เมนูหลัก ---------- */
#header .main-header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(45, 62, 82, .08);
  position: relative;
  z-index: 100;
}
#header .logo img { max-height: 52px; width: auto; }
#main-menu ul.menu > li > a {
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--gt-navy);
  position: relative;
}
#main-menu ul.menu > li > a:after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: var(--gt-blue);
  transform: scaleX(0);
  transition: transform .25s ease;
}
#main-menu ul.menu > li > a:hover,
#main-menu ul.menu > li.active > a { color: var(--gt-blue); }
#main-menu ul.menu > li > a:hover:after,
#main-menu ul.menu > li.active > a:after { transform: scaleX(1); }

/* เมนูตอนเลื่อนจอ (sticky) */
.chaser { box-shadow: 0 4px 16px rgba(45, 62, 82, .12); }
.chaser ul.menu > li > a { color: var(--gt-navy) !important; font-weight: 400; }
.chaser ul.menu > li > a:hover { color: var(--gt-blue) !important; }

/* ---------- สไลด์โชว์ ---------- */
#slideshow { position: relative; }
#slideshow .tp-leftarrow,
#slideshow .tp-rightarrow {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18) !important;
  backdrop-filter: blur(4px);
  transition: background .2s ease;
}
#slideshow .tp-leftarrow:hover,
#slideshow .tp-rightarrow:hover { background: var(--gt-blue) !important; }

/* ---------- หัวข้อแต่ละส่วน ---------- */
#content .section { padding-top: 56px; padding-bottom: 40px; }
#content .section > h1,
#content .section > .container > h1,
#content .features h1 {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: .02em;
  color: var(--gt-navy);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 16px;
}
#content .section > h1:after,
#content .section > .container > h1:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  margin-left: -28px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gt-blue), var(--gt-yellow));
}
#content .offers p.center-block {
  color: var(--gt-muted);
  font-size: 15px;
  max-width: 760px;
  margin-bottom: 40px;
}

/* ---------- การ์ด (ข่าว / ภาพประทับใจ / สินค้า) ---------- */
.row.image-box.style10,
.row.image-box.style1 {
  display: flex;
  flex-wrap: wrap;
}
.row.image-box.style10:before, .row.image-box.style10:after,
.row.image-box.style1:before, .row.image-box.style1:after { display: none; }
.row.image-box.style10 > [class*="col-"],
.row.image-box.style1 > [class*="col-"] {
  display: flex;
  float: none;
  min-height: 0 !important;
  margin-bottom: 30px;
}
.image-box.style10 .box,
.image-box.style1 .box {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: var(--gt-radius);
  overflow: hidden;
  box-shadow: var(--gt-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-box.style10 .box:hover,
.image-box.style1 .box:hover {
  transform: translateY(-6px);
  box-shadow: var(--gt-shadow-hover);
}
.image-box.style10 .box figure,
.image-box.style1 .box figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.image-box.style10 .box figure img,
.image-box.style1 .box figure img {
  display: block;
  width: 100%;
  transition: transform .5s ease;
}
/* โปสเตอร์ข่าว/สินค้า: กรอบจัตุรัส แสดงทั้งภาพไม่ตัดตัวหนังสือ */
.image-box.style10 .box figure img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  height: auto;
}
/* ภาพกิจกรรม: กรอบ 16:10 เต็มกรอบ */
.image-box.style1 .box figure img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  height: auto;
}
.image-box.style10 .box:hover figure img,
.image-box.style1 .box:hover figure img { transform: scale(1.05); }

.image-box.style10 .details,
.image-box.style1 .details {
  flex: 1;
  padding: 16px 18px 20px;
  border-top: 3px solid transparent;
  transition: border-color .3s ease;
}
.image-box.style10 .box:hover .details,
.image-box.style1 .box:hover .details { border-top-color: var(--gt-blue); }
.image-box .details .box-title,
.image-box .details .box-title a {
  font-family: "Kanit", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gt-navy);
  margin: 0;
  text-transform: none;
}
.image-box .details .box-title a:hover,
.image-box .details a:hover .box-title { color: var(--gt-blue); }
/* ข้อความตัวอย่าง "(990 places)" ที่ค้างมาจาก template */
.image-box.style10 .box-title small { display: none; }

/* ---------- GTP STATION (YouTube) ---------- */
#content .features.section {
  /* ภาพพื้นหลังเดิมของธีม (ใช้ไฟล์ในเครื่อง แทน URL เต็มของ grandtripper.com ที่โหลดช้า) */
  background: url("../images/13505261550803.jpg") no-repeat center center;
  background-size: cover;
  padding: 60px 0 40px;
}
#content .features.section > .container > h1 { color: var(--gt-navy); text-align: center; }
#content .features.section > .container > h1:after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gt-blue), var(--gt-yellow));
}
.image-box.style7 .box {
  border-radius: var(--gt-radius);
  overflow: hidden;
  background: #fff;   /* การ์ดสีขาวแบบเดิม */
  box-shadow: var(--gt-shadow);
  margin-bottom: 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-box.style7 .box:hover { transform: translateY(-6px); box-shadow: var(--gt-shadow-hover); }
.image-box.style7 .box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  position: relative;
}
.image-box.style7 .box > a { position: relative; display: block; }
.image-box.style7 .details { padding: 14px 16px 18px; }
.image-box.style7 .details h4 { color: var(--gt-navy); font-size: 15px; font-weight: 400; margin: 0; line-height: 1.5; }
.image-box.style7 .box > a:hover .details h4 { color: var(--gt-blue); }

/* ---------- Footer ---------- */
#footer { border-top: 4px solid var(--gt-blue); }   /* พื้นสีเทาอ่อน #F5F5F5 เดิม (ตั้งไว้ใน footer.php) */
#footer .footer-wrapper { padding-top: 56px; padding-bottom: 40px; }
#footer h2 {
  color: var(--gt-navy);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3e7eb;
  position: relative;
}
#footer h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--gt-blue);
}
#footer p, #footer address { color: var(--gt-text); }
#footer .contact-phone { font-size: 16px; color: var(--gt-navy); }
#footer .contact-phone i { color: var(--gt-blue); margin-right: 6px; }
#footer ul.discover li a { color: var(--gt-navy); }
#footer ul.discover li a:hover,
#footer ul.discover li.active a { color: var(--gt-blue); }
#footer ul.triangle li:before,
#footer ul.discover li:before { color: var(--gt-blue); }
#footer .fb-page { max-width: 100%; border-radius: 10px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  #content .section { padding-top: 44px; }
  #content .section > h1,
  #content .section > .container > h1,
  #content .features h1 { font-size: 26px; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  #header .logo img { max-height: 44px; }
  /* เมนูมือถือ: ใช้สีฟ้าเดิมของธีม */
  .mobile-menu > ul.menu > li > a { font-family: "Kanit", sans-serif; font-weight: 400; }
  /* แถบเมนูย่อยในมือถือ (ภาษา/สกุลเงิน/สมัคร) เป็นของตัวอย่างจาก template ใช้งานไม่ได้ */
  .mobile-menu .mobile-topnav { display: none; }

  #content .section { padding-top: 36px; padding-bottom: 20px; }
  #content .section > h1,
  #content .section > .container > h1,
  #content .features h1 { font-size: 22px; }
  #content .offers p.center-block {
    width: 100%;
    font-size: 14px;
    margin-bottom: 26px;
  }
  .row.image-box.style10 > [class*="col-"],
  .row.image-box.style1 > [class*="col-"] { margin-bottom: 20px; }
  .image-box .details .box-title,
  .image-box .details .box-title a { font-size: 15px; }

  #footer .footer-wrapper { padding-top: 40px; }
  #footer .footer-wrapper .row > div { margin-bottom: 26px; }
}

/* มือถือจอแคบ: การ์ด 2 คอลัมน์ ดูได้มากขึ้นต่อหน้าจอ */
@media (max-width: 479px) {
  .row.image-box.style10 > [class*="col-"],
  .row.image-box.style1 > [class*="col-"] {
    width: 50%;
    padding-left: 7px;
    padding-right: 7px;
    margin-bottom: 14px;
  }
  .row.image-box.style10,
  .row.image-box.style1 { margin-left: -7px; margin-right: -7px; }
  .image-box.style10 .details,
  .image-box.style1 .details { padding: 10px 10px 12px; }
  .image-box .details .box-title,
  .image-box .details .box-title a { font-size: 13px; line-height: 1.45; }
  .row.image-box.style7 { display: flex; flex-wrap: wrap; margin-left: -7px; margin-right: -7px; }
  .row.image-box.style7:before, .row.image-box.style7:after { display: none; }
  .row.image-box.style7 > [class*="col-"] { width: 50%; float: none; padding-left: 7px; padding-right: 7px; }
  .image-box.style7 .box { margin-bottom: 14px; }
  .image-box.style7 .details { padding: 10px 10px 12px; }
  .image-box.style7 .details h4 { font-size: 13px; line-height: 1.45; }
}

/* ผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; }
}
