/*
Theme Name: Hestia Child - Nhi Sài Gòn
Theme URI: https://news.nhisaigon.vn
Description: Giao diện tùy biến cho Phòng khám Đa khoa Nhi Sài Gòn, kế thừa theme Hestia.
Author: Nhi Sài Gòn
Template: hestia
Version: 1.0.0
Text Domain: hestia-child
*/

/* Hestia itself loads get_stylesheet_uri() as its main stylesheet, so the
   parent stylesheet has to be pulled in here before the overrides below. */
@import url("../hestia/style.min.css");

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--nsg-brand: #c2185b;
	--nsg-brand-dark: #8e1145;
	--nsg-brand-soft: #fce8ef;
	--nsg-ink: #22313f;
	--nsg-body: #3d4c5c;
	--nsg-muted: #5f7183;
	--nsg-line: #e6ecf2;
	--nsg-bg: #f6f9fc;
	--nsg-teal: #0f6b73;
	--nsg-navy: #0b3b5a;
	--nsg-radius: 16px;
	--nsg-shadow: 0 12px 34px rgba(16, 48, 77, 0.08);
	--nsg-shadow-sm: 0 4px 14px rgba(16, 48, 77, 0.06);
}

/* ==========================================================================
   2. Base typography & colours
   ========================================================================== */
body {
	color: var(--nsg-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--nsg-ink);
	font-weight: 700;
	line-height: 1.28;
}

p { margin-bottom: 1.1em; }

a { color: var(--nsg-brand); }
a:hover, a:focus { color: var(--nsg-brand-dark); }

.section-image::before { opacity: 0.72; }

/* ==========================================================================
   3. Header / navigation
   ========================================================================== */
.navbar.navbar-default,
.navbar.navbar-transparent,
.navbar.navbar-color-on-scroll {
	background: #ffffff !important;
	border: 0;
	border-bottom: 1px solid var(--nsg-line);
	box-shadow: 0 4px 18px rgba(16, 48, 77, 0.07);
	min-height: 78px;
}

.navbar .container { position: relative; }

.navbar .navbar-brand {
	color: var(--nsg-ink) !important;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.15;
	height: 78px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 15px;
	max-width: 100%;
	white-space: nowrap;
}

.navbar .navbar-brand p {
	margin: 0;
	white-space: nowrap;
}

.navbar .navbar-brand::before {
	content: "";
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	background: var(--nsg-logo, none) center / contain no-repeat;
}

.navbar .navbar-brand:hover { color: var(--nsg-brand) !important; }

