/* Footer + floating CTAs — React Footer.tsx / FloatingButtons.tsx */

.asb-footer {
	background: #0f172a;
	color: #f3f4f6;
}

.asb-footer__inner {
	padding: 4rem 1rem;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.asb-footer__inner {
		padding-block: 6rem;
	}
}

.asb-footer__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.asb-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.asb-footer__grid {
		grid-template-columns: 1.1fr 0.7fr 0.95fr 1fr 0.9fr;
	}
}

.asb-footer__brand {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 700;
	font-family: var(--asb-font-display);
}

.asb-footer__aicte {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(243, 244, 246, 0.15);
	background: rgba(243, 244, 246, 0.05);
}

.asb-footer__aicte span {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(243, 244, 246, 0.75);
}

.asb-footer__aicte img {
	height: 2.5rem;
	width: auto;
	border-radius: 999px;
	object-fit: contain;
}

.asb-footer__contact {
	font-size: 0.875rem;
	color: rgba(243, 244, 246, 0.7);
}

.asb-footer__row {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0.35rem 0;
}

.asb-footer__row svg {
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.asb-footer__row a:hover {
	color: var(--asb-primary);
}

.asb-footer__eyebrow {
	margin: 0.75rem 0 0.35rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba(243, 244, 246, 0.4);
}

.asb-footer__label {
	margin: 0.5rem 0 0.15rem;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(243, 244, 246, 0.5);
}

.asb-footer__h4 {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 600;
}

.asb-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: rgba(243, 244, 246, 0.7);
}

.asb-footer__links a:hover {
	color: var(--asb-primary);
}

.asb-footer__postal {
	margin-bottom: 1.25rem;
	padding: 1rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(243, 244, 246, 0.1);
	background: rgba(243, 244, 246, 0.05);
	font-size: 0.875rem;
	color: rgba(243, 244, 246, 0.7);
	line-height: 1.5;
}

