/* ============================================================================
   Section Page (Child) — page-child.php
   Ported from monash-arts-r React app:
     - _container-pages.scss
     - _content-pages.scss
     - ResourcesTipsPage.tsx (preview block + item-list pattern)
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap");

/* Fonts — duplicated from home.css so this template stands alone. */
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/AlbertSans-Black.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

.monash-child {
	--monash-blue: #006dae;
	--blue-2: #aed2e7;
	--cream: #ffffef;
	--dark: #000;
	--charcoal: #2c2c2c;
	font-family: "Albert Sans", sans-serif;
	color: var(--dark);
	padding: 4.125rem 20px; /* 66 30 */
    overflow: hidden auto;
    overscroll-behavior: contain;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
	.monash-child {
    height: 100dvh;
	}
}
.monash-child * {
	box-sizing: border-box;
}
.monash-child ul {
	padding-left: 1.5rem;
	margin: 0;
	list-style-type: disc;
}
.monash-child a {
	color: inherit;
}
.mq-result__list{

    font-family: var(--font-family);
}

/* --- Background variants (container-pages--bg-*) ----------------------------- */
.monash-child--bg-cream {
	background-color: var(--cream);
}
.monash-child--bg-blue {
	background-color: var(--monash-blue);
	color: var(--cream);
}

/* --- Inner content block (content-pages) ------------------------------------- */
.monash-child__content {
	margin: 0 auto;
	width: 469px;
	max-width: 100%;
}

.monash-child__content h1,
.monash-child__content h2 {
	text-align: center;
	font-size: 28px; /* 28 */
	font-weight: 700;
	margin: 0 0 4.6875rem; /* 75 */
}

.monash-child__content h3 {
	text-align: center;
	font-family: "Rethink Sans", sans-serif;
	font-size: 27px; /* 24 */
	font-weight: 700;
	margin: 26px 0; /* 75 25 */
	color: #006dae;
}
.page-template-page-child .monash-child__content h3 {
	font-size: 20px;
	text-align: left;
}
.monash-child__content p {
	font-size: 16px; /* 18 */
	line-height: 1;
	margin: 0 0 1lh;
    font-family: var(--font-family);
    font-weight: 300;
    line-height: 138%;
    color: var(--black);
}

.monash-child__content p:last-of-type {
	margin-bottom: 0;
}
.mq-study-content.fancybox__content {
    max-width: 28rem;
    padding: 2rem 1.75rem;
    text-align: left;
    border-radius: 1.5rem;
}
.monash-child__content a {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-transform: capitalize;
    /* margin-bottom: 1lh; */
    /* max-width: 238px; */
    font-size: 16px;
    font-weight: 800;
    text-decoration: unset;
}
#fancybox-1  .fancybox__nav{
	display: none;
}

.monash-child__content a + p {
	margin-bottom: 2.3125rem; /* 37 */
}

.monash-child__content .monash-child__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 14px ;

	background: linear-gradient(to bottom, #5ca6d3 0%, #4f98c4 100%);

	color: #fff !important;

	font-size: 18px;
	font-weight: 300;
	text-transform: uppercase;
	text-decoration: none !important;

	border-radius: 10px;

	border: 2px solid #2f78a7;

	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.25),
		0 10px 0 #005b97;

	transition:
		transform 0.1s ease,
		box-shadow 0.1s ease;

	position: relative;
	margin-top: 20px;
    font-family: var(--font7);
}

.monash-child__content .monash-child__btn:hover {
	transform: translateY(3px);

	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.25),
		0 7px 0 #005b97;
}

.monash-child__content .monash-child__btn:active {
	transform: translateY(6px);

	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.25),
		0 4px 0 #005b97;
}

.monash-child__content ul {
	display: flex;
	flex-direction: column;
    row-gap: 9px;
    margin: 10px 0;
}

.monash-child__content li::marker {
	font-size: 0.9375rem; /* 15 */
}

/* --- Item-list block (h4 + p inside a li) ----------------------------------- */
.monash-child__item {
	display: flex;
	flex-direction: column;
	row-gap: 1lh;
}

.monash-child__item h4 {
	margin: 0;
	font-family: "Rethink Sans", sans-serif;
	font-size: 15px; /* 15 */
	font-style: italic;
	font-weight: 600;
	color: #121256;
}

.monash-child__item p {
	margin: 0;
	font-family: "Rethink Sans", sans-serif;
	font-size: 16px; /* 16 */
	line-height: 1.18;
	font-weight: 400;
	color: #006dae;
}

/* --- Preview header (h2 + image + decoration squiggly) ---------------------- */
.monash-child__preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding-block: 1.25rem; /* 20 */
}

