/* =========================================================
   IGNITEDDREAM — Global Stylesheet
   Design System: Vibrant Purple | Dark Mode
   ========================================================= */

/* -----------------------------------------------------------
   1. Base & Typography
   ----------------------------------------------------------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

html {
    overflow-x: hidden;
}

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

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

input,
select,
textarea,
button {
    min-width: 0;
}

a,
button {
    max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #A855F7;
    outline-offset: 4px;
}

.group:focus-within > .absolute.top-full {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

a[href^="mailto:"],
a[href^="tel:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

[class*="shadow-"],
[class*="blur-"] {
    transform-style: flat;
}

section,
header,
footer,
nav {
    max-width: 100%;
}

footer a,
footer li,
footer p,
footer h4,
footer input,
footer button {
    min-width: 0;
}

footer form.flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: stretch;
    width: 100%;
}

footer form.flex input[type="email"] {
    min-width: 0;
}

footer form.flex button[type="submit"] {
    min-width: 3.5rem;
    white-space: nowrap;
}

footer a[href^="mailto:"],
footer a[href^="tel:"] {
    align-items: flex-start;
}

/* -----------------------------------------------------------
   2. Reusable Component Utilities
   ----------------------------------------------------------- */

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide Scrollbar (cross-browser) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Brand mark + text logo */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
}

.brand-lockup__mark {
    display: block;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 0.68rem;
}

.brand-lockup__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: max-content;
    gap: 0.18rem;
}

.brand-lockup__text {
    display: inline-block;
    min-width: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.brand-lockup__tagline {
    display: block;
    width: 100%;
    color: rgba(248, 249, 250, 0.78);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.035em;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
}

.brand-lockup--footer {
    width: fit-content;
}

.brand-lockup--footer .brand-lockup__tagline {
    color: rgba(156, 163, 175, 0.9);
}

/* -----------------------------------------------------------
   3. Navbar Scroll Effect
   ----------------------------------------------------------- */
nav.scrolled {
    background-color: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* -----------------------------------------------------------
   4. Premium Mobile Navigation
   ----------------------------------------------------------- */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

#mobile-menu {
    inset: 0;
    z-index: 80;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(env(safe-area-inset-top, 0px) + 0.85rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1.35rem);
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 24rem),
        radial-gradient(circle at bottom left, rgba(31, 41, 55, 0.56), transparent 18rem),
        linear-gradient(145deg, rgba(26, 11, 46, 0.98), rgba(5, 0, 10, 0.99));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

#mobile-menu:not(.hidden) {
    animation: mobileMenuFade 220ms ease-out both;
}

.mobile-menu-shell {
    display: flex;
    width: 100%;
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2.2rem);
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.mobile-menu-brand img {
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    border-radius: 0.72rem;
}

.mobile-menu-brand strong,
.mobile-menu-brand > span,
.mobile-menu-brand > span > span {
    display: block;
    line-height: 1;
}

.mobile-menu-brand strong span {
    display: inline;
}

.mobile-menu-brand strong {
    font-size: 1.08rem;
    letter-spacing: 0.06em;
}

.mobile-menu-brand > span > span {
    width: 100%;
    margin-top: 0.25rem;
    color: rgba(248, 249, 250, 0.68);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
}

.mobile-menu-label {
    color: rgba(248, 249, 250, 0.5);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mobile-menu-primary,
.mobile-menu-groups {
    display: grid;
    gap: 0.72rem;
}

.mobile-menu-link,
.mobile-menu-submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(248, 249, 250, 0.88);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-submenu a:hover,
.mobile-menu-submenu a:focus-visible {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(168, 85, 247, 0.14);
    outline: none;
}

.mobile-menu-link::after,
.mobile-menu-submenu a::after {
    content: "";
    width: 0.46rem;
    height: 0.46rem;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.5;
    transform: rotate(-45deg);
}

.mobile-menu-group {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.mobile-menu-group summary {
    display: flex;
    min-height: 3.35rem;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.mobile-menu-group summary::-webkit-details-marker {
    display: none;
}

.mobile-menu-group summary:focus-visible {
    outline: 2px solid rgba(168, 85, 247, 0.7);
    outline-offset: -2px;
}

.mobile-menu-chevron {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 249, 250, 0.82);
    transition: transform 180ms ease, background 180ms ease;
}

.mobile-menu-chevron svg {
    width: 1rem;
    height: 1rem;
}

.mobile-menu-group[open] .mobile-menu-chevron {
    background: rgba(168, 85, 247, 0.18);
    transform: rotate(180deg);
}

.mobile-menu-submenu {
    display: grid;
    gap: 0.62rem;
    padding: 0 0.72rem 0.78rem;
}

.mobile-menu-submenu a {
    min-height: 3rem;
    border-radius: 0.78rem;
    background: rgba(0, 0, 0, 0.16);
    color: rgba(248, 249, 250, 0.76);
    font-size: 0.92rem;
    font-weight: 650;
    box-shadow: none;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.55rem;
    margin-top: auto;
    border: 1px solid #A855F7;
    border-radius: 0.95rem;
    background: #A855F7;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(168, 85, 247, 0.32);
}

.mobile-menu-cta:hover,
.mobile-menu-cta:focus-visible {
    background: #9333EA;
    outline: none;
}

#close-menu-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#close-menu-btn svg {
    width: 1.45rem;
    height: 1.45rem;
}

#mobile-menu-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes mobileMenuFade {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------------------
   5. Scroll Reveal Animation
   ----------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1),
                transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------------------------
   6. Premium Workshop Gallery
   ----------------------------------------------------------- */
