/* ============================================================
   Immigence Services Page Widget — services-page-widget.css
   Theme: Navy #0B1D3A | Gold #C8983C
   ============================================================ */

/* ── Wrapper ── */
.isp-section {
	background-color: #f8f9fc;
	padding: 60px 20px;
	font-family: inherit;
	box-sizing: border-box;
}

.isp-container {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	max-width: 1200px;
	margin: 0 auto;
}

/* ── LEFT SIDEBAR ─────────────────────────────────────────── */
.isp-sidebar {
	width: 280px;
	flex-shrink: 0;
	position: sticky;
	top: 90px;        /* adjust to your header height */
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── MENU ─────────────────────────────────────────────────── */
.isp-menu {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(11, 29, 58, 0.08);
}

.isp-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	text-decoration: none !important;
	color: #0B1D3A;
	font-size: 14px;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
	cursor: pointer;
	position: relative;
}

.isp-menu-item:not(:last-child) {
	border-bottom: 1px solid #f0f2f5;
}

.isp-menu-item:hover {
	background: #fdf6e9;
	color: #C8983C;
	border-left-color: #C8983C;
}

.isp-menu-item:hover .isp-menu-icon svg {
	fill: #C8983C;
	color: #C8983C;
}

.isp-menu-item.is-active {
	background: #C8983C;
	color: #ffffff !important;
	border-left-color: #a67830;
}

.isp-menu-item.is-active .isp-menu-icon svg {
	fill: #ffffff !important;
	color: #ffffff !important;
}

.isp-menu-item.is-active .isp-menu-arrow svg {
	fill: #ffffff;
}

/* Icon */
.isp-menu-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.isp-menu-icon svg {
	width: 18px;
	height: 18px;
	fill: #C8983C;
	transition: fill 0.22s ease;
}

/* Label */
.isp-menu-label {
	flex: 1;
	line-height: 1.3;
}

/* Arrow */
.isp-menu-arrow {
	display: flex;
	align-items: center;
	margin-left: auto;
	opacity: 0.6;
	transition: opacity 0.22s ease;
}

.isp-menu-item.is-active .isp-menu-arrow {
	opacity: 1;
}

/* ── FORM BOX ─────────────────────────────────────────────── */
.isp-form-box {
	background: #0B1D3A;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(11, 29, 58, 0.2);
}

.isp-form-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(200, 152, 60, 0.3);
}

