/* =========================================================
   Pyvot Popup — popup.css
   ========================================================= */

/* ---- Variables ---- */
:root {
	--pyvot-navy:      #1e3a5f;
	--pyvot-navy-dark: #162d4a;
	--pyvot-orange:    #f5a623;
	--pyvot-white:     #ffffff;
	--pyvot-overlay:   rgba(0, 0, 0, 0.65);
}

/* ---- Overlay ---- */
.pyvot-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--pyvot-overlay);
	padding: 20px;
	/* Hidden by default — JS adds .pyvot-popup-visible */
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pyvot-popup-overlay.pyvot-popup-visible {
	opacity: 1;
	visibility: visible;
}

/* ---- Container ---- */
.pyvot-popup-container {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 700px;
	background-color: var(--pyvot-navy);
	color: var(--pyvot-white);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	transform: translateY(24px);
	transition: transform 0.35s ease;
}

.pyvot-popup-overlay.pyvot-popup-visible .pyvot-popup-container {
	transform: translateY(0);
}

/* ---- Close button ---- */
.pyvot-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	background: #ffffff;
	color: #000;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pyvot-popup-close:hover,
.pyvot-popup-close:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: var(--pyvot-white);
	outline: none;
}

.pyvot-popup-close span {
	display: block;
	margin-top: -2px; /* optical vertical alignment */
	pointer-events: none;
}

/* ---- Left image panel ---- */
.pyvot-popup-image {
	flex: 0 0 40%;
	max-width: 40%;
	overflow: hidden;
}

.pyvot-popup-image img {
	display: block;
	width: 100%;
}

/* ---- Right content panel ---- */
.pyvot-popup-content {
	flex: 0 0 60%;
	max-width: 60%;
	padding: 44px 36px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* When there's no image, content fills the full width */
.pyvot-popup-content--no-image {
	flex: 0 0 100%;
	max-width: 100%;
}

/* ---- Body / WYSIWYG content ---- */
.pyvot-popup-body {
	color: var(--pyvot-white);
	font-family: inherit;
	line-height: 1.6;
	margin-bottom: 28px;
}

/* Headings inside editor content */
.pyvot-popup-body h1,
.pyvot-popup-body h2,
.pyvot-popup-body h3,
.pyvot-popup-body h4,
.pyvot-popup-body h5,
.pyvot-popup-body h6 {
	color: var(--pyvot-white);
	margin-top: 0;
	margin-bottom: 12px;
	line-height: 1.25;
}

.pyvot-popup-body h2 {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pyvot-popup-body h3 {
	font-size: 1.35rem;
	font-weight: 700;
}

/* Paragraph text */
.pyvot-popup-body p {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 0.95rem;
	opacity: 0.92;
}

.pyvot-popup-body p:last-child {
	margin-bottom: 0;
}

/* Bold / strong */
.pyvot-popup-body strong,
.pyvot-popup-body b {
	font-weight: 700;
}

/* Links */
.pyvot-popup-body a {
	color: var(--pyvot-orange);
	text-decoration: underline;
}

.pyvot-popup-body a:hover {
	opacity: 0.85;
}

/* Lists */
.pyvot-popup-body ul,
.pyvot-popup-body ol {
	padding-left: 1.4em;
	margin-bottom: 10px;
}

/* ---- CTA Button ---- */
.pyvot-popup-btn {
	display: inline-block;
	background-color: var(--pyvot-white);
	color: #000000;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 12px 32px;
	border-radius: 0;
	border: none;
	cursor: pointer;
	text-decoration: none;
	align-self: flex-start;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pyvot-popup-btn:hover,
.pyvot-popup-btn:focus {
	background-color: var(--pyvot-orange);
	color: var(--pyvot-white);
	outline: none;
	text-decoration: none;
}

/* =========================================================
   Responsive — tablet / mobile
   ========================================================= */

@media ( max-width: 640px ) {
	.pyvot-popup-container {
		flex-direction: column;
		max-width: 100%;
	}

	.pyvot-popup-image,
	.pyvot-popup-content {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.pyvot-popup-image {
		max-height: 220px;
	}

	.pyvot-popup-content {
		padding: 32px 24px 28px;
	}

	.pyvot-popup-body h2 {
		font-size: 1.4rem;
	}
}
