/**
* Template Name: MyBiz - v4.8.1
* Template URL: https://bootstrapmade.com/mybiz-free-business-bootstrap-theme/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
/* ribbin */
.black-ribbon {
  position: fixed;
  z-index: 99999; 
  width: 450px;
  pointer-events: none; /* กันคลิกบังเมนู */
}

.stick-left { left: 0; }
.stick-right { right: 0; }
.stick-top { top: 0; }
.stick-bottom { bottom: 0; }

/* Base */
@font-face {
    font-family: 'supermarketregular';
    src: url('supermarket-webfont.woff2') format('woff2'),
         url('supermarket-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cru-rajabhatcru-rajabhat';
    src: url('cru-rajabhat-webfont.woff2') format('woff2'),
         url('cru-rajabhat-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cru-rajabhatregular';
    src: url('cru-rajabhat-webfont.woff2') format('woff2'),
         url('cru-rajabhat-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  padding-top: 44px !important; /* ดันบอดี้ลงมาให้พอดีความสูงของแถบเหลือง topbar */
}

/* === HEADING STYLE #3 === */
.three h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5em;
  padding-bottom: 15px;
  position: relative;
}
.three h1:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #111;
}
.three h1:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 95%;
  max-width: 255px;
  background-color: #333;
}

/* CSS */
.button-75 {
  align-items: center;
  background-image: linear-gradient(135deg, #AA7C11 0%, #D4AF37 50%, #FFD700 100%) !important;
  border: 0 !important;
  border-radius: 6px !important; 
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex !important;
  flex-direction: column;
  font-family: 'supermarketregular', sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: auto !important;
  padding: 8px 20px !important;
  justify-content: center;
  letter-spacing: .4px;
  line-height: 1;
  max-width: 100%;
  margin-top: 5px;
  text-decoration: none !important;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
  transition: all .3s !important;
}

.button-75:active, .button-75:hover {
  outline: 0;
}

.button-75:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4) !important;
  color: #FFFFFF !important;
}

.button-75 span {
  transition: all 200ms;
}

a {
  color: #0ea2bd;   /* ชมพู #ea1d84  ฟ้า #0ea2bd  เหลือง ffc107 */
  text-decoration: none;
}

a:hover {
  color: #0dd3fe;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'supermarketregular', sans-serif; 
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #0ea2bd;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #03d1fe;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Top Bar (แถบเมนูสีเหลืองบนสุด)
--------------------------------------------------------------*/
#topbar {
  font-family: 'supermarketregular';
  font-size: 15px;
  border-bottom: 1px solid #eee;
  height: 44px;
  padding: 0;
  transition: all 0.5s;
  overflow: hidden;
  position: fixed !important; /* ตรึงตำแหน่งไว้บนสุดเสมอไม่ให้โดนบัง */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1010 !important; /* เลเยอร์อยู่บนสุด */
  background-color: #f8f387 !important;  /* #f8f387 */
}

/* ป้องกันแถบเหลืองวิ่งหนีหายเมื่อเลื่อนหน้าจอลง */
#topbar.topbar-scrolled {
  top: 0 !important;
}

#topbar .contact-info i {
  font-style: normal;
  color: #B38728;
}

#topbar .contact-info i a,
#topbar .contact-info i span {
  padding-left: 5px;
  color: #444444;
}

#topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

#topbar .contact-info i a:hover {
  color: #0ea2bd;
}

#topbar .social-links a {
  color: #62787d;
  padding: 4px 12px;
  display: inline-block;
  line-height: 1px;
  transition: 0.3s;
  border-left: 1px solid #e9e9e9;
}

#topbar .social-links a:hover {
  color: #0ea2bd;
}

#topbar .social-links a:first-child {
  border-left: 0;
}

/*--------------------------------------------------------------
# Header (แถบเมนูหลักสีขาว)
--------------------------------------------------------------*/
#header {
  font-family: 'supermarketregular';    
  height: 120px;
  z-index: 1000 !important; /* เลเยอร์อยู่ใต้แถบเหลืองเล็กน้อย */
  transition: all 0.5s;
  background: rgba(255, 255, 255, 0.96) !important;
  position: fixed !important;
  top: 44px !important; /* ขยับลงมาต่อจากแถบเหลือง 44px พอดี ไม่ไปซ้อนทับ */
  border-bottom: 4px solid #D4AF37 !important;
}

