/*
Theme Name: Academy of Alchemists
Description: Custom frontend theme for Academy of Alchemists.
Author: Academy of Alchemists
Template: hello-elementor
Version: 0.1.0
Text Domain: aoa-theme
*/

/* =========================================================
   Academy of Alchemists — Global Design System
   ========================================================= */

:root {
	--aoa-primary: #0d5961;
	--aoa-primary-dark: #073f46;
	--aoa-text: #163f43;
	--aoa-body: #4f5f60;
	--aoa-background: #ffffff;
	--aoa-surface: #f5f7f6;
	--aoa-border: #dfe6e4;

	--aoa-font-heading: Georgia, "Times New Roman", serif;
	--aoa-font-body: Arial, Helvetica, sans-serif;

	--aoa-container: 1200px;
	--aoa-content: 760px;

	--aoa-radius: 4px;

	--aoa-space-xs: 8px;
	--aoa-space-sm: 16px;
	--aoa-space-md: 24px;
	--aoa-space-lg: 40px;
	--aoa-space-xl: 64px;
	--aoa-space-2xl: 96px;
}

html {
	box-sizing: border-box;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: var(--aoa-background);
	color: var(--aoa-body);
	font-family: var(--aoa-font-body);
	font-size: 16px;
	line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--aoa-text);
	font-family: var(--aoa-font-heading);
	font-weight: 400;
	line-height: 1.2;
}

a {
	color: var(--aoa-primary);
}

img {
	max-width: 100%;
	height: auto;
}

.aoa-container {
	width: min(calc(100% - 40px), var(--aoa-container));
	margin-inline: auto;
}

.aoa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--aoa-primary);
	border-radius: var(--aoa-radius);
	background: var(--aoa-primary);
	color: #ffffff;
	font-family: var(--aoa-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: 0.2s ease;
}

.aoa-button:hover,
.aoa-button:focus {
	background: var(--aoa-primary-dark);
	border-color: var(--aoa-primary-dark);
	color: #ffffff;
}

@media (max-width: 767px) {
	:root {
		--aoa-space-xl: 48px;
		--aoa-space-2xl: 64px;
	}

	.aoa-container {
		width: min(calc(100% - 32px), var(--aoa-container));
	}

	body {
		font-size: 15px;
	}
}


/* =========================================================
   Site Header
   ========================================================= */

.aoa-site-header {
	position: relative;
	z-index: 100;
	width: 100%;
	background: #ffffff;
	border-bottom: 1px solid var(--aoa-border);
}

.aoa-header-inner {
	display: flex;
	align-items: center;
	width: min(calc(100% - 48px), 1500px);
	min-height: 86px;
	margin: 0 auto;
	gap: 40px;
}

.aoa-site-branding {
	flex: 0 0 auto;
	min-width: 300px;
}

.aoa-site-title {
	display: inline-block;
	color: var(--aoa-primary-dark);
	font-family: "Ovo", var(--aoa-font-heading);
	font-size: 29px;
	font-weight: 400;
	line-height: 1.1;
	white-space: nowrap;
	text-decoration: none;
}

.aoa-site-title:hover,
.aoa-site-title:focus {
	color: var(--aoa-primary);
}

.aoa-primary-navigation {
	margin-left: auto;
}

.aoa-primary-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aoa-primary-menu li {
	margin: 0;
	padding: 0;
}

.aoa-primary-menu a {
	display: flex;
	align-items: center;
	min-height: 86px;
	padding: 0;
	color: var(--aoa-primary-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
}

.aoa-primary-menu a:hover,
.aoa-primary-menu a:focus,
.aoa-primary-menu .current-menu-item > a {
	color: var(--aoa-primary);
}

button.aoa-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--aoa-primary);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 900px) {
	.aoa-header-inner {
		position: relative;
		min-height: 70px;
		gap: 16px;
	}

    .aoa-site-branding {
        flex: 0 1 auto;
        min-width: 0;
    }


	.aoa-site-title {
		font-size: 20px;
	}

	button.aoa-menu-toggle {
		display: inline-flex;
		margin-left: auto;
        min-width: 44px;
        flex-shrink: 0;
    }

	.aoa-primary-navigation {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		margin: 0;
		background: #ffffff;
		border-top: 1px solid var(--aoa-border);
		border-bottom: 1px solid var(--aoa-border);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	}

	.aoa-primary-navigation.is-open {
		display: block;
	}

	.aoa-primary-menu {
		display: block;
		width: min(calc(100% - 32px), var(--aoa-container));
		margin: 0 auto;
		padding: 8px 0;
	}

	.aoa-primary-menu a {
		min-height: 48px;
		padding: 10px 0;
		border-bottom: 1px solid var(--aoa-border);
	}

	.aoa-primary-menu li:last-child > a {
		border-bottom: 0;
	}
}


/* =========================================================
   Site Footer
   ========================================================= */

.aoa-site-footer {
    margin-top: 0;
    background: var(--aoa-primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

.aoa-footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    padding-top: 58px;
    padding-bottom: 54px;
}

.aoa-footer-brand {
    max-width: 480px;
}

.aoa-site-footer .aoa-footer-title {
    display: inline-block;
    margin: 0;
    color: #ffffff;
    font-family: "Ovo", Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.aoa-site-footer .aoa-footer-title:hover,
.aoa-site-footer .aoa-footer-title:focus {
    color: #ffffff;
    opacity: 0.85;
}

.aoa-footer-navigation {
    display: flex;
    justify-content: flex-end;
}

.aoa-footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 12px 28px;
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
}

.aoa-footer-menu li {
    margin: 0;
    padding: 0;
}

.aoa-footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.aoa-footer-menu a:hover,
.aoa-footer-menu a:focus {
    color: #ffffff;
}

.aoa-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.aoa-footer-bottom .aoa-container {
    padding-top: 18px;
    padding-bottom: 18px;
}

.aoa-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}


@media (max-width: 767px) {
	.aoa-footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.aoa-footer-navigation {
		justify-content: flex-start;
	}

	.aoa-footer-menu {
		display: block;
	}

	.aoa-footer-menu li + li {
		margin-top: 10px;
	}

	.aoa-footer-title {
		font-size: 24px;
	}
}


/* =========================================================
   Homepage Hero
   ========================================================= */

.aoa-hero {
	position: relative;
	width: 100%;
	background: var(--aoa-primary-dark);
	overflow: hidden;
}

.aoa-hero-slides {
        position: relative;
        min-height: 650px;
}

.aoa-hero-slide {
        display: none;
        position: relative;
        min-height: 650px;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
}

.aoa-hero-slide.is-active {
	display: flex;
	align-items: center;
}

.aoa-hero-overlay {
	position: absolute;
        inset: 0;
        background: transparent;
}

.aoa-hero-content {
	position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        padding-top: 100px;
        padding-bottom: 0;
}

.aoa-hero-copy {
        width: 100%;
        max-width: 450px;
        padding: 25px 35px 35px;
        background: rgba(254, 254, 254, 0.8);
        text-align: center;
}

.aoa-hero .aoa-hero-title {
        margin: 0;
        color: var(--aoa-primary-dark);
        font-family: "Ovo", serif;
        font-size: 42px;
        font-weight: 400;
        line-height: 1.2;
}

.aoa-hero .aoa-hero-text {
        margin-top: 18px;
        color: var(--aoa-primary-dark);
        font-size: 16px;
        line-height: 1.6;
}

.aoa-hero .aoa-hero-text p {
        margin-top: 0;
        margin-bottom: 16px;
}

.aoa-hero .aoa-hero-button {
        display: inline-block;
        margin-top: 0;
        padding: 8px 35px;
        border: 2px solid #000000;
        border-radius: 0;
        background: transparent;
        color: #000000;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
}

.aoa-hero .aoa-hero-button:hover,
.aoa-hero .aoa-hero-button:focus {
        border-color: #000000;
        background: #000000;
        color: #ffffff;
}


