/*
 * Sudha Blog main styles.
 * Measurements taken from the live blog at 1908px wide.
 */

/* ---------- Tokens ---------- */
:root {
	--sb-primary: #173366;
	--sb-accent: #ffc65c;
	--sb-heading: #000000;
	--sb-text: #838383;
	--sb-pagination: #184341;
	--sb-dark: #000000;
	--sb-line: #e5e5e5;
	--sb-soft: #f2f3f5;
	--sb-font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--sb-container: 1200px;
	--sb-gutter: 15px;
	--sb-header-h: 115px;
	--sb-admin-bar: 0px;
}
body.admin-bar { --sb-admin-bar: 32px; }
@media (max-width: 782px) { body.admin-bar { --sb-admin-bar: 46px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sb-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--sb-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
a { color: var(--sb-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sb-primary); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sb-font);
	font-weight: 600;
	line-height: 1.2;
	color: var(--sb-heading);
	margin: 1em 0 .5em;
}
h1 { font-size: 46px; }
h2 { font-size: 40px; }
h3 { font-size: 32px; }
h4 { font-size: 25px; }
h5 { font-size: 21px; }
h6 { font-size: 18px; }
p { margin: 0 0 1.6em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sb-primary); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.sb-skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 100000; padding: 10px 16px;
	background: #fff; color: var(--sb-primary); border-radius: 6px;
}

.sb-container {
	width: 100%;
	max-width: var(--sb-container);
	margin-inline: auto;
	padding-inline: var(--sb-gutter);
}

/* ---------- Buttons ---------- */
.sb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border: 0;
	border-radius: 14px;
	background: var(--sb-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.sb-btn:hover, .sb-btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -10px rgba(23, 51, 102, .6);
}
.sb-btn-outline {
	background: #fff;
	color: var(--sb-dark);
	border: 2px solid var(--sb-dark);
}
.sb-btn-outline:hover, .sb-btn-outline:focus-visible {
	background: var(--sb-dark);
	color: #fff;
	box-shadow: none;
}
.sb-btn-sm { font-size: 14px; }
.sb-btn-sm svg { width: 13px; height: 13px; }
.sb-btn-pill { border-radius: 800px; font-weight: 600; }

/* ---------- Header ---------- */
.sb-header {
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	z-index: 900;
	background: #fff;
	color: var(--sb-dark);
	transition: background-color .3s ease, box-shadow .3s ease;
}
.sb-header-transparent .sb-header {
	position: absolute;
	top: var(--sb-admin-bar);
	background: transparent;
	color: #fff;
}
.sb-header.is-stuck {
	position: fixed;
	top: var(--sb-admin-bar);
	background: #fff;
	color: var(--sb-dark);
	box-shadow: -2px 3px 90px -20px rgba(0, 0, 0, .25);
	animation: sb-slide-down .35s ease;
}
.sb-header-solid .sb-header.is-stuck { animation: none; }
.sb-header-solid.sb-has-stuck .sb-main { padding-top: var(--sb-header-h); }
@keyframes sb-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.sb-header-inner {
	display: flex;
	align-items: center;
	min-height: var(--sb-header-h);
}
.sb-header-logo { flex: 0 0 auto; display: flex; align-items: center; }
.sb-logo { display: inline-flex; align-items: center; }
.sb-logo img { width: auto; height: auto; max-height: 60px; }
.sb-header .sb-logo img { width: 117px; }
.sb-logo-text { font-size: 24px; font-weight: 700; color: var(--sb-primary); white-space: nowrap; }
.sb-header-transparent .sb-header:not(.is-stuck) .sb-logo-text { color: #fff; }
.sb-logo-light { display: none; }
.sb-header-transparent .sb-header:not(.is-stuck) .sb-logo-light { display: block; }
.sb-header-transparent .sb-header:not(.is-stuck) .sb-logo-dark { display: none; }

.sb-header-right {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding-left: 10px;
}
.sb-topbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 55px;
	border-bottom: 1px solid #838383;
	margin-right: 10px;
}
.sb-topbar-link {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 0 0 60px;
	margin-right: -10px;
	margin-left: 10px;
	background: none;
	border: 0;
	font-size: 16px;
	font-weight: 500;
	color: inherit;
	cursor: pointer;
	white-space: nowrap;
}
.sb-topbar-link:first-child { padding-left: 0; }
.sb-topbar-link:hover { color: var(--sb-accent); }
.sb-header.is-stuck .sb-topbar-link:hover,
.sb-header-solid .sb-topbar-link:hover { color: var(--sb-primary); }