.training-photo {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(31, 41, 55, 0.95);
    background: rgba(17, 24, 39, 0.75);
    cursor: pointer;
    isolation: isolate;
}

.training-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    pointer-events: none;
}

.training-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0) contrast(1.02);
    transform: scale(1);
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.training-photo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(11, 15, 25, 0.08) 45%, rgba(0, 0, 0, 0.32));
    opacity: 0;
    transition: opacity 300ms ease;
}

.training-photo-action {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: translate(-50%, -42%);
    opacity: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(11, 15, 25, 0.72);
    color: #fff;
    padding: 0.65rem 0.95rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 300ms ease, transform 300ms ease, color 300ms ease;
}

.training-photo:hover .training-photo-img,
.training-photo:focus-visible .training-photo-img {
    filter: grayscale(1) contrast(1.04);
    transform: scale(1.055);
}

.training-photo:hover .training-photo-shade,
.training-photo:focus-visible .training-photo-shade,
.training-photo:hover .training-photo-action,
.training-photo:focus-visible .training-photo-action {
    opacity: 1;
}

.training-photo:hover .training-photo-action,
.training-photo:focus-visible .training-photo-action {
    color: #A855F7;
    transform: translate(-50%, -50%);
}

.training-photo:focus-visible {
    outline: 2px solid #A855F7;
    outline-offset: 4px;
}