button.aoa-hero-control {
        position: absolute;
        top: 50%;
        z-index: 5;
        display: flex;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 2px solid #ffffff;
        border-radius: 50%;
        outline: none;
        background: rgba(254, 254, 254, 0.8);
        color: #000000;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
}

button.aoa-hero-control span {
        display: block;
        line-height: 1;
}

button.aoa-hero-control:hover,
button.aoa-hero-control:focus,
button.aoa-hero-control:focus-visible,
button.aoa-hero-control:active {
        border-color: #ffffff;
        background: rgba(254, 254, 254, 0.95);
        color: #000000;
}

button.aoa-hero-control:focus-visible {
        outline: 2px solid #000000;
        outline-offset: 3px;
}

button.aoa-hero-prev {
        left: 20px;
}

button.aoa-hero-next {
        right: 20px;
}

.aoa-hero-dots {
        position: absolute;
        z-index: 5;
        left: 50%;
        bottom: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transform: translateX(-50%);
}

button.aoa-hero-dot {
        display: block;
        width: 12px;
        height: 12px;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #ffffff;
        cursor: pointer;
}

button.aoa-hero-dot.is-active {
        background: #06819a;
}

button.aoa-hero-dot:hover,
button.aoa-hero-dot:focus,
button.aoa-hero-dot:active {
        background: #06819a;
}

button.aoa-hero-dot:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 3px;
}

@media (max-width: 900px) {
	.aoa-hero-slides,
	.aoa-hero-slide {
		min-height: 580px;
	}

	.aoa-hero-content {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.aoa-hero-title {
		max-width: 620px;
		font-size: clamp(38px, 8vw, 58px);
	}
}

@media (max-width: 600px) {
	.aoa-hero-slides,
	.aoa-hero-slide {
		min-height: 420px;
	}

	.aoa-hero-slide {
		background-position: center center;
	}

	.aoa-hero-overlay {
		background: rgba(4, 35, 39, 0.68);
	}

	.aoa-hero-content {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.aoa-hero-title {
		font-size: clamp(34px, 11vw, 48px);
	}

	.aoa-hero-text {
		font-size: 16px;
	}
	        .aoa-hero-control {
                width: 40px;
                height: 40px;
                font-size: 30px;
        }

        .aoa-hero-prev {
                left: 10px;
        }

        .aoa-hero-next {
                right: 10px;
        }

}

/* ==========================================================================
   Featured Courses
   ========================================================================== */

.aoa-featured-courses {
	padding: 76px 0 84px;
	background: #ffffff;
}

.aoa-featured-courses .aoa-container {
	max-width: 1180px;
}

.aoa-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 38px;
}

.aoa-section-kicker {
	margin: 0 0 7px;
	color: #777777;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.aoa-section-heading h2 {
	margin: 0;
	color: var(--aoa-primary-dark);
	font-family: "Ovo", Georgia, serif;
	font-size: 42px;
	font-weight: 400;
	line-height: 1.15;
}

.aoa-course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.aoa-course-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(18, 63, 67, 0.10);
	box-shadow: 0 2px 12px rgba(4, 35, 39, 0.04);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.aoa-course-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(4, 35, 39, 0.10);
}

.aoa-course-card-image {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f2f0eb;
}

.aoa-course-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.aoa-course-card:hover .aoa-course-card-image img {
	transform: scale(1.025);
}

.aoa-course-card-placeholder {
	width: 100%;
	height: 100%;
	background: #f2f0eb;
}

.aoa-course-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 24px 24px;
}

.aoa-course-instructor {
	margin: 0 0 8px;
	color: #777777;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.aoa-course-title {
	margin: 0 0 20px;
	font-family: "Ovo", Georgia, serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.35;
}

.aoa-course-title a {
	color: var(--aoa-primary-dark);
	text-decoration: none;
}

.aoa-course-title a:hover,
.aoa-course-title a:focus {
	color: #06819a;
	text-decoration: none;
}

.aoa-course-link {
	margin-top: auto;
	color: #06819a;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.aoa-course-link span {
	display: inline-block;
	margin-left: 5px;
	transition: transform 0.2s ease;
}

.aoa-course-link:hover,
.aoa-course-link:focus {
	color: var(--aoa-primary-dark);
}

.aoa-course-link:hover span,
.aoa-course-link:focus span {
	transform: translateX(4px);
}


@media (max-width: 900px) {
	.aoa-featured-courses {
		padding: 64px 0;
	}

	.aoa-course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 600px) {
	.aoa-featured-courses {
		padding: 48px 0;
	}

	.aoa-section-heading {
		margin-bottom: 28px;
	}

	.aoa-course-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.aoa-course-card-content {
		padding: 20px;
	}

	.aoa-course-title {
		font-size: 20px;
	}
}

/* ==========================================================
   Homepage - Living Traditions
   ========================================================== */

.aoa-home-living-traditions {
	padding: 65px 0;
	background: #ffffff;
	text-align: center;
}

.aoa-home-living-traditions .aoa-container {
	max-width: 850px;
}

.aoa-home-living-traditions h2 {
	margin: 0 0 24px;
	font-family: "Ovo", Georgia, serif;
	font-size: 42px;
	font-weight: 500;
	line-height: 1.2;
}

.aoa-home-living-traditions p {
	margin: 0 auto 32px;
	font-size: 17px;
	line-height: 1.8;
}

.aoa-home-living-traditions .aoa-button {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 6px;
	background: #06819a;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
}

.aoa-home-living-traditions .aoa-button:hover,
.aoa-home-living-traditions .aoa-button:focus {
	opacity: 0.9;
	color: #ffffff;
}

@media (max-width: 767px) {
	.aoa-home-living-traditions {
		padding: 50px 0;
	}

	.aoa-home-living-traditions h2 {
		font-size: 36px;
	}

	.aoa-home-living-traditions p {
		font-size: 16px;
	}
}

/* ==========================================================
   Homepage - What to Expect
   ========================================================== */

.aoa-home-expect {
    padding: 82px 0 88px;
    background: #f7f7f5;
    text-align: center;
}

.aoa-home-expect .aoa-container {
    max-width: 1180px;
}

.aoa-home-expect h2 {
    margin: 0 0 54px;
    font-family: "Ovo", Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
}

.aoa-expect-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.aoa-expect-card {
    position: relative;
    padding: 34px 30px 32px;
    background: #ffffff;
    border: 1px solid rgba(0, 73, 82, 0.10);
    text-align: left;
}

.aoa-expect-card::before {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-bottom: 24px;
    background: #06819a;
}

.aoa-expect-card h3 {
    margin: 0 0 14px;
    font-family: "Ovo", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.3;
}

.aoa-expect-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
}


@media (max-width: 767px) {
	.aoa-home-expect {
		padding: 60px 0;
	}

	.aoa-home-expect h2 {
		margin-bottom: 35px;
		font-size: 36px;
	}

	.aoa-expect-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.aoa-expect-card {
		padding: 10px 15px;
	}
}

/* ==========================================================
   Homepage - Upcoming Events
   ========================================================== */

.aoa-home-workshops {
    padding: 76px 0 82px;
    background: #ffffff;
}

.aoa-home-workshops .aoa-container {
    max-width: 1180px;
}

