/* Stylesheet Overall */

/* Fonts */
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("../fonts/atkinson-hyperlegible-next.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* Design Variables */
:root {
    /* Colours */
    --ink: #221a3a;
    --jacaranda: #5a3e9e;
    --muted: #4e4566;
    --lilac: #e2d9f3;
    --petal: #eee8f8;
    --white: #ffffff;
    --gray: #4d4646;
    --lightgray: #CCCCCC;
    --glow-1: rgb(90 62 158 / 22%);
    --glow-2: rgb(140 111 209 / 30%);

    /* Fonts */
    --font-heading: "Newsreader", Georgia, serif;
    --font-body: "Atkinson Hyperlegible Next", system-ui, sans-serif;

    /* Font sizes */
    --text-small: 0.9375rem;
    --text-body: 1.125rem;
    --text-large: clamp(1.25rem, 1rem + 1vw, 1.5rem);
    --text-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    --text-h2: clamp(2.5rem, 2rem + 2vw, 4rem);
    --text-h1: clamp(3.5rem, 2rem + 6vw, 9rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --space-xl: clamp(3rem, 2rem + 4vw, 6rem);

    /* Page widths */
    --content: 760px;
    --wide: 1320px;
    --gutter: clamp(1.25rem, 5vw, 5rem);
    --radius: 1.5rem;
    --popup-width: 700px;
    --popup-padding: 2.5rem;
    --popup-radius: 24px;
    --popup-background: #ffffff;
    --popup-color: #9374db;
    --popup-speed: 0.3s;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* Base elements */
body {
    background-color: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 {
    font-size: var(--text-h1);
    line-height: 0.92;
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
    font-weight: 500;
}

p {
    text-wrap: pretty;
}

a {
    color: var(--jacaranda);
}


/* Keyboard focus */
:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Layout helpers */

/* Container */
.container {
    width: min(100% - 2 * var(--gutter), var(--wide));
    margin-inline: auto;
}

.container--narrow {
    width: min(100% - 2 * var(--gutter), var(--content));
}

/* Stack spacing */
.stack > * + * {
    margin-top: var(--space-m);
}

/* Section spacing */
.section {
    padding-block: var(--space-xl);
}

/* Grid layout */
.grid {
    display: grid;
    gap: var(--space-l);
}

/* Components */

/* Buttons */
.btn {
    background-color: var(--jacaranda);
    border-radius: 999px;
    border-width: 0;
    color: var(--white);
    font-family: inherit;
    font-style: inherit;
    font-weight: 700;
    letter-spacing: inherit;
    line-height: 1.6;
    padding-top: 0.75rem;
    padding-right: 1.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1.75rem;
    text-decoration: none;
    text-transform: inherit;
}

.btn:hover {
    background-color: var(--ink);
    color: var(--white);
}

.btn-outline {
    background: transparent none;
    background-color: transparent;
    background-color: transparent;
    border-color: var(--jacaranda);
    border-width: 2px;
    font-weight: 700;
    border-style: solid;
    border-radius: 999px;
    color: var(--jacaranda);
    padding-top: calc(0.75rem - 2px);
    padding-right: calc(1.75rem - 2px);
    padding-bottom: calc(0.75rem - 2px);
    padding-left: calc(1.75rem - 2px);
    text-decoration: none;
    text-transform: inherit;
    height: 3.2rem;
}

.btn-outline:hover {
    background-color: var(--ink);
    color: var(--white);
}

.btn {
    display: inline-block;
    flex-wrap: wrap;
    gap: var(--space-s);
}

/* Header section */
.site-header {
    padding-block: var(--space-s);
    width: 100%;
}

.site-header #header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--wide);
    margin: 0 auto;
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav ul li {
    display: flex;
    list-style: none;
}

nav ul li a {
    display: flex;
    list-style: none;
    text-decoration: none;
    font-weight: 600;
    color: black;
}

nav ul li a.btn:hover {
    background-color: black;
}

.site-nav {
    display: none;
}

#here-buttons {
    display: flex;
    max-width: var(--wide);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Mobile tab bar */
.tab-bar {
    position: fixed;
    z-index: 50;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    display: flex;
    padding: 0.375rem;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: 0 0 0 1px var(--lilac), 0 8px 32px rgb(34 26 58 / 18%);
}

.tab-bar a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    border-radius: 1.125rem;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

/* Tab bar spacing */
body {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

/* Hero section */
#hero {
    display: grid;
    gap: var(--space-l);
}

.hero__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 200px 16px 16px 16px;
}

/* Course rows */
.course {
    display: grid;
    gap: var(--space-s);
    padding-block: var(--space-l);
    border-bottom: 1px solid var(--lilac);
}

/* Responsive layouts */

/* Tablet navigation */
@media (min-width: 600px) {
    body {
        padding-bottom: 0;
    }

    .tab-bar {
        display: none;
    }

    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-nav {
        display: flex;
        gap: var(--space-m);
    }

    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop layouts */

/* Hero section */
#hero {
    grid-template-columns: 58fr 42fr;
    align-items: center;
    width: var(--wide);
    margin: 3rem auto;
    padding-block: 3rem;
    gap: 7rem;
}

.profile-details {
    position: relative;
    width: 100%;
    isolation: isolate;
    margin: 0 28px 28px 0;
}

.profile-details p {
    margin-top: 2rem;
    font-family: var(--font-body) !important;
    font-size: var(--text-h3) !important;
    color: var(--gray) !important;
}

.profile-image {
    position: relative;
    width: 100%;
    max-width: 350px;
    isolation: isolate;
    margin: 0 28px 28px 0;
}

.profile-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 350 / 437;
    object-fit: cover;
    border-radius: 200px 16px 16px 16px;
}

.profile-image::before {
    content: "";
    position: absolute;
    inset: 28px -28px -28px 28px;
    background-color: #543a96;
    border-radius: 200px 16px 16px 16px;
    z-index: -1;
}

.profile-image::after {
    content: "";
    position: absolute;
    top: -52px;
    right: -160px;
    width: 155px;
    height: 175px;
    background-image: url("/assets/images/petals.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

/* About us section */
#aboutus {
    position: relative;
    overflow: hidden;
    background-color: #eee8f6;
    background-image: 
    radial-gradient(
        ellipse at 12% 18%,
        var(--glow-1) 0%,
        transparent 38%
    ),
    radial-gradient(
        ellipse at 88% 85%,
        var(--glow-2) 0%,
        transparent 42%
    );
}

#aboutus .aboutus-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    align-items: baseline;
    width: var(--wide);
    margin: 2rem auto;
    padding-block: 7rem;
    gap: 7rem;
}

#aboutus .aboutus-details p {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(255,255,255,0.5);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.7);
    font-family: var(--font-body);
    font-size: var(--text-h3);
    color: var(--gray);
}

#aboutus .aboutus-petals {
    position: absolute;
    bottom: -3rem;
    left: -3rem;
    background-size: 100%;
    width: 300px;
    height: 300px;
    background-repeat: no-repeat;
    background-image: url("/assets/images/petals.svg");
    rotate: -20deg;
    opacity: 0.4;
}

