/*
Theme Name: Thanh Bình Psy Flatsome Child
Theme URI: https://thanhbinhpsy.com/
Description: Phục dựng giao diện Thanh Bình Psy trên Flatsome.
Author: Thanh Bình Psy
Template: flatsome
Version: 1.1.0
Text Domain: thanhbinhpsy
*/

:root {
  --teal: #31bbc2;
  --teal-dark: #1399a2;
  --navy: #1a2234;
  --blue: #4f70b5;
  --ink: #242832;
  --muted: #68707d;
  --line: #e5e8ec;
  --soft: #f5f7f8;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tbp-site { margin: 0; background: var(--white); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.utility-bar { background: var(--navy); color: #dbe4e7; font-size: 12px; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-inner a { color: white; }
.dot { margin: 0 9px; color: var(--teal); }
.site-header { height: 90px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; box-shadow: 0 4px 22px rgba(31,42,58,.05); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { margin-right: auto; }
.brand img { width: 188px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 24px; height: 100%; font-size: 14px; color: #444b55; }
.desktop-nav > a, .nav-group > a { height: 100%; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; }
.desktop-nav > a:hover, .nav-group > a:hover { color: var(--teal-dark); border-color: var(--teal); }
.nav-group { height: 100%; position: relative; }
.dropdown { position: absolute; top: 78px; left: -18px; width: 270px; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; box-shadow: 0 14px 30px rgba(22,31,48,.12); }
.nav-group:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 4px; }
.dropdown a:hover { background: #effafb; color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; }
.book-button { background: var(--teal); color: white; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 11px 18px; border-radius: 4px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; font-size: 24px; cursor: pointer; }
.mobile-panel { position: absolute; right: 0; top: 42px; width: 250px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 35px rgba(23,32,50,.14); padding: 10px; }
.mobile-panel a { display: block; padding: 10px; }

.hero { min-height: 640px; position: relative; display: flex; align-items: center; background-image: url('assets/slider-1-1.jpg'); background-position: center; background-size: cover; color: white; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,34,48,.73), rgba(32,164,174,.62)); }
.hero-content { position: relative; z-index: 1; padding: 70px 0; }
.hero-kicker, .eyebrow { display: inline-block; color: var(--teal-dark); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .16em; margin-bottom: 14px; }
.hero-kicker { color: #dffbfc; }
.hero h1 { font-size: clamp(42px, 5.5vw, 70px); line-height: 1.08; max-width: 790px; margin: 0 0 22px; font-weight: 600; letter-spacing: -.025em; }
.hero p { max-width: 690px; font-size: 19px; color: #edfafa; margin: 0; }
.hero-buttons { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.primary-button, .ghost-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 23px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 13px; border: 1px solid transparent; cursor: pointer; }
.primary-button { background: var(--teal); color: white; }
.primary-button:hover { background: var(--teal-dark); }
.ghost-button { color: white; border-color: rgba(255,255,255,.7); }
.ghost-button:hover { background: white; color: var(--navy); }
.outline-button { color: var(--teal-dark); border-color: var(--teal); }
.full { width: 100%; }
.section-pad { padding: 86px 0; }
.soft-bg { background: var(--soft); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.intro-grid h2, .section-title h2, .achievement h2, .booking-inner h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.18; margin: 0 0 20px; font-weight: 500; }
.intro-grid p { color: var(--muted); font-size: 18px; }
.intro-photo { min-height: 410px; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 22px 22px 0 #dff5f6; }
.intro-photo img, .service-photo img, .about-image img, .article-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.trust-row { display: flex; gap: 30px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.trust-row div { display: flex; flex-direction: column; }
.trust-row b { color: var(--teal-dark); font-size: 25px; }
.trust-row span { color: var(--muted); font-size: 13px; }
.section-title { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 650px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid.compact .content-card { background: white; }
.content-card { overflow: hidden; border-radius: 6px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(22,32,50,.05); transition: transform .2s ease, box-shadow .2s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(22,32,50,.11); }
.card-image { display: block; min-height: 220px; position: relative; overflow: hidden; background: #d9f3f4; }
.card-image img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .card-image img { transform: scale(1.035); }
.card-image.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), #7cd8dc); color: white; }
.card-image.placeholder span { font-size: 20px; font-weight: 700; }
.card-body { padding: 24px; }
.tag { color: var(--teal-dark); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .11em; }
.card-body h3 { margin: 8px 0 10px; font-size: 20px; line-height: 1.35; }
.card-body p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.format-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.format-grid div { padding: 38px; min-height: 240px; border-right: 1px solid var(--line); }
.format-grid div:last-child { border: 0; }
.format-grid span { color: var(--teal); font-size: 13px; font-weight: 700; }
.format-grid h3 { font-size: 26px; margin: 38px 0 10px; }
.format-grid p { color: var(--muted); margin: 0; }
.achievement { padding: 90px 0; background: var(--navy); color: white; }
.achievement-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.achievement p { color: #c8d0dc; }
.eyebrow.light { color: #69d3d8; }
.numbers { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid rgba(255,255,255,.16); }
.numbers div { padding: 35px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.numbers div:nth-child(2n) { border-right: 0; }
.numbers div:nth-last-child(-n+2) { border-bottom: 0; }
.numbers b { font-size: 34px; color: #6ed5d9; }
.numbers span { color: #c8d0dc; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.booking-band { background: #edfafa; padding: 48px 0; }
.booking-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.booking-inner h2 { font-size: 32px; margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; text-align: center; }
.team-grid article { padding: 30px; border: 1px solid var(--line); background: white; }
.avatar { width: 190px; height: 190px; border-radius: 50%; margin: 0 auto 22px; position: relative; overflow: hidden; background: #dff5f6; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.initials { display: grid; place-items: center; font-size: 55px; color: var(--teal-dark); font-weight: 700; }
.team-grid h3 { margin: 0; font-size: 20px; }
.team-grid span { color: var(--teal-dark); font-size: 13px; }
.team-grid p { color: var(--muted); font-size: 14px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.section-heading-row > div { max-width: 760px; }
.section-heading-row h2 { font-size: clamp(32px,4vw,46px); line-height: 1.18; font-weight: 500; margin: 0 0 12px; }
.section-heading-row p { margin: 0; color: var(--muted); }
.name-latest-section { background: linear-gradient(180deg,#f0fbfb 0%,#ffffff 100%); border-top: 1px solid #dceff0; }
.name-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.name-card { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid #d9eaec; box-shadow: 0 9px 28px rgba(22,48,64,.06); transition: transform .2s ease, box-shadow .2s ease; }
.name-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(22,48,64,.11); }
.name-card-image { display: grid; place-items: center; height: 165px; overflow: hidden; color: #fff; background: linear-gradient(135deg,var(--teal-dark),#69d5d9); }
.name-card-image img { width: 100%; height: 100%; object-fit: cover; }
.name-card-image > span { font-size: 64px; line-height: 1; font-weight: 700; text-shadow: 0 2px 10px rgba(15,54,66,.18); }
.name-card-body { padding: 23px; }
.name-card-body h3 { font-size: 21px; line-height: 1.35; margin: 8px 0 10px; }
.name-card-body p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tbp-ux-builder-canvas { min-height: 420px; }

.breadcrumb { background: var(--soft); border-bottom: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; }
.breadcrumb .container { display: flex; gap: 8px; }
.breadcrumb a { color: var(--blue); }
.page-heading { padding: 72px 0 54px; text-align: center; background: linear-gradient(180deg,#fbfdfd,#f6f8f9); }
.page-heading h1 { font-size: clamp(38px,5vw,56px); line-height: 1.15; margin: 0; font-weight: 500; }
.page-heading p { max-width: 700px; color: var(--muted); margin: 18px auto 0; }
.archive-section { padding: 56px 0 90px; background: var(--soft); }
.archive-section .card-grid { grid-template-columns: repeat(3,1fr); }
.article-shell { background: var(--soft); padding: 70px 20px 90px; }
.article-content { width: min(850px,100%); margin: 0 auto; padding: 45px 55px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20,30,45,.05); }
.article-content.wide { width: min(980px,100%); }
.article-content h1 { font-size: clamp(34px,5vw,47px); line-height: 1.18; font-weight: 500; margin: 10px 0 14px; padding-bottom: 20px; border-bottom: 2px solid #9eb2da; }
.article-content h2 { font-size: 28px; line-height: 1.3; margin: 42px 0 12px; }
.article-content h3 { font-size: 21px; margin: 28px 0 8px; }
.article-content p, .article-content li { color: #3f4550; }
.article-content ul { padding-left: 22px; }
.article-category { color: var(--blue); text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.article-meta { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.article-meta span { margin: 0 8px; }
.lead { font-size: 18px; line-height: 1.75; color: #303640 !important; }
.toc { border-left: 4px solid var(--teal); background: #f3fbfb; padding: 20px 24px; display: flex; flex-direction: column; margin: 28px 0; }
.toc a { color: var(--blue); }
.article-image, .about-image { position: relative; min-height: 360px; margin: 34px 0; overflow: hidden; }
.medical-note { margin-top: 34px; padding: 20px 24px; background: #fff8e8; border-left: 4px solid #e5aa39; color: #664d1a; }
.callout { margin-top: 42px; padding: 34px; color: white; background: var(--navy); }
.callout h3 { margin-top: 0; font-size: 26px; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.value-grid div { padding: 22px; background: var(--soft); }
.value-grid b { color: var(--teal-dark); }
.value-grid h3 { margin: 12px 0 5px; }
.check-list { columns: 2; }
.service-hero { padding: 74px 0; background: linear-gradient(135deg,#f7fbfb,#ebf8f9); }
.service-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.service-hero h1, .contact-section h1 { font-size: clamp(38px,5vw,56px); line-height: 1.12; font-weight: 500; margin: 0 0 20px; }
.service-hero p { color: var(--muted); font-size: 18px; }
.service-photo { min-height: 390px; position: relative; overflow: hidden; border-radius: 5px; box-shadow: 20px 20px 0 #d5eff0; }
.service-body { display: grid; grid-template-columns: 1fr 350px; gap: 70px; align-items: start; }
.service-body h2 { font-size: 30px; }
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.feature-list div { display: flex; gap: 15px; align-items: flex-start; padding: 18px; background: var(--soft); }
.feature-list b { color: var(--teal-dark); }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li span { color: var(--muted); }
.booking-card { position: sticky; top: 120px; padding: 30px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(22,32,50,.08); }
.booking-card > span { color: var(--teal-dark); font-size: 12px; text-transform: uppercase; font-weight: 700; }
.booking-card h3 { font-size: 24px; line-height: 1.35; }
.booking-card p { color: var(--muted); }
.booking-card hr { border: 0; border-top: 1px solid var(--line); }
.disclaimer { padding: 24px 0; background: #fff8e8; color: #664d1a; }
.contact-section { padding: 80px 0 100px; background: linear-gradient(135deg,#f8fbfb,#eef7f8); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-grid > div > p { color: var(--muted); font-size: 18px; }
.contact-cards { display: grid; gap: 12px; margin-top: 30px; }
.contact-cards div { display: flex; flex-direction: column; padding: 18px; background: white; border-left: 3px solid var(--teal); }
.contact-cards b { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.contact-cards a { color: var(--blue); }
.contact-form { background: white; padding: 35px; border: 1px solid var(--line); display: grid; gap: 16px; box-shadow: 0 14px 36px rgba(22,32,50,.08); }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; border: 1px solid #d9dde2; padding: 11px 12px; font: inherit; font-weight: 400; background: white; }
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form .consent { display: grid; grid-template-columns: 18px 1fr; align-items: start; font-weight: 400; }
.contact-form .consent input { min-height: 18px; }
.contact-form small, .form-demo-note { color: var(--muted); font-size: 12px; }
.test-paper { width: min(980px,100%); }
.test-notice { background: #edfafa; padding: 22px; margin: 24px 0; }
.test-notice p { margin-bottom: 0; }
.question-list { display: grid; gap: 12px; margin: 28px 0; }
.question-list fieldset { border: 1px solid var(--line); padding: 18px 20px; }
.question-list legend { padding: 0 8px; font-weight: 700; }
.question-list legend span { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: white; background: var(--teal); margin-right: 10px; }
.question-list fieldset > div { display: flex; gap: 18px; margin-top: 12px; }
.question-list label { display: flex; gap: 6px; align-items: center; }

.site-footer { background: var(--navy); color: #cbd2dc; padding-top: 65px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.15fr 1fr 1fr; gap: 45px; padding-bottom: 55px; }
.footer-brand img { width: 190px; height: auto; filter: brightness(1.25); }
.footer-grid h3 { color: white; font-size: 16px; margin: 0 0 18px; }
.footer-grid p, .footer-grid a { display: block; color: #b7c0cc; font-size: 13px; margin: 0 0 9px; }
.footer-grid a:hover { color: #6ed5d9; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: white; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,.1); padding: 18px; font-size: 12px; }
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: grid; gap: 8px; }
.floating-actions a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: white; box-shadow: 0 8px 20px rgba(0,0,0,.2); font-size: 20px; }

@media (max-width: 980px) {
  .desktop-nav, .book-button { display: none; }
  .mobile-menu { display: block; }
  .intro-grid, .achievement-grid, .service-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid, .archive-section .card-grid, .name-card-grid { grid-template-columns: repeat(2,1fr); }
  .service-body { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { width: min(100% - 28px,1120px); }
  .utility-inner > span { display: none; }
  .utility-inner { justify-content: center; }
  .site-header { height: 72px; }
  .brand img { width: 155px; }
  .hero { min-height: 580px; }
  .hero h1 { font-size: 39px; }
  .hero p { font-size: 17px; }
  .section-pad { padding: 64px 0; }
  .card-grid, .archive-section .card-grid, .name-card-grid, .format-grid, .team-grid, .numbers, .footer-grid, .value-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .format-grid { border: 0; gap: 12px; }
  .format-grid div { border: 1px solid var(--line) !important; min-height: auto; padding: 28px; }
  .format-grid h3 { margin-top: 18px; }
  .numbers div { border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.16) !important; }
  .booking-inner { align-items: flex-start; flex-direction: column; }
  .intro-photo, .service-photo { min-height: 300px; }
  .trust-row { flex-wrap: wrap; }
  .article-shell { padding: 35px 12px 60px; }
  .article-content { padding: 30px 22px; }
  .article-content h1 { font-size: 32px; }
  .article-image, .about-image { min-height: 240px; }
  .check-list { columns: 1; }
  .feature-list { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .contact-form { padding: 24px 18px; }
  .question-list fieldset > div { justify-content: space-between; }
}