/* Primary menu */
.sb-nav { display: flex; justify-content: flex-end; }
.sb-menu {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-menu > li { position: relative; }
.sb-menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 55px;
	padding-left: 80px;
	font-size: 16px;
	font-weight: 500;
	color: inherit;
	white-space: nowrap;
}
.sb-menu > li:first-child > a { padding-left: 0; }
.sb-menu > li > a:hover { color: var(--sb-accent); }
.sb-header.is-stuck .sb-menu > li > a:hover,
.sb-header-solid .sb-menu > li > a:hover { color: var(--sb-primary); }
.sb-header-transparent .sb-header:not(.is-stuck) .sb-menu > li.current-menu-item > a,
.sb-header-transparent .sb-header:not(.is-stuck) .sb-menu > li.current_page_parent > a { color: var(--sb-accent); }

.sb-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -4px 0 0 6px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
}

/* Dropdowns */
.sb-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 280px;
	margin: 0;
	padding: 18px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 50px rgba(0, 0, 0, .07);
	opacity: 0;
	visibility: hidden;
	transform: translate(-30%, 10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 10;
}
.sb-menu > li:hover > .sub-menu,
.sb-menu > li:focus-within > .sub-menu,
.sb-menu > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translate(-30%, 0);
}
.sb-menu .sub-menu a {
	display: block;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sb-dark);
}
.sb-menu .sub-menu a:hover { background: var(--sb-soft); color: var(--sb-primary); }
.sb-menu .sub-menu .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	padding: 0;
	min-width: 0;
}

/* Mega menu: any top item whose children have children (e.g. Branches by state). */
.sb-menu > li:has(> .sub-menu > li > .sub-menu) { position: static; }
.sb-menu > li:has(> .sub-menu > li > .sub-menu) > .sub-menu {
	left: auto;
	right: var(--sb-gutter);
	width: min(900px, calc(100vw - 40px));
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px 20px;
	transform: translateY(10px);
	max-height: calc(100vh - 140px);
	overflow-y: auto;
}
.sb-menu > li:has(> .sub-menu > li > .sub-menu):hover > .sub-menu,
.sb-menu > li:has(> .sub-menu > li > .sub-menu):focus-within > .sub-menu,
.sb-menu > li:has(> .sub-menu > li > .sub-menu).is-open > .sub-menu { transform: translateY(0); }
.sb-menu > li > .sub-menu > li.menu-item-has-children > a {
	font-weight: 600;
	color: var(--sb-primary);
	pointer-events: none;
}
.sb-menu > li > .sub-menu > li.menu-item-has-children > a[href]:not([href="#"]) { pointer-events: auto; }
.sb-menu .sub-menu .sub-menu a { font-size: 14px; padding: 4px 10px; }
/* A long group (e.g. Tamil Nadu) flows into 3 columns and spans the rows; other groups sit beside it. */
.sb-menu > li:has(> .sub-menu > li > .sub-menu) > .sub-menu {
	grid-template-columns: max-content repeat(2, minmax(150px, 1fr));
	grid-auto-flow: row dense;
	align-items: start;
}
.sb-menu > li > .sub-menu > li:has(> .sub-menu > li:nth-child(9)) { grid-row: span 3; }
.sb-menu > li > .sub-menu > li > .sub-menu:has(> li:nth-child(9)) {
	columns: 3 150px;
	column-gap: 10px;
}
.sb-menu > li > .sub-menu > li > .sub-menu:has(> li:nth-child(9)) > li { break-inside: avoid; }

/* Burger and mobile panel */
.sb-burger, .sb-mobile-close {
	display: none;
	margin-left: auto;
	padding: 8px;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}
