/*
Theme Name: shiclinic
Text Domain: shiclinic.vn
Version: 0.0.1
Requires PHP: 7.0
Description: theme thuộc quyền sở hữu của shiclinic.vn
Author: Dương dịu dàng 
Author URI: shiclinic.vn
*/

:root {
    --menu-height: 58px;
    --menu-color: #111;
    --menu-theme: #0BB9BA;
    --menu-border: #eee;
    --menu-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    --menu-transition: .32s ease;
}
a{
    text-decoration: none;
}
.contact-btn img{
    width: 10px;
}
body {
/* Font chữ chính xác */
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  
  /* Cỡ chữ & Độ đậm */
  font-size: 16px;
  font-weight: 500; /* Nét thường */
  
  /* Chiều cao dòng & Khoảng cách chữ */
  line-height: 1.7; /* Tạo độ thoáng cho đoạn văn y khoa/làm đẹp */
  letter-spacing: 0.2px;
  
  color: #000000;
  
  /* Căn chỉnh đoạn văn */
  text-align: justify; /* Căn đều 2 bên hoặc để 'left' */

}
img{
    width: 100%;
}

.text-theme-color, a, .contact-wrap a {
    color: var(--menu-theme);
}

.container {
    max-width: 1230px;
    margin: 0 auto;
}
.call { width: 40px; }

/* TOP BAR */
#top-bar {
    height: 38px;
    color: #fff;
    overflow: hidden;
    background-image: url(http://shiclinic.reviewcode.info/wp-content/themes/shiclinic/assets/img/top.png);
}

#top-bar .container {
    max-width: 1230px;
    height: 38px;
    display: flex;
    align-items: center;
}

#top-bar .flex-left { width: 45%; }
#top-bar .flex-center { flex: 1; }
#top-bar .flex-right { width: auto; }

.topbar-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.topbar-marquee span {
    display: inline-block;
    padding-left: 100%;
    font-size: 12px;
    line-height: 38px;
    animation: vinnicMarquee 22s linear infinite;
}

@keyframes vinnicMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.topbar-message ul { list-style: none !important; }

.topbar-contact ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    list-style: none;
}

.topbar-contact li { display: flex; align-items: center; }

.topbar-contact a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: .25s ease;
}