.asb-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.asb-footer__social a {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(243, 244, 246, 0.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.asb-footer__social a:hover {
	background: var(--asb-primary);
	color: #fff;
}

.asb-footer__social-icon {
	width: 1rem;
	height: 1rem;
	display: block;
	background: currentColor;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.asb-footer__social-icon--facebook {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}

.asb-footer__social-icon--instagram {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='black'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='black'/%3E%3C/svg%3E");
}

.asb-footer__social-icon--x {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4l6.5 8.2L4.3 20H7l4.2-5.4L15.8 20H20l-6.7-8.5L19.5 4H17l-3.9 5L8.2 4H4z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4l6.5 8.2L4.3 20H7l4.2-5.4L15.8 20H20l-6.7-8.5L19.5 4H17l-3.9 5L8.2 4H4z'/%3E%3C/svg%3E");
}

.asb-footer__social-icon--linkedin {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 9h3v9H6zm1.5-5A1.8 1.8 0 116 5.8 1.8 1.8 0 017.5 4zM11 9h2.8v1.2h.1A3.1 3.1 0 0117.6 9c3 0 3.6 2 3.6 4.6V18h-3v-3.8c0-.9 0-2.1-1.3-2.1s-1.5 1-1.5 2V18H11z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 9h3v9H6zm1.5-5A1.8 1.8 0 116 5.8 1.8 1.8 0 017.5 4zM11 9h2.8v1.2h.1A3.1 3.1 0 0117.6 9c3 0 3.6 2 3.6 4.6V18h-3v-3.8c0-.9 0-2.1-1.3-2.1s-1.5 1-1.5 2V18H11z'/%3E%3C/svg%3E");
}

.asb-footer__social-icon--youtube {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 8.2a3 3 0 00-2.1-2.1C18.2 5.6 12 5.6 12 5.6s-6.2 0-7.9.5A3 3 0 002 8.2 31 31 0 001.5 12 31 31 0 002 15.8a3 3 0 002.1 2.1c1.7.5 7.9.5 7.9.5s6.2 0 7.9-.5a3 3 0 002.1-2.1A31 31 0 0022.5 12 31 31 0 0022 8.2zM10 15.2V8.8l5.2 3.2L10 15.2z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M22 8.2a3 3 0 00-2.1-2.1C18.2 5.6 12 5.6 12 5.6s-6.2 0-7.9.5A3 3 0 002 8.2 31 31 0 001.5 12 31 31 0 002 15.8a3 3 0 002.1 2.1c1.7.5 7.9.5 7.9.5s6.2 0 7.9-.5a3 3 0 002.1-2.1A31 31 0 0022.5 12 31 31 0 0022 8.2zM10 15.2V8.8l5.2 3.2L10 15.2z'/%3E%3C/svg%3E");
}

.asb-footer__copy {
	border-top: 1px solid rgba(243, 244, 246, 0.1);
	padding: 1.5rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: rgba(243, 244, 246, 0.5);
}

.asb-footer__copy p {
	margin: 0;
}

/* Floating CTAs */
.asb-float--side {
	display: none;
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	flex-direction: column;
	border-radius: 0.75rem 0 0 0.75rem;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
	.asb-float--side {
		display: flex;
		opacity: 0;
		pointer-events: none;
		transform: translate(1.25rem, -50%);
		transition: opacity 0.25s ease, transform 0.25s ease;
	}

	.asb-float--side.is-visible {
		opacity: 1;
		pointer-events: auto;
		transform: translate(0, -50%);
	}
}

.asb-float__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 5rem;
	padding: 0.75rem 0;
	margin: 0;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--asb-primary);
	color: #fff;
	font-family: inherit;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease;
}

.asb-float__btn:last-child {
	border-bottom: 0;
}

.asb-float__btn:hover {
	background: #C22726;
}

.asb-float__btn svg {
	margin-bottom: 0.25rem;
}

.asb-to-top {
	display: none;
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 60;
	box-sizing: border-box;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	margin: 0;
	border: 2px solid var(--asb-primary, #E42E2D);
	border-radius: 999px;
	background: #fff;
	color: var(--asb-primary, #E42E2D);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	opacity: 0;
	pointer-events: none;
	transform: translateY(0.5rem);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.2s ease;
}

@media (min-width: 768px) {
	.asb-to-top.is-visible {
		display: inline-flex;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
}

.asb-to-top:hover {
	background: #fff;
	color: #C22726;
	border-color: #C22726;
	transform: scale(1.06);
}

/* Hide old minimal footer class if present */
.asb-site-footer {
	display: none;
}

/* Footer redesign: navy campus backdrop, chevron link lists, enquiry columns, legal bar. */
.asb-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		linear-gradient(180deg, rgba(10, 22, 48, 0.94), rgba(8, 18, 40, 0.97)),
		url("../images/home/hero-campus.jpg") center bottom / cover no-repeat,
		#0a1630;
	color: #f3f4f6;
}
.asb-footer::before {
	content: "";
	position: absolute;
	left: -12rem;
	bottom: -14rem;
	z-index: -1;
	width: 34rem;
	height: 26rem;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(228, 46, 45, 0.75), rgba(122, 20, 16, 0.2));
	pointer-events: none;
}
.asb-footer__inner {
	padding: 4rem 1.25rem 3.5rem;
}
@media (min-width: 1280px) {
	.asb-footer__inner {
		padding-block: 4.5rem 4rem;
	}
	.asb-footer__grid {
		grid-template-columns: 1.25fr 0.8fr 1fr 1fr 1fr;
		gap: 2.5rem;
	}
}
.asb-footer__logo {
	display: inline-block;
	margin-bottom: 1.5rem;
}
.asb-footer__logo img {
	display: block;
	width: 11rem;
	height: auto;
}
.asb-footer__aicte {
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding: 0.45rem 0.6rem 0.45rem 1.5rem;
	border-color: rgba(243, 244, 246, 0.22);
	background: rgba(255, 255, 255, 0.03);
}
.asb-footer__aicte span {
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.22em;
}
.asb-footer__aicte img {
	height: 3rem;
	padding-left: 1rem;
	border-left: 1px solid rgba(243, 244, 246, 0.25);
	border-radius: 0;
}
.asb-footer__contact {
	color: #f3f4f6;
	font-size: 0.95rem;
}
.asb-footer__contact > .asb-footer__row:first-child {
	gap: 0.75rem;
	padding-bottom: 1.5rem;
	margin: 0 0 1.25rem;
	border-bottom: 1px solid rgba(243, 244, 246, 0.18);
	font-size: 1rem;
	line-height: 1.5;
}
.asb-footer__contact .asb-footer__eyebrow {
	display: none;
}
.asb-footer__enquiries {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 480px) {
	.asb-footer__enquiries {
		grid-template-columns: auto auto;
		justify-content: start;
		gap: 1.5rem;
	}
	.asb-footer__enquiry + .asb-footer__enquiry {
		padding-left: 1.5rem;
		border-left: 1px solid rgba(243, 244, 246, 0.18);
	}
}
.asb-footer__label {
	margin: 0 0 0.5rem;
	color: rgba(243, 244, 246, 0.6);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}
.asb-footer__row a {
	color: #fff;
	word-break: break-word;
}
.asb-footer__h4 {
	position: relative;
	margin: 0 0 1.6rem;
	padding-bottom: 0.9rem;
	color: #fff;
	font-family: var(--asb-font-display);
	font-size: 1.2rem;
	font-weight: 600;
}
.asb-footer__h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 1.75rem;
	height: 3px;
	background: #e42e2d;
}
.asb-footer__links {
	gap: 0.15rem;
	color: #f3f4f6;
	font-size: 0.95rem;
}
.asb-footer__links li {
	margin: 0;
}
.asb-footer__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	color: rgba(243, 244, 246, 0.92);
	transition: color 0.15s ease, padding-left 0.15s ease;
}
.asb-footer__links a::after {
	content: "";
	flex: 0 0 0.5rem;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 1.5px solid rgba(243, 244, 246, 0.7);
	border-right: 1.5px solid rgba(243, 244, 246, 0.7);
	transform: rotate(45deg);
}
.asb-footer__links a:hover {
	padding-left: 0.35rem;
	color: #fff;
}
.asb-footer__postal {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1.15rem 1.25rem;
	border: 1px solid rgba(243, 244, 246, 0.18);
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 1rem;
	line-height: 1.55;
}
.asb-footer__postal address {
	font-style: normal;
}
.asb-footer__pin {
	flex-shrink: 0;
}
.asb-footer__h4--social {
	margin-bottom: 1.25rem;
}
.asb-footer__social {
	gap: 0.75rem;
}
.asb-footer__social a {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(243, 244, 246, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.asb-footer__social-icon {
	width: 1.2rem;
	height: 1.2rem;
}
.asb-footer__copy {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(243, 244, 246, 0.18);
	text-align: center;
	color: #f3f4f6;
}
.asb-footer__copy-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 2rem;
	padding-inline: 1.25rem;
	box-sizing: border-box;
}
.asb-footer__legal {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}
.asb-footer__legal li + li {
	margin-left: 1.25rem;
	padding-left: 1.25rem;
	border-left: 1px solid rgba(243, 244, 246, 0.3);
}
.asb-footer__legal a:hover {
	color: var(--asb-primary);
}

.asb-footer .asb-container-wide {
	max-width: 96rem;
	width: 100%;
	margin-inline: auto;
}
@media (min-width: 1280px) {
	.asb-footer__grid {
		grid-template-columns: 1.35fr 0.8fr 1.05fr 1.05fr 1.05fr;
	}
}
.asb-footer__enquiry a {
	white-space: nowrap;
}
.asb-footer__social {
	flex-wrap: nowrap;
	gap: 0.5rem;
}
.asb-footer__social a {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
}

/* Footer: five columns from 1024px with tighter type up to 1439px. */
@media (min-width: 1024px) and (max-width: 1439.98px) {
	.asb-footer__inner {
		padding-inline: 1.5rem;
	}
	.asb-footer__grid {
		grid-template-columns: 1.3fr 0.8fr 1.05fr 1.05fr 1.05fr;
		gap: 1.5rem;
	}
	.asb-footer__logo img {
		width: 9.5rem;
	}
	.asb-footer__aicte {
		font-size: 0.7rem;
	}
	.asb-footer__contact {
		font-size: 0.8rem;
	}
	.asb-footer__contact .asb-footer__enquiry,
	.asb-footer__contact .asb-footer__enquiry a {
		font-size: 0.8rem;
	}
	.asb-footer__label {
		font-size: 0.65rem;
	}
	.asb-footer__h4 {
		margin-bottom: 1.25rem;
		padding-bottom: 0.7rem;
		font-size: 1rem;
	}
	.asb-footer__links {
		font-size: 0.8rem;
	}
	.asb-footer__links a {
		gap: 0.6rem;
		padding: 0.4rem 0;
	}
	.asb-footer__postal {
		gap: 0.7rem;
		padding: 0.9rem 1rem;
		font-size: 0.82rem;
		line-height: 1.5;
	}
	.asb-footer__copy-inner,
	.asb-footer__legal {
		font-size: 0.8rem;
	}
}
