/* ==========================================================================
   Visa Grid Widget — visa-grid.css
   BEM naming: .vg-[block]__[element]--[modifier]
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
	--vg-primary:       #0F766E;
	--vg-primary-dark:  #064E3B;
	--vg-accent:        #14B86E;
	--vg-navy:          #11284D;
	--vg-text:          #374151;
	--vg-muted:         #6B7280;
	--vg-border:        #E5E7EB;
	--vg-white:         #ffffff;
	--vg-bg:            #F0F4F8;
	--vg-radius-card:   18px;
	--vg-radius-badge:  50%;
	--vg-shadow-card:   0 8px 32px rgba(0, 0, 0, 0.10);
	--vg-shadow-hover:  0 20px 48px rgba(0, 0, 0, 0.16);
	--vg-transition:    300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */
.vg-section {
	background-color: var(--vg-bg);
	padding: 80px 20px;
	box-sizing: border-box;
	width: 100%;
}

.vg-container {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.vg-section__header {
	text-align: center;
	margin-bottom: 52px;
}

.vg-section__subtitle {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vg-primary);
	margin: 0 0 14px;
	padding: 0;
}

.vg-section__heading {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 800;
	color: var(--vg-navy);
	line-height: 1.15;
	margin: 0 0 16px;
	padding: 0;
}

.vg-section__desc {
	font-size: 16px;
	color: var(--vg-muted);
	margin: 0 auto;
	padding: 0;
	max-width: 540px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.vg-grid {
	display: grid;
	grid-template-columns: repeat(var(--vg-cols, 3), 1fr);
	gap: 32px;
	align-items: stretch;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.vg-card {
	position: relative;
	background-color: var(--vg-white);
	border-radius: var(--vg-radius-card);
	box-shadow: var(--vg-shadow-card);
	/* overflow must be visible so the price badge is never clipped */
	overflow: visible;
	display: flex;
	flex-direction: column;
	transition: transform var(--vg-transition), box-shadow var(--vg-transition);
}

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

/* Full-card link overlay */
.vg-card__link {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

/* --------------------------------------------------------------------------
   Image Wrapper
   -------------------------------------------------------------------------- */
.vg-card__image-wrap {
	position: relative;
	height: 240px;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: var(--vg-radius-card) var(--vg-radius-card) 0 0;
}

.vg-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform var(--vg-transition);
}

.vg-card:hover .vg-card__image {
	transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   Top-left Icon Badge
   -------------------------------------------------------------------------- */
.vg-card__icon-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	width: 42px;
	height: 42px;
	background: var(--vg-white);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
	transition: transform var(--vg-transition);
}

.vg-card:hover .vg-card__icon-badge {
	transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Price Badge
   Positioned relative to .vg-card (overflow: visible).
   Formula: top = image_height - (0.6 × badge_size)
   Desktop : 240 - (0.6 × 96) = 182px   → 60% over image, 40% over body
   Tablet  : 210 - (0.6 × 86) = 158px
   Mobile  : 200 - (0.6 × 82) = 151px
   -------------------------------------------------------------------------- */
.vg-price-badge {
	position: absolute;
	top: 182px;   /* desktop: image 240px, badge 96px */
	right: 18px;
	z-index: 4;   /* above image-wrap, icon badge, and card body */
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0F766E 0%, #064E3B 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	box-shadow: 0 6px 20px rgba(15, 118, 110, 0.50);
	border: 5px solid var(--vg-white);
	text-align: center;
	/* Badge does not move on card hover — it travels with the card lift only */
	pointer-events: none;
}

.vg-price-badge__label {
	display: block;
	font-size: 6.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.2;
}

.vg-price-badge__amount {
	display: block;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--vg-white);
	line-height: 1.2;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Card Body
   -------------------------------------------------------------------------- */
.vg-card__body {
	padding: 56px 20px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}

.vg-card__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.vg-card__title {
	font-size: 20px;
	font-weight: 800;
	color: var(--vg-navy);
	margin: 0;
	padding: 0;
	line-height: 1.2;
	flex-shrink: 0;
}

.vg-card__country {
	font-size: 13px;
	font-weight: 600;
	color: var(--vg-accent);
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.vg-card__country svg {
	flex-shrink: 0;
	color: var(--vg-accent);
	stroke: var(--vg-accent);
}

/* --------------------------------------------------------------------------
   Meta Row (Visa Type + Entry Type)
   -------------------------------------------------------------------------- */
.vg-card__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.vg-card__meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 500;
	color: var(--vg-text);
}

.vg-card__meta-item svg {
	flex-shrink: 0;
	stroke: var(--vg-primary);
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.vg-card__divider {
	border: none;
	border-top: 1px solid var(--vg-border);
	margin: 4px 0;
}

/* --------------------------------------------------------------------------
   Processing Time
   -------------------------------------------------------------------------- */
.vg-card__processing {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--vg-muted);
	line-height: 1.4;
}

.vg-card__processing svg {
	flex-shrink: 0;
	stroke: var(--vg-muted);
}

.vg-card__processing strong {
	font-weight: 600;
	color: var(--vg-text);
	margin-right: 3px;
}

/* --------------------------------------------------------------------------
   Responsive — Tablet (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.vg-section {
		padding: 60px 20px;
	}

	.vg-section__header {
		margin-bottom: 40px;
	}

	.vg-card__image-wrap {
		height: 210px;
	}

	.vg-price-badge {
		width: 86px;
		height: 86px;
		top: 158px;  /* 210 - (0.6 × 86) = 158px */
	}

	.vg-price-badge__label {
		font-size: 6px;
	}

	.vg-price-badge__amount {
		font-size: 11.5px;
	}
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (≤767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.vg-section {
		padding: 48px 16px;
	}

	.vg-section__header {
		margin-bottom: 32px;
	}

	.vg-grid {
		gap: 24px;
	}

	.vg-card__image-wrap {
		height: 200px;
	}

	.vg-card__body {
		padding: 52px 16px 18px 16px;
	}

	.vg-price-badge {
		width: 82px;
		height: 82px;
		top: 151px;  /* 200 - (0.6 × 82) = 151px */
		right: 14px;
	}

	.vg-section__heading {
		font-size: 26px;
	}

	.vg-card__title {
		font-size: 18px;
	}
}

/* --------------------------------------------------------------------------
   Elementor Editor — disable pointer events on the link overlay while editing
   -------------------------------------------------------------------------- */
.elementor-editor-active .vg-card__link {
	pointer-events: none;
}
