/**
 * Sri Vasavi Page Stylesheet
 * Luxury, Premium & Fully Responsive Layout for Default Pages
 *
 * @package SVCC
 */

.page-template-main {
	background-color: #FDFBF7;
	padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 100px) 0;
	min-height: 70vh;
}

.page-article {
	width: 100%;
}

/* ==========================================================================
   Page Entry Header (Clean, Light, Luxury - No Dark Background)
   ========================================================================== */
.page-entry-header {
	background: transparent !important;
	padding: clamp(30px, 5vw, 55px) 0 clamp(20px, 3vw, 35px) 0;
	margin-bottom: clamp(24px, 4vw, 40px);
	text-align: center;
	position: relative;
}

.page-entry-header::after {
	display: none !important;
	content: none !important;
}

.page-subtitle {
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #A25833;
	font-weight: 700;
	display: inline-block;
	margin-bottom: 12px;
}

.page-title {
	font-family: var(--font-display, "Marcellus", serif);
	font-size: clamp(1.8rem, 3.8vw, 2.6rem);
	color: #1A2F56;
	margin: 0 0 14px 0;
	line-height: 1.25;
	font-weight: 500;
	text-shadow: none !important;
}

.page-header-description {
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	color: #4A5568;
	max-width: 680px;
	margin: 0 auto 16px auto;
	line-height: 1.65;
}

