/*
 * ATS static footer: restore the former dark, centered legal strip.
 *
 * The override is scoped to the ATS-owned runtime wrapper so the rest of the
 * child theme keeps its styles.
 */

.ats-footer-runtime .ts-footer {
	width: 100%;
	background: #020b1e;
	border-top: 1px solid rgba(200, 165, 106, .12);
}

.ats-footer-runtime .ats-footer-hero {
	background-image: url('/wp-content/themes/edumall-child/assets/images/ats-footer-bg-selected.png') !important;
}

/* MAIN GRID: bring the navigation columns closer to the brand block. */
.ats-footer-runtime .ats-footer-main {
	grid-template-columns: minmax(260px, 320px) repeat(4, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.ats-footer-runtime .ats-footer-brand,
.ats-footer-runtime .ats-footer-col {
	min-width: 0;
}

.ats-footer-runtime .ats-footer-col {
	padding-left: 0;
}

.ats-footer-runtime .ts-footer-container {
	width: 100%;
	padding: 30px clamp(24px, 5vw, 90px) 42px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ats-footer-runtime .ts-footer-copy {
	color: rgba(255, 255, 255, .92);
	font-size: 13px;
}

.ats-footer-runtime .ts-footer-divider {
	width: 130px;
	height: 1px;
	margin: 18px auto 22px;
	background: linear-gradient(90deg, transparent, rgba(200, 165, 106, .75), transparent);
}

.ats-footer-runtime .ts-footer-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.ats-footer-runtime .ts-footer-links span {
	color: rgba(200, 165, 106, .45);
}

.ats-footer-runtime .ts-footer-links a {
	color: rgba(255, 255, 255, .76);
	text-decoration: none;
	font-size: 13px;
	transition: .25s ease;
}

.ats-footer-runtime .ts-footer-links a:hover {
	color: var(--gold, #c8a56a);
}

.ats-footer-runtime .ts-footer-disclaimer {
	max-width: 980px;
	color: rgba(255, 255, 255, .52);
	font-size: 12px;
	line-height: 1.75;
}

@media (max-width: 1300px) {
	.ats-footer-runtime .ats-footer-main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.ats-footer-runtime .ats-footer-main {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ats-footer-runtime .ts-footer-links {
		flex-direction: column;
		gap: 12px;
	}

	.ats-footer-runtime .ts-footer-links span {
		display: none;
	}
}

/*
 * ATS footer reference layout.
 * Only the legacy hero, benefits band and navigation grid are adjusted here.
 * The .ts-footer legal section below remains governed by the existing rules.
 */
.ats-footer-runtime .ats-global-footer {
	background: #f7f5f0;
	color: #071b46;
}

/* The selected door-opening image and title sit above the two light footer sections. */
.ats-footer-runtime .ats-footer-hero {
	box-sizing: border-box;
	display: flex !important;
	align-items: stretch;
	min-height: clamp(320px, 30vw, 440px);
	width: 100%;
	background-color: #020b1e;
	background-image: url('/wp-content/themes/edumall-child/assets/images/ats-footer-bg-selected.png') !important;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

.ats-footer-runtime .ats-footer-hero-content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(100%, 690px);
	padding: clamp(34px, 4vw, 52px) clamp(24px, 5vw, 78px);
	color: #fff;
}

.ats-footer-runtime .ats-footer-hero-content .ats-footer-kicker {
	margin-bottom: 18px;
	color: #c8a56a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ats-footer-runtime .ats-footer-hero-content h2 {
	max-width: 620px;
	margin: 0;
	color: #fff;
	font-size: clamp(40px, 4.3vw, 64px);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: .98;
}

.ats-footer-runtime .ats-footer-hero-content h2 span {
	color: #c8a56a;
}

.ats-footer-runtime .ats-footer-hero-content > p {
	max-width: 590px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, .88);
	font-size: 15px;
	line-height: 1.6;
}

.ats-footer-runtime .ats-footer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.ats-footer-runtime .ats-footer-actions .ats-footer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ats-footer-runtime .ats-footer-actions .ats-footer-btn-gold {
	background: #c8a56a;
	color: #071b46;
}

.ats-footer-runtime .ats-footer-actions .ats-footer-btn-gold:hover {
	border-color: #fff;
	background: #fff;
	color: #071b46;
}

.ats-footer-runtime .ats-footer-actions .ats-footer-btn-outline {
	border-color: rgba(255, 255, 255, .65);
	background: transparent;
	color: #fff;
}

.ats-footer-runtime .ats-footer-actions .ats-footer-btn-outline:hover {
	border-color: #c8a56a;
	background: rgba(7, 27, 70, .9);
	color: #fff;
}

.ats-footer-runtime .ats-footer-actions .ats-footer-btn:focus-visible {
	outline: 3px solid #c8a56a;
	outline-offset: 3px;
}

.ats-footer-runtime .ats-footer-benefits {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	padding: 32px clamp(24px, 5vw, 78px) 30px;
	border-top: 2px solid #c8a56a;
	border-bottom: 1px solid rgba(7, 27, 70, .12);
	background: #fff;
}

.ats-footer-runtime .ats-footer-benefit {
	min-width: 0;
	padding: 0 clamp(14px, 2vw, 28px);
	border-left: 1px solid rgba(200, 165, 106, .55);
}

.ats-footer-runtime .ats-footer-benefit:first-child {
	padding-left: 0;
	border-left: 0;
}

.ats-footer-runtime .ats-footer-benefit strong {
	display: block;
	color: #071b46;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .055em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ats-footer-runtime .ats-footer-benefit p {
	margin: 10px 0 0;
	color: #0a2c64;
	font-size: 13px;
	line-height: 1.45;
}

.ats-footer-runtime .ats-footer-main {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: minmax(220px, 1.15fr) repeat(4, minmax(130px, 1fr)) !important;
	gap: clamp(24px, 3vw, 52px) !important;
	width: 100%;
	padding: 52px clamp(24px, 5vw, 78px) 48px !important;
	background: #f7f5f0;
	border: 0;
	align-items: start;
}

.ats-footer-runtime .ats-footer-main .ats-footer-brand {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start !important;
	justify-content: flex-start;
	min-width: 0;
	text-align: left !important;
}

.ats-footer-runtime .ats-footer-brand > img {
	display: block;
	width: 160px;
	height: auto;
	max-width: 100%;
	margin: 0;
}

.ats-footer-runtime .ats-footer-tagline {
	max-width: 220px;
	margin: 16px 0 20px;
	color: #0a2c64;
	font-size: 13px;
	line-height: 1.5;
}

.ats-footer-runtime .ats-footer-main .ats-footer-brand > .ats-footer-mini-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 17px;
	border: 1px solid #071b46;
	border-radius: 2px;
	background: #071b46;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ats-footer-runtime .ats-footer-main .ats-footer-brand > .ats-footer-mini-btn:hover {
	border-color: #c8a56a;
	background: #c8a56a;
	color: #071b46;
}

.ats-footer-runtime .ats-footer-main .ats-footer-brand > .ats-footer-mini-btn:focus-visible,
.ats-footer-runtime .ats-footer-col a:focus-visible {
	outline: 3px solid #c8a56a;
	outline-offset: 3px;
}

.ats-footer-runtime .ats-footer-col h4 {
	margin: 0 0 18px;
	color: #071b46;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ats-footer-runtime .ats-footer-col a {
	display: flex;
	align-items: center;
	min-height: 36px;
	padding: 3px 0;
	color: #0a2c64;
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
	transition: color .2s ease, text-decoration-color .2s ease;
}

.ats-footer-runtime .ats-footer-col a:hover {
	color: #071b46;
	text-decoration: underline;
	text-decoration-color: #c8a56a;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

@media (max-width: 1100px) {
	.ats-footer-runtime .ats-footer-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 28px;
	}

	.ats-footer-runtime .ats-footer-benefit:nth-child(4) {
		padding-left: 0;
		border-left: 0;
	}

	.ats-footer-runtime .ats-footer-main {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.ats-footer-runtime .ats-footer-main .ats-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.ats-footer-runtime .ats-footer-hero {
		min-height: 430px;
		background-position: 72% center;
	}

	.ats-footer-runtime .ats-footer-hero-content {
		justify-content: flex-end;
		width: 74%;
		padding: 42px 22px 48px;
	}

	.ats-footer-runtime .ats-footer-hero-content h2 {
		font-size: clamp(38px, 11vw, 58px);
	}

	.ats-footer-runtime .ats-footer-hero-content > p {
		font-size: 14px;
	}

	.ats-footer-runtime .ats-footer-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ats-footer-runtime .ats-footer-actions .ats-footer-btn {
		width: 100%;
	}

	.ats-footer-runtime .ats-footer-benefits {
		grid-template-columns: 1fr;
		row-gap: 0;
		padding: 24px 20px 14px;
	}

	.ats-footer-runtime .ats-footer-benefit,
	.ats-footer-runtime .ats-footer-benefit:first-child,
	.ats-footer-runtime .ats-footer-benefit:nth-child(4) {
		padding: 18px 0;
		border-top: 1px solid rgba(200, 165, 106, .55);
		border-left: 0;
	}

	.ats-footer-runtime .ats-footer-benefit:first-child {
		padding-top: 0;
		border-top: 0;
	}

	.ats-footer-runtime .ats-footer-main {
		grid-template-columns: 1fr !important;
		gap: 30px !important;
		padding: 40px 20px 36px !important;
	}

	.ats-footer-runtime .ats-footer-main .ats-footer-brand {
		grid-column: auto;
	}

	.ats-footer-runtime .ats-footer-col a {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ats-footer-runtime .ats-footer-main .ats-footer-brand > .ats-footer-mini-btn,
	.ats-footer-runtime .ats-footer-col a {
		transition: none;
	}
}

/* Subtle black gradient veil over the selected footer hero image. */
.ats-footer-runtime .ats-footer-hero {
        position: relative;
        isolation: isolate;
}

.ats-footer-runtime .ats-footer-hero::before {
        position: absolute;
        inset: 0;
        z-index: 0;
        background: linear-gradient(90deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .09) 46%, rgba(0, 0, 0, .02) 100%), linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .10));
        content: "";
        pointer-events: none;
}

.ats-footer-runtime .ats-footer-hero-content {
        position: relative;
        z-index: 1;
}


/* Mobile footer layout: keep every section inside the viewport. */
@media (max-width: 767px) {
        .ats-footer-runtime,
        .ats-footer-runtime__inner,
        .ats-footer-runtime .ats-global-footer,
        .ats-footer-runtime .ats-footer-benefits,
        .ats-footer-runtime .ats-footer-main,
        .ats-footer-runtime .ats-footer-value,
        .ats-footer-runtime .ts-footer {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                min-width: 0;
                overflow-x: hidden;
        }

        .ats-footer-runtime .ats-footer-main {
                display: grid !important;
                grid-template-columns: minmax(0, 1fr) !important;
                gap: 0 !important;
                padding: 28px 24px 24px !important;
                text-align: left !important;
        }

        .ats-footer-runtime .ats-footer-main > * {
                min-width: 0;
        }

        .ats-footer-runtime .ats-footer-main .ats-footer-brand {
                align-items: center !important;
                padding: 0 0 28px;
                text-align: center !important;
        }

        .ats-footer-runtime .ats-footer-col {
                width: 100%;
                padding: 24px 0 0 !important;
                border-top: 1px solid rgba(7, 27, 70, .12);
                text-align: left !important;
        }

        .ats-footer-runtime .ats-footer-col h4 {
                margin: 0 0 10px;
                text-align: center;
        }

        .ats-footer-runtime .ats-footer-col a {
                width: 100%;
                min-height: 44px;
                padding: 7px 0;
        }

        .ats-footer-runtime .ats-footer-value {
                padding: 28px 24px;
                text-align: center;
        }

        .ats-footer-runtime .ts-footer-container {
                width: 100%;
                max-width: 100%;
                padding: 28px 20px 36px;
        }

        .ats-footer-runtime .ts-footer-links {
                width: 100%;
                max-width: 100%;
        }
}
