/* ==========================================================================
   ISVG Global — country page (/our-presence/countries/<country>/)
   Banner with the country mark · About tabs · Objectives · National team ·
   Contact. Loaded only on single country pages.
   ========================================================================== */

.isvg-country { background: var(--isvg-white); }

/* --------------------------------------------------------------- banner */

.isvg-country-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(16px, 2vw, 24px);
	background: var(--isvg-navy);
	color: var(--isvg-white);
}

/* An optional photograph sits behind the navy, heavily toned. */
.isvg-country-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.18;
	mix-blend-mode: luminosity;
}

/* The inset outline frame — the detail borrowed from the reference banner. */
.isvg-country-hero__frame {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--r-lg);
}

.isvg-country-hero__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
}

.isvg-country-hero__body {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	margin-top: clamp(16px, 3vw, 40px);
}

.isvg-country-hero__logo {
	width: clamp(150px, 18vw, 240px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--isvg-white);
	display: grid;
	place-items: center;
	padding: clamp(14px, 1.8vw, 22px);
	box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.5);
}

.isvg-country-hero__logo img { width: 100%; height: 100%; object-fit: contain; }

.isvg-country-hero h1 {
	color: var(--isvg-white);
	font-size: clamp(2.4rem, 5.4vw, 4.4rem);
	margin: 0.1em 0 0.25em;
	display: flex;
	align-items: center;
	gap: 0.3em;
	flex-wrap: wrap;
}

.isvg-country-hero__flag { font-size: 0.75em; line-height: 1; }

.isvg-country-hero__tagline {
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
	color: rgba(255, 255, 255, 0.8);
	max-width: 46ch;
	margin: 0;
}

.isvg-country-hero__facts {
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.isvg-country-hero__facts li {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.7rem 1.1rem;
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-family: var(--font-head);
	font-weight: 600;
}

.isvg-country-hero__facts span {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

/* --------------------------------------------------------------- tabs */

.isvg-country-about { padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 88px); }

.isvg-tabs__nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 clamp(8px, 2.5vw, 40px);
	border-bottom: 1px solid var(--isvg-line);
	max-width: 1000px;
	margin: 0 auto clamp(32px, 4vw, 48px);
}

.isvg-tabs__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	padding: 0.9rem 0.6rem;
	font-family: var(--font-head);
	font-size: clamp(0.95rem, 1.3vw, 1.1rem);
	font-weight: 700;
	color: var(--isvg-muted);
	cursor: pointer;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.isvg-tabs__tab:hover { color: var(--isvg-navy); }

.isvg-tabs__tab[aria-selected="true"] {
	color: var(--isvg-navy);
	border-bottom-color: var(--isvg-navy);
}

.isvg-tabs__panel { animation: isvg-fade 0.35s var(--ease); }

@keyframes isvg-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.isvg-country-about__text {
	max-width: 64ch;
	margin-inline: auto;
	text-align: center;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.75;
	color: var(--isvg-muted);
}

.isvg-country-about__text p:last-child { margin-bottom: 0; }

.isvg-country-values {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	text-align: left;
}

.isvg-country-values li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 1rem 1.2rem;
	border-radius: var(--r-md);
	background: var(--isvg-white);
	border: 1px solid var(--isvg-line);
	font-size: 0.98rem;
	line-height: 1.5;
}

.isvg-country-values strong { color: var(--isvg-navy); font-family: var(--font-head); }

/* --------------------------------------------------------------- objectives */

.isvg-country-objectives {
	background: var(--isvg-sand);
	padding-block: clamp(56px, 7vw, 112px);
}

.isvg-country-objectives__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.isvg-country-objectives h2 { margin-bottom: 1.25rem; }

.isvg-country-objectives__list {
	list-style: none;
	counter-reset: obj;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.isvg-country-objectives__list li {
	counter-increment: obj;
	position: relative;
	padding-left: 3rem;
	color: var(--isvg-ink);
	line-height: 1.55;
}

.isvg-country-objectives__list li::before {
	content: counter(obj, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--font-head);
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--isvg-white);
	background: var(--isvg-navy);
}


.isvg-country-objectives__media {
	margin: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border: 1px solid var(--isvg-line);
	position: relative;
}

.isvg-country-objectives__media img { width: 100%; height: 100%; object-fit: cover; }

/* No photograph yet: the country mark on a white card. */
.isvg-country-objectives__media.is-logo {
	background: var(--isvg-white);
	display: grid;
	place-items: center;
	padding: 12%;
}

.isvg-country-objectives__media.is-logo img { object-fit: contain; }

/* --------------------------------------------------------------- team */

.isvg-country-team { padding-block: clamp(64px, 8vw, 120px); }

