/* ===================custom-font.css Front page (namespace: fr-) =================== */
:root{
  /* ใช้โทนชมพูแดงตามโลโก้ */
  --ui-primary: #e65284;
  --ui-primary-700: #c83b6f;
  --ui-primary-50: #fde7ef;
  --ui-text: #111827;
  --ui-muted: #6b7280;
  --ui-border: #e5e7eb;
  --ui-soft: #f8fafc;
.fr-map {
  position: relative;
  width: 100%;
  /* อัตราส่วน 16:9; ถ้าอยาก 3:2 เปลี่ยนเป็น 66.666% */
  padding-bottom: 56.25%;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  margin-top: 12px;
}
.fr-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.fr-map__link { margin-top: 8px; }

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}



/* ใช้ฟอนต์ Kanit ทั้งหน้าแรก */
.fr-home, .fr-home *{
  font-family: "Kanit", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai",
               "Helvetica Neue", Arial, sans-serif;
}

/* ช่องไฟระหว่างบล็อก */
.fr-gap{ margin-top: 18px; }

/* การ์ดพื้นฐาน */
.fr-card{
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

/* การ์ดเนื้อหาหลัก */
.fr-intro{
  padding: 18px 20px;
}

/* หัวข้อใหญ่ของ Intro */
.fr-title{
  display:flex; align-items:center; gap:10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ui-primary-700);
  margin: 0 0 10px;
}
.fr-title::before{
  content:"";
  width:10px; height:10px; border-radius:999px;
  background: var(--ui-primary);
  box-shadow: 0 0 0 6px var(--ui-primary-50);
}

/* เนื้อความย่อหน้า (เราใช้ <h3> เดิม) */
.fr-body h3{
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ui-text);
  margin: 0;
}

/* แถบด้านขวา */
.fr-side{
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--ui-soft) 100%);
}
.fr-side__title{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ui-primary-700);
  margin: 0 0 8px;
  display:flex; align-items:center; gap:8px;
}
.fr-side__title::before{
  content:"";
  width:8px; height:8px; border-radius:999px;
  background: var(--ui-primary);
}
.fr-side__body{
  display:block;
  font-family: 'Kanit';

}

/* สไตล์พื้นฐานสำหรับลิงก์รายการทางขวา (กันกรณี markup ภายในแตกต่าง) */
.fr-side__body a{
  display:block;
  padding:10px 8px;
  border-radius: 10px;
  color:#374151;
  text-decoration:none;
  border:1px solid transparent;
  transition:.18s;
}
.fr-side__body a:hover{
  background: var(--ui-primary-50);
  border-color: #f8bbd0;
  color: #9c2752;
}

/* ถ้า gallery_set_links_html.php มี <ul> <li> */
.fr-side__body ul{ list-style:none; margin:0; padding:0; }
.fr-side__body li + li{ margin-top:6px; }

/* ปรับภาพสไลด์ด้านบนให้หายชนขอบ (ถ้ามี .container หุ้มอยู่แล้วข้ามได้) */
.fr-home .featuredSlide, .fr-home .carousel, .fr-home .slick-slider{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* ปรับหัวข้อทั่วหน้าแรกให้ดูนิ่มขึ้น */
.fr-home h2, .fr-home h3, .fr-home h4{
  letter-spacing: .2px;
}

/* Responsive */
@media (max-width: 991.98px){
  .fr-intro{ padding: 14px 16px; }
  .fr-title{ font-size: 1.35rem; }
  .fr-body h3{ font-size: 1rem; }
}
/* ===== Featured Galleries (right side list) ===== */
.fr-gallerylist { margin: 2px 0 0; }

.fr-bullet{
  width:10px; height:10px; border-radius:999px;
  background: var(--ui-primary);
  display:inline-block; margin-inline-end:8px;
  box-shadow: 0 0 0 6px var(--ui-primary-50);
}

.fr-list{ list-style:none; margin: 6px 0 0; padding: 0; }
.fr-list > li{ margin: 0; }
.fr-list > li + li{ margin-top: 6px; }

.fr-list a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  border: 1px solid transparent;
  background: #fff;
  transition: .18s;
}
.fr-list a:hover{
  background: var(--ui-primary-50);
  border-color: #f8bbd0;
  color: #9c2752;
}

.fr-list .active > a,
.fr-list li.active > a{
  background: #fff0f5;
  border-color: #f5a3c1;
  color: #9c2752;
  font-weight: 600;
}
