/**
 * IISAUH THEME2026 — Principal's Message Page Styles
 *
 * @package IISAUH_Theme2026
 */

.principals-message-page,
.message-principal-page {
	background: #ffffff;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. Header Hero Banner (Exact Same Size as Careers Page Header)
   -------------------------------------------------------------------------- */
.about-hero.principals-message-hero,
.principals-message-hero,
.about-hero.message-principal-hero,
.message-principal-hero {
	position: relative;
	min-height: auto !important;
	padding: clamp(32px, 3.5vw, 48px) 0 clamp(32px, 3.5vw, 48px) !important;
	background: 
		radial-gradient(circle at 88% 25%, rgba(0, 168, 150, 0.22) 0%, transparent 50%),
		radial-gradient(circle at 12% 75%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
		linear-gradient(135deg, #07192f 0%, #0d284a 50%, #123a66 100%);
	color: #ffffff;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.principals-message-hero__shell {
	position: relative;
	z-index: 3;
	width: min(100%, var(--container-max, 1680px));
	max-width: var(--container-max, 1680px);
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(16px, 3.5vw, 40px));
	box-sizing: border-box;
}

.principals-message-hero__title {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #ffffff;
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.principals-message-hero__title-icon.about-hero__badge-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #00a896;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 168, 150, 0.4);
}

.principals-message-hero__title-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

.principals-message-hero__title-text {
	display: inline-block;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.principals-message-hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.principals-message-hero__pattern {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.75;
}

.principals-message-hero__pattern svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   2. Main Message Section
   -------------------------------------------------------------------------- */
.principals-message,
.message-principal {
	position: relative;
	padding: clamp(44px, 5.5vw, 76px) 0 clamp(64px, 8vw, 110px);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.principals-message__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.principals-message__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(320px, 34vw, 420px);
	gap: clamp(36px, 5vw, 68px);
	align-items: flex-start;
}

/* --------------------------------------------------------------------------
   3. Left Column: Message Content & Lead Quote
   -------------------------------------------------------------------------- */
.principals-message__content {
	min-width: 0;
}

/* Featured Lead Quote Card (Optional) */
.principals-message__quote-card {
	position: relative;
	margin-bottom: clamp(24px, 3vw, 36px);
	padding: clamp(20px, 2.5vw, 30px) clamp(20px, 2.5vw, 30px) clamp(20px, 2.5vw, 30px) clamp(22px, 2.8vw, 34px);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(238, 248, 255, 0.75) 0%, rgba(240, 253, 250, 0.6) 100%);
	border: 1px solid rgba(0, 168, 150, 0.25);
	border-left: 4px solid var(--teal);
	box-shadow:
		0 8px 24px rgba(15, 42, 74, 0.04),
		0 2px 6px rgba(0, 168, 150, 0.04);
}

.principals-message__quote-icon {
	position: absolute;
	top: 14px;
	right: 18px;
	color: rgba(0, 168, 150, 0.2);
	pointer-events: none;
}

.principals-message__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.principals-message__quote p {
	margin: 0;
	font-size: clamp(15.5px, 1.35vw, 17.5px);
	font-weight: 500;
	line-height: 1.8;
	color: #0f2a4a;
	letter-spacing: -0.01em;
}

/* Dynamic Body Paragraphs */
.principals-message__body {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 1.6vw, 18px);
}

.principals-message__paragraph,
.principals-message__body p,
.principals-message-page .message-md__paragraph,
.principals-message-page .message-md__body p {
	margin: 0;
	font-size: clamp(13px, 0.95vw, 14.2px) !important;
	font-weight: 400;
	line-height: 1.78 !important;
	color: #475569;
	letter-spacing: 0.005em;
	text-align: justify !important;
	text-justify: inter-word;
	text-align-last: left;
}

/* --------------------------------------------------------------------------
   4. Right Column: 3D Modern Principal Portrait Profile
   -------------------------------------------------------------------------- */
.principals-message__profile {
	position: relative;
	width: 100%;
}

.principals-message__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
}