.aoa-home-workshops h2 {
    margin: 0 0 42px;
    font-family: "Ovo", Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.aoa-workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.aoa-workshop-card {
    background: #ffffff;
    border: 1px solid rgba(0, 73, 82, 0.10);
}

.aoa-workshop-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.aoa-workshop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aoa-workshop-content {
    padding: 24px;
}

.aoa-workshop-date {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aoa-workshop-card h3 {
    margin: 0 0 20px;
    font-family: "Ovo", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
}

.aoa-workshop-card h3 a,
.aoa-workshop-link {
    color: inherit;
    text-decoration: none;
}

.aoa-workshop-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.aoa-workshops-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 40px;
    border: 1px solid rgba(0, 73, 82, 0.10);
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
}



/* ==========================================================
   Homepage - Workshops and Ongoing Learning
   ========================================================== */

.aoa-home-ongoing-learning {
	padding: 65px 0;
	background: #ffffff;
	text-align: center;
}

.aoa-home-ongoing-learning .aoa-container {
	max-width: 850px;
}

.aoa-home-ongoing-learning h2 {
	margin: 0 0 24px;
	font-family: "Ovo", Georgia, serif;
	font-size: 42px;
	font-weight: 500;
	line-height: 1.2;
}

.aoa-home-ongoing-learning p {
	margin: 0 auto 32px;
	font-size: 17px;
	line-height: 1.8;
}

.aoa-home-ongoing-learning .aoa-button {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 6px;
	background: #06819a;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
}

.aoa-home-ongoing-learning .aoa-button:hover,
.aoa-home-ongoing-learning .aoa-button:focus {
	opacity: 0.9;
	color: #ffffff;
}

@media (max-width: 767px) {
	.aoa-home-ongoing-learning {
		padding: 50px 0;
	}

	.aoa-home-ongoing-learning h2 {
		font-size: 36px;
	}

	.aoa-home-ongoing-learning p {
		font-size: 16px;
	}
}

/* ==========================================================
   Elementor Homepage Layout Compatibility
   Applies to the migrated Elementor homepage containers.
   ========================================================== */

/* Keep Elementor text sections centered and readable. */
.aoa-home-living-traditions.e-con,
.aoa-home-ongoing-learning.e-con {
    width: 100%;
    max-width: none;
    padding: 65px max(24px, calc((100% - 850px) / 2));
    text-align: center;
}

/* Keep the What to Expect section within the design width. */
.aoa-home-expect.e-con {
    width: 100%;
    max-width: none;
    padding: 82px max(24px, calc((100% - 1180px) / 2)) 88px;
    text-align: center;
}

/* Arrange the three Elementor feature cards in columns. */
@media (min-width: 768px) {
    .aoa-home-expect.e-con {
        display: flex;
    }

    .aoa-home-expect.e-con > .e-con-inner {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .aoa-home-expect.e-con > .e-con-inner > .elementor-element:first-child {
        grid-column: 1 / -1;
        width: 100%;
    }

    .aoa-home-expect.e-con > .e-con-inner > .aoa-expect-card.e-con {
        width: 100%;
        min-width: 0;
    }
}

/* Prevent Elementor's container defaults from overriding card widths. */
.aoa-home-expect.e-con > .aoa-expect-card.e-con {
    width: 100%;
    min-width: 0;
}

/* Mobile layout. */
@media (max-width: 767px) {
    .aoa-home-living-traditions.e-con,
    .aoa-home-ongoing-learning.e-con {
        padding: 50px 20px;
    }

    .aoa-home-expect.e-con {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 60px 20px;
    }

    .aoa-home-expect.e-con > .aoa-expect-card.e-con {
        width: 100%;
    }
}

/* Hide empty hero copy boxes when banner text is embedded in the image. */
.aoa-hero-copy:empty {
    display: none;
}

/* Desktop hero overlay alignment correction. */
@media (min-width: 901px) {
    .aoa-hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* =========================================================
   Books Listing - Responsive catalogue (OBS-045)
   ========================================================= */

.books_listing_section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: min(100%, var(--aoa-container));
    box-sizing: border-box;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.books_listing_section .book_list_item {
    min-width: 0;
    margin: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--aoa-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.035);
    box-sizing: border-box;
}

.books_listing_section .book_list_panel {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    height: 100%;
}

.books_listing_section .book_pic {
    flex: 0 0 160px;
    width: 160px;
    max-width: 100%;
    min-width: 0;
}

.books_listing_section .book_pic img,
.books_listing_section .aoa-book-placeholder {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 3px;
    box-sizing: border-box;
}

.books_listing_section .book_pic img {
    object-fit: contain;
    background: var(--aoa-surface);
    border: 1px solid var(--aoa-border);
}

.books_listing_section .aoa-book-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    min-height: 0;
    background: var(--aoa-surface);
    border: 1px solid var(--aoa-border);
    color: var(--aoa-primary);
    font-family: var(--aoa-font-heading);
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.07);
}

.books_listing_section .aoa-book-placeholder span {
    width: 100%;
    padding: 18px 6px;
    border-top: 1px solid var(--aoa-border);
    border-bottom: 1px solid var(--aoa-border);
}

.books_listing_section .book_content_row {
    display: flex;
    flex: 1;
    min-width: 0;
    align-self: stretch;
}

.books_listing_section .book_details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
}

.books_listing_section .book_details h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.books_listing_section .book_details p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.books_listing_section .book_details .clearfix {
    display: none;
}