.monash-child__preview h1 {
	padding: 36px 0 8px 0;
	color: #006dae;
}
.monash-child__preview h1,
.monash-child__preview h2 {
	margin-bottom: 0;
}

.monash-child__preview img {
	max-width: 100%; /* 360 */
	width: auto;
	height: auto;
}

.monash-child__preview svg {
	max-width: 100%;
	width: 80%;
	height: auto; /* 8 */
	fill: currentColor;
}

/* --- Title-color variants (content-pages--blue-title / --cream-title) ------- */
.monash-child--blue-title .monash-child__preview,
.monash-child--blue-title .monash-child__content h1,
.monash-child--blue-title .monash-child__content h2,
.monash-child--blue-title .monash-child__content h3 {
	color: var(--monash-blue);
}

.monash-child--blue-title .monash-child__content h3 {
	margin-top: 4rem; /* 64 */
}

.monash-child--blue-title .monash-child__content h3:first-of-type {
	margin-top: 1.375rem; /* 22 */
}

.monash-child--blue-title .monash-child__content p {
	color: var(--charcoal);
}
.monash-child--blue-title .monash-child__content li::marker {
	color: var(--blue-2);
}
.monash-child--blue-title .monash-child__item h4 {
	color: var(--blue-2);
}
.monash-child--blue-title .monash-child__item p {
	color: var(--monash-blue);
}

.monash-child--cream-title {
	color: var(--cream);
}

/* --- Center alignment helper ------------------------------------------------ */
.monash-child--center .monash-child__content {
	text-align: center;
}

.monash-child__back-to-top {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 3rem 0 0;
    color: #006dae;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    font-family: "Rethink Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;

    margin-right: auto;
    margin-left: auto;
    align-content: center;
}

.monash-child__back-to-top svg {
	display: block;
	width: 3.125rem;
	height: 3.1875rem;
}

.monash-child__back-to-top:hover {
	opacity: 0.92;
}

.monash-child__back-to-top:focus-visible {
	outline: 2px solid #006dae;
	outline-offset: 4px;
	border-radius: 0.375rem;
}

/* ============================================================================
   Stories block — horizontal scroll-snap card list.
   Ported from React SwiperStories + CardStories. Full-bleed, breaks out of
   the .monash-child__content max-width via negative margin.
   ============================================================================ */

.monash-stories {
	--card-w: 100%;
	--light-blue: #7bd3ff;
	--grey-800: #2c2c2c;

	margin: 3.125rem -20px 2.3125rem; /* full-bleed: cancels .monash-child padding-inline */
	padding-block: 0;
	color: var(--cream);
	outline: none;
}

.monash-stories__track {
	display: flex;
	gap: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	-webkit-overflow-scrolling: touch;
	padding-inline: 0;
	padding-block: 0;
	cursor: grab;
	scrollbar-width: none;
	touch-action: pan-y;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
}
.monash-stories__track:active {
	cursor: grabbing;
}
.monash-stories__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}
.monash-stories__track::-webkit-scrollbar {
	display: none;
}

.monash-stories__card-wrap {
	flex: 0 0 var(--card-w);
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
}

.monash-stories__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 1.5rem 1.5rem 1.625rem;
    border-radius: 0;
	background-color: var(--grey-800);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: hidden;
	text-align: left;
	color: var(--cream);
	isolation: isolate;
}