.isvg-country-team__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 44px);
}

.isvg-country-team__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.isvg-country-team__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2.2vw, 32px);
}

.isvg-member {
	background: var(--isvg-white);
	border: 1px solid var(--isvg-line);
	border-radius: var(--r-lg);
	overflow: hidden;
	text-align: center;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.isvg-member:hover {
	border-color: #b9bed6;
	box-shadow: 0 12px 28px -16px rgba(10, 21, 86, 0.25);
}

.isvg-member[hidden] { display: none; }

/* Portrait standing on a coloured band — navy, green, purple in turn. */
.isvg-member__photo {
	position: relative;
	padding: 28px 28px 0;
	aspect-ratio: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: var(--isvg-sand);
}

.isvg-member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	border-radius: 12px 12px 0 0;
}

.isvg-member__initials {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	border-radius: 12px 12px 0 0;
	background: var(--isvg-navy);
	color: var(--isvg-white);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	letter-spacing: 0.04em;
}

.isvg-member__body { padding: 1.1rem 1rem 1.3rem; }

.isvg-member__name {
	font-size: 1.08rem;
	margin: 0 0 0.2rem;
	letter-spacing: -0.01em;
}

.isvg-member__role {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--isvg-green-700);
}

.isvg-member__links {
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 0.45rem;
}

.isvg-member__links a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--isvg-sand);
	color: var(--isvg-navy);
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.isvg-member__links a:hover { background: var(--isvg-purple); color: var(--isvg-white); }
.isvg-member__links svg { width: 16px; height: 16px; }

.isvg-country-team__empty {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
	padding: clamp(32px, 4vw, 48px);
	border: 1px dashed var(--isvg-line);
	border-radius: var(--r-lg);
	color: var(--isvg-muted);
}

.isvg-country-team__empty img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 1rem; opacity: 0.9; }
.isvg-country-team__empty p { margin: 0; }

/* --------------------------------------------------------------- contact */

.isvg-country-contact { padding-bottom: clamp(48px, 6vw, 96px); }

.isvg-country-contact__panel {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
	padding: clamp(32px, 5vw, 72px);
	border-radius: var(--r-block);
	background: var(--isvg-navy);
	color: var(--isvg-white);
}

.isvg-country-contact__panel h2 { color: var(--isvg-white); margin: 0; }
.isvg-country-contact__panel p { color: rgba(255, 255, 255, 0.78); margin: 0.75rem 0 0; }

.isvg-country-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.isvg-country-contact__list li {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.05rem;
}

.isvg-country-contact__list li:last-child { border-bottom: 0; padding-bottom: 0; }

.isvg-country-contact__list span {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.isvg-country-contact__list a { color: var(--isvg-white); text-decoration: none; }
.isvg-country-contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.isvg-country-contact__cta { margin-top: 1.5rem !important; }
.isvg-country-contact__cta .isvg-btn { background: var(--isvg-green-700); border-color: var(--isvg-green-700); color: var(--isvg-white); }
.isvg-country-contact__cta .isvg-btn:hover { background: var(--isvg-white); border-color: var(--isvg-white); color: var(--isvg-navy); }

.isvg-country-contact__back { margin: 2rem 0 0; text-align: center; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
	.isvg-country-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.isvg-country-hero__body { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
	.isvg-country-hero h1 { justify-content: center; }
	.isvg-country-hero__tagline { margin-inline: auto; }
	.isvg-country-hero__facts { justify-content: center; }
	.isvg-country-hero .isvg-breadcrumb ol { justify-content: center; }
	.isvg-country-objectives__grid,
	.isvg-country-contact__panel { grid-template-columns: minmax(0, 1fr); }
	.isvg-country-objectives__media { max-width: 420px; aspect-ratio: 1; }
	.isvg-country-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.isvg-country-values { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
	/* All five tabs stay visible: two centred rows rather than a hidden scroll strip. */
	.isvg-tabs__nav { justify-content: center; flex-wrap: wrap; gap: 0 14px; }
	.isvg-tabs__tab { flex: none; padding: 0.7rem 0.3rem; min-height: 44px; }
	.isvg-country-team__grid { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin-inline: auto; }
}

/* Elementor-arranged country pages: section widgets run edge to edge. */
.isvg-country .e-con.isvg-country-block { padding: 0; gap: 0; }
.isvg-country .e-con.isvg-country-block > .elementor-widget-shortcode,
.isvg-country .e-con.isvg-country-block .elementor-shortcode { width: 100%; }

/* Buttons on navy panels are buttons, not underlined links. */
.isvg-on-dark a.isvg-btn,
.isvg-country-contact__panel a.isvg-btn { text-decoration: none !important; }