/* Courses section */
#courses {
    position: relative;
    overflow: hidden;
}

#courses .courses-list {
    display: block;
    align-items: baseline;
    width: var(--wide);
    margin: 2rem auto;
    padding-block: 7rem;
    gap: 7rem;
}

#courses .courses-list article {
    display: flex;
    margin-top: 2rem;
    padding-block: 3rem;
    border-bottom: 2px solid var(--lilac);
    gap: 2rem;
    align-items: center;
}

#courses .courses-list article.topborder {
    border-top: 2px solid var(--gray);
    margin-top: 3rem;
}

#courses .courses-list article h3 {
    font-size: 2rem;
    font-weight: bold;
}

#courses .courses-list article .article-space {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

#courses .courses-list article span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    background-color: #EEE8F8;
    font-size: var(--text-small);
    font-weight: 600;
    height: 2.5rem;
}

#courses .courses-list article span:before {
    content: "";
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    background-color: #4F3984;
    mask: url("/assets/images/calendar.svg") center / contain no-repeat;
    -webkit-mask: url("/assets/images/calendar.svg") center / contain no-repeat;
}

/* Contact us section */
#contactus {
    position: relative;
    overflow: hidden;
    background: #5A3E9E;
    background: linear-gradient(90deg,rgba(90, 62, 158, 1) 0%, rgba(90, 62, 158, 1) 100%);
}