.sb-mobile {
	position: fixed;
	inset: var(--sb-admin-bar) 0 0 auto;
	z-index: 1000;
	width: min(380px, 100%);
	padding: 20px 24px 40px;
	overflow-y: auto;
	background: #fff;
	color: var(--sb-dark);
	box-shadow: -10px 0 60px rgba(0, 0, 0, .15);
	transform: translateX(100%);
	transition: transform .3s ease;
}
.sb-mobile.is-open { transform: translateX(0); }
.sb-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sb-mobile-head .sb-logo img { width: 117px; }
.sb-mobile-close { display: inline-flex; margin: 0; }
.sb-mobile-menu, .sb-mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.sb-mobile-menu li { position: relative; border-bottom: 1px solid var(--sb-line); }
.sb-mobile-menu .sub-menu li { border-bottom: 0; }
.sb-mobile-menu a { display: block; padding: 12px 44px 12px 0; font-size: 16px; font-weight: 500; color: var(--sb-dark); }
.sb-mobile-menu .sub-menu { display: none; padding: 0 0 10px 14px; }
.sb-mobile-menu .sub-menu a { padding: 7px 44px 7px 0; font-size: 15px; color: #444; }
.sb-mobile-menu li.is-open > .sub-menu { display: block; }
.sb-sub-toggle {
	position: absolute;
	top: 4px;
	right: 0;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: none;
	border: 0;
	color: var(--sb-dark);
	cursor: pointer;
}
.sb-sub-toggle svg { transition: transform .2s ease; }
li.is-open > .sb-sub-toggle svg { transform: rotate(180deg); }
.sb-mobile-resources { margin-top: 20px; }
.sb-mobile-actions { display: grid; gap: 12px; margin-top: 28px; }
.sb-overlay {
	position: fixed; inset: 0; z-index: 999;
	background: rgba(0, 0, 0, .4);
	opacity: 0; transition: opacity .3s ease;
}
.sb-overlay.is-visible { opacity: 1; }
body.sb-lock { overflow: hidden; }

/* Booking modal */
.sb-modal {
	position: fixed; inset: 0; z-index: 1001;
	display: grid; place-items: center;
	padding: 20px;
	background: rgba(0, 0, 0, .55);
}
.sb-modal[hidden] { display: none; }
.sb-modal-box {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 40px 32px 32px;
	background: #fff;
	border-radius: 20px;
}
.sb-modal-close {
	position: absolute; top: 12px; right: 12px;
	padding: 6px; background: none; border: 0; cursor: pointer; color: var(--sb-dark);
}

/* ---------- Blog hero ---------- */
.sb-hero {
	position: relative;
	min-height: 531px;
	padding: 205px 0 155px;
	background-color: #3b4a72;
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	text-align: center;
}
.sb-hero-inner { display: flex; flex-direction: column; align-items: center; }
.sb-hero-title {
	margin: 0 0 16px;
	font-size: 46px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}
.sb-hero-subtitle {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 500;
	color: #fff;
}

/* ---------- Listing ---------- */
.sb-listing { padding-bottom: 50px; }
.sb-listing-plain { padding-top: 60px; }
.sb-section-heading {
	margin: 60px 0 30px;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
.sb-archive-header { margin-bottom: 40px; }
.sb-archive-title { margin: 0 0 10px; font-size: 40px; }
.sb-archive-desc { max-width: 760px; }

.sb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px 30px;
}
.sb-card { display: flex; flex-direction: column; }
.sb-card-media {
	display: block;
	margin-bottom: 32px;
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 720 / 400;
	background: var(--sb-soft);
}
.sb-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.23, 1, .32, 1);
}
.sb-card:hover .sb-card-media img { transform: scale(1.05); }
.sb-card-header { margin-bottom: 16px; padding-right: 15%; }
.sb-card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}
.sb-card-title a { color: var(--sb-heading); }
.sb-card-title a:hover, .sb-card:hover .sb-card-title a { color: var(--sb-primary); }
.sb-card-excerpt {
	margin-bottom: 16px;
	padding-right: 15%;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--sb-text);
	overflow-wrap: anywhere;
}
.sb-readmore {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--sb-primary);
}
.sb-readmore-line {
	display: inline-block;
	width: 33px;
	height: 2px;
	margin-right: 12px;
	background: currentColor;
	transition: width .3s ease, margin .3s ease;
}
.sb-readmore-after { width: 0; margin: 0 0 0 12px; }
.sb-readmore:hover .sb-readmore-line:first-child,
.sb-card:hover .sb-readmore-line:first-child { width: 0; margin-right: 0; }
.sb-readmore:hover .sb-readmore-after,
.sb-card:hover .sb-readmore-after { width: 33px; }

