html, body { margin: 0; padding: 0; }

/* ==========================================================================
   India Voice — Advisory Committee
   Full-width maroon hero + card grid with See more / See less
   Everything is namespaced with .iv- so it will not clash with your theme.
   Edit the variables in :root to restyle.
   ========================================================================== */

:root {
	--iv-maroon-1:   #4e0c14;   /* hero gradient — dark edge   */
	--iv-maroon-2:   #8d1226;   /* hero gradient — mid         */
	--iv-maroon-3:   #a5162c;   /* hero gradient — bright      */
	--iv-gold:       #c9a227;   /* hero underline / highlights */

	--iv-page-bg:    #f7f5f1;   /* page background             */
	--iv-surface:    #ffffff;   /* card background             */
	--iv-ink:        #16202e;   /* headings / strong text      */
	--iv-body:       #46525f;   /* body copy                   */
	--iv-muted:      #78848f;   /* captions, meta              */
	--iv-accent:     #9b1b30;   /* role text + buttons         */
	--iv-accent-soft:#fbeef0;   /* accent tint                 */
	--iv-border:     #e8e3da;   /* hairlines                   */

	--iv-radius:     18px;
	--iv-shadow:       0 1px 2px rgba(22, 32, 46, .05), 0 8px 24px -12px rgba(22, 32, 46, .18);
	--iv-shadow-hover: 0 2px 4px rgba(22, 32, 46, .06), 0 20px 40px -18px rgba(22, 32, 46, .28);

	--iv-font:       "Noto Sans Devanagari", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--iv-maxw:       1180px;
	--iv-gap:        28px;
}

/* --------------------------------------------------------------------------
   Layout shell
   -------------------------------------------------------------------------- */

.iv-page *,
.iv-page *::before,
.iv-page *::after { box-sizing: border-box; }

.iv-page {
	background: var(--iv-page-bg);
	font-family: var(--iv-font);
	color: var(--iv-body);
	-webkit-font-smoothing: antialiased;
}

.iv-container {
	max-width: var(--iv-maxw);
	margin-inline: auto;
	padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Full-width hero banner
   -------------------------------------------------------------------------- */

.iv-hero {
	position: relative;
	width: 100%;
	padding: 74px 24px 78px;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(105deg,
			var(--iv-maroon-1) 0%,
			#6d0f1c 22%,
			var(--iv-maroon-2) 52%,
			var(--iv-maroon-3) 72%,
			#5f0d18 100%);
}

/* Two faint concentric arcs, like the reference banner */
.iv-hero::before,
.iv-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .12);
	pointer-events: none;
}

.iv-hero::before {
	width: 780px;
	height: 780px;
	top: -430px;
	left: -180px;
}

.iv-hero::after {
	width: 620px;
	height: 620px;
	right: -190px;
	bottom: -330px;
	border-color: rgba(255, 255, 255, .10);
}

.iv-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--iv-maxw);
	margin-inline: auto;
}

.iv-hero__badge {
	display: inline-block;
	margin: 0 0 22px;
	padding: 8px 22px;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
}

.iv-hero__title {
	margin: 0 0 14px;
	font-size: clamp(2.1rem, 1.2rem + 3vw, 3.4rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: #fff;
}

.iv-hero__subtitle {
	max-width: 820px;
	margin: 0 auto;
	font-size: clamp(.98rem, .9rem + .3vw, 1.15rem);
	line-height: 1.7;
	font-weight: 400;
	color: rgba(255, 255, 255, .92);
}

.iv-hero__rule {
	display: block;
	width: 92px;
	height: 3px;
	margin: 30px auto 0;
	border-radius: 2px;
	background: var(--iv-gold);
}

@media (max-width: 640px) {
	.iv-hero { padding: 52px 20px 56px; }
	.iv-hero__rule { margin-top: 24px; }
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */

.iv-section { padding: 64px 0 88px; }

.iv-section__title {
	margin: 0 0 32px;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--iv-ink);
	text-align: center;
}

.iv-empty {
	text-align: center;
	color: var(--iv-muted);
	padding: 48px 0;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.iv-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--iv-gap);
	align-items: start;          /* cards grow independently when expanded */
}

@media (max-width: 1000px) {
	.iv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.iv-grid { grid-template-columns: 1fr; --iv-gap: 22px; }
	.iv-section { padding: 44px 0 56px; }
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.iv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--iv-surface);
	border: 1px solid var(--iv-border);
	border-radius: var(--iv-radius);
	box-shadow: var(--iv-shadow);
	overflow: hidden;
	transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}