.books_listing_section .btn_banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    margin-top: auto;
    padding: 12px 22px;
    border: 1px solid var(--aoa-primary);
    border-radius: 4px;
    background: var(--aoa-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.books_listing_section .btn_banner:hover,
.books_listing_section .btn_banner:focus-visible {
    background: #fff;
    color: var(--aoa-primary);
}

.books_listing_section .btn_banner:focus-visible {
    outline: 2px solid var(--aoa-primary);
    outline-offset: 3px;
}

@media (min-width: 1024px) {
    .books_listing_section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .books_listing_section .book_list_panel {
        gap: 18px;
    }

    .books_listing_section .book_pic {
        flex-basis: 140px;
        width: 140px;
    }
}

@media (max-width: 767px) {
    .books_listing_section {
        gap: 20px;
        padding: 16px 12px 36px;
    }

    .books_listing_section .book_list_item {
        padding: 20px;
    }

    .books_listing_section .book_list_panel {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .books_listing_section .book_pic {
        flex: none;
        width: 160px;
    }

    .books_listing_section .book_content_row {
        width: 100%;
    }

    .books_listing_section .book_details {
        align-items: center;
    }

    .books_listing_section .book_details h2 {
        font-size: 24px;
        text-align: center;
    }

    .books_listing_section .book_details p {
        width: 100%;
        text-align: left;
    }

    .books_listing_section .btn_banner {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .books_listing_section .btn_banner {
        transition: none;
    }
}

/* AOA Single Book: return navigation */
.aoa-single-book {
    padding: 48px 0 72px;
}

.aoa-single-book .aoa-book-navigation {
    margin-bottom: 28px;
}

.aoa-single-book .aoa-back-to-books {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--aoa-primary);
    border-radius: 6px;
    color: var(--aoa-primary);
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.aoa-single-book .aoa-back-to-books:hover {
    background: var(--aoa-primary);
    color: #fff;
}

.aoa-single-book .aoa-back-to-books:focus-visible {
    outline: 3px solid var(--aoa-primary);
    outline-offset: 3px;
}

.aoa-single-book .entry-title {
    margin-top: 0;
}

@media (max-width: 767px) {
    .aoa-single-book {
        padding: 28px 0 48px;
    }
}

/* AOA Single Course: return navigation */
.aoa-course-return-navigation {
    padding: 32px 0 12px;
}

.aoa-course-return-navigation .aoa-back-to-courses {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--aoa-primary);
    border-radius: 6px;
    color: var(--aoa-primary);
    background: transparent;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.aoa-course-return-navigation .aoa-back-to-courses:hover {
    background: var(--aoa-primary);
    color: #fff;
}

.aoa-course-return-navigation .aoa-back-to-courses:focus-visible {
    outline: 3px solid var(--aoa-primary);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .aoa-course-return-navigation {
        padding: 24px 0 8px;
    }
}

/* AOA Homepage Hero — Tablet layout adjustment */
@media (min-width: 601px) and (max-width: 900px) {
    .aoa-hero .aoa-hero-content {
        width: calc(100% - 48px);
        max-width: 100%;
        margin-inline: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .aoa-hero .aoa-hero-copy {
        box-sizing: border-box;
        width: 100%;
        max-width: 380px;
        padding: 24px;
    }

    .aoa-hero .aoa-hero-title {
        font-size: 36px;
        line-height: 1.2;
        overflow-wrap: break-word;
    }
}

/* =========================================================
   AOA Homepage Hero — Mobile layout correction
   ========================================================= */
@media (max-width: 600px) {

    .aoa-hero .aoa-hero-slides,
    .aoa-hero .aoa-hero-slide {
        min-height: 520px;
    }

    .aoa-hero .aoa-hero-slide.is-active {
        align-items: center;
    }

    .aoa-hero .aoa-hero-content {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 35px 16px 85px;
    }

    .aoa-hero .aoa-hero-copy {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 24px 20px;
    }

    .aoa-hero .aoa-hero-title {
        max-width: 100%;
        font-size: clamp(26px, 7vw, 32px);
        line-height: 1.2;
        overflow-wrap: break-word;
    }

    .aoa-hero .aoa-hero-text {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    .aoa-hero .aoa-hero-text p {
        margin-bottom: 12px;
    }

    button.aoa-hero-control {
        top: auto;
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 22px;
        transform: none;
    }

    button.aoa-hero-prev {
        left: 20px;
    }

    button.aoa-hero-next {
        right: 20px;
    }

    .aoa-hero-dots {
        bottom: 34px;
    }
}

/* =========================================================
   AOA UI Refinements — 2026-11-08
   Mobile menu button and copyright spacing
   ========================================================= */

@media (max-width: 900px) {
    button.aoa-menu-toggle,
    button.aoa-menu-toggle:hover,
    button.aoa-menu-toggle:focus,
    button.aoa-menu-toggle:active {
        background: var(--aoa-primary);
        color: #ffffff;
        border: 1px solid var(--aoa-primary);
        border-radius: var(--aoa-radius);
        box-shadow: none;
    }

    button.aoa-menu-toggle:hover,
    button.aoa-menu-toggle:active {
        background: var(--aoa-primary-dark);
        border-color: var(--aoa-primary-dark);
    }

    button.aoa-menu-toggle:focus-visible {
        outline: 2px solid var(--aoa-primary-dark);
        outline-offset: 3px;
    }
}

.aoa-footer-bottom .aoa-container {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* =========================================================
   AOA Footer Copyright Background — 2026-11-08
   Match the copyright strip to the black footer.
   ========================================================= */

.aoa-site-footer .aoa-footer-bottom {
    background-color: #000000;
}

.aoa-site-footer .aoa-footer-bottom p {
    color: #ffffff;
}


/* AOA STEP 678: TEACHERS MOBILE SINGLE COLUMN */
@media (max-width: 600px) {
    .elementor-24405 .teacher-grid .teacher-card {
        display: block !important;
        width: calc(100% - 24px) !important;
        max-width: 360px !important;
        margin: 12px auto 32px !important;
        text-align: center !important;
    }
}
/* END AOA STEP 678 */


/* AOA STEP 687: PRACTITIONER DIRECTORY UI */

.page-id-26531 .aoa-practitioner-directory__filters {
    background: #f7f9f8;
    border: 1px solid #e0e8e5;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.page-id-26531 .aoa-practitioner-directory__filters p {
    margin: 0;
    min-width: 0;
}

.page-id-26531 .aoa-practitioner-directory__filters label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: #243b3d;
}

.page-id-26531 .aoa-practitioner-directory__filters input,
.page-id-26531 .aoa-practitioner-directory__filters select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #ccd8d5;
    border-radius: 6px;
    background: #ffffff;
    color: #243b3d;
    box-sizing: border-box;
}

.page-id-26531 .aoa-practitioner-directory__filters button {
    margin-top: 12px;
    padding: 11px 24px;
    min-height: 44px;
    border-radius: 6px;
    background: #194c50;
    border: 1px solid #194c50;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.page-id-26531 .aoa-practitioner-directory__filters button:hover,
.page-id-26531 .aoa-practitioner-directory__filters button:focus {
    background: #123b3f;
    color: #ffffff;
}

.page-id-26531 .aoa-practitioner-directory {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.page-id-26531 .aoa-practitioner-directory__item {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e0e8e5;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    overflow-wrap: anywhere;
}

.page-id-26531 .aoa-practitioner-directory__item h3 {
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #194c50;
}

.page-id-26531 .aoa-practitioner-directory__item p {
    margin: 0 0 12px;
    line-height: 1.65;
}

.page-id-26531 .aoa-practitioner-directory__item p:last-child {
    margin-bottom: 0;
}

.page-id-26531 .aoa-practitioner-directory__item a {
    color: #194c50;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .page-id-26531 .aoa-practitioner-directory__filters,
    .page-id-26531 .aoa-practitioner-directory {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-id-26531 .aoa-practitioner-directory__filters {
        padding: 18px;
        gap: 16px;
    }

    .page-id-26531 .aoa-practitioner-directory__item {
        padding: 20px;
    }
}

/* END AOA STEP 687 */


/* AOA STEP 691: DIRECTORY FOOTER SPACING */

.page-id-26531 .aoa-practitioner-directory {
    margin-bottom: 48px;
}

/* END AOA STEP 691 */

/* ==========================================================
   AOA Live Workshops — Scoped Listing Styles
   ========================================================== */

.aoa-live-workshops {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.aoa-live-workshops__heading {
    margin: 0 0 42px;
    color: var(--aoa-text);
    font-family: "Ovo", Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.aoa-live-workshops__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.aoa-live-workshops__card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 73, 82, 0.10);
}

.aoa-live-workshops__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.aoa-live-workshops__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.aoa-live-workshops__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aoa-live-workshops__content {
    padding: 24px;
}

.aoa-live-workshops__title {
    margin: 0 0 16px;
    font-family: "Ovo", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
}

.aoa-live-workshops__title a {
    color: var(--aoa-text);
    text-decoration: none;
}

.aoa-live-workshops__date {
    margin: 0 0 20px;
    color: var(--aoa-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.aoa-live-workshops__link {
    color: var(--aoa-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.aoa-live-workshops__title a:hover,
.aoa-live-workshops__link:hover {
    color: var(--aoa-primary-dark);
    text-decoration: underline;
}

.aoa-live-workshops a:focus-visible {
    outline: 2px solid var(--aoa-primary);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .aoa-live-workshops__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .aoa-live-workshops__heading {
        margin-bottom: 30px;
        font-size: 34px;
    }

    .aoa-live-workshops__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .aoa-live-workshops__content {
        padding: 20px;
    }
}

/* END AOA LIVE WORKSHOPS STYLES */

/* =========================================================
   AOA INSTRUCTOR LOGIN VIEWPORT FIX
   Page ID: 24919
   Keep the existing footer unchanged.
   ========================================================= */

body.page-id-24919 {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.page-id-24919 > .aoa-site-content {
    flex: 1 0 auto;
    width: 100%;
}

body.page-id-24919 > .aoa-site-footer {
    flex-shrink: 0;
}

/* =========================================================
   AOA INSTRUCTOR LOGIN DESIGN V1
   Page ID: 24919 — Theme My Login
   ========================================================= */

body.page-id-24919 .aoa-site-content {
    padding-top: 48px;
    padding-bottom: 64px;
}

body.page-id-24919 .site-main {
    width: min(100%, 520px);
    margin-inline: auto;
    padding-inline: 20px;
}

body.page-id-24919 .site-main h1,
body.page-id-24919 .site-main .entry-title {
    margin-bottom: 28px;
    text-align: center;
    color: var(--aoa-text);
    font-size: clamp(32px, 5vw, 42px);
}

body.page-id-24919 .tml {
    max-width: 440px;
    margin-inline: auto;
}

body.page-id-24919 .tml label {
    display: block;
    margin-bottom: 7px;
    color: var(--aoa-text);
    font-weight: 500;
}

body.page-id-24919 .tml input[type="text"],
body.page-id-24919 .tml input[type="email"],
body.page-id-24919 .tml input[type="password"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #bacbca;
    border-radius: 5px;
    background: #fff;
    color: var(--aoa-text);
}

body.page-id-24919 .tml input:focus-visible {
    outline: 2px solid var(--aoa-primary);
    outline-offset: 2px;
}

body.page-id-24919 .tml input[type="submit"],
body.page-id-24919 .tml button[type="submit"] {
    min-height: 46px;
    padding: 11px 30px;
    border: 1px solid var(--aoa-primary);
    border-radius: 5px;
    background: var(--aoa-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease;
}

body.page-id-24919 .tml input[type="submit"]:hover,
body.page-id-24919 .tml button[type="submit"]:hover {
    background: var(--aoa-primary-dark);
    border-color: var(--aoa-primary-dark);
    color: #fff;
}

body.page-id-24919 .tml-links {
    margin-top: 20px;
}

body.page-id-24919 .tml-links a {
    color: var(--aoa-primary);
}

@media (max-width: 767px) {
    body.page-id-24919 .aoa-site-content {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    body.page-id-24919 .site-main {
        padding-inline: 20px;
    }
}

/* =========================================================
   AOA TUTOR LMS DESIGN V1
   Tutor LMS 4.0.1 — Staging visual consistency
   ========================================================= */

/* Course listing enrollment buttons */
.tutor-course-list-btn .tutor-btn {
    border-color: var(--aoa-primary);
    background-color: var(--aoa-primary);
    color: #ffffff;
}

.tutor-course-list-btn .tutor-btn:hover,
.tutor-course-list-btn .tutor-btn:focus-visible {
    border-color: var(--aoa-primary-dark);
    background-color: var(--aoa-primary-dark);
    color: #ffffff;
}

/* Login popup Sign In button */
.tutor-login-modal .tutor-btn[type="submit"] {
    border-color: var(--aoa-primary);
    background-color: var(--aoa-primary);
    color: #ffffff;
}

.tutor-login-modal .tutor-btn[type="submit"]:hover,
.tutor-login-modal .tutor-btn[type="submit"]:focus-visible {
    border-color: var(--aoa-primary-dark);
    background-color: var(--aoa-primary-dark);
    color: #ffffff;
}

/* Single-course enrollment button */
.single-courses .tutor-course-single-content-wrapper .tutor-btn,
.single-courses .tutor-course-details-page .tutor-btn-primary {
    border-color: var(--aoa-primary);
    background-color: var(--aoa-primary);
    color: #ffffff;
}

/* Course listing pagination spacing */
.tutor-pagination-wrapper-replaceable {
    margin-bottom: 48px;
}

/* Course detail spacing before footer */
body.single-courses .aoa-site-content {
    padding-bottom: 64px;
}

@media (max-width: 767px) {
    .tutor-pagination-wrapper-replaceable {
        margin-bottom: 32px;
    }

    body.single-courses .aoa-site-content {
        padding-bottom: 40px;
    }
}

/* =========================================================
   AOA LIVE WORKSHOPS DESIGN V2
   Scoped visual refinement — staging
   ========================================================= */

.aoa-live-workshops {
    padding-bottom: 64px;
}

.aoa-live-workshops__heading {
    margin-bottom: 46px;
    font-size: clamp(34px, 4vw, 46px);
}

.aoa-live-workshops__grid {
    justify-content: center;
}

/* Center a single workshop without changing multi-card layout */
.aoa-live-workshops__grid:has(> .aoa-live-workshops__card:only-child) {
    grid-template-columns: minmax(0, 420px);
}

.aoa-live-workshops__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--aoa-border);
    border-top: 3px solid var(--aoa-primary);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 45, 50, 0.06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.aoa-live-workshops__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 45, 50, 0.10);
}

.aoa-live-workshops__image {
    flex: 0 0 auto;
    width: 100%;
}

.aoa-live-workshops__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(
        135deg,
        #edf3f0,
        #e1ebe7
    );
    color: var(--aoa-text);
    text-align: center;
}

.aoa-live-workshops__placeholder span {
    max-width: 240px;
    padding: 18px 12px;
    border-top: 1px solid rgba(0, 73, 82, 0.22);
    border-bottom: 1px solid rgba(0, 73, 82, 0.22);
    font-family: "Ovo", Georgia, serif;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.3;
}

.aoa-live-workshops__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    padding: 26px;
}

.aoa-live-workshops__title {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.aoa-live-workshops__date {
    align-self: flex-start;
    margin: 0 0 16px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #edf3f0;
    color: var(--aoa-text);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .04em;
}

.aoa-live-workshops__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 18px;
    border: 1px solid var(--aoa-primary);
    border-radius: 5px;
    background: var(--aoa-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.aoa-live-workshops__link:hover,
.aoa-live-workshops__link:focus-visible {
    border-color: var(--aoa-primary-dark);
    background: var(--aoa-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 767px) {
    .aoa-live-workshops {
        padding-bottom: 40px;
    }

    .aoa-live-workshops__heading {
        margin-bottom: 30px;
    }

    .aoa-live-workshops__content {
        padding: 24px;
    }

    .aoa-live-workshops__title {
        font-size: 23px;
    }

    .aoa-live-workshops__grid:has(> .aoa-live-workshops__card:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .aoa-live-workshops__card {
        transition: none;
    }

    .aoa-live-workshops__card:hover {
        transform: none;
    }
}

/* =========================================================
   AOA LINK COLOR FIX V1
   Workshop buttons and legacy teacher biography links
   ========================================================= */

/* Workshop button: maintain readable white text */
.aoa-live-workshops .aoa-live-workshops__link,
.aoa-live-workshops .aoa-live-workshops__link:visited {
    color: #ffffff;
}

.aoa-live-workshops .aoa-live-workshops__link:hover,
.aoa-live-workshops .aoa-live-workshops__link:focus-visible {
    color: #ffffff;
    background-color: var(--aoa-primary-dark);
    border-color: var(--aoa-primary-dark);
}

/* Teacher biography links: Academy teal */
.teacher-grid .teacher-card a,
.teacher-grid .teacher-card a:visited {
    color: var(--aoa-primary);
}

.teacher-grid .teacher-card a:hover,
.teacher-grid .teacher-card a:focus-visible {
    color: var(--aoa-primary-dark);
    text-decoration: underline;
}

/* END AOA LINK COLOR FIX V1 */

/* =========================================================
   AOA READ BIO COLOR FIX V1
   Override Elementor's orange !important declaration
   ========================================================= */

body.page-id-24405 .teacher-grid .teacher-card a.read-bio,
body.page-id-24405 .teacher-grid .teacher-card a.read-bio:visited {
    color: var(--aoa-primary) !important;
}

body.page-id-24405 .teacher-grid .teacher-card a.read-bio:hover,
body.page-id-24405 .teacher-grid .teacher-card a.read-bio:focus-visible {
    color: var(--aoa-primary-dark) !important;
    text-decoration: underline;
}

/* END AOA READ BIO COLOR FIX V1 */


/* AOA READ BIO BUTTON DESIGN V1 */
body.page-id-24405 .teacher-grid a.read-bio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 18px;
    border: 1px solid var(--aoa-primary);
    border-radius: 5px;
    background: #fff;
    color: var(--aoa-primary) !important;
    font-weight: 600;
    text-decoration: none;
}
body.page-id-24405 .teacher-grid a.read-bio::after {
    content: "\2197";
}
body.page-id-24405 .teacher-grid .teacher-card a.read-bio:hover,
body.page-id-24405 .teacher-grid .teacher-card a.read-bio:focus-visible {
    background: var(--aoa-primary);
    color: #fff !important;
    text-decoration: none;
}
body.page-id-24405 .teacher-grid a.read-bio:focus-visible {
    outline: 2px solid var(--aoa-primary-dark);
    outline-offset: 3px;
}
/* END AOA READ BIO BUTTON DESIGN V1 */

/* =========================================================
   AOA Individual Teacher Profile — Initial Staging Styles
   ========================================================= */

.aoa-single-teacher {
    padding-block: var(--aoa-space-lg) var(--aoa-space-2xl);
}

.aoa-teacher-return-navigation {
    margin-bottom: var(--aoa-space-md);
}

.aoa-back-to-teachers {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--aoa-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.aoa-back-to-teachers:hover,
.aoa-back-to-teachers:focus-visible {
    color: var(--aoa-primary-dark);
    text-decoration: underline;
}

.aoa-teacher-profile {
    overflow: hidden;
    border: 1px solid var(--aoa-border);
    border-radius: var(--aoa-radius);
    background: var(--aoa-background);
}

.aoa-teacher-profile-header {
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    padding: var(--aoa-space-lg);
    background: linear-gradient(
        125deg,
        var(--aoa-primary-dark),
        var(--aoa-primary)
    );
}

.aoa-teacher-profile-name {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.aoa-teacher-profile-image {
    max-width: 320px;
    margin: var(--aoa-space-lg);
}

.aoa-teacher-profile-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--aoa-radius);
}

@media (max-width: 767px) {
    .aoa-single-teacher {
        padding-block: var(--aoa-space-md) var(--aoa-space-xl);
    }

    .aoa-teacher-profile-header {
        min-height: 150px;
        padding: var(--aoa-space-md);
    }

    .aoa-teacher-profile-image {
        max-width: 240px;
        margin: var(--aoa-space-md);
    }
}

/* END AOA Individual Teacher Profile — Initial Staging Styles */

/* =========================================================
   AOA Teacher Profile — Description and Location
   ========================================================= */

.aoa-teacher-profile-heading {
    width: 100%;
    max-width: 900px;
}

.aoa-teacher-profile-description {
    margin: 12px 0 0;
    color: #ffffff;
    font-family: var(--aoa-font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.aoa-teacher-profile-location {
    margin: 8px 0 0;
    color: #e2eeee;
    font-family: var(--aoa-font-body);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .aoa-teacher-profile-description {
        font-size: 16px;
    }

    .aoa-teacher-profile-location {
        font-size: 14px;
    }
}

/* END AOA Teacher Profile — Description and Location */

/* AOA Teacher Biography — Staging Styles V1 */

.aoa-teacher-biography {
    padding: var(--aoa-space-lg);
    border-top: 1px solid var(--aoa-border);
    background: var(--aoa-background);
}

.aoa-teacher-biography h2 {
    margin: 0 0 var(--aoa-space-md);
    color: var(--aoa-primary-dark);
    font-family: var(--aoa-font-heading);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
}

.aoa-teacher-biography-content {
    max-width: 780px;
    color: var(--aoa-body);
    font-family: var(--aoa-font-body);
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.aoa-teacher-biography-content p {
    margin: 0 0 1em;
}

.aoa-teacher-biography-content > :last-child {
    margin-bottom: 0;
}

.aoa-teacher-biography-content a {
    color: var(--aoa-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aoa-teacher-biography-content a:hover,
.aoa-teacher-biography-content a:focus-visible {
    color: var(--aoa-primary-dark);
}

@media (max-width: 767px) {
    .aoa-teacher-biography {
        padding: var(--aoa-space-md);
    }

    .aoa-teacher-biography-content {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* END AOA Teacher Biography — Staging Styles V1 */

/* =========================================================
   AOA TEACHERS DIRECTORY — GRID REDESIGN V1
   Staging: 2026-11-14
   Scoped to Teachers page ID 24405.
   ========================================================= */

body.page-id-24405 .directory-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 48px;
}

body.page-id-24405 .teacher-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch;
}

body.page-id-24405 .teacher-grid .teacher-card {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e9e6;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 45, 42, 0.07);
    text-align: left !important;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

body.page-id-24405 .teacher-grid .teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 45, 42, 0.12);
}

body.page-id-24405 .teacher-grid .teacher-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #eaf0ee;
}

body.page-id-24405 .teacher-grid .teacher-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 0;
}

body.page-id-24405 .teacher-grid .teacher-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 24px;
    min-width: 0;
}

body.page-id-24405 .teacher-grid .teacher-name {
    margin: 0 0 10px;
    color: #123e3b;
    font-size: clamp(19px, 1.7vw, 23px);
    line-height: 1.3;
    font-weight: 700;
}

body.page-id-24405 .teacher-grid .teacher-role {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0 0 14px;
    color: #52635f;
    font-size: 14px;
    line-height: 1.6;
}

body.page-id-24405 .teacher-grid .teacher-location {
    margin: 0 0 16px;
    color: #345c56;
    font-size: 13px;
    line-height: 1.5;
}

body.page-id-24405 .teacher-grid .teacher-links {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
}

body.page-id-24405 .teacher-grid a.read-bio {
    justify-content: center;
    width: 100%;
    margin-top: 0;
    min-height: 44px;
    text-align: center;
}

@media (max-width: 1024px) {
    body.page-id-24405 .teacher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (max-width: 600px) {
    body.page-id-24405 .directory-container {
        padding: 12px 12px 32px;
    }

    body.page-id-24405 .teacher-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    body.page-id-24405 .teacher-grid .teacher-card {
        max-width: 420px !important;
        margin: 0 auto !important;
    }

    body.page-id-24405 .teacher-grid .teacher-image {
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-24405 .teacher-grid .teacher-card {
        transition: none;
    }

    body.page-id-24405 .teacher-grid .teacher-card:hover {
        transform: none;
    }
}

/* END AOA TEACHERS DIRECTORY — GRID REDESIGN V1 */

/* AOA TEACHERS DIRECTORY — COMPACT PORTRAITS V1 */

body.page-id-24405 .teacher-grid .teacher-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #f4f7f6;
}

body.page-id-24405 .teacher-grid .teacher-image img {
    width: 132px !important;
    height: 132px !important;
    max-width: 132px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 600px) {
    body.page-id-24405 .teacher-grid .teacher-image {
        height: 145px;
        padding: 12px;
    }

    body.page-id-24405 .teacher-grid .teacher-image img {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
    }
}

/* END AOA TEACHERS DIRECTORY — COMPACT PORTRAITS V1 */

/* =========================================================
   AOA TEACHERS DIRECTORY — SEARCH FILTER UI V1
   Staging: 2026-11-14
   ========================================================= */

body.page-id-24405 .aoa-teacher-directory__filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 12px 20px;
    align-items: end;
    margin-bottom: 18px;
    padding: 24px;
    background: #f4f8f6;
    border: 1px solid #dce8e3;
    border-radius: 14px;
}

body.page-id-24405 .aoa-teacher-directory__filters label {
    display: block;
    color: #174b47;
    font-size: 14px;
    font-weight: 600;
}

body.page-id-24405 .aoa-teacher-directory__filters label[for="aoa-teacher-search"] {
    grid-column: 1;
    grid-row: 1;
}

body.page-id-24405 .aoa-teacher-directory__filters label[for="aoa-teacher-location"] {
    grid-column: 2;
    grid-row: 1;
}

body.page-id-24405 #aoa-teacher-search,
body.page-id-24405 #aoa-teacher-location {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    color: #173e3a;
    background: #ffffff;
    border: 1px solid #b9cfca;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
}

body.page-id-24405 #aoa-teacher-search {
    grid-column: 1;
    grid-row: 2;
}

body.page-id-24405 #aoa-teacher-location {
    grid-column: 2;
    grid-row: 2;
}

body.page-id-24405 #aoa-teacher-search:focus-visible,
body.page-id-24405 #aoa-teacher-location:focus-visible {
    outline: 3px solid #80b8aa;
    outline-offset: 2px;
    border-color: #174b47;
}

body.page-id-24405 .aoa-teacher-directory__count {
    margin: 0 0 20px;
    color: #52635f;
    font-size: 14px;
}

body.page-id-24405 .aoa-teacher-directory__empty:not([hidden]) {
    padding: 24px;
    text-align: center;
    color: #52635f;
    background: #f4f8f6;
    border-radius: 10px;
}

@media (max-width: 767px) {
    body.page-id-24405 .aoa-teacher-directory__filters {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 18px;
    }

    body.page-id-24405 #aoa-teacher-search {
        margin-bottom: 12px;
    }
}

/* END AOA TEACHERS DIRECTORY — SEARCH FILTER UI V1 */

/* AOA TEACHER DIRECTORY — FILTER VISIBILITY FIX V1
   Ensure filtered-out cards stay hidden despite display:flex !important.
*/
body.page-id-24405 .teacher-grid .teacher-card[hidden] {
    display: none !important;
}

/* END AOA TEACHER DIRECTORY — FILTER VISIBILITY FIX V1 */

/* AOA STEP 1148: HORIZONTAL PRACTITIONER DIRECTORY */
.page-id-26531 .aoa-practitioner-directory {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.page-id-26531 .aoa-practitioner-directory__item {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 30px;
}

.page-id-26531 .aoa-practitioner-directory__item h3 {
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .page-id-26531 .aoa-practitioner-directory__item {
        padding: 20px;
    }
}
/* END AOA STEP 1148 */

/* AOA STEP 1177: PRACTITIONER MOBILE SPACING */
@media (max-width: 767px) {
    body.page-id-26531 .site-main {
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* END AOA STEP 1177 */

/* AOA staging teacher placeholder presentation.
   Only applies when the preview class is rendered. */
.aoa-single-teacher .aoa-teacher-profile-image--preview {
    width: min(240px, calc(100% - 40px));
    max-width: 240px;
    margin: 24px 32px 12px;
}

.aoa-single-teacher .aoa-teacher-profile-image--preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--aoa-border);
    border-radius: var(--aoa-radius);
}

@media (max-width: 767px) {
    .aoa-single-teacher .aoa-teacher-profile-image--preview {
        width: min(180px, calc(100% - 32px));
        max-width: 180px;
        margin: 20px 16px 12px;
    }
}

/* AOA teacher initial placeholder — staging preview only.
   This element is rendered only for staging fallback portraits. */
.aoa-single-teacher .aoa-teacher-initial-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    background-color: #244b4c;
    border: 1px solid var(--aoa-border);
    border-radius: var(--aoa-radius);
    color: #f1e9d8;
    font-family: var(--aoa-font-heading);
    font-size: clamp(72px, 8vw, 108px);
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 767px) {
    .aoa-single-teacher .aoa-teacher-initial-placeholder {
        font-size: 72px;
    }
}

/* AOA teacher introduction — staging editorial layout.
   Applies only when the staging initial placeholder is present. */
@media (min-width: 768px) {
    .aoa-single-teacher .aoa-teacher-introduction:has(
        .aoa-teacher-profile-image--preview
    )::after {
        content: "";
        display: table;
        clear: both;
    }

    .aoa-single-teacher .aoa-teacher-introduction:has(
        .aoa-teacher-profile-image--preview
    ) .aoa-teacher-profile-image--preview {
        float: left;
        margin: 32px 32px 20px;
    }

    .aoa-single-teacher .aoa-teacher-introduction:has(
        .aoa-teacher-profile-image--preview
    ) .aoa-teacher-biography {
        border-top: 0;
    }
}

@media (max-width: 767px) {
    .aoa-single-teacher .aoa-teacher-introduction
    .aoa-teacher-profile-image--preview {
        float: none;
    }
}

/* AOA teacher introduction — mobile border refinement.
   Only affects staging profiles using the initial placeholder. */
@media (max-width: 767px) {
    .aoa-single-teacher .aoa-teacher-introduction:has(
        .aoa-teacher-profile-image--preview
    ) .aoa-teacher-biography {
        border-top: 0;
    }
}

/* AOA Teacher Directory — staging initial placeholders.
   Only applies to the placeholder element rendered on staging. */
body.page-id-24405 .teacher-grid .aoa-teacher-directory-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: #244b4c;
    color: #f1e9d8;
    font-family: var(--aoa-font-heading);
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
}

body.page-id-24405 .teacher-grid .aoa-teacher-directory-initial span {
    display: block;
}

@media (max-width: 600px) {
    body.page-id-24405 .teacher-grid .aoa-teacher-directory-initial {
        flex-basis: 120px;
        width: 120px;
        height: 120px;
        font-size: 58px;
    }
}


/* =========================================================
   OBS062 - Shared Academy Legal Document Layout
   ========================================================= */

.aoa-legal-page {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: var(--aoa-surface);
    color: var(--aoa-text);
}

.aoa-legal-page .aoa-legal-hero {
    padding: 56px 0;
    background: linear-gradient(135deg, #edf3f0, #e3ede8);
    border-bottom: 1px solid var(--aoa-border);
    text-align: center;
}

.aoa-legal-page .aoa-legal-eyebrow {
    margin: 0 0 12px;
    color: var(--aoa-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.aoa-legal-page .aoa-legal-title {
    margin: 0;
    color: var(--aoa-text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.aoa-legal-page .aoa-legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    padding-block: 48px 64px;
}

.aoa-legal-page .aoa-legal-sidebar {
    position: sticky;
    top: 32px;
    min-width: 0;
}

.aoa-legal-page .aoa-legal-toc {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--aoa-border);
    border-radius: 8px;
}

.aoa-legal-page .aoa-legal-toc summary {
    color: var(--aoa-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
}

.aoa-legal-page .aoa-legal-toc ul {
    display: grid;
    gap: 2px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.aoa-legal-page .aoa-legal-toc li {
    margin: 0;
    padding: 0;
}

.aoa-legal-page .aoa-legal-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--aoa-text);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.aoa-legal-page .aoa-legal-toc a:hover,
.aoa-legal-page .aoa-legal-toc a:focus-visible {
    background: #edf3f0;
    color: var(--aoa-primary-dark);
}

.aoa-legal-page a:focus-visible,
.aoa-legal-page summary:focus-visible {
    outline: 2px solid var(--aoa-primary);
    outline-offset: 3px;
}

.aoa-legal-page .aoa-legal-document {
    width: 100%;
    min-width: 0;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--aoa-border);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(13, 89, 97, 0.04);
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.aoa-legal-page .aoa-legal-document h2 {
    margin: 32px 0 16px;
    padding-top: 26px;
    border-top: 1px solid var(--aoa-border);
    color: var(--aoa-text);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.35;
    scroll-margin-top: 32px;
    overflow-wrap: anywhere;
}

.aoa-legal-page .aoa-legal-document h3 {
    margin: 24px 0 12px;
    font-size: 20px;
    line-height: 1.4;
}

.aoa-legal-page .aoa-legal-document p {
    margin: 0 0 18px;
    line-height: 1.8;
}

.aoa-legal-page .aoa-legal-document ul,
.aoa-legal-page .aoa-legal-document ol {
    margin: 0 0 20px;
    padding-inline-start: 24px;
}

.aoa-legal-page .aoa-legal-document li {
    margin-bottom: 6px;
    line-height: 1.75;
}

.aoa-legal-page .aoa-legal-document a {
    color: var(--aoa-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.aoa-legal-page .aoa-legal-document hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--aoa-border);
}

/* Contain inherited Gutenberg and Extendify layouts. */

.aoa-legal-page .aoa-legal-document .alignfull,
.aoa-legal-page .aoa-legal-document .alignwide,
.aoa-legal-page .aoa-legal-document .wp-block-group {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}

.aoa-legal-page .aoa-legal-document .wp-block-group {
    padding: 0 !important;
    background: transparent !important;
}

.aoa-legal-page .aoa-legal-document .is-layout-constrained > * {
    max-width: 100% !important;
    margin-inline: 0 !important;
}

.aoa-legal-page .aoa-legal-document > :first-child,
.aoa-legal-page .aoa-legal-document .wp-block-group > :first-child {
    margin-top: 0;
}

.aoa-legal-page .aoa-legal-document > :last-child,
.aoa-legal-page .aoa-legal-document .wp-block-group > :last-child {
    margin-bottom: 0;
}

/* Suppress genuinely empty presentation blocks. */

.aoa-legal-page .aoa-legal-document p:empty,
.aoa-legal-page .aoa-legal-document li:empty {
    display: none;
}

@media (max-width: 1024px) {
    .aoa-legal-page .aoa-legal-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 850px;
        gap: 24px;
        padding-block: 32px 48px;
    }

    .aoa-legal-page .aoa-legal-sidebar {
        position: static;
    }

    .aoa-legal-page .aoa-legal-document {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    .aoa-legal-page .aoa-legal-hero {
        padding: 36px 0;
    }

    .aoa-legal-page .aoa-legal-eyebrow {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .aoa-legal-page .aoa-legal-layout {
        gap: 16px;
        padding-block: 24px 40px;
    }

    .aoa-legal-page .aoa-legal-toc {
        padding: 18px;
    }

    .aoa-legal-page .aoa-legal-toc a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .aoa-legal-page .aoa-legal-document {
        padding: 22px 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .aoa-legal-page .aoa-legal-document h2 {
        margin-top: 26px;
        padding-top: 22px;
        font-size: 22px;
        scroll-margin-top: 20px;
    }

    .aoa-legal-page .aoa-legal-document p {
        line-height: 1.75;
    }
}

/* END OBS062 - Shared Academy Legal Document Layout */


/* ==========================================================
   OBS-076 Shared Authentication UI
   Theme My Login and Academy Instructor Login
   ========================================================== */

body:is(
    .tml-action-login,
    .tml-action-register,
    .tml-action-lostpassword,
    .tml-action-resetpass,
    .page-id-24919
) #content.aoa-site-content {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 65vh;
    margin: 0 auto;
    padding: 64px 24px 72px;
    background: #f5f7f6;
}

body:is(
    .tml-action-login,
    .tml-action-register,
    .tml-action-lostpassword,
    .tml-action-resetpass,
    .page-id-24919
) #content .page-header {
    width: 100%;
    max-width: 460px;
    margin: 0 auto 24px;
    padding: 0;
    text-align: center;
}

body:is(
    .tml-action-login,
    .tml-action-register,
    .tml-action-lostpassword,
    .tml-action-resetpass,
    .page-id-24919
) #content h1.entry-title {
    margin: 0 auto 24px;
    color: #163f43;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

body:is(
    .tml-action-login,
    .tml-action-register,
    .tml-action-lostpassword,
    .tml-action-resetpass,
    .page-id-24919
) #content .tml {
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 36px;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    background: #fff;
    color: #163f43;
    box-shadow: 0 8px 32px rgba(22, 63, 67, .07);
    overflow-wrap: anywhere;
}

#content .tml form {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#content .tml .tml-field-wrap {
    margin: 0 0 20px;
}

#content .tml label {
    display: block;
    margin: 0 0 8px;
    color: #163f43;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

#content .tml input.tml-field:not([type="hidden"]) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #b6c7c4;
    border-radius: 6px;
    background: #fff;
    color: #163f43;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

#content .tml input.tml-field:focus {
    border-color: #0d5961;
    outline: 2px solid #0d5961;
    outline-offset: 2px;
}

#content .tml .tml-rememberme-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
}

#content .tml .tml-rememberme-wrap label {
    display: inline;
    margin: 0;
    cursor: pointer;
}

#content .tml input.tml-checkbox {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0d5961;
    cursor: pointer;
}

#content .tml .tml-button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid #0d5961;
    border-radius: 6px;
    background: #0d5961;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease;
}

#content .tml .tml-button:hover {
    border-color: #163f43;
    background: #163f43;
    color: #fff;
}

#content .tml :is(button, a, input[type="checkbox"]):focus-visible {
    outline: 2px solid #0d5961;
    outline-offset: 4px;
}

#content .tml ul.tml-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #dce5e2;
    list-style: none;
}

