/**
 * IBPS Exam Master - site header and footer.
 *
 * @package IBPS\ExamMasterChild
 */

.ibps-site-header *,
.ibps-site-footer * {
	box-sizing: border-box;
}

/* Header ---------------------------------------------------------------- */
.ibps-site-header {
	--ibps-chrome-blue: #0b5fff;
	--ibps-chrome-indigo: #4f46e5;
	--ibps-chrome-violet: #7c3aed;
	--ibps-chrome-amber: #fbbf24;
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 90;
	margin: 0;
	padding: 0;
	color: #fff;
	background-color: var(--ibps-chrome-indigo);
	background-image:
		radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.2), transparent 40%),
		radial-gradient(circle at 88% 16%, rgba(6, 182, 212, 0.3), transparent 36%),
		linear-gradient(108deg, var(--ibps-chrome-blue) 0%, var(--ibps-chrome-indigo) 48%, var(--ibps-chrome-violet) 100%);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
	isolation: isolate;
}

.ibps-site-header::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, #f43f5e 0%, #f59e0b 24%, #fbbf24 42%, #10b981 62%, #06b6d4 80%, #7c3aed 100%);
	pointer-events: none;
}

.ibps-site-header .ibps-header-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: clamp(12px, 1.4vw, 18px) clamp(18px, 4vw, 48px);
}

.ibps-site-header .ibps-header-brand {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ibps-logo-badge,
.ibps-footer-logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	color: #172554;
	background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #f97316 100%);
	box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ibps-logo-badge svg,
.ibps-footer-logo svg {
	width: 28px;
	height: 28px;
}

.ibps-site-header .ibps-brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ibps-site-header .ibps-brand-title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.ibps-site-header .ibps-brand-title a {
	color: inherit;
	text-decoration: none;
}

.ibps-site-header .ibps-brand-title a:hover,
.ibps-site-header .ibps-brand-title a:focus-visible {
	color: #fde68a;
}

.ibps-brand-tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ibps-brand-tagline span {
	padding: 0 2px;
	color: var(--ibps-chrome-amber);
}

.ibps-site-header .ibps-header-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-left: auto;
}

/* Navigation */
.ibps-site-header .ibps-site-nav {
	display: flex;
	align-items: center;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation-item {
	margin: 0;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	padding: 8px 15px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation-item__content:hover,
.ibps-site-header .ibps-site-nav .wp-block-navigation-item__content:focus-visible {
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.22);
	box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
	color: #fff;
	transform: translateY(-1px);
}

.ibps-site-header .ibps-site-nav .current-menu-item > .wp-block-navigation-item__content,
.ibps-site-header .ibps-site-nav .current_page_item > .wp-block-navigation-item__content {
	border-color: #fff;
	background: #fff;
	color: var(--ibps-chrome-blue);
}

.ibps-site-header .ibps-site-nav .wp-block-navigation-submenu__toggle {
	color: #fff;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__submenu-container {
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #1e293b;
	font-weight: 600;
	transform: none;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ibps-site-header .ibps-site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: #eef4ff;
	box-shadow: none;
	color: var(--ibps-chrome-blue);
}

/* Header CTA */
.ibps-site-header .ibps-header-cta,
.ibps-site-header .ibps-header-cta .wp-block-button {
	margin: 0;
}

.ibps-site-header .ibps-header-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
	box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
	color: #172554;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.ibps-site-header .ibps-header-cta .wp-block-button__link:hover,
.ibps-site-header .ibps-header-cta .wp-block-button__link:focus-visible {
	box-shadow: 0 14px 28px rgba(245, 158, 11, 0.45);
	color: #172554;
	filter: brightness(1.05);
	transform: translateY(-2px);
}

/* Mobile navigation overlay */
.ibps-site-header .ibps-site-nav .wp-block-navigation__responsive-container-open {
	padding: 7px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__responsive-container-close {
	color: #fff;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	background: linear-gradient(160deg, #0b5fff 0%, #4f46e5 52%, #7c3aed 100%) !important;
	color: #fff !important;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 10px;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
}

.ibps-site-header .ibps-site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	background: rgba(255, 255, 255, 0.22);
}

/* Footer ---------------------------------------------------------------- */
.ibps-site-footer {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
	color: #cbd5e1;
	background-color: #0b1220;
	background-image:
		radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.2), transparent 42%),
		radial-gradient(circle at 90% 100%, rgba(124, 58, 237, 0.28), transparent 46%),
		linear-gradient(150deg, #0b1220 0%, #151a3a 48%, #2e1a6b 100%);
}

.ibps-site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, #f43f5e 0%, #f59e0b 22%, #fbbf24 40%, #10b981 60%, #06b6d4 80%, #7c3aed 100%);
}

.ibps-site-footer .ibps-footer-inner {
	position: relative;
	z-index: 1;
	padding: clamp(42px, 6vw, 72px) clamp(18px, 4vw, 48px) 24px;
}

.ibps-site-footer .ibps-footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	margin-bottom: 0;
}

.ibps-site-footer .ibps-footer-col {
	flex: 1 1 190px;
	min-width: 0;
}

.ibps-site-footer .ibps-footer-brand {
	flex: 1 1 320px;
	max-width: 400px;
}