#contactus .contactus-petals {
    position: absolute;
    bottom: -3rem;
    left: -3rem;
    background-size: 100%;
    width: 300px;
    height: 300px;
    background-repeat: no-repeat;
    background-image: url("/assets/images/petals.svg");
    rotate: -20deg;
}

#contactus .contactus-details {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width: var(--wide);
    margin: 2rem auto;
    padding-block: 10rem;
}

#contactus .contactus-details h2 {
    color: white;
}

#contactus .contactus-details a {
    color: white;
    font-size: 6rem;
    font-weight: bold;
}

/* FAQ section */
#faq {
    display: block;
    padding-block: clamp(3rem, 6vw, 6rem);
    background-color: #F5F1FA;
    padding-block: 7rem;
}

#faq-title {
    text-align: left;
    margin-bottom: 2.5rem;
}

/* FAQ container */
.faq-list {
    --faq-color: #4F3984;
    --faq-text: #302342;
    --faq-background: #FFFFFF;
    --faq-active-background: #EEE8F8;
    --faq-border: #DDD4E9;
    --faq-radius: 16px;
    --faq-padding: 1.5rem;
    --faq-speed: 0.3s;
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: var(--wide);
    margin-inline: auto;
}

/* FAQ item */
.faq-item {
    background: var(--faq-background);
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-radius);
    overflow: hidden;
    transition: 
    background-color var(--faq-speed) ease,
    border-color var(--faq-speed) ease;
}

/* FAQ question */
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: var(--faq-padding);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--faq-text);
    cursor: pointer;
    list-style: none;
}

/* Default marker */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

/* Plus icon */
.faq-item summary::after {
    content: "";
    display: block;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--faq-active-background);
    background-image: 
    linear-gradient(var(--faq-color), var(--faq-color)),
    linear-gradient(var(--faq-color), var(--faq-color));
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 2px, 2px 12px;
    transition: background-color var(--faq-speed) ease;
}

/* Open state */
.faq-item[open] {
    background-color: var(--faq-active-background);
    border-color: #C8B7E3;
}

/* Minus icon */
.faq-item[open] summary::after {
    background-color: var(--faq-color);
    background-image: 
    linear-gradient(#FFFFFF, #FFFFFF);
    background-size: 12px 2px;
}

/* FAQ answer */
.faq-answer {
    padding: 0 var(--faq-padding) var(--faq-padding);
    color: var(--faq-text);
    font-size: 1rem;
    line-height: 1.8;
}

.faq-answer p {
    margin: 0;
}

.faq-answer a {
    color: var(--faq-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Opening animation */
.faq-item[open] .faq-answer {
    animation: faq-open var(--faq-speed) ease both;
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover state */
@media (hover: hover) {
    .faq-item:hover {
        border-color: var(--faq-color);
    }
}

/* Keyboard focus */
.faq-item summary:focus-visible {
    outline: 2px solid var(--faq-color);
    outline-offset: -4px;
    border-radius: var(--faq-radius);
}

/* Mobile FAQ */
@media (max-width: 767px) {
    .faq-list {
        --faq-padding: 1rem;
        --faq-radius: 12px;
        gap: 0.75rem;
    }

    .faq-item summary {
        gap: 1rem;
    }

    .faq-item summary::after {
        width: 1.75rem;
        height: 1.75rem;
    }

    .faq-answer {
        font-size: 0.9375rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item summary::after {
        transition: none;
    }

    .faq-item[open] .faq-answer {
        animation: none;
    }
}

/* Footer section */
footer#site-footer {
    display: block;
    width: 100%;
    padding-block: 2rem;
}

#site-footer .site-footer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1320px;
    margin: 0 auto;
}

#site-footer .site-footer-details a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 3rem;
}

/* Icon background */
#site-footer .site-footer-details a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #9374db;
    border-radius: 50%;
}

/* Arrow icon */
#site-footer .site-footer-details a::after {
    content: "";
    position: absolute;
    left: 0.625rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #ffffff;
    mask: url("/assets/images/icon-arrow-up.svg") center / contain no-repeat;
}