/* Pagination */
.sb-pagination { margin: 50px 0 30px; }
.sb-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-pagination .page-numbers {
	display: grid;
	place-items: center;
	width: 35px;
	height: 35px;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--sb-dark);
	transition: background-color .2s ease, color .2s ease;
}
.sb-pagination a.page-numbers:hover { background: var(--sb-soft); }
.sb-pagination .current { background: var(--sb-pagination); color: #fff; }
.sb-pagination .next, .sb-pagination .prev { background: var(--sb-soft); font-size: 18px; }
.sb-empty { padding: 40px 0; text-align: center; }

/* Search form */
.sb-search { display: flex; gap: 10px; max-width: 520px; }
.sb-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 1px solid var(--sb-line);
	border-radius: 14px;
	background: #fff;
	color: var(--sb-dark);
}
.sb-404 { padding: 120px var(--sb-gutter) 100px; text-align: center; max-width: 720px; }
.sb-404 .sb-search { margin: 30px auto; }
.sb-404-code { margin: 0; font-size: 110px; font-weight: 700; line-height: 1; color: var(--sb-primary); }

/* ---------- Single post ---------- */
.sb-post-container {
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
	padding: 100px var(--sb-gutter) 0;
}
.sb-post-header { margin-bottom: 26px; }
.sb-post-cats { margin-bottom: 16px; line-height: 1; }
.sb-cat {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 22px;
	background: #f1f1f1;
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: var(--sb-dark);
}
.sb-cat:hover { background: var(--sb-primary); color: #fff; }
.sb-post-title {
	margin: 4px 0 0;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.4;
}
.sb-post-media { margin: 0 0 50px; }
.sb-post-media img { width: 100%; height: auto; display: block; }

.entry-content {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--sb-text);
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.6em; }
.entry-content h1 { font-size: 44px; margin: 30px 0 20px; }
.entry-content h2 { font-size: 40px; margin: 30px 0 20px; }
.entry-content h3 { font-size: 38px; line-height: 1.4; margin: 38px 0 19px; }
.entry-content h4 { font-size: 25px; margin: 30px 0 15px; }
.entry-content h5 { font-size: 21px; margin: 25px 0 12px; }
.entry-content h6 { font-size: 18px; margin: 20px 0 10px; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content a { font-weight: 500; color: var(--sb-primary); }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul, .entry-content ol { margin: 0 0 10px; padding-left: 40px; }
.entry-content li { margin: 0; }
.entry-content li > ul, .entry-content li > ol { margin: 0; }
.entry-content blockquote {
	margin: 0 0 1.6em;
	padding: 20px 28px;
	border-left: 4px solid var(--sb-primary);
	background: var(--sb-soft);
	color: #444;
}
.entry-content img { height: auto; }
.entry-content figure { margin: 0 0 1.6em; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: #888; margin-top: 8px; }
.entry-content hr { border: 0; border-top: 1px solid var(--sb-line); margin: 40px 0; }

/* Tables: no borders, zebra rows */
.entry-content table {
	width: 100%;
	margin: 0 0 1.6em;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
	color: #333;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td {
	padding: 9px 18px 9px 0;
	border: 0;
	border-bottom: 1px solid #ececec;
	text-align: start;
	vertical-align: middle;
}
.entry-content th:first-child, .entry-content td:first-child { padding-left: 0; }
.entry-content tr:nth-child(odd) > td, .entry-content tr:nth-child(odd) > th { background: #f7f7f7; }
.entry-content thead th, .entry-content thead td,
.entry-content table > tbody:first-child > tr:first-child > td,
.entry-content table > tr:first-child > td { font-weight: 600; color: #333; }
.entry-content .wp-block-table thead { border-bottom: 0; }

/* FAQ markup used in posts: <section><summary><h2 style="font-size:16px"> */
.entry-content summary { display: block; list-style: none; cursor: default; }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content section > summary > h2,
.entry-content section > summary > h3,
.entry-content details > summary > h2,
.entry-content details > summary > h3 {
	margin: 0 0 4px;
	line-height: 1.5;
	font-weight: 600;
}
.entry-content details > summary { cursor: pointer; }
.entry-content section > p:last-child, .entry-content details > p:last-child { margin-bottom: 10px; }

/* Simple Author Box plugin keeps its own styles; align it to the theme font. */
.entry-content .saboxplugin-wrap { margin-top: 60px; font-family: var(--sb-font); }

.sb-post-footer { margin-top: 30px; }
.sb-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	border-radius: 22px;
	background: #f1f1f1;
	font-size: 13px;
	color: var(--sb-dark);
}
.sb-page-links { margin: 20px 0; }

/* Elementor pages */
.sb-elementor-page { width: 100%; }
.sb-page .sb-post-container { padding-bottom: 60px; }

/* ---------- Related posts ---------- */
.sb-related { margin-top: 60px; }
.sb-related > .sb-container {
	max-width: 1170px;
	padding-top: 80px;
	border-top: 1px dashed #d7d7d7;
}
.sb-related-title {
	margin: 0 0 45px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
}
.sb-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.sb-related-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sb-soft); }
.sb-related-media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .6s cubic-bezier(.23, 1, .32, 1);
}
.sb-related-card:hover .sb-related-media img { transform: scale(1.05); }
.sb-related-meta {
	position: absolute;
	left: 0;
	bottom: 0;
	display: flex;
	font-size: 13px;
	line-height: 15px;
}
.sb-related-meta time { padding: 8px 16px; background: var(--sb-soft); color: var(--sb-dark); }
.sb-related-cat { padding: 8px 16px; background: #3b3b3b; color: #fff; }
.sb-related-cat:hover { color: var(--sb-accent); }
.sb-related-post-title {
	margin: 20px 0 0;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.2;
}
.sb-related-post-title a { color: var(--sb-primary); }
.sb-related-post-title a:hover { text-decoration: underline; }

/* ---------- Comments ---------- */
.sb-comments {
	max-width: 1140px;
	margin: 70px auto 0;
	padding-bottom: 100px;
}
.sb-comments-title {
	margin: 0 0 40px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
}
.sb-comment-list { margin: 0 0 50px; padding: 0; list-style: none; }
.sb-comment-list .children { list-style: none; padding-left: 40px; }
.sb-comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--sb-line); }
.sb-comment-list .avatar { border-radius: 50%; margin-right: 12px; float: left; }
.sb-comment-list .comment-meta { font-size: 14px; }
.sb-comment-list .fn { font-style: normal; font-weight: 600; color: var(--sb-dark); }
.sb-comment-list .reply a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.comment-respond .comment-reply-title small { margin-left: 12px; font-size: 14px; }
.comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 30px;
}
.comment-form > p { margin: 0 0 30px; }
.comment-form .comment-form-comment,
.comment-form .form-submit,
.comment-form .comment-form-cookies-consent,
.comment-form .logged-in-as,
.comment-form .comment-notes { grid-column: 1 / -1; }
.comment-form .form-submit { order: 10; margin-bottom: 18px; }
.comment-form .comment-form-cookies-consent { order: 11; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block;
	width: 100%;
	height: 45px;
	padding: 1px 2px;
	border: 0;
	border-bottom: 1px solid var(--sb-line);
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	color: var(--sb-dark);
	transition: border-color .2s ease;
}
.comment-form textarea { height: 148px; resize: vertical; padding-top: 10px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-bottom-color: var(--sb-primary); }
.comment-form ::placeholder { font-size: 13px; color: var(--sb-text); opacity: 1; }
.comment-form .sb-btn-pill { padding: 12px 28px; }