/* ป้องกันแถบขาวลอยขึ้นไปบังแถบเหลืองเมื่อทำการเลื่อนหน้าจอ (Scroll) */
#header.header-scrolled {
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1) !important;
  top: 44px !important; 
}

#header .logo h1 {
  font-size: 28px;
  margin: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #354144;
  text-decoration: none;
}

#header .logo h1 a span,
#header .logo h1 a:hover span {
  color: #0ea2bd;
}

#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 40px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  font-family: 'supermarketregular';    
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #404f52;
  white-space: nowrap;
  text-transform: uppercase;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #AA7C11 !important;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 30px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  text-transform: none;
  font-weight: 400;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #AA7C11;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #354144;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(31, 38, 39, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #354144;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #0ea2bd;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
  color: #0ea2bd;
}

.navbar-mobile .dropdown>.dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Carousel & Hero Section (สไลด์ภาพและเนื้อหา)
--------------------------------------------------------------*/
#carouselExampleIndicators {
  margin-top: 0px !important; /* แก้ปัญหาตรงนี้: แถบเหลือง 44px + แถบขาว 120px */
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1 !important;
}

#hero {
  width: 100%;
  height: auto;
  background-color: rgba(31, 38, 39, 0.8);
  overflow: hidden;
  position: relative;
  padding: 0;
  margin-top: 164px !important; /* แก้ปัญหาตรงนี้ให้สอดคล้องกัน */
  z-index: 1 !important;
}

#hero .carousel-item {
  width: 100%;
  height: auto; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#hero .carousel-item::before {
  content: "";
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero .carousel-content {
  text-align: center;
}

#hero h2 {
  color: #fff;
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
}

#hero p {
  width: 80%;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  margin: 0 auto 30px auto;
  color: #fff;
}

#hero .carousel-inner .carousel-item {
  transition-property: opacity;
  background-position: center top;
}

#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  opacity: 0;
}

#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: 0.5s;
}

#hero .carousel-inner .carousel-item-next,
#hero .carousel-inner .carousel-item-prev,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 10%;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 48px;
  line-height: 1;
  width: auto;
  height: auto;
}

#hero .carousel-indicators li {
  cursor: pointer;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  transition: ease-in;
  opacity: 0.7;
}

#hero .carousel-indicators li.active {
  opacity: 1;
  background-color: #0ea2bd;
}

#hero .btn-get-started {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 5px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  color: #fff;
  background: #0ea2bd;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
}

#hero .btn-get-started:hover {
  background: #019cbe;
}

@media (max-width: 768px) {
  #hero { height: 90vh; }
  #hero .carousel-item { height: 90vh; }
  #hero h2 { font-size: 28px; }
}  

@media (min-width: 1024px) {
  #hero p { width: 60%; }
  #hero .carousel-control-prev, #hero .carousel-control-next { width: 5%; }
}

@media (max-height: 500px) {
  #hero { height: 150vh; }
  #hero .carousel-item { height: 150vh; }
} 

/*--------------------------------------------------------------
# Team Section & Link Cards
--------------------------------------------------------------*/
.law-section-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 22px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
  border-top: 4px solid #D4AF37 !important;
  height: 100%;
}

.custom-link-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.custom-link-list li {
  padding: 9px 12px !important;
  border-bottom: 1px solid #f4f1ea !important;
  transition: all 0.25s ease !important;
  border-radius: 6px !important;
}

.custom-link-list li:last-child {
  border-bottom: none !important;
}

.custom-link-list li:hover {
  background-color: rgba(212, 175, 55, 0.08) !important;
  padding-left: 18px !important;
}

.custom-link-list li a {
  color: #444 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  transition: 0.2s !important;
}

.custom-link-list li a:hover {
  color: #AA7C11 !important;
}

.team .team-member {
  background: #ffffff !important;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.04) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  height: 100% !important;
  transition: all 0.3s ease;
}

.team .team-member:hover {
  transform: translateY(-6px);
  border-color: #D4AF37 !important;
  box-shadow: 0px 12px 30px rgba(212, 175, 55, 0.2) !important;
}

.team .team-member .member-img {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  height: 250px;
}