.ibps-site-footer .ibps-footer-brand-line {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
}

.ibps-footer-logo {
	width: 44px;
	height: 44px;
	border-radius: 13px;
}

.ibps-footer-logo svg {
	width: 26px;
	height: 26px;
}

.ibps-site-footer .ibps-footer-brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ibps-site-footer .ibps-footer-title {
	margin: 0;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ibps-site-footer .ibps-footer-title a {
	color: inherit;
	text-decoration: none;
}

.ibps-site-footer .ibps-footer-title a:hover,
.ibps-site-footer .ibps-footer-title a:focus-visible {
	color: #fbbf24;
}

.ibps-footer-tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.56);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ibps-site-footer .ibps-footer-about {
	max-width: 44ch;
	margin: 16px 0 14px;
	color: #cbd5e1;
	font-size: 13.5px;
	line-height: 1.7;
}

.ibps-site-footer .ibps-footer-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.ibps-site-footer .ibps-footer-chips span {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	color: #e2e8f0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.ibps-site-footer .ibps-footer-heading {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ibps-site-footer .ibps-footer-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 34px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #fbbf24, #f43f5e);
}

.ibps-site-footer .ibps-footer-col:nth-child(3) .ibps-footer-heading::after {
	background: linear-gradient(90deg, #22d3ee, #7c3aed);
}

.ibps-site-footer .ibps-footer-col:nth-child(4) .ibps-footer-heading::after {
	background: linear-gradient(90deg, #34d399, #06b6d4);
}

.ibps-site-footer .ibps-footer-links,
.ibps-site-footer .ibps-footer-features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ibps-site-footer .ibps-footer-links li,
.ibps-site-footer .ibps-footer-features li {
	margin: 0;
	padding: 0;
}

.ibps-site-footer .ibps-footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #cbd5e1;
	font-size: 13px;
	line-height: 1.5;
	text-decoration: none;
	transition: color 0.18s ease, transform 0.18s ease;
}

.ibps-site-footer .ibps-footer-links a::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #38bdf8;
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.ibps-site-footer .ibps-footer-links li:nth-child(2) a::before {
	background: #fbbf24;
	box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}

.ibps-site-footer .ibps-footer-links li:nth-child(3) a::before {
	background: #f472b6;
	box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.14);
}

.ibps-site-footer .ibps-footer-links li:nth-child(4) a::before {
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14);
}

.ibps-site-footer .ibps-footer-links a:hover,
.ibps-site-footer .ibps-footer-links a:focus-visible {
	color: #fbbf24;
	transform: translateX(3px);
}

.ibps-site-footer .ibps-footer-links a:hover::before,
.ibps-site-footer .ibps-footer-links a:focus-visible::before {
	box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.16);
	transform: scale(1.35);
}

.ibps-site-footer .ibps-footer-features li {
	position: relative;
	padding-left: 24px;
	color: #cbd5e1;
	font-size: 13px;
	line-height: 1.5;
}

.ibps-site-footer .ibps-footer-features li::before {
	content: "\2713";
	position: absolute;
	top: -1px;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #34d399, #06b6d4);
	color: #052e2b;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
}

.ibps-site-footer .ibps-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	margin-top: clamp(32px, 5vw, 52px);
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ibps-site-footer .ibps-footer-copy,
.ibps-site-footer .ibps-footer-motto {
	margin: 0;
	color: #94a3b8;
	font-size: 11.5px;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.ibps-site-footer .ibps-footer-motto span {
	color: #fbbf24;
}

/* Shared accessibility */
.ibps-site-header a:focus-visible,
.ibps-site-footer a:focus-visible {
	outline: 2px solid #fbbf24;
	outline-offset: 3px;
}

/* Responsive */
@media (max-width: 900px) {
	.ibps-site-header .ibps-header-actions {
		justify-content: flex-end;
	}
}

@media (max-width: 781px) {
	.ibps-site-header .ibps-header-brand {
		flex: 1 1 100%;
	}

	.ibps-site-header .ibps-header-actions {
		flex: 1 1 100%;
		justify-content: space-between;
		margin-left: 0;
	}

	.ibps-site-header .ibps-header-cta {
		flex: 0 0 auto;
	}

	.ibps-brand-tagline {
		font-size: 9px;
	}

	.ibps-site-footer .ibps-footer-columns {
		gap: 28px;
	}

	.ibps-site-footer .ibps-footer-brand {
		max-width: none;
	}

	.ibps-site-footer .ibps-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	.ibps-site-header .ibps-header-inner {
		padding-right: 16px;
		padding-left: 16px;
	}

	.ibps-logo-badge {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.ibps-logo-badge svg {
		width: 25px;
		height: 25px;
	}

	.ibps-site-header .ibps-brand-title {
		font-size: 1rem;
	}

	.ibps-site-header .ibps-header-actions {
		gap: 10px;
	}

	.ibps-site-header .ibps-header-cta .wp-block-button__link {
		padding: 9px 14px;
		font-size: 12px;
	}

	.ibps-site-footer .ibps-footer-inner {
		padding-right: 16px;
		padding-left: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ibps-site-header *,
	.ibps-site-footer * {
		transition: none !important;
	}
}