/* ---------- Footer ---------- */
.sb-footer { padding-top: 60px; background: #fff; color: var(--sb-text); }
.sb-footer > .sb-container { max-width: 1200px; }
.sb-footer-title {
	margin: 0 0 22px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sb-primary);
}
.sb-footer-title-lg { font-size: 22px; }
.sb-footer-title-sm { margin: 28px 0 14px; font-size: 18px; }

.sb-footer-branches { padding: 0 10px 40px; border-bottom: 1px solid var(--sb-line); }
.sb-branch-list {
	display: flex;
	flex-wrap: wrap;
	row-gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-branch-list li {
	display: flex;
	align-items: center;
	font-size: 16px;
	line-height: 1.4;
}
.sb-branch-list li::after {
	content: "";
	width: 0;
	height: 17px;
	margin: 0 12px;
	border-left: 2px solid var(--sb-dark);
}
.sb-branch-list li:last-child::after { display: none; }
.sb-branch-list a { font-weight: 500; color: var(--sb-dark); }
.sb-branch-list a:hover { color: var(--sb-primary); }

.sb-footer-cols {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px;
	padding: 34px 10px 46px;
}
.sb-footer-about { padding-right: 15%; }
.sb-footer-about .sb-logo img { width: 130px; margin: 0 0 20px 4px; }
.sb-footer-about p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--sb-text); }
.sb-social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sb-social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	background: var(--sb-soft);
	color: var(--sb-dark);
	transition: background-color .2s ease, color .2s ease;
}
.sb-social a:hover { background: var(--sb-primary); color: #fff; }
.sb-footer-links, .sb-contact-list { margin: 0; padding: 0; list-style: none; }
.sb-footer-links li, .sb-contact-list li { margin-bottom: 9px; }
.sb-footer-links a, .sb-contact-list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
	color: var(--sb-dark);
}
.sb-footer-links a:hover, .sb-contact-list a:hover { color: var(--sb-primary); }
.sb-contact-list svg { flex: 0 0 auto; color: var(--sb-primary); }

