/*
 * Hanhi Landing Theme Override
 * Style: Pharmacy clean (sang - rõ - đơn giản)
 * Notes: Designed to work well with Flatsome (no !important spam except where needed)
 */

:root{
  --hx-bg: #f6f8fb;
  --hx-surface: #ffffff;
  --hx-border: rgba(15,23,42,.10);
  --hx-text: #0f172a;
  --hx-muted: rgba(15,23,42,.68);

  --hx-primary: #16a34a;
  --hx-primary-2: #0ea5a4;
  --hx-accent: #ef4444;

  --hx-radius: 16px;
  --hx-radius-lg: 22px;

  --hx-shadow: 0 10px 26px rgba(15,23,42,.08);
  --hx-shadow-soft: 0 6px 18px rgba(15,23,42,.06);
}

/* Base */
.hanhi-landing,
.hanhi-landing *{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hanhi-landing{
  color: var(--hx-text);
  background: var(--hx-bg);
}

.hanhi-landing h1,
.hanhi-landing h2,
.hanhi-landing h3{
  letter-spacing: .2px;
  color: var(--hx-text);
}

.hanhi-landing p,
.hanhi-landing li,
.hanhi-landing .desc{
  color: var(--hx-muted);
}

/* Section = white card */
.hanhi-section{
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-soft);
  padding: 18px;
}
@media (min-width: 850px){
  .hanhi-section{ padding: 22px; }
}

/* Title */
.hanhi-title{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0 0 14px;
}
.hanhi-title::before{
  content:"";
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hx-primary), var(--hx-primary-2));
}
.hanhi-title span{
  font-weight: 800;
  text-transform: uppercase;
}

/* Buttons */
.hanhi-btn,
.hanhi-landing a.hanhi-btn,
.hanhi-landing button.hanhi-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--hx-border);
  background: var(--hx-surface);
  color: var(--hx-text);
  box-shadow: var(--hx-shadow-soft);
  font-weight: 700;
  text-transform: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.hanhi-btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(15,23,42,.18);
}

.hanhi-btn:active{ transform: translateY(0) scale(.99); }

.hanhi-btn--primary{
  border: 0;
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(14,165,164,.18);
}
.hanhi-btn--primary:hover{ box-shadow: 0 18px 38px rgba(14,165,164,.22); }

.hanhi-btn--accent{
  border: 0;
  background: linear-gradient(135deg, #ff4d4d, #ef4444);
  color: #fff;
}

/* Icons bigger */
.hanhi-ico,
.hanhi-landing svg.hanhi-ico{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
@media (min-width: 850px){
  .hanhi-ico{ width: 24px; height: 24px; flex-basis: 24px; }
}

/* Tabs */
.hanhi-tabs{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}
.hanhi-tab{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--hx-border);
  background: #fff;
  color: rgba(15,23,42,.72);
  font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.hanhi-tab:hover{
  transform: translateY(-1px);
  box-shadow: var(--hx-shadow-soft);
}
.hanhi-tab.is-active{
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(22,163,74,.14);
}

/* Cards grid */
.hanhi-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 850px){
  .hanhi-grid{ grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (min-width: 560px) and (max-width: 849px){
  .hanhi-grid{ grid-template-columns: repeat(2, 1fr); }
}

.hanhi-card{
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow-soft);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hanhi-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(15,23,42,.18);
}
.hanhi-card__img{
  background: linear-gradient(180deg, rgba(14,165,164,.08), rgba(22,163,74,.06));
  padding: 14px;
}
.hanhi-card__img img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 12px;
}
.hanhi-card__body{ padding: 14px 14px 16px; }
.hanhi-card__title{
  margin: 6px 0 10px;
  font-weight: 900;
  color: var(--hx-text);
}
.hanhi-card .hanhi-btn{ padding: 9px 14px; font-weight: 800; }

/* Sticky mobile CTA */
.hanhi-sticky{
  position: sticky;
  bottom: 12px;
  z-index: 50;
}
.hanhi-sticky__wrap{
  margin: 0 auto;
  max-width: 980px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--hx-border);
  border-radius: 999px;
  box-shadow: var(--hx-shadow);
  padding: 8px;
  display:flex;
  gap: 8px;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}
.hanhi-sticky__wrap a{
  flex: 1;
  justify-content:center;
  padding: 10px 10px;
  font-size: 13px;
}
.hanhi-sticky__wrap .hanhi-ico{ width: 20px; height: 20px; }

/* CF7 */
.cf7-helmet-form{
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-soft);
  padding: 16px;
}
.cf7-helmet-form label{
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  color: rgba(15,23,42,.80);
}
.cf7-helmet-form input[type="text"],
.cf7-helmet-form input[type="tel"],
.cf7-helmet-form input[type="email"],
.cf7-helmet-form select,
.cf7-helmet-form textarea{
  border-radius: 14px !important;
  border: 1px solid var(--hx-border) !important;
  background: #fff !important;
  padding: 11px 12px !important;
  box-shadow: none !important;
}
.cf7-helmet-form input:focus,
.cf7-helmet-form select:focus,
.cf7-helmet-form textarea:focus{
  outline: none !important;
  border-color: rgba(14,165,164,.35) !important;
  box-shadow: 0 0 0 4px rgba(14,165,164,.12) !important;
}

.cf7-helmet-form input.wpcf7-submit.btn-cta{
  border: 0 !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2)) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(14,165,164,.20) !important;
}
.cf7-helmet-form input.wpcf7-submit.btn-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(14,165,164,.24) !important;
}

/* ===== Premium center section: worries (PC) ===== */
.hanhi-section-glow{
  background: radial-gradient(1200px 320px at 20% -10%, rgba(14,165,164,.12), transparent 60%),
              radial-gradient(900px 260px at 90% 10%, rgba(22,163,74,.10), transparent 55%),
              var(--hx-surface);
}