#content .tml .tml-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#content .tml .tml-links a {
    display: inline-block;
    padding: 6px 0;
    color: #0d5961;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#content .tml .tml-message,
#content .tml .tml-reg_passmail-wrap {
    color: #526663;
    font-size: 14px;
    line-height: 1.65;
}

#content .tml .tml-alerts:empty {
    display: none;
}

#content .tml .tml-alerts ul {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 6px;
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}

#content .tml .tml-alerts ul.tml-errors {
    border: 1px solid #e5b9b9;
    background: #fff3f3;
    color: #8b2929;
}

#content .tml .tml-alerts ul.tml-messages {
    border: 1px solid #b7d6c6;
    background: #eef8f2;
    color: #235b43;
}

@media (max-width: 767px) {
    body:is(
        .tml-action-login,
        .tml-action-register,
        .tml-action-lostpassword,
        .tml-action-resetpass,
        .page-id-24919
    ) #content.aoa-site-content {
        min-height: 60vh;
        padding: 36px 16px 48px;
    }

    body:is(
        .tml-action-login,
        .tml-action-register,
        .tml-action-lostpassword,
        .tml-action-resetpass,
        .page-id-24919
    ) #content .tml {
        padding: 24px;
        border-radius: 10px;
    }

    #content .tml ul.tml-links {
        gap: 8px 16px;
    }
}

