/*
 * WordPress additions.
 *
 * The only CSS that is new to the WordPress build. style.css and home.css are
 * the static site's files and must not be edited. Every block here says why it
 * exists. Design tokens (--pink, --line, ...) come from home.css.
 */

/* WordPress core: accessible hiding and alignment classes ---------------- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip-path: none;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin: 0 auto 1em;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	margin: 0.5em 0 0;
	font-size: 0.85rem;
	color: var(--muted);
}

/* Honeypot field used by the forms: invisible to people, present for bots. */
.fcsony-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Admin bar: the header is sticky at top:0, so push it below the bar ----- */
body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* The admin bar stops being fixed below 600px. */
	body.admin-bar .site-header {
		top: 0;
	}
}

/*
 * Navigation between 961px and 1100px.
 * style.css hides the menu at 1100px and below, and home.css only brings back
 * the hamburger at 960px and below, so this range had no navigation. home.css
 * already tightens the desktop menu for it; this shows that menu.
 */
@media (min-width: 961px) and (max-width: 1100px) {
	body.home .hd .nav {
		display: block;
		position: static;
		background: none;
		border: 0;
	}

	body.home .hd .nav ul {
		flex-direction: row;
		padding: 0;
	}
}

/* Page and post content (pages and views with no static design) ---------- */
.entry-content img,
.entry-content .entry-image {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.entry-content .entry-image {
	display: block;
	margin: 0 0 1.5rem;
}

.entry-content table {
	min-width: 0;
	margin: 0 0 1.75rem;
}

.entry-content h2 {
	margin-top: 2rem;
}

.entry-content h3 {
	margin-top: 1.5rem;
}

/* Pagination ---------------------------------------------------------------- */
.navigation.pagination {
	margin-top: 34px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 14px;
	border: 1.5px solid var(--line);
	border-radius: 30px;
	background: #fff;
	color: var(--ink-soft, #3c4651);
	font: 500 0.82rem "Inter", system-ui, sans-serif;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.navigation.pagination a.page-numbers:hover {
	border-color: var(--pink);
	color: var(--pink);
}

.navigation.pagination .page-numbers.current {
	border-color: var(--pink);
	background: var(--pink);
	color: #fff;
}

/* Search form -------------------------------------------------------------- */
.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto 10px;
}

.search-form label {
	flex: 1;
}

body.inner .search-form .search-submit {
	width: auto;
	padding: 11px 24px;
	border: 2px solid var(--pink);
	border-radius: 3px;
	background: var(--pink);
	color: #fff;
	font: 500 0.85rem "Inter", system-ui, sans-serif;
	cursor: pointer;
}

body.inner .search-form .search-submit:hover {
	border-color: var(--pink-deep);
	background: var(--pink-deep);
}

/*
 * Sub-menu dismissed with Escape (keyboard users). The sub-menu opens through
 * :hover and :focus-within in home.css; this hides it again until the pointer
 * leaves or focus moves back into it. Desktop only: on small screens the
 * sub-menu is always shown inside the open menu panel.
 */
@media (min-width: 961px) {
	body.home .hd .nav .has-sub.is-dismissed .sub {
		opacity: 0 !important;
		visibility: hidden !important;
	}
}

/* Forms: the error state mirrors the success state. */
.ap-status.err,.ct-status.err{background:#FFF1F1;color:#B23A3A;border-radius:10px;padding:12px 16px}

/* Language switcher in the header band: an EN / BN toggle, current language filled. */
.hd-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 30px;
	background: rgba(8, 30, 56, 0.55);
	font-family: "Inter", system-ui, sans-serif;
	line-height: 1;
}

.hd-lang a,
.hd-lang .on {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 7px 11px;
	border-radius: 30px;
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}

.hd-lang .on {
	background: #0b5fae;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hd-lang a:hover,
.hd-lang a:focus-visible {
	background: rgba(255, 255, 255, 0.16);
	color: #fff !important;
}

@media (max-width: 560px) {
	.hd-lang a,
	.hd-lang .on {
		min-width: 32px;
		padding: 6px 8px;
		font-size: 0.66rem;
	}
}

/* Bangla pages: the main fonts have no Bengali letters, so use a Bengali face ----- */
html:lang(bn) body,
html:lang(bn) h1,
html:lang(bn) h2,
html:lang(bn) h3,
html:lang(bn) h4,
html:lang(bn) button,
html:lang(bn) input,
html:lang(bn) select,
html:lang(bn) textarea,
html:lang(bn) summary {
	font-family: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", system-ui, sans-serif;
}

html:lang(bn) h1,
html:lang(bn) h2,
html:lang(bn) h3 {
	line-height: 1.35;
	letter-spacing: 0;
}

/* The "Open today" tag is a CSS string in home.css; give it in Bangla. */
html:lang(bn) .ch.is-today .body::before,
html:lang(bn) .ch2.is-today::before {
	content: "আজ খোলা";
}

/*
 * Contact page on tablets and phones. home.css stacks the two columns at 960px,
 * but a later rule in the same file sets them side by side again, so on a phone
 * the form was squeezed past the right edge. Restore the single column.
 */
@media (max-width: 960px) {
	.ctr-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Gravity Forms forms on the Appointment and Contact pages. */
.fcsony-gf .gform_wrapper {
	margin: 0;
}

.fcsony-gf .gform_wrapper .gfield_label {
	font: 600 .82rem "Inter", system-ui, sans-serif;
	color: var(--ink);
}

.fcsony-gf .gform_wrapper .gfield_required {
	color: #D64545;
}

body.inner .fcsony-gf .gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.inner .fcsony-gf .gform_wrapper select,
body.inner .fcsony-gf .gform_wrapper textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 14px;
	font: 400 .92rem "Inter", system-ui, sans-serif;
	color: var(--ink);
	background-color: #F5FAFE;
	border: 1.5px solid #E1E7EE;
	border-radius: 12px;
	outline: 0;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

body.inner .fcsony-gf .gform_wrapper select {
	height: auto;
}

body.inner .fcsony-gf .gform_wrapper input:not([type="submit"]):hover,
body.inner .fcsony-gf .gform_wrapper select:hover,
body.inner .fcsony-gf .gform_wrapper textarea:hover {
	border-color: #B9D2EA;
}

body.inner .fcsony-gf .gform_wrapper input:not([type="submit"]):focus,
body.inner .fcsony-gf .gform_wrapper select:focus,
body.inner .fcsony-gf .gform_wrapper textarea:focus {
	background-color: #fff;
	border-color: var(--pink);
	box-shadow: 0 0 0 4px rgba(11, 95, 174, .12);
}

/* The date field keeps its calendar icon inside the box. */
.fcsony-gf .gform_wrapper .ginput_container_date {
	position: relative;
}

.fcsony-gf .gform_wrapper .ginput_container_date .gform-datepicker-toggle {
	position: absolute;
	top: 50%;
	right: 14px;
	margin: 0;
	padding: 0;
	line-height: 0;
	cursor: pointer;
	background: none;
	border: 0;
	transform: translateY(-50%);
}

.fcsony-gf .gform_wrapper .gfield_error input,
.fcsony-gf .gform_wrapper .gfield_error select,
.fcsony-gf .gform_wrapper .gfield_error textarea {
	border-color: #D64545 !important;
	background-color: #FFF5F5 !important;
}

.fcsony-gf .gform_wrapper .gform_footer {
	margin: 10px 0 0;
	padding: 0;
}

.fcsony-gf .gform_wrapper .gform_footer input[type="submit"],
.fcsony-gf .gform_wrapper .gform_footer button {
	width: auto;
	margin: 0;
	padding: 16px 34px;
	font: 600 .92rem "Inter", system-ui, sans-serif;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #0B5FAE, #1B97D6);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 14px 30px rgba(11, 95, 174, .35);
	transition: transform .2s, box-shadow .2s;
}

.fcsony-gf .gform_wrapper .gform_footer input[type="submit"]:hover,
.fcsony-gf .gform_wrapper .gform_footer button:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 38px rgba(11, 95, 174, .42);
}

.fcsony-gf .gform_confirmation_message {
	padding: 16px 18px;
	font-weight: 600;
	color: #17603A;
	background: #EAF7EF;
	border-radius: 12px;
}

@media (max-width: 620px) {
	.fcsony-gf .gform_wrapper .gform_footer input[type="submit"],
	.fcsony-gf .gform_wrapper .gform_footer button {
		width: 100%;
	}
}

/* Contact page: the card around the Gravity Forms form. */
.ctr-gf {
	padding: 36px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(15, 40, 70, .12);
}

@media (max-width: 960px) {
	.ctr-gf {
		padding: 24px 20px;
	}
}

/* Hero: smaller outer ring on tablets and phones. */
@media (max-width: 960px) {
	.ring.r1 {
		width: 380px !important;
		height: 380px !important;
	}
}

/* Footer: the medical disclaimer line is hidden. */
.ft-note {
	display: none;
}

/* Article page ------------------------------------------------------------- */
.art-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
}

.art-main {
	min-width: 0;
}

.art-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	max-width: none;
	margin: 0 0 22px;
	font: 500 .82rem "Inter", system-ui, sans-serif;
	color: var(--muted);
}

.art-meta span {
	display: inline-flex;
	gap: 7px;
	align-items: center;
}

.art-meta svg {
	width: 15px;
	height: 15px;
	color: var(--pink);
}

.art-meta .tag {
	padding: 5px 14px;
	font-weight: 600;
	font-size: .72rem;
	color: var(--pink);
	background: var(--pink-soft);
	border-radius: 20px;
}

.art-photo {
	margin: 0 0 30px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	box-shadow: 0 16px 36px rgba(15, 40, 70, .14);
}

.art-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.inner .art-lead {
	max-width: none;
	margin: 0 0 30px;
	padding: 20px 24px;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.7;
	color: var(--plum-deep);
	background: var(--pink-wash);
	border-left: 4px solid var(--pink);
	border-radius: 0 14px 14px 0;
}

body.inner .art-body p,
body.inner .art-body li {
	max-width: none;
	font-size: 1.02rem;
	line-height: 1.85;
	color: var(--ink-soft);
}

body.inner .art-body p {
	margin: 0 0 1.25em;
}

body.inner .art-body h2 {
	margin: 2.2em 0 .7em;
	padding-left: 16px;
	font-size: clamp(1.3rem, 2.2vw, 1.55rem);
	line-height: 1.3;
	border-left: 4px solid var(--pink);
}

body.inner .art-body h3 {
	margin: 1.7em 0 .5em;
	font-size: 1.12rem;
	line-height: 1.4;
}

body.inner .art-body ul,
body.inner .art-body ol {
	margin: 0 0 1.4em;
	padding-left: 0;
	list-style: none;
}

body.inner .art-body li {
	position: relative;
	margin: 0 0 .55em;
	padding-left: 30px;
}

.art-body ul > li::before {
	position: absolute;
	top: .72em;
	left: 8px;
	width: 8px;
	height: 8px;
	content: "";
	background: var(--pink);
	border-radius: 50%;
}

.art-body ol {
	counter-reset: art-step;
}

.art-body ol > li {
	counter-increment: art-step;
}

.art-body ol > li::before {
	position: absolute;
	top: .32em;
	left: 0;
	width: 22px;
	height: 22px;
	font: 600 .72rem/22px "Inter", system-ui, sans-serif;
	color: #fff;
	text-align: center;
	content: counter(art-step);
	background: var(--pink);
	border-radius: 50%;
}

body.inner .art-body a {
	font-weight: 500;
	color: var(--pink);
	text-decoration: underline;
	text-decoration-color: rgba(11, 95, 174, .35);
	text-underline-offset: 3px;
}

body.inner .art-body a:hover {
	text-decoration-color: currentColor;
}

.art-body table {
	width: 100%;
	overflow: hidden;
	font-size: .94rem;
	border-radius: 12px;
	box-shadow: 0 8px 22px rgba(15, 40, 70, .06);
}

.art-body > p:last-child em {
	display: block;
	padding-top: 18px;
	font-size: .88rem;
	color: var(--muted);
	border-top: 1px solid var(--line);
}

.art-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}