/* 3D Stage & Parallax Layering */
.principals-message__3d-stage {
	position: relative;
	width: 100%;
	perspective: 1200px;
	padding: 4px;
	cursor: pointer;
}

/* 3D Floating Backing Plate */
.principals-message__3d-backdrop {
	position: absolute;
	inset: 0;
	transform: translate(14px, 14px);
	border-radius: 24px;
	border: 2px solid rgba(0, 168, 150, 0.45);
	background: linear-gradient(135deg, rgba(2, 196, 174, 0.15) 0%, rgba(56, 189, 248, 0.1) 50%, rgba(7, 26, 45, 0.05) 100%);
	box-shadow:
		0 20px 40px -10px rgba(0, 168, 150, 0.25),
		0 8px 20px rgba(7, 26, 45, 0.08);
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.principals-message__3d-grid-pattern {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(0, 168, 150, 0.35) 1.2px, transparent 1.2px);
	background-size: 14px 14px;
	opacity: 0.65;
}

.principals-message__3d-accent-glow {
	position: absolute;
	bottom: -20px;
	right: -20px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 209, 178, 0.4) 0%, transparent 70%);
	filter: blur(15px);
}

/* 3D Main Floating Frame */
.principals-message__3d-frame {
	position: relative;
	z-index: 2;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #f8fafc;
	transform-style: preserve-3d;
	border: 2.5px solid transparent;
	background:
		linear-gradient(#f8fafc, #f8fafc) padding-box,
		linear-gradient(135deg, #02c4ae 0%, #38bdf8 50%, #071a2d 100%) border-box;
	box-shadow:
		0 24px 50px -12px rgba(7, 26, 45, 0.25),
		0 10px 25px -4px rgba(0, 168, 150, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
	transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.principals-message__3d-stage:hover .principals-message__3d-frame {
	box-shadow:
		0 32px 65px -14px rgba(7, 26, 45, 0.32),
		0 14px 32px -4px rgba(0, 168, 150, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.principals-message__photo,
.principals-message-page .message-md__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto !important;
	object-fit: cover;
	pointer-events: none;
}

/* Glass Specular Reflection Glare */
.principals-message__3d-glare {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 3;
	opacity: 0;
	background: linear-gradient(125deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 40%, transparent 70%);
	transition: opacity 0.3s ease;
}

/* Precision 3D Corner Accents */
.principals-message__3d-corners {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 4;
}

.principals-message__corner {
	position: absolute;
	width: 14px;
	height: 14px;
	border-color: rgba(2, 196, 174, 0.85);
	border-style: solid;
}

.principals-message__corner--tl {
	top: 8px;
	left: 8px;
	border-width: 2px 0 0 2px;
	border-top-left-radius: 6px;
}

.principals-message__corner--tr {
	top: 8px;
	right: 8px;
	border-width: 2px 2px 0 0;
	border-top-right-radius: 6px;
}

.principals-message__corner--bl {
	bottom: 8px;
	left: 8px;
	border-width: 0 0 2px 2px;
	border-bottom-left-radius: 6px;
}

.principals-message__corner--br {
	bottom: 8px;
	right: 8px;
	border-width: 0 2px 2px 0;
	border-bottom-right-radius: 6px;
}

.principals-message__meta {
	margin-top: 20px;
	width: 100%;
	text-align: center;
	padding: 0 4px;
}

.principals-message__name {
	margin: 0 0 6px 0;
	font-size: clamp(18px, 1.8vw, 21px);
	font-weight: 700;
	color: #0d2b45;
	letter-spacing: -0.01em;
	line-height: 1.3;
	white-space: normal;
}

.principals-message__designation,
.principals-message-page .message-md__designation {
	margin: 0;
	font-size: clamp(12.5px, 1.1vw, 14px);
	font-weight: 500;
	font-style: italic;
	color: #64748b;
	line-height: 1.55;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
	white-space: normal !important;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   5. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
	.principals-message__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.principals-message__profile {
		max-width: 380px;
		margin: 0 auto;
		order: -1;
	}
}

@media (max-width: 600px) {
	.principals-message {
		padding: 30px 0 50px;
	}

	.principals-message__photo-frame {
		border-radius: 16px;
	}
}
