/********** Template CSS **********/
@font-face {
    font-family:'sukhumvit';
    src: url('../fonts/sukhumvittadmai_lig-webfont.eot');
    src: url('../fonts/sukhumvittadmai_lig-webfont.eot?iefix') format('embedded-opentype'),
         url('../fonts/sukhumvittadmai_lig-webfont.woff') format('woff'),
         url('../fonts/sukhumvittadmai_lig-webfont.ttf') format('truetype'),
         url('../fonts/sukhumvittadmai_lig-webfont.svg#thsarabun') format('svg');
}
@font-face {
    font-family:'sukhumvitbold';
    src: url('../fonts/sukhumvittadmai_bol-webfont.eot');
    src: url('../fonts/sukhumvittadmai_bol-webfont.eot?iefix') format('embedded-opentype'),
         url('../fonts/sukhumvittadmai_bol-webfont.woff') format('woff'),
         url('../fonts/sukhumvittadmai_bol-webfont.ttf') format('truetype'),
         url('../fonts/sukhumvittadmai_bol-webfont.svg#thsarabun') format('svg');    
}

/* Icon font - MFG labs */
@font-face {
  font-family: 'mfg';
    src: url('../fonts/mfglabsiconset-webfont.eot');
    src: url('../fonts/mfglabsiconset-webfont.svg#mfg_labs_iconsetregular') format('svg'),
           url('../fonts/mfglabsiconset-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/mfglabsiconset-webfont.woff') format('woff'),
         url('../fonts/mfglabsiconset-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.container-fluid {max-width: 1440px}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

h1,
h2,
h3,
.font-heading {
    font-family: "sukhumvit","Emblema One", system-ui;
    font-weight: 400;
    font-style: normal;
}

h4,
h5,
h6,
.font-body {
    font-family: "sukhumvit","Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.display-1 {font-size: 4rem;
font-family: "ibm-plex-sans-thai", sans-serif;
font-weight: 500;
font-style: normal;
}

.wow h2 {color:#bdbdbf; font-size:2rem }
.wow h6 {color:#bdbdbf; font-size:1rem }

h1 b {font-family: "sukhumvitbold"}
.h5 {font-family: "sukhumvit","mfg"}

body p, body div {font-family: "sukhumvit","Poppins", sans-serif; font-size: medium;}

@media (min-width: 992px) {
    .display-1 {
        font-size: 4rem;
    }
}

.btn {
    font-family: "Emblema One", system-ui;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 0;
    z-index: 99;
}

.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    color: var(--bs-secondary);
    font-size: 17px;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.section-title {
    color: var(--bs-primary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5rem;
}

.animate-up-down {
    position: relative;
    animation: animateUpDown 1s ease infinite;
}

@keyframes animateUpDown { 
    0% { 
        top: 0px;
    }
    50% { 
        top: 10px;
    }
    100% { 
        top: 0px;
    } 
}

.animate-rotate {
    position: absolute;
    animation: animateRotate 8s linear infinite;
}

@keyframes animateRotate { 
    100% { 
        transform: rotate(360deg); 
    } 
}

.bg-hero {
    background: linear-gradient(rgba(34, 36, 41, .8), rgba(34, 36, 41, .8)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.feature {
    margin-bottom: 135px;
}

.feature::after {
    position: absolute;
    content: "";
    width: 100%;
    height: calc(100% - 45px);
    top: 135px;
    left: 0;
    background: var(--bs-dark);
    z-index: -1;
}

.feature .feature-item {
    background: linear-gradient(var(--bs-light) 50%, var(--bs-dark));
}

.menu .tab-content img {
    transition: .5s;
}

.menu .tab-content img:hover {
    opacity: .7;
}

.team-item img {
    transform: scale(1.2);
    transition: .5s;
}

.team-item:hover img {
    margin-top: -50px;
    margin-bottom: 50px;
}

.team-item .team-overlay {
    position: absolute;
    top: calc(100% - 100px);
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 36, 41, .9);
    transition: .5s;
    opacity: 0;
}

.team-item:hover .team-overlay {
    top: 0;
    opacity: 1;
}

.owl-nav {
    display: flex;
    justify-content: center;
}

.owl-nav .owl-prev, .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--bs-primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.owl-nav .owl-prev:hover, .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.2);
}

.instagram img {
    transition: .5s;
}

.instagram img:hover {
    opacity: .9;
}

@media (min-width: 991.98px) {
    .credit {
        background: #111111;
    }
}



/* RATING */
.ratings {
    position: relative;
    vertical-align: middle;
    display: inline-block;
    color: #b1b1b1;
    overflow: hidden;
}
.full-stars {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #fde16d;
}
.empty-stars:before, .full-stars:before {
    content:"\2605  \2605  \2605  \2605  \2605";
    font-size: 14pt;
}
.empty-stars:before {
    -webkit-text-stroke: 1px #848484;
}
.full-stars:before {
    -webkit-text-stroke: 1px orange;
}
/* Webkit-text-stroke is not supported on firefox or IE */

/* Firefox */
 @-moz-document url-prefix() {
    .full-stars {
        color: #ECBE24;
    }
}

h1.m-0.display-4 small {font-size: 0.4em}
h1.m-0.display-4 b {font-style: italic;}
.hidden {display: none}

.text-ttvw {color: #000; font-size: 0.8em; padding-left: 1.6rem}
.display-10 {
    font-size: calc(0.8rem + 0.2vw);
    font-weight: 600;
    line-height: 1.2;
}

.icon-ttvw {
    text-shadow: 0px 1px 3px #444; position: absolute; 
    top: 1em; left: 1em; color: #ddd;
    background: #22242999;
    padding: 2px 6px;
    border-radius: 4px;
}

.related h1 { font-size:1.4rem }
.related ul {list-style: none;}
.related ul li {margin-bottom: 8px; display: inline-block; width:100%; position: relative;}
.related ul li i {margin-right: 4px; color: #fde16d}
.related ul li a {color: #000}
.related ul li img {width:100px; float: left; margin-right: 8px;}
.related ul li h2 {padding-right: 6px; font-weight: 600; font-size: 1rem}
.related ul li h3 {padding-left: 6px; font-weight: 500; font-size: 1rem; color: #ffc107; margin-top: 6px}
.related ul li span {font-size: 0.9em; color: #ccc; font-weight: 400; position: absolute; bottom: 0}
.related ul li span i {color: #ccc}

.related #milk-bar-related ul li img {width: 94px}
.related #milk-bar-related ul li span {font-size: 0.69em;}
.related #milk-bar-related ul li a {color: #fff; font-weight: 400}
.related #milk-bar-related ul li img {border-radius: 0}
.related #milk-bar-related ul li h3 {font-size: 0.8rem}

#forecast {max-width: 250px}
.forecast-item {
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    transition: background 0.5s ease;
    background-size: cover;
    background-repeat: no-repeat;
    font-size: 0.8rem;
    color: #fff;
}

.forecast-item .box-temp {display: inline-block; font-size: 0.8rem}
.forecast-item img {float: left}
.forecast-item .text-temp {font-size: 2rem; position: relative;}
.forecast-item .text-temp small {position: absolute; top: 0; font-size: 1.2rem}

/* ☀️ แดดออก */
.weather-clear {
  background: linear-gradient(to bottom, #fceabb, #f8d3a3); color: #000;/* pastel yellow-orange */
}

/* ☁️ เมฆมาก */
.weather-clouds {
  background: linear-gradient(to bottom, #e0eafc, #cfdef3); color: #000;/* pastel blue-gray */
}

/* 🌧️ ฝนตก */
.weather-rain {
  background: linear-gradient(to bottom, #cfd9df, #e2ebf0); color: #000!important; /* pastel gray-blue */
}

/* 🌩️ พายุฟ้าคะนอง */
.weather-thunderstorm {
  background: linear-gradient(to bottom, #d3cce3, #e9e4f0); color: #000;/* pastel purple-gray */
}

/* 🌫️ หมอก / ฝนปรอย */
.weather-mist,
.weather-haze,
.weather-drizzle {
  background: linear-gradient(to bottom, #dfe9f3, #ffffff); color: #000;/* soft mist */
}

/* ❄️ หิมะ */
.weather-snow {
  background: linear-gradient(to bottom, #f0f2f0, #d9e4f5); color: #000;/* pastel icy blue */
}

@media (min-width: 480px) {
    .content-cover-pic {min-height: 500px}
}

/* Smartphones (Landscape) */
@media (max-width: 480px) {
    /*.col-md-6 {flex: 0 0 auto; width: 50%; }*/
    .content-cover-pic {min-height: 300px}
    .container-fluid.p-5 {padding: 2rem !important}
    .content-desc p {word-wrap: break-word}
    .content-google-reviews.my-5 {margin-top: 0!important}
    .mb-5 {margin-bottom: 2rem !important;}
    .back-to-top {bottom: 20px}

    .display-10 {
    font-size: calc(0.9rem + 0.8vw);
    font-weight: 600;
    line-height: 1.2;}

    main article img {max-width: 100%}
}


@media (max-width: 1259.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-right: 20px; font-size: 14px;
    }
}



.weather-clear {
  background: linear-gradient(to bottom, #fceabb, #f8b500);
  position: relative;
  overflow: hidden;
}

.weather-clear::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #fff8b5 0%, #fceabb 40%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s infinite ease-in-out;
  opacity: 0.6;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* สีพื้น */
  border-top: 5px solid #fb5b21; /* สีที่หมุน */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.order-tag {
  display: inline-block;
  background-color: #003366; /* น้ำเงินกรมท่า */
  color: #ffffff;
  font-weight: 600;
  padding: 4px 12px;
  margin-bottom: 0.6rem;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  user-select: none;
  transition: background 0.3s;
}
.order-tag:hover {
  background-color: #002244; /* สีเข้มขึ้นเล็กน้อยตอน hover */
}


.order-tag.rank-1 { background-color: #e74c3c; } /* แดง */
.order-tag.rank-2 { background-color: #f39c12; } /* ส้ม */
.order-tag.rank-3 { background-color: #27ae60; } /* เขียว */

.container-fluid img {max-width:100%; height: auto}