body.inner .art-nav a {
	display: block;
	padding: 18px 20px;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

body.inner .art-nav a:hover {
	border-color: var(--pink);
	box-shadow: 0 12px 26px rgba(11, 95, 174, .12);
	transform: translateY(-2px);
}

.art-nav .next {
	grid-column: 2;
	text-align: right;
}

.art-nav small {
	display: block;
	margin-bottom: 6px;
	font: 600 .7rem "Inter", system-ui, sans-serif;
	letter-spacing: .08em;
	color: var(--pink);
	text-transform: uppercase;
}

.art-nav b {
	font: 600 .95rem/1.4 "Manrope", system-ui, sans-serif;
}

body.inner .art-back {
	max-width: none;
	margin: 26px 0 0;
}

/* Side column: the consultation card stays in view while the article scrolls. */
.art-side {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.art-side .sd-book {
	position: sticky;
	top: 110px;
}

.art-box {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(15, 40, 70, .07);
}

.art-box h3 {
	margin: 0 0 14px;
	font-size: 1.15rem;
}

.art-recent {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.art-recent li {
	max-width: none;
}

body.inner .art-recent a {
	display: flex;
	gap: 14px;
	align-items: center;
	color: var(--ink);
}

.art-recent img {
	flex: none;
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: 12px;
}

.art-recent b {
	display: block;
	font: 600 .88rem/1.4 "Manrope", system-ui, sans-serif;
	transition: color .2s;
}

.art-recent a:hover b {
	color: var(--pink);
}

.art-recent small {
	display: block;
	margin-top: 4px;
	font-size: .74rem;
	color: var(--muted);
}

@media (max-width: 960px) {
	.art-grid {
		grid-template-columns: 1fr;
	}

	.art-side .sd-book {
		position: static;
	}
}

@media (max-width: 560px) {
	.art-nav {
		grid-template-columns: 1fr;
	}

	.art-nav .next {
		grid-column: auto;
		text-align: left;
	}

	body.inner .art-lead {
		padding: 16px 18px;
		font-size: 1rem;
	}

	/* Wide tables scroll sideways inside the column. */
	.art-body table {
		display: block;
		overflow-x: auto;
	}
}

/* Hero and About Doctor: 20px of space between the top of the frame and the doctor photo. */
.hero-visual .photo,
.about-photo .photo {
	box-sizing: border-box;
	padding-top: 20px;
}

/* FAQ page ------------------------------------------------------------------ */
.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: start;
}

.faq-list {
	display: grid;
	gap: 14px;
}

body.inner .faq-item {
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(15, 40, 70, .05);
	transition: border-color .2s, box-shadow .2s;
}

body.inner .faq-item:hover {
	border-color: #B9D2EA;
}

body.inner .faq-item[open] {
	border-color: var(--pink);
	box-shadow: 0 14px 32px rgba(11, 95, 174, .13);
}

body.inner .faq-item summary {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 18px 22px;
	font: 600 1.02rem/1.45 "Manrope", system-ui, sans-serif;
	color: var(--plum-deep);
	list-style: none;
	cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary:focus-visible {
	outline: 2px solid var(--pink);
	outline-offset: -2px;
}

.faq-n {
	flex: none;
	width: 40px;
	height: 40px;
	font: 600 .82rem/40px "Inter", system-ui, sans-serif;
	color: var(--pink);
	text-align: center;
	background: var(--pink-soft);
	border-radius: 12px;
	transition: background .2s, color .2s;
}

.faq-item[open] .faq-n {
	color: #fff;
	background: linear-gradient(135deg, #1B97D6, var(--pink));
}

.faq-q {
	flex: 1;
}

/* Plus sign that turns into a minus when the answer is open. */
.faq-x {
	position: relative;
	flex: none;
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	transition: background .2s, border-color .2s;
}

.faq-x::before,
.faq-x::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	content: "";
	background: var(--pink);
	border-radius: 2px;
	transform: translate(-50%, -50%);
	transition: transform .25s, background .2s;
}

.faq-x::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-x {
	background: var(--pink);
	border-color: var(--pink);
}

.faq-item[open] .faq-x::before,
.faq-item[open] .faq-x::after {
	background: #fff;
}

.faq-item[open] .faq-x::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
	padding: 0 22px 20px 78px;
}

body.inner .faq-a p {
	max-width: none;
	margin: 0 0 .8em;
	font-size: .98rem;
	line-height: 1.8;
	color: var(--ink-soft);
}

body.inner .faq-a p:last-child {
	margin-bottom: 0;
}

body.inner .faq-a a {
	font-weight: 500;
	color: var(--pink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.faq-side {
	position: sticky;
	top: 110px;
}

@media (max-width: 960px) {
	.faq-grid {
		grid-template-columns: 1fr;
	}

	.faq-side {
		position: static;
	}
}

@media (max-width: 560px) {
	body.inner .faq-item summary {
		gap: 12px;
		padding: 16px;
		font-size: .96rem;
	}

	.faq-n {
		width: 34px;
		height: 34px;
		line-height: 34px;
	}

	.faq-a {
		padding: 0 16px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.faq-x::before,
	.faq-x::after {
		transition: none;
	}
}

/* Motion --------------------------------------------------------------------
 * Entrances use transform and opacity only, so nothing shifts the layout.
 * assets/js/main.js adds "reveal" to what is below the screen and "is-in" when
 * it scrolls into view; without JavaScript everything is simply visible. */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1) !important;
	will-change: opacity, transform;
}

.reveal.reveal-l {
	transform: translateX(-36px);
}

.reveal.reveal-r {
	transform: translateX(36px);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

.stats-grid b {
	font-variant-numeric: tabular-nums;
}

/* Page load: the hero text and the page title rise into place (no fade, so
 * the first paint is not delayed), and the doctor photo floats gently. */
@keyframes fcsonyRise {
	from {
		transform: translateY(22px);
	}

	to {
		transform: none;
	}
}

@keyframes fcsonyFloat {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

.hero-copy > *,
.page-head h1,
.page-head p {
	animation: fcsonyRise .7s cubic-bezier(.2, .7, .2, 1) both;
}

.hero-copy > :nth-child(2),
.page-head h1 {
	animation-delay: .06s;
}

.hero-copy > :nth-child(3),
.page-head h1 + p {
	animation-delay: .12s;
}

.hero-copy > :nth-child(4) {
	animation-delay: .18s;
}

.hero-copy > :nth-child(n+5) {
	animation-delay: .24s;
}

.hero-visual .photo {
	animation: fcsonyFloat 6s ease-in-out infinite;
}

/* Small touches on hover. */
.ico.sq,
.stats-grid .ico-w,
.pl .ico {
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.dis:hover .ico.sq,
.ch2:hover .ico.sq,
.pl:hover .ico,
.stats-grid > div:hover .ico-w {
	transform: translateY(-3px) rotate(-6deg) scale(1.08);
}

.hbtn,
body.inner .btn {
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.hbtn:hover,
body.inner .btn:hover {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none !important;
	}

	.hero-copy > *,
	.page-head h1,
	.page-head p,
	.hero-visual .photo {
		animation: none;
	}

	.ico.sq,
	.stats-grid .ico-w,
	.pl .ico,
	.hbtn,
	body.inner .btn {
		transition: none;
	}
}
