@import url(https://fonts.googleapis.com/css?family=Noto+Sans+Thai:400,500,600|Prompt:400,500,600&display=swap);

/* Pharmacy SWU - Premium Olive Theme v10 (text fit + padding) - main #608000 */

html {
  scroll-behavior: smooth;
}

html,
body {
  background-color: #EEF3DC;
}

body {
  font-family: 'Noto Sans Thai','Sarabun',Tahoma,sans-serif!important;
  color: #232B12;
  background: #EEF3DC linear-gradient(180deg,#DCE7B6 0,#EEF3DC 420px,#F7FAEF 900px) no-repeat;
  font-weight: 400;
  line-height: 1.8;
}

::selection {
  background: #608000;
  color: #fff;
}

a {
  transition: color .25s ease,background-color .25s ease,border-color .25s ease,box-shadow .3s ease;
}

h1,
h2,
h3,
h4,
.entry-title,
.sow-headline {
  font-family: 'Prompt','Noto Sans Thai','Sarabun',sans-serif!important;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: #3F5400;
}

/* ---- top menu ---- */

header,
#masthead,
.site-header,
#header,
.header,
#top,
.top-header {
  background: linear-gradient(180deg,#6B8F06 0%,#557500 100%)!important;
  border-top: 0!important;
  border-bottom: 2px solid #D8C07A!important;
  box-shadow: 0 16px 34px -22px rgba(52,70,0,.7)!important;
}

header a,
#masthead a,
.site-header a,
#header a,
.header a {
  font-family: 'Prompt','Noto Sans Thai','Sarabun',sans-serif!important;
  font-weight: 400;
  letter-spacing: 0;
  color: #FFFFFF!important;
}

header a:hover,
#masthead a:hover,
.site-header a:hover,
#header a:hover,
.header a:hover {
  color: #F3E6B5!important;
}

header .current-menu-item>a,
header .current_page_item>a,
#header .current-menu-item>a {
  color: #F3E6B5!important;
  box-shadow: inset 0 -3px 0 #D8C07A;
}

.sub-menu {
  background: #FFFFFF!important;
  border-top: 0!important;
  border-radius: 12px!important;
  box-shadow: 0 24px 44px -22px rgba(52,70,0,.55)!important;
}

.sub-menu a {
  color: #3F5400!important;
}

/* ---- service bar + search ---- */

.secondary-navigation,
#secondary-menu,
.menu-secondary,
.sub-header,
.top-bar,
.topbar,
.navbar-dark,
.bg-dark,
.menu-service,
.service-menu {
  background: linear-gradient(90deg,#4E6B00 0%,#6C9000 50%,#4E6B00 100%)!important;
  border-top: 0!important;
  border-bottom: 2px solid #D8C07A!important;
  border-radius: 0 0 14px 14px;
}

.secondary-navigation a,
#secondary-menu a,
.menu-secondary a,
.sub-header a,
.top-bar a,
.topbar a,
.navbar-dark a,
.bg-dark a,
.menu-service a,
.service-menu a {
  font-family: 'Prompt','Noto Sans Thai','Sarabun',sans-serif!important;
  color: #FFFFFF!important;
  font-weight: 400;
  letter-spacing: 0;
}

.secondary-navigation a:hover,
#secondary-menu a:hover,
.menu-secondary a:hover,
.sub-header a:hover,
.top-bar a:hover,
.topbar a:hover,
.navbar-dark a:hover,
.bg-dark a:hover,
.menu-service a:hover,
.service-menu a:hover {
  color: #F3E6B5!important;
  background: rgba(255,255,255,.12)!important;
}

.search-form,
#searchform,
.search-bar,
.widget_search,
.searchform {
  background: #E3ECC6!important;
  border-top: 1px solid #CFDCA6!important;
  border-bottom: 1px solid #CFDCA6!important;
}

.search-form input[type="search"],
.search-form input[type="text"],
#searchform input[type="text"],
.searchform input[type="text"] {
  background: #FFFFFF!important;
  border: 1px solid #C7D59A!important;
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---- slider ---- */

.n2-ss-slider,
.smartslider3-container,
.n2-section-smartslider {
  border-radius: 18px!important;
  overflow: hidden;
  box-shadow: 0 28px 54px -30px rgba(52,70,0,.65)!important;
}

/* ---- spacing ---- */

.panel-grid {
  margin-bottom: 0!important;
}

.panel-row-style {
  padding-top: 44px;
  padding-bottom: 44px;
}

.so-panel {
  margin-bottom: 28px;
}

/* ---- images: soft rounded frames ---- */

.so-widget-sow-image,
.widget_sow-image,
.sow-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.sow-image-container img,
.so-widget-sow-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  transition: transform .9s ease;
}

.widget_sow-image {
  box-shadow: 0 24px 44px -28px rgba(52,70,0,.55);
  background: #FFFFFF;
  padding: 6px;
}

.widget_sow-image:hover img {
  transform: scale(1.04);
}

.widget_sow-image a {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.widget_sow-image a::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(255,255,255,0);
  border-radius: 12px;
  transition: border-color .4s ease;
  pointer-events: none;
}

.widget_sow-image a:hover::after {
  border-color: rgba(255,255,255,.85);
}

/* ---- buttons: pill ---- */

.ow-button-base a,
.so-widget-sow-button a,
.sow-button-base a {
  font-family: 'Prompt','Noto Sans Thai','Sarabun',sans-serif!important;
  font-weight: 400!important;
  letter-spacing: 0;
  background: linear-gradient(135deg,#6E9400 0%,#547300 100%)!important;
  color: #FFFFFF!important;
  border: 0!important;
  border-radius: 999px!important;
  box-shadow: 0 14px 26px -14px rgba(52,70,0,.8)!important;
  transition: transform .3s ease,box-shadow .3s ease,background .3s ease!important;
}

.ow-button-base a:hover,
.so-widget-sow-button a:hover,
.sow-button-base a:hover {
  background: linear-gradient(135deg,#7FA800 0%,#608000 100%)!important;
  box-shadow: 0 20px 32px -14px rgba(52,70,0,.85),0 0 0 3px rgba(216,192,122,.6)!important;
  transform: translateY(-2px);
}

/* ---- headlines ---- */

.sow-headline-container h1,
.sow-headline-container h2,
.sow-headline-container h3 {
  position: relative;
  padding-bottom: 16px;
}

.sow-headline-container h1::after,
.sow-headline-container h2::after,
.sow-headline-container h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,#608000,#D8C07A);
}

.sow-headline-container[style*="center"] h1::after,
.sow-headline-container[style*="center"] h2::after,
.sow-headline-container[style*="center"] h3::after {
  left: 50%;
  margin-left: -30px;
}

/* ---- news / activities ---- */

.widget_siteorigin-panels-postloop article,
.widget_siteorigin-panels-postloop .post {
  background: #FFFFFF;
  border: 1px solid #DCE5BE;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 18px 36px -28px rgba(52,70,0,.55);
  transition: transform .35s ease,box-shadow .35s ease;
}

.widget_siteorigin-panels-postloop article:hover,
.widget_siteorigin-panels-postloop .post:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px -26px rgba(52,70,0,.65);
}

.widget_siteorigin-panels-postloop .entry-title,
.widget_siteorigin-panels-postloop h2,
.widget_siteorigin-panels-postloop h3 {
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0 0 6px;
}

.widget_siteorigin-panels-postloop .entry-title a {
  color: #3F5400;
}

.widget_siteorigin-panels-postloop .entry-title a:hover {
  color: #608000;
}

.widget_siteorigin-panels-postloop .entry-meta,
.widget_siteorigin-panels-postloop time {
  color: #667052;
  font-size: .85rem;
}

.widget_siteorigin-panels-postloop img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  border-radius: 12px;
  transition: transform .8s ease;
}

.widget_siteorigin-panels-postloop article:hover img {
  transform: scale(1.03);
}

/* ---- text links ---- */

.siteorigin-widget-tinymce a,
.textwidget a {
  color: #608000;
  border-bottom: 1px solid #D8C07A;
}

.siteorigin-widget-tinymce a:hover,
.textwidget a:hover {
  color: #3F5400;
  border-bottom-color: #608000;
}

/* ---- footer ---- */

footer,
#colophon,
.site-footer {
  background: linear-gradient(160deg,#4E6B00 0%,#364B00 100%)!important;
  color: #E8EFD2!important;
  border-top: 3px solid #D8C07A!important;
}

footer a,
#colophon a,
.site-footer a {
  color: #F4F8E4!important;
  border-bottom: 1px solid transparent;
}

footer a:hover,
#colophon a:hover,
.site-footer a:hover {
  color: #F3E6B5!important;
  border-bottom-color: #D8C07A;
}

footer h1,
footer h2,
footer h3,
footer h4,
#colophon h3,
.site-footer h3 {
  color: #FFFFFF!important;
}

footer .ow-button-base a,
footer .so-widget-sow-button a {
  background: rgba(255,255,255,.12)!important;
  border: 1px solid rgba(243,230,181,.7)!important;
  box-shadow: none!important;
}

footer .ow-button-base a:hover,
footer .so-widget-sow-button a:hover {
  background: rgba(243,230,181,.22)!important;
  box-shadow: none!important;
}

@media (max-width:768px) {
  .widget_siteorigin-panels-postloop article:hover,
  .widget_siteorigin-panels-postloop .post:hover {
    transform: none;
  }

  .n2-ss-slider,
  .smartslider3-container,
  .n2-section-smartslider {
    border-radius: 12px!important;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.45rem;
  }
}

/* ===== v7 fixes ===== */

/* 1) dropdown submenu: dark readable text on white */

.sub-menu a,
.sub-menu li a,
.sub-menu .menu-item a,
header .sub-menu a,
#masthead .sub-menu a,
.site-header .sub-menu a,
.dropdown-menu a,
header ul ul a,
nav ul ul a {
  color: #3F5400!important;
  background: transparent!important;
  font-family: 'Noto Sans Thai','Sarabun',Tahoma,sans-serif!important;
  font-weight: 400!important;
  box-shadow: none!important;
  padding-top: 10px!important;
  padding-bottom: 10px!important;
}

.sub-menu a:hover,
.sub-menu li a:hover,
.sub-menu .menu-item a:hover,
header .sub-menu a:hover,
#masthead .sub-menu a:hover,
.site-header .sub-menu a:hover,
.dropdown-menu a:hover,
header ul ul a:hover,
nav ul ul a:hover {
  color: #608000!important;
  background: #EEF3DC!important;
}

.sub-menu li {
  border-color: #E3EAC9!important;
}

/* 2) article headers (news titles) must NOT use the site-header style */

article header,
.entry-header,
.post header,
.widget_siteorigin-panels-postloop header {
  background: none!important;
  border: 0!important;
  box-shadow: none!important;
  padding: 0!important;
  margin: 0 0 6px 0!important;
}

.entry-header a,
article header a,
.widget_siteorigin-panels-postloop header a {
  color: #3F5400!important;
  background: none!important;
  box-shadow: none!important;
  padding: 0!important;
}

.entry-header a:hover,
article header a:hover,
.widget_siteorigin-panels-postloop header a:hover {
  color: #608000!important;
}

/* 3) news title + date typography */

.widget_siteorigin-panels-postloop .entry-title,
.widget_siteorigin-panels-postloop .entry-title a,
.widget_siteorigin-panels-postloop h2,
.widget_siteorigin-panels-postloop h2 a,
.widget_siteorigin-panels-postloop h3,
.widget_siteorigin-panels-postloop h3 a {
  font-family: 'Prompt','Noto Sans Thai','Sarabun',sans-serif!important;
  font-size: 1.08rem!important;
  font-weight: 500!important;
  line-height: 1.6!important;
  letter-spacing: 0!important;
  color: #3F5400!important;
  text-shadow: none!important;
}

.widget_siteorigin-panels-postloop .entry-meta,
.widget_siteorigin-panels-postloop .entry-meta *,
.widget_siteorigin-panels-postloop time,
.widget_siteorigin-panels-postloop .entry-date,
.widget_siteorigin-panels-postloop .posted-on,
.widget_siteorigin-panels-postloop .published {
  color: #7A8760!important;
  font-family: 'Noto Sans Thai','Sarabun',sans-serif!important;
  font-size: .85rem!important;
  font-weight: 400!important;
}

/* ===== v9: side spacing + small contrast fixes ===== */

.panel-grid-cell,
.so-panel {
  min-width: 0;
}

.so-panel .textwidget,
.so-panel .siteorigin-widget-tinymce {
  padding-left: 24px;
  padding-right: 24px;
  font-size: .92rem;
  line-height: 1.85;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.widget_sow-image {
  margin-left: 4px;
  margin-right: 4px;
}

/* button labels: white, readable */

.ow-button-base a,
.ow-button-base a span,
.ow-button-base a *,
.so-widget-sow-button a span,
.sow-button-base a span {
  color: #FFFFFF!important;
}

.ow-button-base a:hover,
.ow-button-base a:hover span,
.ow-button-base a:hover * {
  color: #FFFFFF!important;
}

/* quick link list */

.siteorigin-widget-tinymce ul li,
.textwidget ul li {
  color: #608000;
  margin-bottom: 6px;
}

.siteorigin-widget-tinymce ul li a,
.textwidget ul li a {
  color: #3F5400!important;
  border-bottom: 1px solid #D8C07A;
}

.siteorigin-widget-tinymce ul li a:hover,
.textwidget ul li a:hover {
  color: #608000!important;
  border-bottom-color: #608000;
}

@media (max-width:768px) {
  .so-panel .textwidget,
  .so-panel .siteorigin-widget-tinymce {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* button label size so long names fit on one line */

.ow-button-base a {
  font-size: .92rem!important;
  line-height: 1.45!important;
}