.team .team-member .member-info {
  padding: 20px 15px;
  text-align: center;
  box-shadow: none !important;
  background-color: transparent !important;
  margin: 0 !important;
  position: relative;
}

.team .team-member .member-info h4 {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 20px;
}

.team .team-member .member-info h4 a {
  color: #1F2627 !important;
}

.team .team-member .member-info h4 a:hover {
  color: #AA7C11 !important;
}

/*--------------------------------------------------------------
# Education & Youtube Section
--------------------------------------------------------------*/
.edu-title-box {
  background: linear-gradient(135deg, rgba(214,182,10,0.06) 0%, rgba(255,215,0,0.12) 100%) !important;
  padding: 12px 18px !important;
  border-left: 5px solid #D4AF37 !important;
  border-radius: 4px 12px 12px 4px !important;
}

/* โค้ดส่วนอื่น ๆ ของธีมคงเดิมไว้ทั้งหมดเพื่อความสมบูรณ์... */
.blog { padding: 40px 0 20px 0; }
.blog .entry { padding: 30px; margin-bottom: 60px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.blog .entry .entry-img { max-height: 440px; margin: -30px -30px 20px -30px; overflow: hidden; }
.blog .entry .entry-title { font-size: 28px; font-weight: bold; padding: 0; margin: 0 0 20px 0; }
.blog .entry .entry-title a { color: #111; transition: 0.3s; }
.blog .entry .entry-meta { margin-bottom: 15px; color: #777777; }
.blog .entry .entry-meta ul { display: flex; flex-wrap: wrap; list-style: none; align-items: center; padding: 0; margin: 0; }
.blog .entry .entry-meta ul li + li { padding-left: 20px; }
.blog .entry .entry-meta i { font-size: 16px; margin-right: 8px; line-height: 0; }
.blog .entry .entry-meta a { color: #847872; font-size: 14px; display: inline-block; line-height: 1; }
.blog .entry .entry-content p { line-height: 24px; }
.blog .entry .entry-content .read-more { -moz-text-align-last: right; text-align-last: right; }
.blog .entry .entry-content .read-more a { display: inline-block; background: #d8302f; color: #fff; padding: 6px 20px; transition: 0.3s; font-size: 14px; border-radius: 4px; }
.blog .entry .entry-content h3 { font-size: 22px; margin-top: 30px; font-weight: bold; }

.pricing { background-color:#f8f8f9; }
.pricing .pricing-item { padding: 60px 40px; box-shadow: 0 2px 15px rgb(0 0 0 / 0.1); background-color:white; height: 100%; display: flex; flex-direction: column; border: 4px solid #F9F6F6; border-radius: 10px; overflow: hidden; }
.pricing .pricing-header { background-image:url(../img/lines-bg.png); background-size: cover; text-align: center; padding: 40px; margin: -60px -40px 0; }
.pricing h3 { font-weight: 400; margin-bottom: 5px; font-size: 36px; color:black; }

.what-we-do .icon-box { text-align: center; padding: 30px 20px; transition: all ease-in-out 0.3s; background: #fff; }
.what-we-do .icon-box .icon { margin: 0 auto; width: 64px; height: 64px; background: #eaf4fb; border-radius: 50px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: ease-in-out 0.3s; }
.what-we-do .icon-box .icon i { color: #3498db; font-size: 28px; }
.what-we-do .icon-box h4 { font-weight: 700; margin-bottom: 15px; font-size: 24px; }
.what-we-do .icon-box h4 a { color: #384046; transition: ease-in-out 0.3s; }
.what-we-do .icon-box p { line-height: 24px; font-size: 14px; margin-bottom: 0; }
.what-we-do .icon-box:hover { border-color: #fff; box-shadow: 0px 0 25px 0 rgba(0, 0, 0, 0.1); }

section { padding: 60px 0; }
.section-bg { background-color: #f7fbfe; }
.section-title { text-align:center; padding-bottom: 30px; }
.section-title h2 { font-size: 32px; font-weight: 600; margin-bottom: 20px; padding-bottom: 20px; position: relative; }
.section-title h2::before { content: ""; position: absolute; display: block; width: 120px; height: 1px; background: #ddd; bottom: 1px; left: calc(50% - 60px); }
.section-title h2::after { content: ""; position: absolute; display: block; width: 40px; height: 3px; background: #3498db; bottom: 0; left: calc(50% - 20px); }

.about .content h2 { font-weight: 700; font-size: 48px; line-height: 60px; margin-bottom: 20px; text-transform: uppercase; }
.about .content h3 { font-weight: 500; line-height: 32px; font-size: 24px; }
.about .content ul li { padding: 10px 0 0 28px; position: relative; }
.about .content ul i { left: 0; top: 7px; position: absolute; font-size: 20px; color: #0ea2bd; }

.services .icon-box { margin-bottom: 20px; padding: 30px; border-radius: 6px; background: #fff; }
.services .icon-box i { float: left; color: #0ea2bd; font-size: 40px; line-height: 0; }
.services .icon-box h4 { margin-left: 70px; font-weight: 700; margin-bottom: 15px; font-size: 18px; }
.services .icon-box h4 a { color: #354144; transition: 0.3s; }
.services .icon-box p { margin-left: 70px; line-height: 24px; font-size: 14px; }

#footer .footer-top .footer-links ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-top .footer-links ul i { padding-right: 2px; color: #40dcfe; font-size: 18px; line-height: 1; }
#footer .footer-top .footer-links ul li { padding: 10px 0; display: flex; align-items: center; }
#footer .footer-top .footer-links ul a { color: #fff; transition: 0.3s; display: inline-block; line-height: 1; }
#footer .footer-top .footer-links ul a:hover { color: #27d8fe; }

/* ==============================================================
   ปรับแต่งปุ่ม "สมัครเรียน" ด้านบนสุด (Topbar Button)
   ============================================================== */
#topbar .button-75 {
  font-family: 'supermarketregular', sans-serif !important; /* บังคับใช้ฟอนต์ตัวสวย */
  font-size: 15px !important;
  font-weight: normal !important; /* ลดความหนาของตัวอักษรลงมาให้เนียนตา */
  letter-spacing: 0px !important;
  height: 28px !important; /* ปรับความสูงให้พอดีกับแถบเหลือง */
  line-height: 28px !important;
  padding: 0 15px !important;
  margin-top: 8px !important; /* จัดกึ่งกลางแนวตั้ง */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-image: linear-gradient(135deg, #AA7C11 0%, #D4AF37 50%, #B38728 100%) !important; /* ไล่เฉดสีทองหรู */
  border-radius: 20px !important; /* ทำมุมมนโค้งให้ดูทันสมัย */
  box-shadow: 0 2px 6px rgba(170, 124, 17, 0.2) !important;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
}

#topbar .button-75:hover {
  background-image: linear-gradient(135deg, #B38728 0%, #E5C158 50%, #AA7C11 100%) !important;
  box-shadow: 0 4px 12px rgba(170, 124, 17, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* ==============================================================
   ปรับแต่งส่วน FOOTER ให้โมเดิร์น หรูหรา สะอาดตา (Modern Elegant Footer)
   ============================================================== */
#footer {
  background: #111617 !important; /* ปรับพื้นหลังเป็นสีเข้มสุภาพสไตล์โมเดิร์น */
  padding: 0 0 30px 0 !important;
  color: #e2e8f0 !important;
  font-family: 'supermarketregular', sans-serif !important;
  font-size: 16px !important;
  border-top: 4px solid #D4AF37 !important; /* เพิ่มเส้นขอบบนสีทองมหาลัย */
}

#footer .footer-top {
  background: #192122 !important; /* มิติสีพื้นที่สว่างกว่าพื้นหลังหลักเล็กน้อย */
  padding: 50px 0 30px 0 !important;
}

#footer .footer-top .footer-contact {
  margin-bottom: 30px !important;
}

#footer .footer-top .footer-contact h3 {
  font-size: 26px !important;
  margin: 0 0 20px 0 !important;
  padding: 2px 0 2px 10px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  color: #D4AF37 !important; /* หัวข้อหลักสีทอง */
  border-left: 4px solid #D4AF37 !important;
}

#footer .footer-top .footer-contact p {
  font-size: 15px !important;
  line-height: 24px !important;
  margin-bottom: 0 !important;
  color: #a0aec0 !important; /* สีฟอนต์รายละเอียดให้อ่านง่าย สบายตา */
}

#footer .footer-top h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  position: relative !important;
  padding-bottom: 12px !important;
  margin-bottom: 20px !important;
}

/* เพิ่มเส้นใต้หัวข้อเล็กสีทอง */
#footer .footer-top h4::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 40px !important;
  height: 2px !important;
  background: #D4AF37 !important;
  bottom: 0 !important;
  left: 0 !important;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; /* เส้นคั่นลิ้งค์บางๆ ดูแพง */
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0 !important;
}

#footer .footer-top .footer-links ul a {
  color: #cbd5e0 !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

/* เอฟเฟกต์เวลาเมาส์ชี้ลิงค์ด้านล่าง */
#footer .footer-top .footer-links ul a:hover {
  color: #D4AF37 !important; /* เปลี่ยนเป็นสีทอง */
  padding-left: 6px !important; /* ขยับเล็กน้อยให้ดูมีมิติ */
}

#footer .footer-top .footer-links ul i {
  color: #D4AF37 !important; /* ไอคอนหน้าลิ้งค์เป็นสีทอง */
  font-size: 14px !important;
  padding-right: 8px !important;
}

/* ส่วนลิขสิทธิ์ด้านล่างสุด (Copyright) */
#footer .copyright {
  text-align: center !important;
  padding-top: 30px !important;
  color: #718096 !important;
  font-size: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==============================================================
   จัดระเบียบแถบ Topbar ทั้งหมดให้อยู่กึ่งกลางแนวตั้งเท่ากันเป๊ะ
   ============================================================== */
#topbar .container {
  display: flex !important;
  align-items: center !important; /* จัดของทุกชิ้นในแถบเหลืองให้อยู่กึ่งกลางแนวตั้ง */
  justify-content: space-between !important;
  height: 100% !important; /* เต็มความสูง 44px ของ topbar */
}

#topbar .contact-info {
  display: flex !important;
  align-items: center !important;
}

#topbar .social-links {
  display: flex !important;
  align-items: center !important; /* ไอคอนโซเชียลอยู่กึ่งกลางแนวตั้ง */
}

/* ปรับตำแหน่งปุ่ม "สมัครเรียน" ให้สมดุล ไม่ลอยและไม่จม */
#topbar .button-75 {
  font-family: 'supermarketregular', sans-serif !important;
  font-size: 15px !important;
  height: 28px !important; 
  line-height: 1 !important; /* รีเซ็ตความสูงบรรทัดภายในปุ่ม */
  padding: 0 16px !important;
  margin-top: 0 !important; /* ลบ margin เก่าออกเพื่อไม่ให้ดันเบี้ยว */
  margin-left: 15px !important; /* เว้นระยะห่างจากไอคอนโซเชียลตัวสุดท้าย */
  display: inline-flex !important;
  align-items: center !important; /* จัดฟอนต์ให้อยู่กึ่งกลางปุ่ม */
  justify-content: center !important;
  border-radius: 20px !important;
  background-image: linear-gradient(135deg, #AA7C11 0%, #D4AF37 50%, #B38728 100%) !important;
  box-shadow: 0 2px 6px rgba(170, 124, 17, 0.2) !important;
  transition: all 0.3s ease !important;
  vertical-align: middle !important;
}

#topbar .button-75:hover {
  background-image: linear-gradient(135deg, #B38728 0%, #E5C158 50%, #AA7C11 100%) !important;
  box-shadow: 0 4px 12px rgba(170, 124, 17, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* ==============================================================
   ปรับขยับภาพแบนเนอร์ (Banner / Hero) ขึ้นไปชิดขอบเมนูหลักพอดี
   ============================================================== */
#carouselExampleIndicators {
  margin-top: 120px !important; /* ลดระยะลงมาจาก 164px เพื่อให้ภาพสไลด์ขึ้นไปชิดเส้นทองพอดี */
}

#hero {
  margin-top: 120px !important; /* ปรับให้สัมพันธ์กัน ป้องกันเนื้อหาด้านในหล่น */
}

/* เคลียร์ช่องว่างส่วนเกินที่อาจจะค้างอยู่ในตัว Container ของสไลด์ */
.carousel-inner {
  margin-top: 0 !important;
  padding-top: 0 !important;
}