.iv-card:hover { box-shadow: var(--iv-shadow-hover); transform: translateY(-2px); }

.iv-card.is-open {
	border-color: #e3d9cc;
	box-shadow: var(--iv-shadow-hover);
	transform: none;
}

/* Accent bar that appears along the top of an open card */
.iv-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--iv-accent), var(--iv-gold));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s ease;
	z-index: 2;
}

.iv-card.is-open::before { transform: scaleX(1); }

/* ---- Photo ---- */

.iv-card__media {
	position: relative;
	background: linear-gradient(160deg, #eee9e1, #f7f5f1);
	aspect-ratio: 4 / 5;              /* portrait */
	overflow: hidden;
}

.iv-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.iv-card:hover .iv-card__img { transform: scale(1.035); }

/* Fallback when no photo is set — shows the first letter of the name */
.iv-card__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.4rem;
	font-weight: 700;
	color: #c8bfb1;
}

/* ---- Text ---- */

.iv-card__body {
	display: flex;
	flex-direction: column;
	padding: 24px 24px 22px;
	flex: 1 1 auto;
}

.iv-card__name {
	margin: 0 0 6px;
	font-size: 1.22rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--iv-ink);
}

.iv-card__role {
	margin: 0 0 4px;
	font-size: .84rem;
	line-height: 1.6;
	font-weight: 600;
	color: var(--iv-accent);
}

.iv-card__location {
	margin: 0 0 4px;
	font-size: .8rem;
	line-height: 1.6;
	color: var(--iv-muted);
	min-height: 3.2em;   /* reserves 2 lines so buttons line up across a row */
}

@media (max-width: 640px) {
	.iv-card__location { min-height: 0; }
}

.iv-card__short {
	margin-top: 12px;
	font-size: .93rem;
	line-height: 1.8;
	flex: 1 1 auto;   /* absorbs spare height so buttons line up across a row */
}

.iv-card__short p { margin: 0 0 10px; }
.iv-card__short p:last-child { margin-bottom: 0; }

/* Clamp the short text so every collapsed card is the same height.
   Change 4, or use `display: block`, to show more/all of the excerpt. */
.iv-card:not(.is-open) .iv-card__short {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   The expanding panel
   grid-template-rows 0fr → 1fr animates to the content's natural height
   without any JavaScript height maths.
   -------------------------------------------------------------------------- */

.iv-card__full {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .45s cubic-bezier(.3, .8, .3, 1);
}

.iv-card.is-open .iv-card__full { grid-template-rows: 1fr; }

.iv-card__full-inner {
	overflow: hidden;
	min-height: 0;
	font-size: .93rem;
	line-height: 1.85;
	opacity: 0;
	transition: opacity .3s ease .1s;
}

.iv-card.is-open .iv-card__full-inner { opacity: 1; }

.iv-card__full-inner p { margin: 0 0 14px; }
.iv-card__full-inner p:last-child { margin-bottom: 0; }

.iv-card__full-inner ul,
.iv-card__full-inner ol { margin: 0 0 14px; padding-left: 1.2em; }

.iv-card__full-inner li { margin-bottom: 6px; }

.iv-card__full-inner strong { color: var(--iv-ink); }

/* Small divider between the short text and the revealed detail */
.iv-card__rule {
	display: block;
	width: 40px;
	height: 2px;
	margin: 18px 0;
	border-radius: 2px;
	background: var(--iv-gold);
}

/* --------------------------------------------------------------------------
   See more / See less button
   -------------------------------------------------------------------------- */

.iv-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 18px;
	padding: 9px 18px;
	font-family: inherit;
	font-size: .86rem;
	font-weight: 600;
	color: var(--iv-accent);
	background: var(--iv-accent-soft);
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: background .25s ease, color .25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.iv-toggle:hover {
	background: var(--iv-accent);
	color: #fff;
}

.iv-toggle:focus-visible {
	outline: 2px solid var(--iv-accent);
	outline-offset: 3px;
}

.iv-toggle__icon {
	width: 15px;
	height: 15px;
	transition: transform .35s ease;
}

.iv-card.is-open .iv-toggle__icon { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Motion preference
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.iv-card,
	.iv-card__img,
	.iv-card__full,
	.iv-card__full-inner,
	.iv-toggle,
	.iv-toggle__icon,
	.iv-card::before {
		transition: none !important;
	}
}