/* Course popup */
.popup {
    position: fixed;
    inset: 0;
    display: none !important;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 20px;
    border: 0;
    background: transparent;
    color: inherit;
    box-sizing: border-box;
}

.popup[popover]:popover-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.popup:popover-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.popup:popover-open .popup-window {
    animation: popup-open 0.3s ease both;
}

.popup::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

body: has(.popup:popover-open) {
    overflow: hidden;
}

.popup h3 {
    margin-top: 2rem;
}

.popup span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 999px;
    background-color: #EEE8F8;
    font-size: var(--text-small);
    font-weight: 600;
    height: 2.5rem;
    margin-bottom: 1rem;
}

.popup span:before {
    content: "";
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    background-color: #4F3984;
    mask: url("/assets/images/calendar.svg") center / contain no-repeat;
    -webkit-mask: url("/assets/images/calendar.svg") center / contain no-repeat;
}

/* Popup window */
.popup-window {
    position: relative;
    width: 100%;
    max-width: var(--popup-width);
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--popup-background);
    padding: var(--popup-padding);
    border-radius: var(--popup-radius);
    box-shadow: 0 20px 60px rgb(0 0 0 / 15%);
}

/* Close button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #eee8f6;
    color: var(--popup-color);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    transition: *background* 0.3s, color 0.3s;
}

.popup-close:hover {
    background: var(--popup-color);
    color: #ffffff;
}

/* Popup content */
.popup-window > h2:first-of-type {
    padding-right: 45px;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.btnspace {
    margin-top: 2rem;
}

/* Mobile popup */
@media (max-width: 767px) {
    .popup {
        --popup-padding: 1.5rem;
        --popup-radius: 16px;
        padding: 15px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .popup,
    .popup-window {
        transition: none;
    }
}

/* Mobile profile */
@media (max-width: 767px) {
    .profile-image {
        max-width: 280px;
    }

    .profile-image::before {
        inset: 20px -20px -20px 20px;
    }

    .profile-image::after {
        width: 70px;
        height: 90px;
        top: -20px;
        right: -50px;
    }

    #aboutus .aboutus-details {
        grid-template-columns: 1fr;
    }
}

.course {
    grid-template-columns: 3fr 2fr;
    align-items: center;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Sticky header */
.site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px); /* Admin bar offset */
    z-index: 40;
    border-bottom: 1px solid transparent;
    background-color: var(--white);
}

/* Anchor offset */
html {
    scroll-padding-top: 6rem;
}

/* Header scroll animation */
@supports (animation-timeline: scroll()) {
    .site-header {
        animation: header-line linear both;
        animation-timeline: scroll();
        animation-range: 0 80px;
    }
}

@keyframes header-line {
    to {
        border-bottom-color: var(--lightgray);
    }
}

