/* MasterStudy Modern Footer
   Scoped entirely under #msmf-footer so it never leans on the theme's old
   footer CSS or leaks into the rest of the page. Colors match the ATA
   Academy brand palette from the source design. */

#msmf-footer {
	--msmf-purple: #4B0A8F;
	--msmf-purple-dark: #35085F;
	--msmf-red: #B32025;
	--msmf-gold: #E6A11B;
	--msmf-bg: #14121A;
	--msmf-border: rgba(255, 255, 255, 0.12);
	--msmf-text: rgba(255, 255, 255, 0.85);
	--msmf-text-muted: rgba(255, 255, 255, 0.65);
	--msmf-content-max: 1320px;
	box-sizing: border-box;
	background: var(--msmf-bg);
	color: var(--msmf-text);
	padding: 70px 0 0;
	font-family: inherit;
}

#msmf-footer *,
#msmf-footer *::before,
#msmf-footer *::after {
	box-sizing: border-box;
}

#msmf-footer a {
	color: inherit;
}

#msmf-footer img {
	max-width: 100%;
	display: block;
}

#msmf-footer p {
	margin: 0;
}

.msmf-container {
	max-width: var(--msmf-content-max);
	margin: 0 auto;
	padding: 0 40px;
}

.msmf-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
	gap: 40px;
	padding-bottom: 50px;
	border-bottom: 1px solid var(--msmf-border);
}

/* Grid items default to min-width: auto, so a track can grow past its share
   of the grid to fit non-shrinking content (here, the newsletter button's
   text) and blow out the whole page horizontally. Overriding it to 0 lets
   every column -- and its flex/text content -- actually shrink to fit. */
.msmf-col {
	min-width: 0;
}

/* ---------- brand column ---------- */
.msmf-col--brand .msmf-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.msmf-col--brand .msmf-logo__text {
	font-weight: 700;
	font-size: 17px;
	color: #fff;
	letter-spacing: 0.02em;
}

.msmf-col--brand .msmf-logo__img {
	max-height: 180px;
	width: auto;
}

.msmf-col--brand p {
	margin-top: 16px;
	font-size: 14px;
	color: var(--msmf-text-muted);
	max-width: 280px;
}

.msmf-social {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.msmf-social a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.msmf-social a:hover {
	background: var(--msmf-gold);
	border-color: var(--msmf-gold);
	color: #1a1a1a;
}

.msmf-social svg {
	width: 16px;
	height: 16px;
}

/* ---------- link/contact columns ---------- */
.msmf-col h4 {
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.msmf-col__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.msmf-col__list a {
	text-decoration: none;
	font-size: 14px;
	color: var(--msmf-text-muted);
	transition: color 0.18s ease;
}

.msmf-col__list a:hover {
	color: var(--msmf-gold);
}

.msmf-col__list li span {
	font-size: 14px;
	color: var(--msmf-text-muted);
}

/* ---------- newsletter column ---------- */
.msmf-newsletter-copy {
	font-size: 13.5px;
	color: var(--msmf-text-muted);
	margin-bottom: 14px;
}

.msmf-newsletter-form {
	display: flex;
	gap: 0;
	margin-top: 6px;
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.06);
}

.msmf-newsletter-form input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 13px 18px;
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	outline: none;
}

.msmf-newsletter-form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.msmf-newsletter-form button {
	border: none;
	background: var(--msmf-gold);
	color: #1a1a1a;
	font-family: inherit;
	font-weight: 600;
	font-size: 13.5px;
	padding: 0 22px;
	cursor: pointer;
}

.msmf-newsletter-note {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 10px;
}

.msmf-newsletter-success {
	font-size: 12.5px;
	color: var(--msmf-gold);
	margin-top: 10px;
	display: none;
}

/* ---------- bottom bar ---------- */
.msmf-bottom {
	padding: 24px 0 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.msmf-bottom ul {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.msmf-bottom ul a {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.55);
}

.msmf-bottom ul a:hover {
	color: var(--msmf-gold);
}

@media (max-width: 900px) {
	.msmf-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.msmf-container {
		padding: 0 22px;
	}
}

/* Below tablet width, a 2-column grid splits Quick Links / Contact /
   Newsletter into an awkward reading order (top-right, bottom-left,
   bottom-right). Go straight to a single stacked column instead so it
   reads top-to-bottom the same order as the markup. */
@media (max-width: 680px) {
	#msmf-footer {
		padding-top: 50px;
	}

	.msmf-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.msmf-col--brand .msmf-logo__img {
		max-height: 96px;
	}

	.msmf-bottom {
		flex-direction: column;
		align-items: flex-start;
		/* Extra clearance so the fixed WhatsApp button (bottom-right) never
		   sits on top of the copyright/legal links once scrolled to the end
		   of the page. */
		padding-bottom: 90px;
	}
}

/* ---------- WhatsApp floating button ----------
   Rendered via wp_footer, outside #msmf-footer, so it's styled at the top
   level rather than scoped under the footer selector. */
.msmf-whatsapp-float {
	position: fixed;
	bottom: 26px;
	right: 26px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
	z-index: 600;
	text-decoration: none;
	animation: msmf-pulse-wa 2.4s infinite;
}

.msmf-whatsapp-float svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

@keyframes msmf-pulse-wa {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 26px rgba(37, 211, 102, 0.45);
	}

	70% {
		box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 10px 26px rgba(37, 211, 102, 0.45);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 26px rgba(37, 211, 102, 0.45);
	}
}

@media (max-width: 680px) {
	.msmf-whatsapp-float {
		width: 50px;
		height: 50px;
		bottom: 18px;
		right: 18px;
	}

	.msmf-whatsapp-float svg {
		width: 24px;
		height: 24px;
	}
}