.isp-form-icon {
	width: 44px;
	height: 44px;
	background: rgba(200, 152, 60, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.isp-form-icon svg {
	fill: #C8983C;
}

.isp-form-need {
	margin: 0 0 2px;
	font-size: 13px;
	color: rgba(255,255,255,0.7);
	font-weight: 400;
}

.isp-form-title {
	margin: 0;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
}

.isp-form-subtitle {
	margin: 0;
	color: #C8983C;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

/* CF7 inside form box */
.isp-form-body {
	padding: 20px;
}

.isp-form-body .wpcf7 {
	margin: 0;
}

.isp-form-body input[type="text"],
.isp-form-body input[type="email"],
.isp-form-body input[type="tel"],
.isp-form-body select,
.isp-form-body textarea {
	width: 100%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(200, 152, 60, 0.3);
	border-radius: 5px;
	padding: 10px 14px;
	color: #ffffff;
	font-size: 13px;
	margin-bottom: 12px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.isp-form-body input[type="text"]::placeholder,
.isp-form-body input[type="email"]::placeholder,
.isp-form-body input[type="tel"]::placeholder,
.isp-form-body textarea::placeholder {
	color: rgba(255,255,255,0.4);
}

.isp-form-body input[type="text"]:focus,
.isp-form-body input[type="email"]:focus,
.isp-form-body input[type="tel"]:focus,
.isp-form-body select:focus,
.isp-form-body textarea:focus {
	outline: none;
	border-color: #C8983C;
}

.isp-form-body select {
	color: rgba(255,255,255,0.7);
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C8983C'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 36px;
	background-color: rgba(255,255,255,0.08);
}

.isp-form-body select option {
	background: #0B1D3A;
	color: #ffffff;
}

.isp-form-body textarea {
	resize: vertical;
	min-height: 90px;
}

.isp-form-body input[type="submit"],
.isp-form-body .wpcf7-submit {
	width: 100%;
	background: #C8983C;
	color: #0B1D3A;
	border: none;
	border-radius: 5px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.5px;
	transition: background 0.2s ease, transform 0.15s ease;
	margin-top: 4px;
}

.isp-form-body input[type="submit"]:hover,
.isp-form-body .wpcf7-submit:hover {
	background: #a67830;
	transform: translateY(-1px);
}

/* CF7 validation */
.isp-form-body .wpcf7-not-valid-tip {
	color: #ff6b6b;
	font-size: 11px;
	margin-top: -8px;
	margin-bottom: 8px;
	display: block;
}

.isp-form-body .wpcf7-response-output {
	border-radius: 5px;
	padding: 10px 14px;
	font-size: 12px;
	margin-top: 10px;
	border: none !important;
}

.isp-form-body .wpcf7-mail-sent-ok {
	background: rgba(72, 187, 120, 0.2);
	color: #48bb78;
}

.isp-form-body .wpcf7-mail-sent-ng,
.isp-form-body .wpcf7-validation-errors {
	background: rgba(255, 107, 107, 0.2);
	color: #ff6b6b;
}

/* ── RIGHT CONTENT AREA ───────────────────────────────────── */
.isp-content-area {
	flex: 1;
	min-width: 0;
}

/* Tab Panels */
.isp-tab-panel {
	display: none;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(11, 29, 58, 0.08);
	animation: ispFadeIn 0.3s ease;
}

.isp-tab-panel.is-active {
	display: block;
}

@keyframes ispFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Feature Image */
.isp-feature-image {
	width: 100%;
	max-height: 320px;
	overflow: hidden;
}

.isp-feature-image img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
}

/* Content Heading */
.isp-content-heading {
	margin: 0;
	padding: 28px 32px 12px;
	font-size: 26px;
	font-weight: 700;
	color: #0B1D3A;
	line-height: 1.3;
	border-bottom: 3px solid #C8983C;
	display: inline-block;
	margin-left: 32px;
	margin-bottom: 0;
	padding-left: 0;
	padding-right: 0;
}

/* Wrapping heading properly */
.isp-tab-panel .isp-content-heading {
	display: block;
	margin: 0;
	padding: 28px 32px 16px;
	border-bottom: none;
	position: relative;
}

.isp-tab-panel .isp-content-heading::after {
	content: '';
	display: block;
	width: 52px;
	height: 3px;
	background: #C8983C;
	margin-top: 10px;
}

/* Content Body */
.isp-content-body {
	padding: 0 32px 32px;
	color: #4A5568;
	font-size: 15px;
	line-height: 1.75;
}

/* ── ALL HEADING TAGS ─────────────────────────────────────── */
.isp-content-body h1 {
	color: #0B1D3A;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	margin: 32px 0 14px;
	padding-bottom: 10px;
	border-bottom: 3px solid #C8983C;
}

.isp-content-body h2 {
	color: #0B1D3A;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	margin: 30px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e2e8f0;
	position: relative;
}

.isp-content-body h2::before {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 48px;
	height: 2px;
	background: #C8983C;
}

.isp-content-body h3 {
	color: #0B1D3A;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 26px 0 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f2f5;
}

.isp-content-body h4 {
	color: #0B1D3A;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	margin: 22px 0 8px;
	padding-left: 12px;
	border-left: 3px solid #C8983C;
}

.isp-content-body h5 {
	color: #0B1D3A;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 18px 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.isp-content-body h6 {
	color: #4A5568;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 16px 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

/* First heading after image/section start — remove top margin */
.isp-content-body > h1:first-child,
.isp-content-body > h2:first-child,
.isp-content-body > h3:first-child,
.isp-content-body > h4:first-child {
	margin-top: 0;
}

/* ── PARAGRAPH ────────────────────────────────────────────── */
.isp-content-body p {
	margin: 0 0 16px;
	line-height: 1.8;
	color: #4A5568;
}

.isp-content-body p:last-child {
	margin-bottom: 0;
}

/* ── BOLD & STRONG ────────────────────────────────────────── */
.isp-content-body b,
.isp-content-body strong {
	font-weight: 700;
	color: #0B1D3A;
}

/* ── ITALIC & EM ──────────────────────────────────────────── */
.isp-content-body i,
.isp-content-body em {
	font-style: italic;
	color: #5a6a82;
}

/* ── UNDERLINE ────────────────────────────────────────────── */
.isp-content-body u {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #C8983C;
}

/* ── LINKS ────────────────────────────────────────────────── */
.isp-content-body a {
	color: #C8983C;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
	font-weight: 500;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.isp-content-body a:hover {
	color: #a67830;
	text-decoration-color: #a67830;
}

/* ── UNORDERED LIST ───────────────────────────────────────── */
.isp-content-body ul {
	list-style: none;
	padding-left: 0;
	margin: 0 0 20px;
}

.isp-content-body ul li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
	color: #4A5568;
	line-height: 1.7;
}

.isp-content-body ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	background: #C8983C;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Nested ul */
.isp-content-body ul ul {
	margin: 8px 0 0 0;
}

.isp-content-body ul ul li::before {
	width: 6px;
	height: 6px;
	background: transparent;
	border: 2px solid #C8983C;
	top: 10px;
}

/* ── ORDERED LIST ─────────────────────────────────────────── */
.isp-content-body ol {
	list-style: none;
	padding-left: 0;
	margin: 0 0 20px;
	counter-reset: isp-counter;
}

.isp-content-body ol li {
	position: relative;
	padding-left: 36px;
	margin-bottom: 10px;
	color: #4A5568;
	line-height: 1.7;
	counter-increment: isp-counter;
}

.isp-content-body ol li::before {
	content: counter(isp-counter);
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	background: #0B1D3A;
	color: #C8983C;
	font-size: 11px;
	font-weight: 700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 22px;
	text-align: center;
}

/* ── BLOCKQUOTE ───────────────────────────────────────────── */
.isp-content-body blockquote {
	border-left: 4px solid #C8983C;
	background: #fdf6e9;
	margin: 24px 0;
	padding: 16px 20px;
	border-radius: 0 6px 6px 0;
	font-style: italic;
	color: #5a6a82;
	font-size: 15px;
	line-height: 1.75;
}

.isp-content-body blockquote p {
	margin: 0;
	color: inherit;
}

/* ── INLINE CODE ──────────────────────────────────────────── */
.isp-content-body code {
	background: #f0f2f5;
	color: #C8983C;
	font-family: 'Courier New', Courier, monospace;
	font-size: 13px;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
}

/* ── TABLE ────────────────────────────────────────────────── */
.isp-content-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(11,29,58,0.08);
}

.isp-content-body table thead {
	background: #0B1D3A;
}

.isp-content-body table thead th {
	color: #C8983C;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 14px 16px;
	text-align: left;
	border: none;
}

.isp-content-body table tbody tr {
	border-bottom: 1px solid #e2e8f0;
	transition: background 0.15s ease;
}

.isp-content-body table tbody tr:last-child {
	border-bottom: none;
}

.isp-content-body table tbody tr:nth-child(even) {
	background: #f8f9fc;
}

.isp-content-body table tbody tr:hover {
	background: #fdf6e9;
}

.isp-content-body table tbody td {
	padding: 12px 16px;
	color: #4A5568;
	vertical-align: top;
	line-height: 1.6;
	border: none;
}

.isp-content-body table tbody td strong {
	color: #0B1D3A;
}

/* ── HORIZONTAL RULE ──────────────────────────────────────── */
.isp-content-body hr {
	border: none;
	border-top: 2px solid #e2e8f0;
	margin: 28px 0;
	position: relative;
}

.isp-content-body hr::after {
	content: '';
	position: absolute;
	left: 0;
	top: -2px;
	width: 40px;
	height: 2px;
	background: #C8983C;
}

/* ── IMAGE INSIDE CONTENT ─────────────────────────────────── */
.isp-content-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 16px 0;
	box-shadow: 0 2px 10px rgba(11,29,58,0.1);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
	.isp-sidebar {
		width: 240px;
	}
}

@media (max-width: 768px) {
	.isp-container {
		flex-direction: column;
	}

	.isp-sidebar {
		width: 100%;
		position: static;
	}

	.isp-menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.isp-menu-item:not(:last-child) {
		border-bottom: 1px solid #f0f2f5;
	}

	.isp-feature-image img {
		height: 220px;
	}

	.isp-content-heading,
	.isp-tab-panel .isp-content-heading {
		padding: 20px 20px 12px;
		font-size: 22px;
	}

	.isp-content-body {
		padding: 0 20px 24px;
	}
}

@media (max-width: 480px) {
	.isp-menu {
		grid-template-columns: 1fr;
	}

	.isp-section {
		padding: 40px 16px;
	}
}