@media (max-width: 640px) {
    body {
        min-width: 0;
    }

    h1 {
        font-size: clamp(2.5rem, 12vw, 3.35rem) !important;
        line-height: 1.08 !important;
    }

    h2 {
        font-size: clamp(2rem, 9vw, 2.75rem) !important;
        line-height: 1.12 !important;
    }

    p,
    a,
    button,
    label,
    span,
    div,
    input,
    select,
    textarea {
        overflow-wrap: break-word;
    }

    .text-5xl,
    .text-6xl,
    .text-7xl,
    .text-8xl,
    .text-9xl,
    .text-\[5\.5rem\] {
        font-size: clamp(2.25rem, 11vw, 3.35rem) !important;
        line-height: 1.08 !important;
    }

    .text-4xl {
        font-size: clamp(1.9rem, 8.5vw, 2.4rem) !important;
        line-height: 1.14 !important;
    }

    .text-3xl {
        font-size: clamp(1.65rem, 7vw, 2rem) !important;
        line-height: 1.16 !important;
    }

    .tracking-widest,
    .tracking-\[0\.2em\] {
        letter-spacing: 0.08em !important;
    }

    .px-10,
    .px-8,
    .md\:px-12 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .p-12,
    .p-10,
    .p-8,
    .md\:p-12,
    .md\:p-10 {
        padding: 1.5rem !important;
    }

    .py-32,
    .py-24,
    .lg\:py-32 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .pt-48,
    .pt-40,
    .lg\:pt-48,
    .lg\:pt-40 {
        padding-top: 8.5rem !important;
    }

    .pb-32,
    .pb-24,
    .lg\:pb-32,
    .lg\:pb-40 {
        padding-bottom: 5rem !important;
    }

    .gap-16,
    .gap-12 {
        gap: 2.25rem !important;
    }

    .gap-8 {
        gap: 1.5rem !important;
    }

    .rounded-3xl {
        border-radius: 1.25rem !important;
    }

    header,
    section,
    footer {
        max-width: 100vw;
        overflow-x: clip;
    }

    iframe {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    form.flex {
        align-items: stretch;
    }

    .inline-flex,
    .flex {
        min-width: 0;
    }

    .inline-flex {
        max-width: 100%;
    }

    .inline-block {
        max-width: 100%;
    }

    a.inline-flex,
    button.inline-flex,
    a.flex,
    button.flex,
    a[class*="bg-primary"],
    button[class*="bg-primary"] {
        justify-content: center;
        text-align: center;
    }

    .divide-x > :not([hidden]) ~ :not([hidden]) {
        border-left-width: 0 !important;
    }

    .min-h-screen {
        min-height: 100svh !important;
    }

    [class*="w-["][class*="blur-"],
    [class*="h-["][class*="blur-"],
    [class*="w-64"][class*="blur-"],
    [class*="w-32"][class*="blur-"],
    [class*="w-40"][class*="blur-"] {
        max-width: 100vw !important;
        max-height: 100vw !important;
    }

    [class*="animate-marquee"] {
        will-change: transform;
    }

    [class*="animate-marquee"] img {
        max-width: none;
    }

    nav[id="navbar"] {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    nav[id="navbar"] > div {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    nav[id="navbar"] a[aria-label="IGNITEDDREAM Home"],
    nav[id="navbar"] > div > a:first-child {
        max-width: min(70vw, 17rem);
    }

    .brand-lockup {
        gap: 0.55rem;
    }

    .brand-lockup__mark {
        width: 2.45rem;
        height: 2.45rem;
        border-radius: 0.56rem;
    }

    .brand-lockup__text {
        font-size: 1.05rem;
        letter-spacing: 0.035em;
    }

    .brand-lockup__tagline {
        font-size: 0.62rem;
        letter-spacing: 0.015em;
    }

    #mobile-menu {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .training-photo-action {
        padding: 0.55rem 0.75rem;
        font-size: 0.68rem;
    }

    #home-hero {
        align-items: flex-start !important;
        flex-direction: column !important;
        padding-top: 6.25rem !important;
        padding-bottom: 0 !important;
    }

    #home-hero > .absolute.inset-0 {
        display: none !important;
    }

    #home-hero .home-hero-inline-photo {
        display: block !important;
        order: 4;
        height: 17.5rem;
        margin-top: 0.25rem;
        background: #0b0f19;
    }

    #home-hero .home-hero-inline-photo img {
        opacity: 0.9;
    }

    #home-hero > .max-w-7xl {
        display: block !important;
        order: 1;
        width: 100% !important;
        padding-bottom: 0 !important;
    }

    #home-hero > .max-w-7xl .w-full,
    #home-hero > .max-w-7xl .lg\:w-3\/4,
    #home-hero > .max-w-7xl .xl\:w-2\/3 {
        width: 100% !important;
        max-width: 100% !important;
    }

    #home-hero > .max-w-7xl .space-y-8 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    #home-hero > .max-w-7xl .space-y-8 > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #home-hero h1 {
        order: 2;
    }

    #home-hero p {
        order: 3;
    }

    #home-hero .pt-8.mt-8 {
        order: 5;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-self: flex-start;
        width: min(58%, 13.5rem);
        gap: 0.85rem !important;
        margin-top: -14.75rem !important;
        margin-bottom: 2.75rem !important;
        margin-left: 0.95rem !important;
        padding: 0 !important;
        position: relative;
        z-index: 3;
        border: 0 !important;
        background: transparent;
        box-shadow: none;
        text-shadow: 0 8px 22px rgba(0, 0, 0, 0.72);
    }

    #home-hero .pt-8.mt-8 > div {
        position: relative;
        min-width: 0;
        padding: 0.55rem 0.65rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.65rem;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
            rgba(9, 10, 22, 0.18);
        box-shadow:
            0 14px 30px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.13);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    #home-hero .pt-8.mt-8 > div:first-child {
        border-right: 0;
    }

    #home-hero .flex.flex-col.sm\:flex-row {
        order: 6;
    }

    #home-hero .pt-8.mt-8 > .col-span-2 {
        grid-column: auto;
        order: 2;
        border-top: 0;
    }

    #home-hero .pt-8.mt-8 > div:nth-child(2) {
        order: 3;
    }

    #home-hero .pt-8.mt-8 .text-xl,
    #home-hero .pt-8.mt-8 .text-sm {
        margin-bottom: 0.3rem !important;
        color: #fff !important;
        font-size: 0.98rem !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
        text-shadow: 0 8px 22px rgba(0, 0, 0, 0.78);
    }

    #home-hero .pt-8.mt-8 .text-xs {
        color: rgba(243, 244, 246, 0.86) !important;
        font-size: 0.58rem !important;
        font-weight: 700;
        letter-spacing: 0.1em !important;
        line-height: 1.42 !important;
        text-shadow: 0 8px 22px rgba(0, 0, 0, 0.78);
    }

    #home-workshops-preview .items-end,
    #home-youtube .items-end {
        align-items: flex-start !important;
    }

    #home-workshops-preview .items-end > a,
    #home-youtube .items-end > a {
        width: 100%;
    }

    #home-youtube iframe {
        min-height: 190px;
    }

    footer {
        text-align: left;
    }

    footer > div {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    footer .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 0.85rem !important;
        row-gap: 2.25rem !important;
    }

    footer .grid > :first-child {
        grid-column: span 2 / span 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .grid > :first-child .flex.gap-3 {
        justify-content: center;
    }

    footer .grid > :first-child a[href="invite-me.html"] {
        min-width: min(100%, 12.5rem);
    }

    footer .grid > :nth-child(3) {
        margin-left: -0.25rem;
        min-width: calc(100% + 0.25rem);
    }

    footer h4 {
        margin-bottom: 1rem !important;
        font-size: 0.98rem;
    }

    footer ul {
        font-size: 0.8rem !important;
        line-height: 1.55;
    }

    footer .grid > :nth-child(3) li,
    footer .grid > :nth-child(3) a,
    footer .grid > :nth-child(5) a {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }

    footer .grid > :nth-child(5) a,
    footer .grid > :nth-child(5) ul {
        font-size: 0.72rem !important;
        line-height: 1.35;
    }

    footer .grid > :nth-child(5) a {
        display: grid !important;
        grid-template-columns: 0.9rem minmax(0, max-content);
        justify-content: start !important;
        gap: 0.35rem !important;
        align-items: center;
        margin-bottom: 0.55rem !important;
    }

    footer .grid > :nth-child(5) svg {
        width: 0.82rem !important;
        height: 0.82rem !important;
        flex: 0 0 auto;
        justify-self: center;
    }

    footer .grid > :nth-child(5) ul {
        margin-bottom: 1rem !important;
    }

    footer .grid > :nth-child(5) ul.space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }

    footer .space-y-4 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.7rem !important;
    }

    footer .flex.gap-3,
    footer .flex.gap-6 {
        flex-wrap: wrap;
    }

    footer form.flex {
        width: calc(200% + 0.85rem);
        max-width: none;
        margin-top: 4rem;
        margin-left: calc(-100% - 0.85rem);
        margin-right: 0;
        grid-template-columns: minmax(0, 1fr) 3.5rem;
    }

    footer form.flex input[type="email"] {
        padding-left: 1rem !important;
        padding-right: 0.75rem !important;
    }

    footer form.flex button[type="submit"] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        word-break: normal;
        overflow-wrap: normal;
    }

    #featured-workshop .md\:w-1\/2:first-of-type {
        width: 100% !important;
    }

    #featured-workshop .md\:w-1\/2.rounded-xl {
        width: 100% !important;
    }

    #featured-workshop img {
        min-height: 18rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    footer .grid.md\:grid-cols-12 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    footer [class*="md:col-span"] {
        grid-column: auto !important;
    }

    footer [class*="md:col-span-3"]:first-child {
        grid-column: span 2 / span 2 !important;
    }

    footer form.flex {
        max-width: 24rem;
    }

    #home-youtube .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    #home-hero {
        min-height: auto !important;
        padding-top: 6.5rem !important;
        padding-bottom: 0 !important;
    }

    #home-hero > .absolute.inset-0 img {
        object-fit: cover !important;
        object-position: right center !important;
        opacity: 0.72;
    }

    #home-hero > .absolute.inset-0 > div {
        width: 72% !important;
    }

    #home-hero > .max-w-7xl {
        padding-bottom: 4rem;
    }

    #home-hero .pt-8.mt-8 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }

    #home-hero .pt-8.mt-8 > .col-span-2 {
        grid-column: auto !important;
    }

    #home-workshops-preview .items-end,
    #home-youtube .items-end {
        align-items: flex-start !important;
    }
}