.topbar-contact a:hover { color: #d8b477; }
.tb-icon { font-size: 15px; line-height: 1; }
.tb-separator { width: 1px; height: 16px; background: rgba(255,255,255,.35); margin: 0 15px; }

/* MASTHEAD */
.masthead {
    width: 100%;
    height: 82px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.masthead .container {
    width: 1200px;
    max-width: calc(100% - 30px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.wrap-logo {
    width: 245px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.wrap-logo .logo { display: block; width: 150px; height: auto; }

.wrap-search { flex: 1; margin: 0 30px; }

.search-form {
    position: relative;
    width: 100%;
    height: 46px;
}
.Philosopher{
    font-family: "gf_Philosopher variant3", "Google Sans Flex";
  font-weight: 700;
  font-style: italic;
  color: var(--menu-theme);
  text-align: left !important;         
    letter-spacing: normal !important;   
    word-spacing: normal !important;     
    text-justify: none !important;
}
.search-form input {
    width: 100%;
    height: 100%;
    padding: 0 55px 0 14px;
    border: 1px solid var(--menu-theme);
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    color: #555;
    box-sizing: border-box;
}

.search-form input::placeholder { color: #999; }

.search-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    font-size: 31px;
    line-height: 1;
    color: var(--menu-theme);
    transform: rotate(262deg);
}

.hotline {
    height: 55px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 28px;
}

.hotline-icon {
    width: 45px;
    height: 55px;
    margin-right: 8px;
    font-size: 39px;
    line-height: 55px;
    text-align: center;
    transform: rotate(-15deg);
}

.hotline-content { display: flex; flex-direction: column; white-space: nowrap; }
.hotline-content span { font-size: 13px; margin-bottom: 4px; }
.hotline-content a { font-size: 20px; font-weight: 500; text-decoration: none; }

.contact-wrap { flex-shrink: 0; }

.contact-btn {
    height: 52px;
    min-width: 185px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    border-radius: 30px;
    background: linear-gradient(to bottom, #09b4bc 0%, #7dc7e2 100%);
    border: 1px solid #09b4bc;
    color: #fff !important;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.contact-btn span { font-size: 19px; font-weight: normal; }

.contact-btn:hover {
    background: linear-gradient(to bottom, #d5f0fa 0%, #63b8d7 100%);
    color: #fff;
    text-decoration: none;
}

/* MAIN MENU */
.main-menu {
    position: relative;
    z-index: 1000;
    width: 100%;
    height: var(--menu-height);
    background: #fff;
    border-bottom: 1px solid var(--menu-border);
    transition: transform var(--menu-transition), box-shadow var(--menu-transition);
}

.main-menu > .nav-menu {
    width: 1230px;
    max-width: calc(100% - 30px);
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    list-style: none;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-menu > li > a {
    position: relative;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    color: var(--menu-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--menu-theme);
}

.nav-menu > li.menu-item-has-children > a { padding-right: 30px; }
.nav-menu > li.menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
}

.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: translateY(-20%) rotate(225deg);
}

/* SUB MENU (DESKTOP) */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    position: relative;
    margin: 0;
    padding: 0 20px;
}

.nav-menu .sub-menu li + li { border-top: 1px solid #eee; }

.nav-menu .sub-menu a {
    display: block;
    padding: 11px 10px;
    color: #333;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.nav-menu .sub-menu a:hover {
    color: var(--menu-theme);
    padding-left: 15px;
}

/* STICKY MENU */
.main-menu.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: var(--menu-shadow);
    animation: menuSlideDown .32s ease both;
    z-index: 100000;
}

@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* FIX SUBMENU OVER NIVO SLIDER */
.wrap-head { position: relative; z-index: 9999; }
.main-menu .nav-menu .sub-menu { z-index: 10002; overflow: visible; }
.ensign-nivoslider, .nivoSlider { position: relative; z-index: 1 !important; }
.section{
    padding: 55px 0; 
}
.text-center{
    text-align: center;
}
footer{
    background-image: url(http://shiclinic.reviewcode.info/wp-content/themes/shiclinic/assets/img/background_dich-vu-web-1.png);
}
.footer-list{
    justify-items: stretch;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 70px 0px;
}
.Philosopher svg{
    width: 25px;
}
.logo-footer .logo{
    width: 200px;
}
.footer-item{
    width: 385px;
}
.footer-item iframe{
    height: 400px;
}

.absolute-footer {
  background-color: #3bafca;
  color: #ffffff;
  padding: 12px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
}

.copyright-text strong {
  font-weight: 600;
}
.Copyright{
    color: #fff;
    background: #09b4bc;
    padding: 10px 0px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.service-list, .experience-list{
    justify-items: stretch;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.home-post{
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #FFF;
}
.home-post-img a{
  overflow: hidden;
    height: 224px;
    display: flex;
    align-items: center;
}
.home-post-img a img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-post:hover .home-post-img a img{
  transform: scale(1.08);
}

.home-post-itle{
    padding: 0px 14px;
    margin-block-start: 14px;
    margin-block-end: 14px;
}
.home-post-itle a:hover{
    color: #000;
}
.home-post-content{
    padding: 0px 14px 14px 14px;
}

.home-post-img {
  position: relative;
  overflow: hidden;
  display: block;
}

.home-post-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.65s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

.home-post:hover .home-post-img::before {
  left: 150%;
}

.icon-menu-mobi{
    cursor: pointer;
    display: none;
    width: 18px;
    margin-left: 29px;
}
.icon-menu-mobi svg {
    fill: #808080;
    margin-top: 10px;
}

/* MENU MOBILE CONTAINER */
.menu-mb-bgr {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-mb-bgr .menu-mb-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 80%;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.menu-mb-bgr.active {
  opacity: 1;
  visibility: visible;
}

.menu-mb-bgr.active .menu-mb-content {
  transform: translateX(0);
}

.close-menu-mb {
  cursor: pointer;
  display: none;
}

/* MB-MENU STYLING & ACCORDION SUB-MENU FIX */
.mb-menu {
    background-color: #ffffff;
    font-family: inherit;
    margin-block-start: 0px;
    margin-block-end: 0px;
    padding-inline-start: 0px;  
}

.mb-menu ul, 
.mb-menu ol,
.mb-menu li {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
}

.mb-menu li::marker {
    display: none !important;
    content: "" !important;
}

.mb-menu li {
    border-bottom: 1px solid #f1f3f5;
    position: relative;
}

.mb-menu li a {
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.mb-menu li a:hover,
.mb-menu li:hover > a {
    color: #0b8271;
    background-color: #f8f9fa;
    padding-left: 25px; 
}

/* FIX TRIỆT ĐỂ SUB-MENU TRÊN MOBILE (SỔ XUỐNG ACCORDION) */
.mb-menu .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 !important;
    background-color: #fafbfc;
    margin-left: 0 !important;
}

.mb-menu li.active > .sub-menu,
.mb-menu li.menu-item-has-children.active > .sub-menu {
    max-height: 500px;
    padding: 5px 0 !important;
}

.mb-menu .sub-menu li {
    border-bottom: none !important;
    border-top: 1px solid #edf2f7;
}

.mb-menu .sub-menu a {
    padding-left: 35px !important;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.mb-menu .sub-menu a:hover {
    padding-left: 40px !important;
    color: var(--menu-theme);
    background-color: #f1f5f9;
}

/* Biến li có chứa menu con thành flex container để sắp xếp chữ và nút bấm */
.mb-menu li:has(.sub-menu) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Thẻ a chứa chữ (chiếm hết khoảng trống bên trái) */
.mb-menu li > a {
    flex: 1;
    display: block;
    padding: 15px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.mb-menu li > a:hover {
    color: #0b8271;
}

/* Thiết kế nút mũi tên trỏ xuống riêng biệt ở góc phải */
.mb-dropdown-toggle {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    user-select: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mb-dropdown-toggle:hover {
    color: var(--menu-theme);
}

/* Khi menu mở (active), xoay mũi tên hướng xuống/sang phải */
.mb-menu li.active > .mb-dropdown-toggle {
    transform: rotate(90deg);
    color: var(--menu-theme);
}

/* Xử lý hiệu ứng trượt sổ xuống cho menu con (chiếm toàn bộ dòng dưới) */
.mb-menu .sub-menu {
    width: 100% !important;
    flex-basis: 100% !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 !important;
    background-color: #fafbfc;
    margin-left: 0 !important;
}

.mb-menu li.active > .sub-menu {
    max-height: 500px;
    padding: 5px 0 !important;
}

.mb-menu .sub-menu li {
    border-bottom: none !important;
    border-top: 1px solid #edf2f7;
    display: block !important; /* Reset display flex cho cấp con */
}

.mb-menu .sub-menu a {
    padding-left: 35px !important;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.mb-menu .sub-menu a:hover {
    padding-left: 40px !important;
    color: var(--menu-theme);
    background-color: #f1f5f9;
}
#zalo2,#mess,#phone {
    position: fixed;
    display: flex;
    align-items: center;
    width: 44px;
    top: auto !important;
    border-radius: 20%;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999; 
    line-height: 0.3;}
#zalo2 {
    bottom: 108px;
    right: 24px;
}
#phone {
    bottom: 166px;
    right: 24px;
}

#mess {
    bottom: 50px;
    right: 24px;
}

#zalo2 > a,#mess > a,#phone > a{
    display: inline-block;
    text-align: center;
    color: #ffffff;
    width: 44px;
    font-size: 23px;
    line-height: 40px;
    border-radius: 50%;
    /*  box-shadow: 0 0 0 0 rgba(0, 175, 255,  10%);
    -webkit-animation: pulse 1.5s infinite; */
    transition: all .3s; }

#zalo2 .text-quotes,#mess .text-quotes, #phone .text-quotes {
    display: inline-block;
    width: 0px;
    height: 44px;
    transition: all .2s;
    overflow: hidden;
    text-align: center; }

#zalo2 .text-quotes a,#mess .text-quotes a,#phone .text-quotes a{
    display: block;
    margin: auto;
    line-height: 44px;
    font-size: 18px;
    width: 100%;
    color: #edbf05;
    font-weight: bold;
    color: #000000; }

#zalo2 .text-quotes a:hover {
    color: #0072ff; }
#mess .text-quotes a:hover{
    color: #673ab7;
}
#phone .text-quotes a:hover{
    color: #673ab7;
}
#zalo2:hover, #mess:hover, #phone:hover {
    width: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff; }

#zalo2:hover > a,#mess:hover > a,#phone:hover > a {
    -webkit-animation: none;
    border-radius: 4px; }

#zalo2:hover .text-quotes, #mess:hover .text-quotes, #phone:hover .text-quotes {
    width: calc(100% - 50px); }
.mess{
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9999;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display:none;
}

/* RESPONSIVE */
@media(max-width: 1040px) {
    .container {
        max-width: 990px;
    }
    .search-form{
       max-width: 300px; 
    }
    .wrap-logo{
        width: 130px;   
    }
    .main-menu > .nav-menu{
        width:  100%;
        max-width: 990px;
    }
    .footer-list{
        grid-template-columns: repeat(2, 1fr); 
    }
    .masthead .container{
        gap: 10px;
    }
    .home-post-img a img{
      min-height: 224px;  
    }
    #top-bar .container{
        max-width: 990px;
    }
    .masthead .container{
        max-width: 990px;
    }
    .footer-item{width: 100%}
}

@media(max-width: 884px) {
    .container {
        max-width: 750px;
    }
    #top-bar .container{
        max-width: 750px;
    }
    .wrap-logo{
        width: 130px;   
    }
    .masthead .container{
        max-width: 750px;
    }
    .service-list, .experience-list{
        grid-template-columns: repeat(2, 1fr);
    }
    .main-menu,.hotline,.search-form{
        display: none;
    }
    .footer-item{
        width: 100%;
        min-width: 300px;
    }
    .about{
        align-items: center;
    }
    .home-post {
        min-height: 438px;
    }
    .contact-btn{
        min-width: 137px;
        padding: 0px 0px;
        font-size: 11px;
        height: 32px;  
    }
    .icon-menu-mobi{
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-list{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 440px) {

    .topbar-contact{
        display: none;
    }
    .container {
        max-width: 385px;
    }
    #top-bar .container{
        max-width: 385px;
    }
    #top-bar .flex-left{
        width: 100%;
    }
    .masthead .container{
        max-width: 385px;
    }
    .wrap-logo .logo{
        width: 140px;
    }
    .wrap-logo{
        width: 20px;
    }
    .icon-menu-mobi{
        margin-left:8px;
    }
    .about{
        flex-direction: column-reverse;
    }
    .section{
        padding: 0px 0;
    }
    .footer-list{
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }
    iframe{
        width: 100% !important;
    }
    .service-list, .experience-list{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 395px) {
    .container {
        max-width: 370px;
    }
    #top-bar .container{
        max-width: 370px;
    }
    .masthead .container{
        max-width: 370px;
    }

}
@media (max-width: 375px) {
    .container {
        max-width: 352px;
    }
    #top-bar .container{
        max-width: 352px;
    }
    .masthead .container{
        max-width: 352px;
    }
}