/* Tablet and mobile */
@media (max-width: 1199px) {
    #hero,
    #aboutus .aboutus-details,
    #courses .courses-list,
    #contactus .contactus-details,
    #site-footer .site-footer-details {
        width: 90%;
        margin-inline: auto;
    }

    #hero {
        display: grid;
        grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
        gap: 3rem;
        padding-block: 3rem;
    }

    .profile-details {
        margin: 0;
    }

    .profile-details p {
        font-size: 1.25rem !important;
        margin-top: 1.5rem;
    }

    .profile-image {
        width: calc(100% - 20px);
        max-width: 300px;
        margin: 0 20px 20px 0;
    }

    .profile-image::before {
        inset: 20px -20px -20px 20px;
    }

    .profile-image::after {
        width: 70px;
        height: 90px;
        top: -25px;
        right: -10px;
    }

    /* About us section */
    #aboutus .aboutus-details {
        grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
        padding-block: 4rem;
        gap: 2rem;
    }

    #aboutus .aboutus-details p {
        font-size: 1.25rem;
    }

    #aboutus .aboutus-petals {
        width: 180px;
        height: 180px;
    }

    /* Courses section */
    #courses .courses-list {
        padding-block: 4rem;
    }

    #courses .courses-list article {
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 1rem;
        padding-block: 2rem;
    }

    #courses .courses-list article .article-space {
        flex: 1 1 100%;
    }

    #courses .courses-list article h3 {
        font-size: 1.5rem;
    }

    #courses .courses-list article span {
        height: auto;
        min-height: 2.5rem;
    }

    #courses .courses-list article span::before {
        flex-shrink: 0;
    }

    /* Contact us section */
    #contactus .contactus-details {
        padding-block: 6rem;
    }

    #contactus .contactus-details a {
        font-size: clamp(2rem, 5vw, 4rem);
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    #contactus .contactus-petals {
        width: 200px;
        height: 200px;
    }

    /* FAQ section */
    #faq {
        padding-block: 4rem;
        padding-inline: 5%;
    }

    .faq-list {
        max-width: 100%;
    }

    /* Footer section */
    #site-footer .site-footer-details {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Hero section */
    #hero {
        grid-template-columns: 1fr;
        margin-block: 1.5rem;
        padding-block: 2rem;
        gap: 3rem;
    }
    
    #hero h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
        line-height: 1.2;
    }

    .profile-details p {
        font-size: 1.125rem !important;
        margin-top: 1rem;
    }

    .profile-image {
        max-width: 280px;
        margin: 0 auto 20px;
    }

    .profile-image img {
        border-radius: 150px 12px 12px 12px;
    }

    .profile-image::before {
        inset: 15px -15px -15px 15px;
        border-radius: 150px 12px 12px 12px;
    }

    .profile-image::after {
        width: 50px;
        height: 65px;
        top: -15px;
        right: 0;
    }
       #hero {
        display: flex;
        flex-direction: column;
    }

    .profile-details {
        display: contents;
    }

    .profile-image {
        order: 1;
    }
    #hero {
    gap: 1rem;
    }

    .profile-details p {
        margin-top: 0;
    }

    .profile-image {
        margin-top: 1.5rem;
    }

    #here-buttons {
        margin-top: 1.5rem;
    }
    #here-buttons {
        order: 2;
        margin-top: 0;
        justify-content: center;
    }
    /* About us section */
    #aboutus .aboutus-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-block: 0;
        padding-block: 3rem;
    }

    #aboutus .aboutus-details p {
        font-size: 1.125rem;
        padding: 1.5rem;
        border-radius: 1rem;
    }

    #aboutus .aboutus-petals {
        width: 120px;
        height: 120px;
        bottom: -1rem;
        left: -1rem;
    }

    /* Courses section */
    #courses .courses-list {
        margin-block: 0;
        padding-block: 3rem;
    }

    #courses .courses-list article {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-block: 1.5rem;
        margin-top: 0;
    }

    #courses .courses-list article .article-space {
        flex: none;
        width: 100%;
    }

    #courses .courses-list article.topborder {
        margin-top: 1.5rem;
    }

    #courses .courses-list article h3 {
        font-size: 1.375rem;
        line-height: 1.4;
    }

    #courses .courses-list article p {
        font-size: 1rem;
    }

    #courses .courses-list article a,
    #courses .courses-list article button {
        width: 100%;
        text-align: center;
    }

    /* Contact us section */
    #contactus .contactus-details {
        margin-block: 0;
        padding-block: 4rem;
    }

    #contactus .contactus-details a {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        line-height: 1.3;
    }

    #contactus .contactus-petals {
        width: 150px;
        height: 150px;
        opacity: 0.5;
    }

    /* FAQ section */
    #faq {
        padding-block: 3rem;
    }

    #faq-title {
        margin-bottom: 1.5rem;
    }

    .faq-list {
        --faq-padding: 1rem;
        --faq-radius: 12px;
        gap: 0.75rem;
    }

    .faq-item summary {
        font-size: 1rem;
        gap: 1rem;
    }

    .faq-item summary::after {
        width: 1.75rem;
        height: 1.75rem;
    }

    .faq-answer {
        font-size: 0.9375rem;
    }

    /* Footer section */
    footer#site-footer {
        padding-block: 2rem;
    }

    #site-footer .site-footer-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    /* Popup section */
    .popup {
        --popup-padding: 1.5rem;
        --popup-radius: 16px;
        padding: 15px;
    }

    .popup-window {
        max-height: 85vh;
        max-height: 85dvh;
    }

    .popup-window > h2:first-of-type {
        font-size: 1.5rem;
        padding-right: 2rem;
    }

    .popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .course,
    .grid--3 {
        grid-template-columns: 1fr;
    }

}