@media (max-width: 359px) {
    body:is(
        .tml-action-login,
        .tml-action-register,
        .tml-action-lostpassword,
        .tml-action-resetpass,
        .page-id-24919
    ) #content .tml {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content .tml .tml-button {
        transition: none;
    }
}

/* End OBS-076 Shared Authentication UI */


/* OBS-081: Tutor LMS dashboard progress button accessibility */
body.tutor-screen-frontend-dashboard
.tutor-progress-card-actions
a.tutor-btn.tutor-btn-primary {
    color: #ffffff !important;
    background-color: #0d5961;
    border-color: #0d5961;
    min-height: 44px;
    height: auto;
    padding: 10px 16px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 6px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

body.tutor-screen-frontend-dashboard
.tutor-progress-card-actions
a.tutor-btn.tutor-btn-primary svg {
    color: inherit;
    flex-shrink: 0;
}

body.tutor-screen-frontend-dashboard
.tutor-progress-card-actions
a.tutor-btn.tutor-btn-primary:hover {
    color: #ffffff !important;
    background-color: #09454c;
    border-color: #09454c;
}

body.tutor-screen-frontend-dashboard
.tutor-progress-card-actions
a.tutor-btn.tutor-btn-primary:focus-visible {
    color: #ffffff !important;
    outline: 2px solid #0d5961;
    outline-offset: 3px;
}

/* FE16-A: Independent Contact page styling */

body.page-id-87 .aoa-contact-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

body.page-id-87 .aoa-contact-breadcrumb a {
    color: #1d484e;
    text-decoration: none;
}

body.page-id-87 .aoa-contact-breadcrumb a:hover {
    text-decoration: underline;
}

body.page-id-87 .elementor-element-e63222c
.elementor-icon-list-text {
    font-size: 18px;
    line-height: 1.6;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7 {
    width: 100%;
    max-width: 100%;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form .row > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form-control-wrap {
    display: block;
    max-width: 100%;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form :is(
    input[type="text"],
    input[type="email"],
    textarea
) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 2px solid #526568;
    border-radius: 10px;
    background: #fff;
    color: #212427;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form .wpcf7-list-item {
    margin: 0;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #1d484e;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid #1d484e;
    border-radius: 10px;
    background: #1d484e;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form input[type="submit"]:hover {
    background: #12383d;
    border-color: #12383d;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form :is(input, textarea, a):focus-visible,
body.page-id-87 .aoa-contact-breadcrumb a:focus-visible {
    outline: 2px solid #1d484e;
    outline-offset: 3px;
}

body.page-id-87 .elementor-element-8a3f247
.wpcf7-form .wpcf7-not-valid-tip {
    font-size: 14px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    body.page-id-87 .elementor-element-8a3f247
    .wpcf7-form .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    body.page-id-87 .elementor-element-e63222c
    .elementor-icon-list-text {
        font-size: 16px;
    }
}

/* END FE16-A: Independent Contact page styling */

/* FE16-B: Independent About Us breadcrumb */

body.page-id-2901 .aoa-about-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

body.page-id-2901 .aoa-about-breadcrumb a {
    color: #1d484e;
    text-decoration: none;
}

body.page-id-2901 .aoa-about-breadcrumb a:hover {
    text-decoration: underline;
}

body.page-id-2901 .aoa-about-breadcrumb a:focus-visible {
    outline: 2px solid #1d484e;
    outline-offset: 3px;
}

/* END FE16-B: Independent About Us breadcrumb */