.page-header-divider {
	width: 50px;
	height: 3px;
	background: linear-gradient(90deg, #A25833, #D5202B);
	margin: 18px auto 0 auto;
	border-radius: 2px;
}

/* Featured Media Wrapper */
.page-featured-media {
	max-width: 960px;
	margin: 0 auto clamp(30px, 5vw, 50px) auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.page-hero-image {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Page Content Card Container
   ========================================================================== */
.page-entry-content {
	max-width: 940px;
	margin: 0 auto;
	background: #FFFFFF;
	border-radius: 16px;
	border: 1px solid #E2E8F0;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.03);
	padding: clamp(24px, 5vw, 54px);
}

/* Content Flow Typography Overrides */
.text-content-flow h1,
.text-content-flow h2,
.text-content-flow h3,
.text-content-flow h4 {
	font-family: var(--font-display, "Marcellus", serif);
	color: #1A2F56;
	line-height: 1.3;
	margin-top: 1.4em;
	margin-bottom: 0.7em;
	font-weight: 500;
}

.text-content-flow h1:first-child,
.text-content-flow h2:first-child,
.text-content-flow h3:first-child {
	margin-top: 0;
}

.text-content-flow h2 {
	font-size: clamp(1.4rem, 2.5vw, 1.85rem);
	border-bottom: 1px solid #F1F5F9;
	padding-bottom: 8px;
}

.text-content-flow h3 {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.text-content-flow p {
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.75;
	color: #374151;
	margin-bottom: 1.5em;
}

.text-content-flow ul,
.text-content-flow ol {
	margin-bottom: 1.8em;
	padding-left: 28px;
}

.text-content-flow ol {
	list-style-type: decimal;
}

.text-content-flow ol ol {
	list-style-type: lower-alpha;
	margin-top: 0.5em;
	margin-bottom: 0.6em;
	padding-left: 24px;
}

.text-content-flow ol ol ol {
	list-style-type: lower-roman;
}

.text-content-flow li {
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.75;
	color: #374151;
	margin-bottom: 0.6em;
}

.text-content-flow strong {
	color: #1A2F56;
	font-weight: 700;
}

.text-content-flow dl {
	margin: 1.8em 0;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px 24px;
}

.text-content-flow dt {
	font-weight: 700;
	color: #1A2F56;
	margin-bottom: 6px;
	font-size: 1.05rem;
}

.text-content-flow dd {
	margin-left: 0;
	margin-bottom: 16px;
	color: #4A5568;
	line-height: 1.7;
}

.text-content-flow dd:last-child {
	margin-bottom: 0;
}

.text-content-flow hr {
	border: none;
	border-top: 1px solid #E2E8F0;
	margin: 2.2em 0;
}

.text-content-flow .legal-callout-box,
.text-content-flow .wp-block-group.is-style-callout {
	background-color: #FFFBEB;
	border-left: 4px solid #D97706;
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	margin: 1.8em 0;
	color: #92400E;
}

.text-content-flow blockquote {
	margin: 2em 0;
	padding: 20px 28px;
	background-color: #F8FAFC;
	border-left: 4px solid #A25833;
	border-radius: 0 12px 12px 0;
	font-style: italic;
	color: #1E293B;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.text-content-flow blockquote p:last-child {
	margin-bottom: 0;
}

.text-content-flow img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1.5em 0;
}

.text-content-flow table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: 14px;
}

.text-content-flow th,
.text-content-flow td {
	padding: 12px 16px;
	border: 1px solid #E2E8F0;
	text-align: left;
}

.text-content-flow th {
	background-color: #F1F5F9;
	color: #1A2F56;
	font-weight: 700;
}

.page-links {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid #E2E8F0;
	font-size: clamp(0.9rem, 1.4vw, 1rem);
	font-weight: 700;
	color: #1A2F56;
}

/* ==========================================================================
   404 Page Template Specific Styles
   ========================================================================== */
.error-page-main {
	background-color: #FDFBF7;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	padding: clamp(60px, 10vh, 120px) 24px;
}

.error-content-panel {
	max-width: 650px;
	margin: 0 auto;
	text-align: center;
}

.error-graphic span {
	font-size: clamp(5rem, 10vw, 7rem);
	font-weight: 900;
	color: #A25833;
	line-height: 1;
	display: block;
	margin-bottom: 20px;
	opacity: 0.9;
	letter-spacing: -2px;
}

.error-content-panel .page-title {
	font-size: clamp(1.5rem, 3.2vw, 2.1rem);
	color: #1A2F56;
	margin-top: 0;
	margin-bottom: 16px;
	text-shadow: none;
}

.error-content-panel p {
	font-size: clamp(0.95rem, 2vw, 1.1rem);
	line-height: 1.7;
	color: #4A5568;
	margin-bottom: 30px;
}

/* Responsive (<768px) */
@media (max-width: 767.98px) {
	.page-entry-content {
		padding: 20px 16px;
		border-radius: 12px;
	}

	.page-featured-media {
		border-radius: 12px;
	}
}

/* ==========================================================================
   Policy & Legal Pages Layout (Clean, Centered Formatted Section Blocks)
   ========================================================================== */
.policy-page-template .policy-wrapper {
	max-width: 960px;
	margin: 0 auto;
	width: 100%;
}

.policy-page-template .policy-main-content {
	max-width: 100% !important;
	width: 100%;
	margin: 0 auto;
}

.policy-layout-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

.policy-toc-sidebar {
	position: sticky;
	top: 110px;
}

.policy-toc-sticky-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.policy-toc-title {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #A25833;
	margin: 0 0 16px 0;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 1px solid #F1F5F9;
}

.policy-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.policy-toc-link {
	font-size: 13px;
	color: #4A5568;
	line-height: 1.45;
	display: inline-block;
	transition: color 0.2s ease, transform 0.2s ease;
}

.policy-toc-link:hover {
	color: #D6202C;
	transform: translateX(4px);
}

.policy-main-content {
	max-width: 100% !important;
	padding: clamp(28px, 4vw, 48px);
}

.policy-section-block {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #F1F5F9;
}

.policy-section-block:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.policy-section-title {
	font-family: var(--font-display, "Marcellus", serif);
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	color: #1A2F56;
	margin: 0 0 12px 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.policy-badge {
	background: rgba(214, 32, 44, 0.08);
	color: #D6202C;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	letter-spacing: 1px;
}

.policy-section-desc {
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.75;
	color: #374151;
	margin: 0;
}

@media (max-width: 991px) {
	.policy-layout-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.policy-toc-sidebar {
		position: static;
	}

	.policy-toc-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.policy-toc-list {
		grid-template-columns: 1fr;
	}
}