.hanhi-worries .hanhi-worries__inner{
  max-width: 980px;
  margin: 0 auto;
}

.hanhi-worries__head{
  text-align: center;
  margin-bottom: 14px;
}

.hanhi-worries__title{
  margin: 0 0 8px;
  font-weight: 950;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: .2px;
}

.hanhi-worries__sub{
  margin: 0 auto;
  max-width: 820px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hx-muted);
}

.hanhi-worries__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (min-width: 980px){
  .hanhi-worries__grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
  }
}

.hanhi-worries__card{
  position: relative;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-soft);
  padding: 16px;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.hanhi-worries__card::after{
  content:"";
  position:absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,164,.18), transparent 60%);
  pointer-events:none;
}

.hanhi-worries__card:hover{
  transform: translateY(-2px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(15,23,42,.16);
}

.hanhi-worries__card--good::after{
  background: radial-gradient(circle at 30% 30%, rgba(22,163,74,.18), transparent 60%);
}

.hanhi-worries__badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(15,23,42,.86);
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
  margin-bottom: 10px;
}

.hanhi-worries__badge::before{
  content:"!";
  width: 22px; height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  background: linear-gradient(135deg, #ff4d4d, #ef4444);
  font-weight: 950;
}

.hanhi-worries__badge--good{
  background: rgba(14,165,164,.08);
  border-color: rgba(14,165,164,.18);
}

.hanhi-worries__badge--good::before{
  content:"✓";
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
}

.hanhi-worries__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hanhi-worries__list li{
  position: relative;
  padding-left: 34px;
  line-height: 1.65;
  color: rgba(15,23,42,.74);
}

.hanhi-worries__list li::before{
  content:"";
  position: absolute;
  left: 0;
  top: .35em;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
}

.hanhi-worries__list li::after{
  content:"•";
  position:absolute;
  left: 9px;
  top: .08em;
  font-size: 22px;
  line-height: 1;
  color: rgba(15,23,42,.55);
}

.hanhi-worries__card--good .hanhi-worries__list li::before{
  background: rgba(14,165,164,.10);
  border-color: rgba(14,165,164,.22);
}
.hanhi-worries__card--good .hanhi-worries__list li::after{
  content:"✓";
  left: 7px;
  top: .22em;
  font-size: 16px;
  color: rgba(14,165,164,.95);
  font-weight: 900;
}

.hanhi-worries__cta{
  margin-top: 14px;
  gap: 10px;
}

/* Make action icons bigger globally */
.hanhi-landing .hanhi-action a svg,
.hanhi-landing .hanhi-action svg{
  width: 22px;
  height: 22px;
}



/* ===== Certifications / Legal section enhancements ===== */
.hanhi-sec-head{
  max-width: 980px;
  margin: 0 auto 14px;
}
.hanhi-sec-head .hanhi-h2{
  text-align: center;
  font-weight: 900;
  letter-spacing: .2px;
}
.hanhi-sec-head .hanhi-sub{
  text-align: center;
  max-width: 820px;
  margin: 8px auto 0;
}

.hanhi-grid-3{
  max-width: 1080px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 850px){
  .hanhi-grid-3{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.hanhi-feature2{
  background: var(--hx-surface);
  border: 1px solid var(--hx-border);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-soft);
  padding: 16px 16px 18px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hanhi-feature2:hover{
  transform: translateY(-2px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(15,23,42,.18);
}

/* icon bigger + clearer */
.hanhi-feature2 .hanhi-ic{
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
  line-height: 1;
  background: linear-gradient(180deg, rgba(22,163,74,.12), rgba(14,165,164,.10));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 24px rgba(14,165,164,.12);
  margin-bottom: 12px;
}
@media (min-width: 850px){
  .hanhi-feature2 .hanhi-ic{
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 30px;
  }
}

.hanhi-feature2 .hanhi-h3{
  font-weight: 900;
  margin: 0 0 8px;
}
.hanhi-feature2 p{
  margin: 0;
  color: rgba(15,23,42,.70);
  line-height: 1.65;
}

/* ===== Social proof / Client logos section enhancements ===== */
.hanhi-logos{
  max-width: 1080px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 850px){
  .hanhi-logos{
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.hanhi-logo-pill{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--hx-border);
  border-radius: 999px;
  box-shadow: var(--hx-shadow-soft);
  padding: 12px 14px;
  text-align: center;
  font-weight: 800;
  color: rgba(15,23,42,.78);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hanhi-logo-pill:hover{
  transform: translateY(-1px);
  box-shadow: var(--hx-shadow);
  border-color: rgba(15,23,42,.18);
}

/* if user replaces with <img> logos inside pills, keep them crisp */
.hanhi-logo-pill img{
  max-height: 34px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}


/* ===== Sample gallery background (white + selectable pattern) ===== */
:root{ --hanhi-sample-pattern: none; }

#main .hanhi-section-alt#mau,
.hanhi-section-alt#mau{
  background: #ffffff;
  background-image: var(--hanhi-sample-pattern);
  background-size: 180px 180px;
  background-position: 0 0;
  padding: 44px 0;
}

.hanhi-section-alt#mau .hanhi-catalog{
  background: rgba(255,255,255,.94);
  border: 1px solid var(--hx-border);
  border-radius: 24px;
  box-shadow: var(--hx-shadow);
  padding: 18px;
}

.hanhi-section-alt#mau .hanhi-tab.is-active{
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-primary-2));
}

.hanhi-section-alt#mau .hanhi-product{
  background: #fff;
  border: 1px solid var(--hx-border);
  border-radius: 18px;
  box-shadow: var(--hx-shadow-soft);
}