.navbar-nav > li > a {
	color: var(--nsg-ink) !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	line-height: 78px;
	padding-top: 0;
	padding-bottom: 0;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.active > a {
	color: var(--nsg-brand) !important;
	background: transparent !important;
}

.navbar .navbar-toggle { margin-top: 21px; }
.navbar .navbar-toggle .icon-bar { background: var(--nsg-ink); }

/* Header call-to-action items (added by the child theme) */
.navbar-nav > li.nsg-menu-phone > a,
.navbar-nav > li.nsg-menu-cta > a {
	line-height: 78px;
}

.navbar-nav > li.nsg-menu-phone > a {
	color: var(--nsg-teal) !important;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.navbar-nav > li.nsg-menu-phone > a i { margin-right: 6px; }

.navbar-nav > li.nsg-menu-cta > a {
	background: var(--nsg-brand) !important;
	color: #fff !important;
	border-radius: 999px;
	padding: 0 22px !important;
	margin: 20px 0 0 10px;
	line-height: 38px !important;
	text-transform: none;
	letter-spacing: 0.2px;
	box-shadow: 0 6px 16px rgba(194, 24, 91, 0.24);
}

.navbar-nav > li.nsg-menu-cta > a:hover { background: var(--nsg-brand-dark) !important; }

/* ==========================================================================
   4. Hero (Big title)

   Hestia renders the hero inside a carousel wrapper and uses table/flex
   display rules for it (.carousel .page-header ...). Those have higher
   specificity than plain .page-header rules, so the overrides below repeat the
   .carousel prefix and rebuild the section as a simple centred block.
   ========================================================================== */
.carousel .page-header {
	min-height: 620px !important;
	display: block;
	padding: 112px 0 60px;
	background: linear-gradient(135deg, #072f4a 0%, #0b4c63 52%, #0d6f72 100%) !important;
	position: relative;
	overflow: hidden;
}

.carousel .page-header .container {
	display: block;
	width: auto;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
	min-height: 0;
	position: relative;
	z-index: 3;
}

.carousel .page-header .row.hestia-big-title-content {
	display: block;
	flex: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.carousel .page-header .big-title-slider-content {
	display: block;
	float: none;
	width: 100%;
	max-width: 880px;
	margin: 0 auto !important;
	padding: 0;
	vertical-align: baseline;
}

.page-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
		radial-gradient(circle at 12% 92%, rgba(194, 24, 91, 0.28), transparent 46%);
	pointer-events: none;
}

.page-header .container {
	position: relative;
	z-index: 3;
}

.page-header .header-filter {
	background-image: none !important;
	background: transparent !important;
	opacity: 0 !important;
}

.page-header .hestia-title {
	color: #ffffff !important;
	font-size: clamp(32px, 4.2vw, 50px);
	font-weight: 700;
	letter-spacing: -0.3px;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
	margin-bottom: 14px;
}

.page-header .sub-title {
	color: #e8f6f8 !important;
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.55;
	display: block;
	max-width: 760px;
	margin: 0 auto 30px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.page-header .buttons { margin-top: 8px; }

.page-header .btn-primary {
	background: var(--nsg-brand) !important;
	border-color: var(--nsg-brand) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 30px;
	border-radius: 999px;
	box-shadow: 0 10px 26px rgba(194, 24, 91, 0.35);
}

.page-header .btn-primary:hover { background: var(--nsg-brand-dark) !important; }

.page-header .btn-hero-phone {
	background: rgba(255, 255, 255, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.55) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 26px;
	border-radius: 999px;
	margin-left: 10px;
	backdrop-filter: blur(3px);
}

.page-header .btn-hero-phone:hover { background: #fff !important; color: var(--nsg-navy) !important; }
.page-header .btn-hero-phone i { margin-right: 7px; }

/* Trust chips */
.nsg-hero-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	margin: 0 auto 26px;
	color: #d9eef1;
	font-size: 13.5px;
	font-weight: 500;
}

.nsg-hero-trust span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.nsg-hero-trust i { color: #ffd166; font-size: 14px; }

/* Hero facts */
.nsg-hero-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	max-width: 880px;
	margin: 46px auto 0;
}

.nsg-hero-facts .fact {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-align: left;
	padding: 16px 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(4px);
}

.nsg-hero-facts .fact i { color: #ffd166; font-size: 20px; margin-top: 2px; }
.nsg-hero-facts .fact strong { display: block; color: #fff; font-size: 14.5px; line-height: 1.35; }
.nsg-hero-facts .fact span { display: block; color: #cfe6ea; font-size: 12.5px; line-height: 1.45; }

/* ==========================================================================
   5. Sections
   ========================================================================== *//* Flatten Hestia's "raised" sheet: no overlap with the hero, no shadow. */
.main-raised {
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}

.wrapper section { scroll-margin-top: 86px; }

.hestia-features { padding: 72px 0 64px; background: #fff; }
.hestia-features .hestia-title,
.hestia-team .hestia-title,
.hestia-blogs .hestia-title { font-size: clamp(26px, 2.6vw, 34px); }

.hestia-features .description,
.hestia-team .description,
.hestia-blogs .description {
	color: var(--nsg-muted) !important;
	font-size: 15.5px !important;
	line-height: 1.6;
}

.hestia-features-content { margin-top: 34px; }

.hestia-features .feature-box { margin-bottom: 26px; }

.hestia-features .hestia-info {
	height: 100%;
	padding: 30px 26px;
	background: #fff;
	border: 1px solid var(--nsg-line);
	border-radius: var(--nsg-radius);
	box-shadow: var(--nsg-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hestia-features .hestia-info:hover {
	transform: translateY(-4px);
	box-shadow: var(--nsg-shadow);
}

.hestia-features .hestia-info .icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	border-radius: 18px;
	background: var(--nsg-brand-soft);
	margin: 0 auto 16px;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hestia-features .hestia-info .icon i { color: var(--nsg-brand); font-size: 28px !important; line-height: 1; }
.hestia-features .hestia-info .icon img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.hestia-features .hestia-info .info-title { font-size: 18px; margin-bottom: 8px; }
.hestia-features .hestia-info p { color: var(--nsg-muted); font-size: 14.5px; margin-bottom: 0; }

/* About */
.hestia-about,
.hestia-about.section-image {
	background: var(--nsg-bg) !important;
	background-image: none !important;
	color: var(--nsg-body);
	padding: 76px 0;
}

.hestia-about::before,
.hestia-about::after,
.hestia-about.section-image::before,
.hestia-about.section-image::after {
	display: none !important;
}

.hestia-about .hestia-about-content { color: var(--nsg-body); }

.hestia-about h2,
.hestia-about.section-image h2,
.hestia-about .hestia-title {
	color: var(--nsg-ink) !important;
	font-size: clamp(26px, 2.6vw, 34px);
	margin-bottom: 14px;
}

.hestia-about h3 { font-size: 18px; margin: 0 0 10px; }

.hestia-about .nsg-lead {
	color: var(--nsg-muted);
	font-size: 17px;
	line-height: 1.65;
	max-width: 820px;
	margin: 0 auto 38px;
}

.hestia-about .wp-block-columns { gap: 24px; }

.hestia-about .wp-block-column {
	background: #fff;
	border: 1px solid var(--nsg-line);
	border-radius: var(--nsg-radius);
	padding: 26px 26px 18px;
	box-shadow: var(--nsg-shadow-sm);
}

.hestia-about .wp-block-column p { font-size: 14.5px; color: var(--nsg-muted); }
.hestia-about .wp-block-buttons { margin-top: 34px; }
.hestia-about .wp-block-button__link {
	background: var(--nsg-brand);
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 30px;
}
.hestia-about .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--nsg-brand);
	color: var(--nsg-brand);
}

.hestia-about ul { list-style: none; padding-left: 0; margin: 18px 0 24px; }
.hestia-about ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.hestia-about ul li::before {
	content: "\f00c";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--nsg-teal);
	font-size: 14px;
}

.nsg-about-photo {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--nsg-shadow);
	background: #fff;
}
.nsg-about-photo img { display: block; width: 100%; height: auto; }

.nsg-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 22px;
}
.nsg-stats .stat {
	background: #fff;
	border: 1px solid var(--nsg-line);
	border-radius: 14px;
	padding: 18px 14px;
	text-align: center;
}
.nsg-stats .stat strong {
	display: block;
	color: var(--nsg-brand);
	font-size: 24px;
	line-height: 1.15;
}
.nsg-stats .stat span { font-size: 12.5px; color: var(--nsg-muted); }

/* Clinic photo / facilities */
.nsg-clinic {
	padding: 72px 0;
	background: #fff;
	border-bottom: 1px solid var(--nsg-line);
}

.nsg-clinic-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

.nsg-clinic-media { margin: 0; }

.nsg-clinic-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1572 / 1001;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 18px 44px rgba(16, 48, 77, 0.16);
}

.nsg-clinic-media figcaption {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--nsg-muted);
}

.nsg-clinic-media figcaption i { color: var(--nsg-brand); }

.nsg-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--nsg-brand);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.nsg-clinic-copy h2 {
	margin: 0 0 14px;
	font-size: clamp(26px, 2.6vw, 34px);
}

.nsg-clinic-copy p {
	margin-bottom: 18px;
	color: var(--nsg-muted);
}

.nsg-clinic-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 18px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.nsg-clinic-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 14.5px;
	color: var(--nsg-body);
}

.nsg-clinic-list i {
	margin-top: 3px;
	color: var(--nsg-teal);
}

.nsg-clinic-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.nsg-clinic-map {
	font-size: 14px;
	font-weight: 700;
	color: var(--nsg-brand);
	text-decoration: none;
}

.nsg-clinic-map:hover { color: var(--nsg-brand-dark); }
.nsg-clinic-map i { margin-right: 5px; }

/* Team */
.hestia-team { padding: 72px 0; background: #fff; }
.hestia-team .hestia-team-content { margin-top: 34px; }
.hestia-team h5.description { margin-bottom: 0 !important; }

/* Hestia renders 2 large cards per row; use compact 4-up avatar cards. */
.hestia-team .hestia-team-content > .row > [class*="col-"] {
	float: left;
	width: 25%;
	padding: 0 12px;
	margin-bottom: 24px;
}

.hestia-team .card-profile {
	background: #fff;
	border: 1px solid var(--nsg-line);
	border-radius: var(--nsg-radius);
	box-shadow: var(--nsg-shadow-sm);
	overflow: hidden;
	height: 100%;
	padding: 24px 18px 20px;
	text-align: center;
}

.hestia-team .card-profile > .col-md-5,
.hestia-team .card-profile > .col-md-7 {
	float: none;
	width: 100%;
	padding: 0;
}

.hestia-team .card-profile .card-image {
	width: 132px;
	height: 132px;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(16, 48, 77, 0.12);
}

.hestia-team .card-profile .card-image img {
	width: 132px;
	height: 132px;
	object-fit: cover;
	object-position: center 20%;
	border-radius: 0;
}

.hestia-team .card-profile .content { padding: 0; }
.hestia-team .card-profile .card-title { font-size: 16px; margin: 0 0 4px; line-height: 1.3; }
.hestia-team .card-profile .category {
	color: var(--nsg-teal) !important;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	margin: 0 0 8px;
}
.hestia-team .card-profile .card-description {
	color: var(--nsg-muted);
	font-size: 13px;
	line-height: 1.5;
	min-height: 0;
	margin-bottom: 0;
}
/* Every doctor links to the same clinic page, so the social footer is noise. */
.hestia-team .card-profile .footer { display: none; }

/* Blog */
.hestia-blogs { padding: 72px 0; background: var(--nsg-bg); }
.hestia-blogs .hestia-blog-content { margin-top: 34px; }
.hestia-blogs h5.description { margin-bottom: 0 !important; }

/* Equal-height cards per row (Bootstrap floats leave ragged bottoms). */
.hestia-blogs .hestia-blog-content > .row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}
.hestia-blogs .hestia-blog-content > .row::before,
.hestia-blogs .hestia-blog-content > .row::after {
	content: none;
	display: none;
}
.hestia-blogs .hestia-blog-content > .row > .hestia-blog-item {
	float: none;
	width: auto;
	padding: 0;
	margin: 0;
}

.hestia-blogs .card-blog {
	background: #fff;
	border: 1px solid var(--nsg-line);
	border-radius: var(--nsg-radius);
	box-shadow: var(--nsg-shadow-sm);
	overflow: hidden;
	height: 100%;
	margin: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hestia-blogs .card-blog:hover { transform: translateY(-4px); box-shadow: var(--nsg-shadow); }

.hestia-blogs .card-blog .card-image {
	margin: 0;
	height: auto !important;
	overflow: hidden;
}
.hestia-blogs .card-blog .card-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 0;
}

/* Ultra-wide banners and portrait posters lose their text when cropped.
   Applies to the front-page cards and archive/listing cards alike. */
.card-blog .card-image img.nsg-fit-contain {
	object-fit: contain;
	background: #eef4f8;
}

/* ==========================================================================
   4b. Inner page / archive headers
   ========================================================================== */
body:not(.home) .page-header.header-small {
	background: linear-gradient(135deg, #072f4a 0%, #0b4c63 52%, #0d6f72 100%) !important;
	background-image: linear-gradient(135deg, #072f4a 0%, #0b4c63 52%, #0d6f72 100%) !important;
	min-height: 300px !important;
	display: block;
	padding: 0 0 44px;
}

body:not(.home) .page-header.header-small .container {
	display: block;
	width: auto;
	max-width: 1170px;
	margin: 0 auto;
	padding: 128px 15px 0 !important;
	min-height: 0;
}

body:not(.home) .page-header.header-small .hestia-title,
body:not(.home) .page-header.header-small .title,
body:not(.home) .page-header.header-small h1 {
	color: #fff !important;
	margin-bottom: 4px;
}

body:not(.home) .page-header.header-small .sub-title,
body:not(.home) .page-header.header-small .description {
	color: #cfe6ea !important;
}

.nsg-breadcrumb-bar {
	background: #fff;
	border-bottom: 1px solid var(--nsg-line);
	padding: 14px 0;
	font-size: 13px;
}
.nsg-breadcrumb-bar .rank-math-breadcrumb { margin: 0; color: var(--nsg-muted); }
.nsg-breadcrumb-bar .rank-math-breadcrumb p { margin: 0; }
.nsg-breadcrumb-bar a { color: var(--nsg-brand); text-decoration: underline; }
.nsg-breadcrumb-bar a:hover { text-decoration: underline; }

.hestia-blogs .card-blog .content { padding: 20px 22px 22px; }
.hestia-blogs .card-blog .category {
	display: inline-block;
	background: var(--nsg-brand-soft);
	color: var(--nsg-brand) !important;
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.hestia-blogs .card-blog .category a { color: var(--nsg-brand) !important; }
.hestia-blogs .card-blog .card-title { font-size: 16.5px; line-height: 1.45; margin-bottom: 10px; }
.hestia-blogs .card-blog .card-title a { color: var(--nsg-ink); }
.hestia-blogs .card-blog .card-title a:hover { color: var(--nsg-brand); }
.hestia-blogs .card-blog .card-description { color: var(--nsg-muted); font-size: 14px; }
.hestia-blogs .card-blog .moretag { font-weight: 700; white-space: nowrap; }

/* Related posts cards reuse the default Hestia colours (low contrast). */
.related-posts .card-blog .category,
.related-posts .card-blog .category a,
.related-posts .card .category a {
	color: var(--nsg-brand) !important;
	font-weight: 700;
}
.related-posts .card-blog .card-description { color: var(--nsg-muted) !important; }
.related-posts .card-blog .card-title a { color: var(--nsg-ink); }

/* Contact */
.hestia-contact {
	padding: 76px 0;
	background: linear-gradient(135deg, #08324c 0%, #0a4f5f 60%, #0c6b6c 100%) !important;
}

.hestia-contact::before { display: none; }
.hestia-contact .hestia-title { color: #fff !important; font-size: clamp(26px, 2.6vw, 34px); }
.hestia-contact .description { color: #cfe6ea !important; font-size: 15px !important; }
.hestia-contact .hestia-description { color: #dbecef; }
.hestia-contact .info-title { color: #fff; font-size: 15px; margin: 0 0 4px; }
.hestia-contact .icon { color: #ffd166 !important; }
.hestia-contact .hestia-info { margin-bottom: 18px; }
.nsg-map {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #0a3a4a;
	aspect-ratio: 16 / 10;
}
.nsg-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
}

.hestia-contact .card-contact {
	background: #fff;
	border-radius: var(--nsg-radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.hestia-contact .card-contact .header-primary {
	background: var(--nsg-brand) !important;
	padding: 22px 20px;
}
.hestia-contact .card-contact .header-primary .card-title { color: #fff; margin: 0; font-size: 20px; }

/* Footer (site footer only - "footer" is also used inside cards) */
footer.footer {
	background: #071f30;
	padding: 0;
}
footer.footer .copyright,
footer.footer .copyright a { color: #b9ccd8; font-size: 13px; }
footer.footer .copyright a:hover { color: #fff; }
.hestia-bottom-footer-content { padding: 22px 0; }

/* ==========================================================================
   6. Buttons / forms / misc
   ========================================================================== */
.btn-primary {
	background: var(--nsg-brand) !important;
	border-color: var(--nsg-brand) !important;
	border-radius: 999px;
	font-weight: 600;
	box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus { background: var(--nsg-brand-dark) !important; border-color: var(--nsg-brand-dark) !important; }

/* Core block buttons (used in post/page content). */
.wp-block-button__link {
	background: var(--nsg-brand) !important;
	color: #fff !important;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 30px;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: var(--nsg-brand-dark) !important;
	color: #fff !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	border: 1px solid var(--nsg-brand);
	color: var(--nsg-brand) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--nsg-brand-soft) !important;
}

.wpforms-confirmation-container-full { border-radius: 12px; }

/* WPForms inherits the theme's pink (#e91e63) which fails contrast at 16px. */
.wpforms-submit {
	background: var(--nsg-brand) !important;
	color: #fff !important;
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	padding: 12px 28px;
}
.wpforms-submit:hover,
.wpforms-submit:focus {
	background: var(--nsg-brand-dark) !important;
}

/* Scroll to top */
.hestia-scroll-to-top {
	background: var(--nsg-brand) !important;
	border-radius: 50% !important;
	box-shadow: 0 8px 20px rgba(194, 24, 91, 0.28) !important;
}

/* ThemeIsle Companion sharing bar */
.obfx-sharing.obfx-sharing-left {
	border-radius: 0 12px 12px 0;
	overflow: hidden;
	box-shadow: var(--nsg-shadow-sm);
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.hestia-team .hestia-team-content > .row {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
	.hestia-team .hestia-team-content > .row::before,
	.hestia-team .hestia-team-content > .row::after {
		content: none;
		display: none;
	}
	.hestia-team .hestia-team-content > .row > [class*="col-"] {
		float: none;
		width: auto;
		padding: 0;
		margin: 0;
	}
}

@media (max-width: 991px) {
	.navbar .navbar-brand { max-width: 100%; font-size: 16px; height: 70px; white-space: nowrap; }
	.navbar .navbar-brand::before { width: 38px; height: 38px; }
	.navbar.navbar-default, .navbar.navbar-transparent { min-height: 70px; }
	.navbar-nav > li > a { line-height: 46px; padding: 6px 15px; }
	.navbar-nav > li.nsg-menu-cta > a { margin: 8px 15px 12px; display: inline-block; line-height: 38px !important; }
	.navbar-nav > li.nsg-menu-phone > a { line-height: 46px; }

	.carousel .page-header { min-height: 560px !important; padding-top: 96px; }
	.nsg-hero-facts { grid-template-columns: 1fr; max-width: 520px; margin-top: 32px; }
	.nsg-hero-trust { gap: 8px 16px; font-size: 12.5px; }
	.nsg-hero-trust span { white-space: normal; }

	.hestia-about, .hestia-features, .hestia-team, .hestia-blogs, .hestia-contact { padding: 56px 0; }
	.nsg-clinic-grid { grid-template-columns: 1fr; gap: 28px; }
	.nsg-clinic-list { grid-template-columns: 1fr; }
	.hestia-team .hestia-team-content > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.hestia-about .wp-block-columns { flex-direction: column; gap: 16px; }
	.hestia-blogs .hestia-blog-content > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.obfx-sharing.obfx-sharing-left { display: none !important; }
}

@media (max-width: 767px) {
	body { font-size: 15.5px; }
	.navbar .navbar-brand { font-size: 14px; gap: 8px; padding-left: 12px; padding-right: 6px; }
	.navbar .navbar-brand::before { width: 34px; height: 34px; }
	.carousel .page-header { min-height: 0 !important; padding: 88px 0 44px; }
	.carousel .page-header .btn-hero-phone { margin: 10px 0 0; }
	.nsg-hero-facts { display: none; }
	.nsg-stats { grid-template-columns: 1fr; }
	.nsg-clinic { padding: 56px 0; }
	.hestia-blogs .card-blog .card-image img { height: 190px; }
	.hestia-blogs .hestia-blog-content > .row { grid-template-columns: 1fr; }
	.hestia-team .hestia-team-content > .row > [class*="col-"] { width: auto; padding: 0; margin: 0; }
	.hestia-team .card-profile { padding: 18px 10px 14px; }
	.hestia-team .card-profile .card-image,
	.hestia-team .card-profile .card-image img { width: 96px; height: 96px; }
	.hestia-team .card-profile .card-title { font-size: 14px; }
	.hestia-team .card-profile .category { font-size: 10px; }
	.hestia-team .card-profile .card-description { font-size: 11.5px; line-height: 1.45; }
	#button-contact-vr { display: none !important; }
}

/* Print */
@media print {
	.navbar, .page-header, .hestia-contact .card-contact, .hestia-scroll-to-top { display: none !important; }
}

/* ==========================================================================
   8. Standalone pages (contact, services, privacy…)
   ========================================================================== */
.nsg-lead {
	color: var(--nsg-muted);
	font-size: 17px;
	line-height: 1.65;
	max-width: 860px;
	margin: 0 0 32px;
}

.nsg-appointment-card {
	background: #fff;
	border: 1px solid var(--nsg-line);
	border-radius: var(--nsg-radius);
	box-shadow: var(--nsg-shadow);
	padding: 24px 24px 26px;
}

.nsg-appointment-card .wpforms-submit { width: 100%; }

.page-template-default .wp-block-columns,
.page-template-default .wp-block-column { min-width: 0; }

@media (max-width: 991px) {
	.nsg-lead { font-size: 16px; }
	.nsg-appointment-card { padding: 18px; }
}