.monash-stories__card--no-thumb {
	background-image:
		radial-gradient(
			circle at 30% 20%,
			rgba(255, 170, 80, 0.45),
			transparent 45%
		),
		linear-gradient(140deg, #404040 0%, #232323 60%, #1a1a1a 100%);
}

.monash-stories__card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(20, 20, 20, 0.85) 0%,
		rgba(20, 20, 20, 0.36) 50%,
		rgba(22, 22, 22, 0.06) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.monash-stories__panel {
	position: relative;
	z-index: 2;
}
.monash-stories__panel,
.monash-stories__cta {
	position: relative;
}
.monash-stories__panel {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.875rem;
	min-height: min(70vh, 45rem);
	padding: 1.8rem 1.5rem;
	border: 2px solid rgba(132, 216, 255, 0.95);
	border-radius: 1.75rem;
}

.monash-stories__panel::after {
	content: "";
	position: absolute;
	inset: 2px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: inherit;
	pointer-events: none;
	opacity: 1;
}

.monash-stories__top h4 {
	margin: 0 0 0.625rem;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.04;

	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.monash-stories__top p {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	color: #fff;
	line-height: 1.3;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.monash-stories__decor {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 8px;
	fill: var(--light-blue);
	margin: 0.125rem 0;
}

.monash-stories__bottom h5 {
	margin: 0 0 0.625rem;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.08;
	max-width: 13rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.monash-stories__bottom p {
	margin: 0;
	font-size: 16px;
	color: #fff;
	font-weight: 400;
	line-height: 22px;
	max-width: 16.5rem;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.monash-stories__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.monash-stories__dot {
	width: 0.5625rem;
	height: 0.5625rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	border: 0;
	padding: 0;
	cursor: pointer;
	appearance: none;
}

.monash-stories__dot.is-active {
	background: rgba(255, 255, 255, 0.96);
}

.monash-stories__cta {
	position: relative;
	display: block;
	align-self: center;
    width: min(100%, 16.75rem);
	margin-top: 0.75rem;
	padding: 1.2rem 1.5rem;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 1rem;
	font-family: "Roboto", sans-serif;
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	color: #fff;
	text-shadow: none;
	overflow: visible;
	cursor: pointer;
	transition: all 0.2s;
    font-family: var(--font-family);
}

.monash-stories__cta-shadow {
    position: absolute;
    display: block;
    width: calc(100% + 4px);
    height: 18px;
    bottom: -10px;
    left: -2px;
    z-index: -1;
    pointer-events: none;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg width='238' height='18' viewBox='0 0 238 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0C2.0834e-08 5.15465 3.5 9.33333 9.84058 9.33333H230.697C233.055 9.33333 237.376 6.48853 238 2.5988V9.33333C238 13.8437 234.5 17.5 229.973 17.5H9.19384C6.69355 17.5 0 13.8437 0 9.33333V0Z' fill='%23E9E9CF' fill-opacity='0.26'/%3E%3C/svg%3E%0A");
    background-size: cover;
    background-position: bottom;
}

.monash-stories__ctabtn {
    position: relative;
    z-index: 9;
    display: flex;
    margin: 40px 0;
    justify-content: center;
}
.monash-stories__cta:active,
.monash-stories__cta.is-pressed {
	transform: translateY(6px);
}
.monash-stories__cta:active .monash-stories__cta-shadow,
.monash-stories__cta.is-pressed .monash-stories__cta-shadow {
	bottom: -4px;
}

.monash-stories:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 4px;
}

/* When the page is on a blue background, swap the stories block edges
   so it still bleeds full-width. */
.monash-child--bg-blue .monash-stories,
.monash-child--bg-cream .monash-stories {
	margin-inline: -1.875rem;
}

/* ============================================================================
   Accordion block — Degree Structure dropdown (about-the-ba) etc.
   ============================================================================ */
.monash-accordion-card {
	margin: 1.5rem 0 2.3125rem;
	padding: 1.875rem 1.25rem 1.25rem;
	background: #006dae;
	color: var(--cream);
	border: 1.5px solid var(--monash-blue);
	border-radius: 2rem;
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 239, 0.6);
}

.monash-accordion-card__heading {
	margin: 0 0 1rem !important;

	font-size: clamp(1.625rem, 4vw, 2rem) !important;
	line-height: 1.12;
	color: var(--cream) !important;
}

.monash-accordion {
	display: flex;
	flex-direction: column;
	row-gap: 0.3125rem;
	margin: 0;
}

.monash-accordion__item {
	position: relative;
	padding-bottom: 0.3125rem;
}

.monash-accordion__item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: url("../images/why-arts/accordion-divider.svg") center / 100%
		2px no-repeat;
	opacity: 0.95;
	pointer-events: none;
}

.monash-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.625rem 0;

	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.monash-accordion__summary::-webkit-details-marker {
	display: none;
}

.monash-accordion__title {
	flex: 1;
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.monash-accordion__icon {
	flex: 0 0 1.125rem;
	width: 1.125rem;
	height: 1.125rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.monash-accordion__icon::before {
	content: "";
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.2s ease;
}

.monash-accordion__item[open] .monash-accordion__icon::before {
	transform: rotate(-135deg) translateY(-1px);
}

.monash-accordion__body {
	padding: 0.0625rem 0 0.5625rem;
}

.monash-accordion__body p {
	line-height: 1.2;
	margin: 0 0 0.625rem;
	color: var(--cream) !important;
}

.monash-accordion__body p:last-child {
	margin-bottom: 0;
}

/* ============================================================================
   Links block — Useful Links page (label + description rows).
   ============================================================================ */
.monash-links {
	display: flex;
	flex-direction: column;
	row-gap: 0.5rem;
	margin: 1.5rem 0 2.3125rem;
	align-items: center;
	color: #006dae;
}

.monash-links a,
.monash-links__label {
	display: inline-block;
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin: 1.5rem 0 0.25rem;
}

.monash-links a:first-child,
.monash-links__label:first-child {
	margin-top: 0;
}

.monash-links p {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	line-height: 1.4;
}

.monash-child--blue-title .monash-links a,
.monash-child--blue-title .monash-links__label {
	color: var(--monash-blue);
}
.monash-child--cream-title .monash-links a,
.monash-child--cream-title .monash-links__label {
	color: var(--cream);
}

/* ============================================================================
   Archetype block — image + title cards that expand on click.
   ============================================================================ */

.monash-archetype {
	display: flex;
	flex-direction: column;
	margin: 1rem 0 2rem;
}

.monash-archetype__item {
	border-bottom: 1px solid rgba(0, 109, 174, 0.15);
}
.monash-archetype__item:first-child {
	border-top: 1px solid rgba(0, 109, 174, 0.15);
}

.monash-archetype__summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem 0 1rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
	text-align: center;
}
.monash-archetype__summary::-webkit-details-marker {
	display: none;
}

.monash-archetype__img {
	width: 11rem;
	height: 11rem;

	object-fit: cover;
	flex-shrink: 0;
}
.monash-archetype__img--placeholder {
	background: rgba(0, 109, 174, 0.08);
}

/* Title + chevron on the same row, centered */
.monash-archetype__name {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.monash-archetype__title {
	text-transform: uppercase;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 22px;
    text-align: center;
	/* color set inline per-card */
}

/* Chevron — two short lines forming a "v" */
.monash-archetype__chevron {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	position: relative;
}
.monash-archetype__chevron::before,
.monash-archetype__chevron::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 10px;
	height: 1.5px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s ease;
}
.monash-archetype__chevron::before {
	right: calc(30%);
	transform: translateY(-50%) rotate(45deg);
}
.monash-archetype__chevron::after {
	left: calc(40%);
	transform: translateY(-50%) rotate(-45deg);
}
.monash-archetype__item[open] .monash-archetype__chevron::before {
	transform: translateY(-50%) rotate(-45deg);
}
.monash-archetype__item[open] .monash-archetype__chevron::after {
	transform: translateY(-50%) rotate(45deg);
}

.monash-archetype__body {
	padding: 0.5rem 0 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--charcoal, #2c2c2c);
}
.monash-archetype__body > * {
	margin-top: 0;
}
.monash-archetype__body p {
	margin: 0 0 0.6rem;
}
.monash-archetype__body h3,
.monash-archetype__body h4 {
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 1rem 0 0.35rem;
}
.monash-archetype__body ul,
.monash-archetype__body ol {
	padding-left: 1.25rem;
	margin: 0 0 0.6rem;
}
.monash-archetype__body li {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.monash-archetype__body a {
	text-decoration: underline;
}

/* Variant overrides — so archetype looks right on all page backgrounds */
.monash-child--bg-blue .monash-archetype__item {
	border-color: rgba(255, 255, 239, 0.2);
}
.monash-child--bg-blue .monash-archetype__title {
	color: var(--cream);
}
.monash-child--bg-blue .monash-archetype__chevron::before,
.monash-child--bg-blue .monash-archetype__chevron::after {
	background: var(--cream);
}
.monash-child--bg-blue .monash-archetype__body {
	color: var(--cream);
}

.monash-child--blue-title .monash-archetype__title {
	color: var(--monash-blue);
}

/* ── Accent colors per archetype code ─────────────────────────────────── */
.mq-result--A .monash-archetype__title,
.mq-result--A .monash-archetype__chevron { color: var(--secondary-yellow); }
.mq-result--B .monash-archetype__title,
.mq-result--B .monash-archetype__chevron { color: var(--secondary-forest); }
.mq-result--C .monash-archetype__title,
.mq-result--C .monash-archetype__chevron { color: var(--light-red); }
.mq-result--D .monash-archetype__title,
.mq-result--D .monash-archetype__chevron { color: var(--secondary-ruby); }

.mq-result--A .monash-archetype__body a { color: var(--secondary-yellow); }
.mq-result--B .monash-archetype__body a { color: var(--secondary-forest); }
.mq-result--C .monash-archetype__body a { color: var(--light-red); }
.mq-result--D .monash-archetype__body a { color: var(--secondary-ruby); }

.fancybox__content { border-radius: 1.5rem; }

/* ── Study-area FancyBox inline content ───────────────────────────────── */
.mq-study-content {
	display: none;
	max-width: 28rem;
	padding: 2rem 1.75rem;
	text-align: left;
}
.mq-study-content__title {
	font-size: 24px;
	font-weight: 700;
	color: var(--monash-blue);
	margin: 0 0 1.25rem;
}
.mq-study-content__text {
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	margin: 0;
}