/* Mobile navigation */
.tab-bar {
    display: none;
}

#mobile-menu {
    display: none;
}

@media (max-width: 767px) {

    body {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    }

    .tab-bar {
        position: fixed;
        bottom: calc(0.5rem + env(safe-area-inset-bottom));
        left: 0.5rem;
        right: 0.5rem;
        z-index: 100;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0.75rem 0.25rem;
        background: var(--white);
        border: 1px solid var(--lilac);
        border-radius: 1.5rem;
        box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
    }

    .tab-bar a,
    .tab-bar button {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-height: 44px;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
        background: none;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .tab-bar img {
        width: 1.375rem;
        height: 1.375rem;
    }

    .tab-bar a:hover,
    .tab-bar button:hover {
        color: var(--jacaranda);
    }

    /* Mobile menu */
    #mobile-menu:popover-open {
        position: fixed;
        inset: auto 0.5rem calc(6rem + env(safe-area-inset-bottom)) 0.5rem;
        display: flex;
        flex-direction: column;
        width: auto;
        margin: 0;
        padding: 1rem;
        background: var(--white);
        border: 1px solid var(--lilac);
        border-radius: 1.5rem;
        box-shadow: 0 4px 20px rgb(0 0 0 / 12%);
    }

    #mobile-menu a {
        padding: 0.75rem;
        text-decoration: none;
        color: var(--ink);
        font-weight: 600;
    }
    /* Mobile menu */
        #mobile-menu {
            display: none;
            position: fixed;
            inset: auto 0 0;
            width: 100%;
            max-width: none;
            max-height: 90dvh;
            overflow-y: auto;
            margin: 0;
            padding: 2.5rem 1.5rem 1rem;
            border: 0;
            border-radius: 24px 24px 0 0;
            background: var(--white);
        }

        #mobile-menu:popover-open {
            display: block;
            animation: menu-slide 0.3s ease;
        }

        #mobile-menu::backdrop {
            background: rgb(34 26 58 / 50%);
        }

        /* Menu handle */
        #mobile-menu::before {
            content: "";
            position: absolute;
            top: 6px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 5px;
            border-radius: 10px;
            background: var(--lilac);
        }

        /* Close button */
        .menu-close {
            display: block;
            margin: 0 0 1rem auto;
            width: 40px;
            height: 40px;
            border: 0;
            border-radius: 50%;
            background: var(--petal);
            color: var(--ink);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Menu links */
        .menu-links a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem;
            border-radius: 16px;
            color: var(--ink);
            font-weight: 600;
            text-decoration: none;
        }

        .menu-links a:hover {
            background: var(--petal);
        }

        .menu-links img {
            width: 40px;
            height: 40px;
            padding: 10px;
            border-radius: 50%;
            background: var(--petal);
        }

        .menu-links a::after {
            content: "\203A";
            margin-left: auto;
            font-size: 1.5rem;
        }

        /* Email button */
        #mobile-menu .menu-email {
            display: block;
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 999px;
            background: var(--jacaranda);
            color: var(--white);
            text-align: center;
            text-decoration: none;
            font-weight: 600;
        }

        /* Slide animation */
        @keyframes menu-slide {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }

        /* Desktop */
        @media (min-width: 768px) {
            #mobile-menu {
                display: none !important;
            }
        }



}