/* ==========================================================================
   Frontend Styling (front.css)
   ========================================================================== */

/* --- Base Typography Overrides --- */
h1,
h2,
h3,
h4,
h5,
h6,
.title,
.heading {
    font-family: var(--font-heading);
}

body.frontend-font-courier-new,
body.frontend-font-courier-new button,
body.frontend-font-courier-new input,
body.frontend-font-courier-new select,
body.frontend-font-courier-new textarea {
    font-family: "Courier New", Courier, monospace !important;
}

body.frontend-font-courier-new h1,
body.frontend-font-courier-new h2,
body.frontend-font-courier-new h3,
body.frontend-font-courier-new h4,
body.frontend-font-courier-new h5,
body.frontend-font-courier-new h6,
body.frontend-font-courier-new .title,
body.frontend-font-courier-new .heading {
    font-family: "Courier New", Courier, monospace !important;
}

body.frontend-font-courier-new .landing-card,
body.frontend-font-courier-new .landing-card__label,
body.frontend-font-courier-new .landing-welcome-text {
    font-family: "Courier New", Courier, monospace !important;
}

/* --- Site Header / Nav --------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(10px);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 14px;
}

.site-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 860px) {
    .topmenu__list {
        justify-content: flex-end;
    }
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
}

.site-header__brand:hover {
    color: #fff;
    text-decoration: none;
}

.site-header__brandMark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f3873;
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.4px;
}

.site-header__brandText {
    font-size: 14px;
    letter-spacing: 0.2px;
}

.site-header__toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 44px;
    height: 40px;
    cursor: pointer;
}

.site-header__toggleLines {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
    position: relative;
}

.site-header__toggleLines::before,
.site-header__toggleLines::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

.site-header__toggleLines::before {
    top: -6px;
}

.site-header__toggleLines::after {
    top: 6px;
}

/* Hamburger Animation */
.site-header__toggle[aria-expanded="true"] .site-header__toggleLines {
    background: transparent;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggleLines::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggleLines::after {
    top: 0;
    transform: rotate(-45deg);
}

.site-header__toggleLines,
.site-header__toggleLines::before,
.site-header__toggleLines::after {
    transition: all 0.2s ease;
}

@media (max-width: 859px) {
    .site-header__toggle {
        display: flex;
        /* Enforce visibility */
        align-items: center;
        justify-content: center;
        /* Ensure visibility on light backgrounds by adding a predictable background */
        background: rgba(49, 56, 114, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
        z-index: 60;
        /* Ensure on top */
    }
}

.site-nav {
    padding: 0 18px 14px 18px;
}

@media (min-width: 860px) {
    .site-header__toggle {
        display: none;
    }

    .site-nav {
        padding-bottom: 0;
    }
}

@media (max-width: 859px) {
    .site-nav {
        display: none;
        width: 100%;
        padding: 0 18px 20px 18px;
    }

    .site-nav.is-open {
        display: block;
        animation: navSlideDown 0.3s ease;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(12px);
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Flags */
.site-header__flags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.site-flag:hover {
    background: rgba(255, 255, 255, 0.12);
}

.site-flag img {
    display: block;
}

/* Topmenu v2 */
.topmenu {
    width: 100%;
}

.topmenu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.topmenu__item {
    position: relative;
}

.topmenu__link {
    display: inline-flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 0;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.topmenu__link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    text-decoration: none;
}

.topmenu__link--hasDropdown::after {
    content: "▾";
    margin-left: 8px;
    opacity: 0.9;
    font-weight: 900;
}

.topmenu__dropdownHead {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topmenu__ddToggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 10px 10px;
    border-radius: 10px;
    color: #fff;
}

.topmenu__ddToggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.topmenu__dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0;
    min-width: 260px;
    padding: 18px 18px;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    z-index: 60;
}

.topmenu__item--hasDropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.topmenu__dropdownList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.topmenu__dropdownLink {
    display: block;
    padding: 10px 0;
    border-radius: 0;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
}

.topmenu__dropdownLink:hover {
    color: #2f3873;
    background: transparent;
    text-decoration: none;
}

@media (min-width: 860px) {
    .topmenu__item--hasDropdown:hover .topmenu__dropdown {
        display: block;
    }

    .topmenu__ddToggle {
        display: none;
    }
}

@media (max-width: 859px) {
    .topmenu__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .topmenu__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .topmenu__link {
        width: 100%;
        justify-content: space-between;
        padding: 18px 0;
        font-size: 18px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
    }

    .topmenu__dropdownHead {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* In mobile, parent link acts as toggle if we want, or separate button. 
       Current JS handles it. */

    .topmenu__dropdown {
        position: static;
        display: none;
        margin-top: 0;
        min-width: 0;
        background: #fff;
        border: 0;
        padding: 0 0 12px 0;
        box-shadow: none;
    }

    .topmenu__item.is-open .topmenu__dropdown {
        display: block;
        animation: navSlideDown 0.3s ease;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .topmenu__item--hasDropdown::after {
        display: none;
    }

    .topmenu__dropdownList {
        gap: 0;
        padding-left: 0;
        margin-left: 0;
    }

    .topmenu__dropdownLink {
        padding: 18px 0 18px 20px;
        color: #111827;
        font-weight: 600;
        font-size: 18px;
    }

    .topmenu__dropdownLink:hover,
    .topmenu__dropdownLink:focus {
        color: #2f3873;
        background: rgba(49, 56, 114, 0.08);
        /* optionele subtiele actieve state */
    }
}

/* --- Nav Shell Compact (Scroll state) --- */
.nav-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 180ms ease, backdrop-filter 180ms ease, box-shadow 180ms ease;
    background: rgba(255, 255, 255, 0.05);
    /* More transparent */
    backdrop-filter: blur(4px);
}

.nav-shell.is-compact {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.nav-shell.is-compact .site-header__bar {
    padding-top: 6px;
    padding-bottom: 6px;
}

.nav-shell.is-compact .site-header__flags {
    display: none;
}

.site-header__logo {
    height: 48px;
    width: auto;
    transition: all 180ms ease;
}

/* Mobile responsive logo */
@media (max-width: 600px) {
    .site-header__logo {
        height: 40px;
    }
}

.nav-shell.is-compact .site-header__logo {
    height: 36px;
    /* Optional: invert color if logo is white and compact bg is white? 
       Assuming the user has checked that lfb-white.png works on white bg 
       OR needs a filter to turn dark. 
       Since user asked for lfb-white.png specifically, I assume it's white.
       But compact header is white (rgba(255,255,255,0.92)).
       White logo on white header will be invisible.
       I should add a filter to invert it when compact, or ask user.
       Given "lfb-white.png" name, it's likely white.
       I'll verify if I need to invert it.
       Let's assume I need to invert it or use filter mechanism.
    */
    filter: invert(1) brightness(0.2);
}

/* Remove old brand styles if safe, or keep them to prevent errors if referenced elsewhere 
   (I'll overwrite them here to keep file size low if I could, but cleaner is to replace the compact block)
*/
.nav-shell.is-compact .site-header__brandMark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.nav-shell.is-compact .site-header__brandText {
    font-size: 13px;
}

.nav-shell.is-compact .topmenu__link {
    color: #111827;
}

.nav-shell.is-compact .topmenu__link:hover {
    background: rgba(49, 56, 114, 0.08);
    color: #2f3873;
}

.nav-shell.is-compact .site-flag {
    background: rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(17, 24, 39, 0.10);
}

.nav-shell.is-compact .site-flag:hover {
    background: rgba(17, 24, 39, 0.07);
}

.nav-shell.is-compact .site-header__toggle {
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(17, 24, 39, 0.04);

    .nav-shell.is-compact .topmenu__dropdownList {
        border-left: 2px solid rgba(17, 24, 39, 0.10);
    }
}

@media (min-width: 860px) {

    /* Inline layout for compact header on desktop */
    .nav-shell.is-compact {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-shell.is-compact .site-header__bar {
        width: auto;
        flex-grow: 0;
        padding-right: 0;
        /* Remove right padding to bring nav closer if needed, or keep for spacing */
    }

    .nav-shell.is-compact .site-nav {
        flex-grow: 1;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        justify-content: flex-end;
    }
}

.nav-shell.is-compact .site-header__toggleLines,
.nav-shell.is-compact .site-header__toggleLines::before,
.nav-shell.is-compact .site-header__toggleLines::after {
    background: #111827;
}

/* Transitions */
.nav-shell .site-header__bar {
    transition: padding 180ms ease;
}

.nav-shell .site-header__brandMark,
.nav-shell .site-header__brandText {
    transition: all 180ms ease;
}

.nav-shell .topmenu__link {
    transition: background 180ms ease, color 180ms ease;
}

@media (max-width: 859px) {
    .nav-shell.is-compact .site-nav.is-open {
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(17, 24, 39, 0.08);
        /* Of gwn geen border nodig hier */
        padding-top: 10px;
        padding-bottom: 14px;
    }

    .nav-shell.is-compact .topmenu__dropdownLink {
        color: #111827;
    }

    .nav-shell.is-compact .topmenu__dropdownLink:hover {
        background: rgba(49, 56, 114, 0.08);
        color: #2f3873;
    }

    .nav-shell.is-compact .topmenu__dropdownList {
        border-left: none;
    }
}

/* --- Page / Hero --------------------------------------------------------- */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 18px;
}

.page {
    position: relative;
    z-index: 20;
    background: #fff;
    padding: 64px 0 54px;
}

.page__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

.page__lead {
    margin: 0 0 16px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.page__body {
    max-width: 78ch;
    margin: 0 auto;
}

@media (min-width: 1100px) {
    .page__body {
        max-width: 82ch;
    }
}

@media (max-width: 859px) {
    .page {
        padding: 40px 0 40px;
    }

    .page__title {
        font-size: 28px;
    }
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 10px;
}

.stack {
    display: grid;
    gap: 12px;
}

.stack--sm {
    gap: 8px;
}

.stack--xs {
    gap: 6px;
}

/* Hero */
.hero {
    position: relative;
    color: #fff;
    min-height: 520px;
    padding-top: 120px;
    padding-bottom: 0;
    background-color: #111827;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero__content {
    position: relative;
    z-index: 5;
    width: 1100px;
    margin: 0 auto;
    align-self: center;
    background: #303871;
    color: #fff;
    padding: 36px 0 32px;
    max-width: 800px;
    margin-bottom: 36px;
}

.hero__inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
    text-align: center;
}

@media (max-width: 1200px) {
    .hero__content {
        width: 900px;
    }
}

.hero__breadcrumbs {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.hero__breadcrumbs a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__breadcrumbs a:hover {
    border-bottom-color: #fff;
}

.hero__breadcrumbs span {
    margin: 0 6px;
    opacity: 0.6;
}

@media (max-width: 980px) {
    .hero__content {
        width: 100%;
    }

    .hero__inner {
        padding: 0px 22px 0 22px;
    }
}

@media (max-width: 859px) {
    .hero {
        min-height: 80vh;
        /* More impactful on mobile */
        padding-top: 60px;
        justify-content: center;
    }

    .hero__content {
        padding: 40px 24px;
        width: 100%;
        max-width: 100%;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 600px) {
    .hero {
        align-items: center;
        /* Center horizontally too */
    }

    .hero__inner {
        padding: 0 18px;
    }
}

/* Hero inside shell */
.hero.hero-shell__hero {
    background: transparent;
    background-image: none;
}

.hero-shell__hero {
    position: relative;
    z-index: 10;
    padding-top: 120px;
}

.hero-shell__sentinel {
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
}

/* Main/footer boven bg */
#content,
main#content,
footer,
.site-footer {
    position: relative;
    z-index: 8;
    margin-top: -75px;
}

body.has-hero main#content {
    margin-top: -75px;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 44px 20px 22px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.site-footer__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.75);
}

.site-footer__text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(17, 24, 39, 0.78);
}

.site-footer__muted {
    color: rgba(17, 24, 39, 0.55);
    font-size: 13px;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-footer__list a,
.site-footer__link {
    color: rgba(17, 24, 39, 0.78);
    text-decoration: none;
    display: block;
    /* Improved tap target */
    padding: 4px 0;
}

.site-footer__list a:hover,
.site-footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__bottom {
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer__small {
    font-size: 12px;
    color: rgba(17, 24, 39, 0.55);
}

/* Gallery spacing */
.gallery-section {
    margin-bottom: 30px;
}

/* Image floats & sizes */
/* Image floats & sizes */
/* Scoped to page__body to increase specificity and override defaults */
.page__body .cms-img--left,
.page__body .cms-img--left-25,
.page__body .cms-img--left-33,
.page__body .cms-img--left-55 {
    float: left;
    margin: 0 24px 12px 0;
    border-radius: 8px;
    clear: both;
}

.page__body .cms-img--right,
.page__body .cms-img--right-25,
.page__body .cms-img--right-33,
.page__body .cms-img--right-55 {
    float: right;
    margin: 0 0 12px 24px;
    border-radius: 8px;
    clear: both;
}

.page__body .cms-img--left,
.page__body .cms-img--right {
    max-width: min(320px, 50%) !important;
}

.page__body .cms-img--left-25,
.page__body .cms-img--right-25 {
    max-width: 25% !important;
}

.page__body .cms-img--left-33,
.page__body .cms-img--right-33 {
    max-width: 33% !important;
}

/* 55% is quite wide, maybe used for hero-ish inserts */
.page__body .cms-img--left-55,
.page__body .cms-img--right-55 {
    max-width: 55% !important;
}

@media (max-width: 640px) {

    .cms-img--left,
    .cms-img--left-25,
    .cms-img--left-33,
    .cms-img--left-55,
    .cms-img--right,
    .cms-img--right-25,
    .cms-img--right-33,
    .cms-img--right-55 {
        float: none;
        display: block;
        margin: 16px auto;
        max-width: 100%;
    }
}

/* Tiptap Content Styling */
.page__body h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 1.2em 0 0.6em;
    line-height: 1.1;
}

.page__body blockquote {
    font-style: italic;
    border-left: 3px solid #ddd;
    padding-left: 18px;
    margin: 1.5em 0;
    opacity: 0.9;
    color: rgba(17, 24, 39, 0.85);
}

/* Tiptap Tables */
.prose-table {
    border-collapse: separate;
    border-spacing: 12px;
    margin: 24px 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.prose-table td,
.prose-table th {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-width: 1em;
    padding: 12px 16px;
    position: relative;
    vertical-align: top;
    border-radius: 8px;
}

.prose-table th {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 700;
    text-align: left;
}

/* Table Panel variations */
.prose-table td.panel-dark {
    background-color: #303871;
    color: #ffffff;
    border: none;
}

.prose-table td.panel-dark * {
    color: #ffffff;
}

.prose-table td.panel-mid {
    background-color: #4a5494;
    color: #ffffff;
    border: none;
}

.prose-table td.panel-mid * {
    color: #ffffff;
}

.prose-table td.panel-light {
    background-color: #6773ba;
    color: #ffffff;
    border: none;
}

.prose-table td.panel-light * {
    color: #ffffff;
}

/* --- Landing Page Specifics --- */

/* 
   1) "Hero over Content": 
   The Hero sits on top (z-index), and the cards hang down (absolute positioning).
   We need to push the content down with padding so the text isn't covered by the hanging cards.
*/
.page-layout-landing main#content {
    padding-top: 180px;
    /* Space for the hanging cards (150px overlap + margin) */
    position: relative;
    z-index: 10;
}

/* Ensure the white box style is reset or standard */
.page-layout-landing main#content .container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Hero Overrides for Landing layout */
.hero-shell__hero.landing-hero {
    min-height: 85vh;
    position: relative;
    z-index: 20;
    /* Hero stays above content */
    overflow: visible;
    /* Allow cards to hang out */
    padding-bottom: 0;
    /* No internal padding needed for cards anymore */
    margin-bottom: 0;
}

@media (min-width: 860px) and (max-width: 1023px) {
    .hero-shell__hero.landing-hero {
        padding-top: 90px;
    }
}

/* Hide standard elements in landing hero */
.landing-hero .hero__title,
.landing-hero .hero__breadcrumbs,
.landing-hero .hero__lead {
    display: none;
}

/* Make the blue overlay transparent on landing pages */
.page-layout-landing .hero-shell__shade,
.page-layout-landing .hero__content {
    background: transparent;
    box-shadow: none;
}

/* Ensure background image covers well */
.hero-shell__hero.landing-hero {
    background-size: cover;
    background-position: center;
}

/* Overlay Container: Positioned to hang half-out */
.landing-hero__overlay-container {
    position: absolute;
    bottom: -100px;
    /* Moved up slightly to not overlap content title */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 30;
    font-family: var(--font-body);
}

/* The Overlay Link Cards */
.landing-card {
    display: flex;
    flex-direction: column;
    /* Stack label and image */
    width: 320px;
    /* Slightly wider to account for padding if needed, or keep 300 */
    height: 320px;
    background: #2f3873;
    /* Blue background */
    text-decoration: none;

    /* Frame sizing */
    border: none;
    padding: 12px;
    /* Linker/rechter/onder kant dikker kader */
    padding-top: 50px;
    /* Ruimte voor de tekst bovenin */

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    /* Slight rounding looks better with full color */
    font-family: var(--font-heading) !important;
}

.landing-card__label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    /* White text */
    font-family: var(--font-heading) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 1px;
}

.landing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Welcome Text on Landing */
.landing-welcome-text {
    margin-bottom: 160px;
    /* Push it up above the hanging cards */
    color: #fff;
    text-align: center;
    max-width: 800px;
    z-index: 20;

    /* Typography */
    font-family: var(--font-heading) !important;
    font-size: 2.5rem;
    /* Large */
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Good contrast */

    /* Animation */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* Tablet range: 768px -> 1023px (but hamburger below 860px) */
@media (min-width: 768px) and (max-width: 859px) {
    .landing-welcome-text {
        margin-bottom: 240px;
    }
}

/* Landscape tablet / Desktop start */
@media (min-width: 860px) {
    .landing-welcome-text {
        margin-bottom: 210px;
    }
}

@media (min-width: 1024px) {
    .landing-welcome-text {
        margin-bottom: 260px;
    }
}

.landing-welcome-text p {
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    background: #fff;
    /* On hover white bg? User said "blue bg white text". 
       Wait, in step 322 I changed background to #2f3873.
       I should check if :hover style reverts it to white. 
       If so, I should fix it or keep it blue. 
       User didn't specify hover state for new blue cards.
       Standard behavior: maybe lighter blue?
       Let's leave hover for now, or ensure text stays visible.
       If BG becomes white on hover, text must become blue.
    */
}

.landing-card:hover .landing-card__label {
    color: #2f3873;
    /* Switch to blue text on hover if bg becomes white */
}

.landing-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .landing-card {
        width: 160px;
        height: 160px;
    }

    .landing-hero__overlay-container {
        gap: 20px;
        bottom: -50px;
        /* Less than half to avoid overlap */
    }

    .page-layout-landing main#content {
        padding-top: 100px;
        /* Adjusted spacing for mobile */
    }
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    /* Tight gap like generic IG feed */
    margin: 40px 0;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

/* Shortcuts / Footer Links on Landing */
.landing-shortcuts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.landing-shortcut-link {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(17, 24, 39, 0.3);
    transition: all 0.2s ease;
}

.landing-shortcut-link:hover {
    color: #2f3873;
    text-decoration-color: #2f3873;
}

/* Hide curator/instagram post elements */
.crt-post-header,
.crt-post-text,
.crt-post-footer {
    display: none !important;
}

/* Force Curator images to be square and override margin */
.cms-body .curator-wrapper img.crt-post-image,
.curator-wrapper img.crt-post-image,
.cms-body .crt-widget img.crt-post-image {
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    height: auto !important;
    width: 100% !important;
}