.sb-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
	padding: 28px 10px 30px;
	border-top: 1px solid var(--sb-line);
}
.sb-copyright { margin: 0; font-size: 16px; font-weight: 500; color: var(--sb-dark); }
.sb-credit { font-size: 16px; font-weight: 500; color: var(--sb-dark); text-decoration: underline; text-underline-offset: 3px; }
.sb-credit:hover { color: var(--sb-primary); }

/* Back to top */
.sb-to-top {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 800;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--sb-primary);
	box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.sb-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.sb-to-top:hover { color: #fff; background: var(--sb-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	:root { --sb-header-h: 80px; }
	.sb-header-right { display: none; }
	.sb-burger { display: inline-flex; }
	.sb-header .sb-logo img { width: 110px; }
	.sb-hero { min-height: 420px; padding: 150px 0 110px; }
}
@media (max-width: 991px) {
	.sb-grid, .sb-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-footer-cols { grid-template-columns: 1fr 1fr; }
	.sb-footer-about { grid-column: 1 / -1; padding-right: 0; }
	.sb-post-title { font-size: 36px; }
	.entry-content h2 { font-size: 32px; }
	.entry-content h3 { font-size: 28px; }
}
@media (max-width: 767px) {
	.sb-grid, .sb-related-grid { grid-template-columns: 1fr; }
	.sb-hero { min-height: 360px; padding: 130px 0 80px; }
	.sb-hero-title { font-size: 36px; }
	.sb-section-heading { margin-top: 44px; font-size: 24px; }
	.sb-card-header, .sb-card-excerpt { padding-right: 0; }
	.sb-post-container { padding-top: 50px; }
	.sb-post-title { font-size: 30px; line-height: 1.3; }
	.entry-content { font-size: 17px; }
	.entry-content h2 { font-size: 27px; }
	.entry-content h3 { font-size: 23px; }
	.entry-content h4 { font-size: 21px; }
	.entry-content ul, .entry-content ol { padding-left: 24px; }
	.entry-content table { display: block; overflow-x: auto; font-size: 15px; }
	.entry-content th, .entry-content td { min-width: 120px; }
	.sb-related-title, .sb-comments-title { font-size: 26px; }
	.comment-form { grid-template-columns: 1fr; }
	.sb-footer { padding-top: 60px; }
	.sb-footer-cols { grid-template-columns: 1fr; }
	.sb-footer-bottom { flex-direction: column; align-items: flex-start; }
	.sb-to-top { right: 20px; bottom: 20px; }
	.sb-archive-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
