/* ── Page containers ── */
.page-container      { min-height: 100vh; width: 100%; background-color: var(--color-background); overflow-x: hidden; }
.page-top-margin-sm  { margin-top: 2vh; }
.page-top-margin-md  { margin-top: 5vh; }
.edit-page-grid      { margin-top: 2vh; margin-bottom: 10vh; }
.admin-page-wrapper  { width: 94%; margin-top: 4vh; margin-left: 2%; margin-right: 2%; }
.layout-transparent  { background-color: transparent; width: 100%; }

/* ── Sticky footer ──
   MudLayout/MudMainContent render as plain block boxes by default, so short-content
   pages leave the footer sitting right after the content with blank space below it
   down to the viewport edge. Turning the layout into a min-height:100vh flex column
   with the main content set to grow (flex: 1 0 auto) pins the footer to the bottom
   of the viewport on short pages, while still letting it fall after full content on
   long pages (NavMenu's fixed-top wrapper is excluded from flex layout automatically). */
.mud-layout {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    height: auto !important;
}
.mud-main-content {
    flex: 1 0 auto !important;
    background-color: var(--color-background);
}

/* ── Paper / form helpers ── */
.paper-h-padding        { margin-left: 2vw; margin-right: 2vw; }
.paper-r-margin         { margin-right: 2vw; }
.paper-r-margin-b       { margin-right: 2vw; margin-bottom: 2vh; }
.paper-select-padding   { margin-left: 1rem; margin-right: 1rem; }
.full-width-padded      { width: 90vw; margin-left: 4vw; margin-right: 4vw; }
.picture-gallery-container { padding: 4vw; }
.text-self-center       { justify-self: center; }
.item-center            { align-items: center; justify-items: center; }
.manage-item-card       { margin: 2rem; }

/* ── Fixed bottom action bar ── */
.action-bar-fixed {
    position: fixed;
    bottom: 0;
    height: 5rem;
    width: 105%;
}

/* ── Picture previews ── */
.main-picture-preview {
    max-height: 30vh;
    border-radius: 4px;
    border-style: solid;
    border-width: 2px;
    border-color: var(--color-main);
    box-shadow: 0px 2px 15px 5px rgba(0,0,0,0.2);
}
.gallery-picture      { max-width: 400px; }

/* ── Public service detail page ── */
/* Keep MudGrid's padding-left (it offsets the grid's negative margin-left) so the content box is centred */
.service-detail-title-wrap { padding-top: 0 !important; padding-right: 0 !important; text-align: center; }
.service-title-spacing { margin-top: 1.5rem; }
.service-main-column { padding-bottom: 0; }
.service-detail-title {
    color: var(--color-secondary-dark) !important;
    text-align: center;
    width: 100%;
    word-break: break-word;
    padding: 0 1rem;
    font-family: "Allura" !important;
    font-size: 2.75rem !important;
    line-height: 1.1;
}
.service-title-divider { margin: 0.5rem auto 1.75rem; }
.service-detail-image {
    width: calc(100% - 3rem);
    max-width: 22rem;
    height: 16rem;
    margin: 0 auto;
    border: 3px solid var(--color-secondary-dark);
    border-radius: 0.75rem;
    box-shadow: 0px 6px 20px 2px rgba(0,0,0,0.25);
}
.employee-detail-image {
    width: calc(100% - 3rem);
    max-width: 24rem;
    height: 26rem;
    margin: 0 auto;
    border: 3px solid var(--color-secondary-dark);
    border-radius: 0.75rem;
    box-shadow: 0px 6px 20px 2px rgba(0,0,0,0.25);
}
.service-detail-caption {
    display: block;
    max-width: 22rem;
    margin: 0 auto !important;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-secondary-dark);
}
.service-columns-right-inner .service-detail-caption {
    font-style: normal;
}
.employee-about-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.service-divider {
    width: 60%;
    max-width: 20rem;
    height: 1px;
    background-color: var(--color-secondary);
    margin: 1.75rem auto;
}
.service-extra-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem !important;
}
.service-columns-left-inner { width: 100%; }
.service-columns-right-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}
.service-detail-info-block, .service-gallery-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.service-gallery-block { gap: 0; margin-bottom: 3rem !important; }
.service-gallery-block .service-divider { margin-top: 0.25rem; }
.service-gallery-card, .service-price-card {
    width: calc(100% - 2rem);
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px 2px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05);
}
.service-gallery-card { padding: 1.5rem 1.5rem 1rem; }
.service-gallery-grid { padding: 0.5rem 0 0 !important; }
.service-book-link {
    display: inline-block;
    color: var(--color-main);
    font-size: 1.25rem;
    text-decoration: none;
}
.service-book-link:hover { text-decoration: underline; }
.service-text-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-main);
    font-size: 1rem;
    cursor: pointer;
}
.service-text-toggle:hover { text-decoration: underline; }
.service-detailed-info { text-align: center; }
.service-employee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.service-employee-link {
    color: var(--color-main);
    text-decoration: none;
    font-size: 1rem;
}
.service-employee-link:hover { text-decoration: underline; }
.service-gallery-title {
    color: var(--color-secondary-dark) !important;
    text-align: center;
    font-size: 2.75rem !important;
}
.service-gallery-picture {
    border: 2px solid var(--color-secondary-dark);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s;
}
.service-gallery-picture:hover { transform: scale(1.04); }
.service-gallery-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
    cursor: zoom-out;
}
.service-gallery-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}
.service-price-table-wrap { display: flex; justify-content: center; width: 100%; }
.service-price-card { overflow: hidden; }
.service-price-table {
    border-collapse: collapse;
    width: 100%;
}
.service-price-table th, .service-price-table td {
    padding: 0.6rem 1rem;
    text-align: center;
}
.service-price-table thead {
    background-color: var(--color-secondary-dark);
    color: #ffffff;
}
.service-price-table tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--color-secondary);
}
.service-desktop-only-block { display: none; }
.service-mobile-only-block.service-gallery-card { margin-top: 1.5rem; }
@media (min-width: 992px) {
    .service-detail-title { font-size: 3.75rem !important; }
    .service-detail-image { max-width: 26rem; height: 20rem; }
    .employee-detail-image { max-width: 28rem; height: 32rem; }
    .service-detail-caption { max-width: 26rem; }
    .service-main-column { padding-bottom: 3rem; }
    .service-gallery-card, .service-price-card { max-width: 28rem; }
    .service-columns-left { position: relative; }
    .service-columns-left::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: -1.5rem;
        width: 1px;
        background-color: var(--color-secondary);
    }
    .service-columns-left-inner {
        max-width: 28rem;
        margin-left: auto;
        margin-right: 2.25rem;
    }
    .service-columns-right-inner {
        max-width: 28rem;
        margin-left: 2.25rem;
        margin-right: auto;
    }
}
@media (min-width: 960px) {
    .service-mobile-only-block { display: none !important; }
    .service-desktop-only-block { display: flex; }
}

/* ── Home page ── */
.hero-section {
    position: relative;
    height: 62vh;
    overflow: hidden;
    background-image: url('/Images/Background/OrchidMobile-1300.jpg');
    background-size: cover;
    background-position: center 35%;
    box-shadow: 0px 10px 15px -1px rgba(168,158,134,0.61);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(64, 193, 172, 0.6);
}
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.hero-logo { max-height: 18vh; max-width: 58vw; }
@media (min-width: 992px) {
    .hero-logo { max-height: 11vh; max-width: 18vw; }
}

.hero-reviews-carousel {
    position: absolute !important;
    left: 50% !important;
    top: auto !important;
    bottom: 0.75rem !important;
    transform: translateX(-50%) !important;
    width: min(90vw, 32rem);
    height: 7rem;
}
.hero-review-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 1rem;
}
.hero-review-text {
    color: #ffffff;
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.55);
}
.hero-review-stars .mud-icon-root {
    color: var(--color-secondary) !important;
}
.hero-review-author {
    color: #ffffff;
    text-align: center;
    font-size: 0.85rem;
    text-shadow: 0px 2px 6px rgba(0,0,0,0.55);
}
.hero-book-btn {
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 0.45rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    backdrop-filter: blur(3px);
}
.hero-book-btn:hover {
    color: var(--color-secondary);
}

.section-divider  { width: 100%; height: 2px; background-color: var(--color-secondary); }
.section-divider-padded {
    width: 90%; height: 2px;
    background-color: var(--color-secondary);
    margin-left: 5%;
    box-shadow: 0px 0px 15px 1px rgba(241,226,192,0.6);
}

.hero-tagline-section { padding: 1.75rem 1rem 1.25rem; text-align: center; }
.hero-tagline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}
.hero-tagline-line {
    flex: 1 1 auto;
    max-width: 6rem;
    height: 1px;
    background-color: var(--color-secondary);
}
.hero-tagline-text {
    color: var(--color-secondary-dark);
    white-space: nowrap;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
}
.hero-tagline-info {
    margin: 0.75rem auto 0;
    max-width: 30rem;
    color: var(--color-secondary-dark);
    font-size: 0.95rem;
}

.transparent-bg           { background-color: transparent; }
.news-section-header { font-size: 2.2rem; margin-bottom: 0 !important; }

/* Home page team section: group photo (square crop, rounded) + logo + follow-us links.
   Layout of the section itself is in Styles/Pages/Home.css. */
.group-photo-oval-wrapper {
    position: relative;
    width: 96%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.group-photo-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 2rem;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0px 6px 18px 2px rgba(0,0,0,0.3);
}
.group-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42.5% center;
    display: block;
}
.group-photo-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
/* Only a white logo file exists, so the PNG is used as a mask and filled with the brand colour */
.group-photo-logo-tinted {
    width: min(80%, 13rem);
    aspect-ratio: 1200 / 250;
    background-color: var(--color-secondary-dark);
    -webkit-mask: url("/Images/Logos/dreamslogo_wht.png") center / contain no-repeat;
    mask: url("/Images/Logos/dreamslogo_wht.png") center / contain no-repeat;
}
.group-photo-logo-suffix {
    color: var(--color-secondary-dark);
    font-size: 1.9rem;
}
.group-photo-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: min(85%, 20rem);
}
.group-photo-social-heading {
    color: var(--color-secondary-dark);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.group-photo-social-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px 4px 15px 2px rgba(0,0,0,0.08);
    border-radius: 2rem;
    overflow: hidden;
}
.group-photo-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    text-decoration: none;
    color: var(--color-secondary-dark);
    font-size: 1.15rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.group-photo-social-link:hover { opacity: 1; }
.group-photo-social-link svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: var(--color-secondary-dark);
    flex-shrink: 0;
}
/* ── NavMenu ── */
.nav-bar       { height: 4rem; box-shadow: 0px 6px 15px 4px rgba(0,0,0,0.1); transition: background-color 0.2s; }
.nav-bar--open { background-color: var(--color-main); }
.nav-bar--closed { background-color: var(--color-main); }

.nav-logo           { height: 8vh; }
.nav-icon           { width: 4rem; }
.nav-justify-center { justify-content: center; }

.nav-mobile-menu {
    position: absolute;
    top: 4rem;
    z-index: 100;
    width: 100%;
    height: calc(100vh - 4rem);
    height: calc(100dvh - 4rem);   /* phones: visible height, so the footer isn't hidden behind the browser toolbar */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background-color: #ffffff;
    box-shadow: inset 1px 17px 15px -10px rgba(0,0,0,0.15);
    grid-template-rows: 1fr auto;   /* links fill the space, the footer sits at the bottom (scrolls along if the menu is taller) */
}
/* Grid items default to a content-based minimum width, so a long unbreakable
   nav/submenu label can force this column (and everything centered inside it)
   wider than the menu itself, shifting the visible content off to one side. */
.nav-mobile-menu > * {
    min-width: 0;
}

.nav-frame {
    width: 96%;
    max-width: 34rem;
    aspect-ratio: 6.24 / 1;
    margin: 0 auto;
    background-color: var(--color-secondary-dark);
    -webkit-mask-image: url('/Images/Frames/navmenuFrame.png');
    mask-image: url('/Images/Frames/navmenuFrame.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% auto;
    mask-size: 100% auto;
    pointer-events: none;
}
.nav-frame-bottom { transform: rotate(180deg); }

.nav-sub-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}
.nav-sub-list.d-none { display: none !important; }

/* Light nav overrides */
/* Only the bar's own icon buttons (hamburger, admin gear) — never the flag SVGs in the language pill */
.nav-bar--open .nav-bar-icon-btn svg path[stroke]          { stroke: var(--color-secondary); }   /* gold on the darker turquoise open bar */
.nav-bar--open .nav-bar-icon-btn svg path[fill]            { fill: var(--color-secondary); }
.nav-mobile-menu .main-nav-link                            { color: var(--color-main) !important; }
.nav-mobile-menu .main-nav-link:hover,
.nav-mobile-menu .main-nav-link:focus                      { background-color: transparent !important; }
.nav-mobile-menu .sub-nav-link                              { color: var(--color-main) !important; }
.nav-mobile-menu .sub-nav-link:hover,
.nav-mobile-menu .sub-nav-link:focus                        { background-color: transparent !important; }
.nav-mobile-menu .secondary-nav-link                       { color: var(--color-main) !important; }
.nav-mobile-menu .full-width-rectangle-gold                { display: none; }
/* Longer beige line above and below the whole menu list */
.nav-mobile-menu nav::before,
.nav-mobile-menu nav::after {
    content: '';
    display: block;
    width: 60%;
    max-width: 16rem;
    border-top: 1px solid var(--color-secondary-dark);
    margin: 0.75rem auto;
}
.nav-mobile-menu .nav-item a.active,
.nav-mobile-menu .nav-item .nav-link.active                { background-color: transparent !important; }


.nav-desktop-cta { margin-right: 5vw; }

/* Home utility */
.row-hero-shadow  { padding-right: 0; }
.section-top      { padding-top: 2rem; }

.flag-btn-border {
    border-style: solid;
    border-color: var(--color-secondary);
    border-width: 2px;
    border-radius: 0.2rem;
}

/* ── Carousel item transparency ── */
.mud-carousel-item { background-color: transparent !important; }

/* ── Public service browsing pages ── */
.service-page-header { color: var(--color-secondary-dark) !important; }
.service-page-header-divider {
    width: 6rem;
    max-width: 6rem;
    margin: 0.5rem 0 1.5rem;
}
.service-type-list-card { display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 3rem; }
.service-type-list-card .nav-frame { margin: 1rem auto; flex-shrink: 0; }
.service-type-list-items { display: flex; flex-direction: column; }
.service-type-list-item-link { text-decoration: none; display: block; }
.service-type-list-item {
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: background-color 0.2s;
}
.service-type-list-item:hover { background-color: rgba(64,193,172,0.06); }
.service-type-list-card .service-divider { width: 100%; max-width: none; margin: 0; }
@media (max-width: 991.98px) {
    .service-type-list-card { min-height: calc(100vh - 4rem); }
}

/* ── Gift card page ── */
.giftcard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
}
.giftcard-info { color: var(--color-secondary-dark); max-width: 28rem; }
.giftcard-buy-btn {
    display: inline-block;
    color: var(--color-secondary-dark);
    background-color: #ffffff;
    border: 2px solid var(--color-secondary);
    padding: 0.75rem 3rem;
    border-radius: 2rem;
    font-size: 1.25rem;
    text-decoration: none;
    box-shadow: 0px 6px 18px 2px rgba(0,0,0,0.2);
    transition: background-color 0.2s, color 0.2s;
}
.giftcard-buy-btn:hover { background-color: var(--color-secondary); color: #ffffff; }

.hero-service-card-link { text-decoration: none; display: block; }
.hero-service-card {
    position: relative;
    border-radius: 1.5rem !important;
    overflow: hidden;
    box-shadow: 0 4px 20px 2px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.15s;
    margin: 0.75rem 0;
}
.hero-service-card:hover { box-shadow: 0px 8px 26px 4px rgba(0,0,0,0.22); transform: translateY(-2px); }
.hero-service-card-media { height: 14rem; }
.hero-service-card-title-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: none;
    border-top: 2px solid var(--color-secondary-dark);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 4px 14px 1px rgba(0,0,0,0.25);
    padding: 1.5rem 1rem;
    text-align: center;
}

.hero-service-card-item { position: relative; }
@media (min-width: 600px) and (max-width: 959px) {
    .hero-service-card-item:not(:nth-child(2n))::after {
        content: '';
        position: absolute;
        top: 15%;
        bottom: 15%;
        right: 0;
        width: 1px;
        background-color: var(--color-secondary);
    }
    .hero-service-card-item:not(:nth-child(-n+2))::before {
        content: '';
        position: absolute;
        left: 8%;
        right: 8%;
        top: 0;
        height: 1px;
        background-color: var(--color-secondary);
    }
}
@media (min-width: 960px) {
    .hero-service-card-item:not(:nth-child(3n))::after {
        content: '';
        position: absolute;
        top: 15%;
        bottom: 15%;
        right: 0;
        width: 1px;
        background-color: var(--color-secondary);
    }
    .hero-service-card-item:not(:nth-child(-n+3))::before {
        content: '';
        position: absolute;
        left: 8%;
        right: 8%;
        top: 0;
        height: 1px;
        background-color: var(--color-secondary);
    }
}

/* Employee name: larger than the shared service title */
.service-detail-title.employee-detail-title { font-size: 3.5rem !important; }
@media (min-width: 992px) {
    .service-detail-title.employee-detail-title { font-size: 4.75rem !important; }
}

/* Work title under the name on the employee page */
.employee-work-title {
    color: var(--color-secondary-dark);
    text-align: center;
    font-size: 1.15rem !important;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.employee-join-date {
    color: var(--color-secondary-dark);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ── Employee detail reviews carousel ── */
.employee-review-card { margin-top: 1.75rem; }
.employee-reviews-carousel { height: 6.5rem; }
.employee-review-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 100%;
    padding: 0 1rem;
}
.employee-review-text {
    color: var(--color-secondary-dark);
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
}
.employee-review-author {
    color: var(--color-secondary-dark);
    text-align: center;
    font-size: 0.85rem;
}

/* ── Public team pages ── */
/* Room between the last content (intro text / employee cards) and the footer */
.team-page { padding-bottom: 3.5rem; }
@media (min-width: 768px) {
    .team-page { padding-bottom: 5rem; }
}
.team-page-header { text-align: center; width: 100%; }
.team-photo-column { display: flex; flex-direction: column; align-items: center; position: relative; }
.team-photo-frame {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0px 6px 20px 2px rgba(0,0,0,0.25);
}
.team-photo-img { display: block; width: 100%; height: auto; }
.team-intro-text {
    width: 100%;
    max-width: 34rem;
    margin: 1.5rem auto 0;
    text-align: left;
}
.team-intro-text p { margin: 0 0 1rem; }
.team-intro-text p:last-child { margin-bottom: 0; }
.team-employee-grid {
    display: grid;
    grid-template-columns: repeat(2, 12rem);
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}
.team-employee-item-link { position: relative; text-decoration: none; display: block; }
.team-employee-item-link:not(:nth-child(2n))::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: -0.75rem;
    width: 1px;
    background-color: var(--color-secondary);
}
.team-employee-item-link:not(:nth-child(-n+2))::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: -0.75rem;
    height: 1px;
    background-color: var(--color-secondary);
}
.team-employee-item {
    display: flex;
    flex-direction: column;
    width: 12rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px 2px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05);
}
.team-employee-photo {
    display: block;
    width: 100%;
    height: 9.5rem;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0px 8px 14px -4px rgba(0,0,0,0.35);
}
/* Allura (script, same as the page header) runs small, so it needs a larger size than body text */
/* Text part of the card (name + work title): beige border on all four sides (the top edge runs
   along the bottom of the photo), following the card's rounded bottom corners. */
.team-employee-text {
    flex: 1;
    border: 1px solid var(--color-secondary);
    border-radius: 0 0 1rem 1rem;
}
.team-employee-name { display: block; text-align: center; font-size: 1.85rem; line-height: 1.2; padding: 0.6rem 0.75rem 0; }
.team-employee-name:last-child { padding-bottom: 1rem; }   /* no work title → keep the card's bottom space */
/* Work title under the name on the employee card */
.team-employee-title { display: block; text-align: center; font-size: 0.85rem; letter-spacing: 0.04em; padding: 0.15rem 0.75rem 1rem; }

/* Mobile + tablet (< 992px, same switch as the nav bar): the grid is replaced by a looping carousel
   (TeamList.razor). All cards share one grid cell and are moved with transforms, so position changes
   animate: centre card full size, neighbours scaled down and peeking in from both edges, the rest hidden.
   The carousel is capped at 30rem wide so cards stay card-sized on tablets. */
.team-carousel,
.team-carousel-single { display: none; }
@media (max-width: 991.98px) {
    .team-employee-grid { display: none; }
    .team-carousel {
        display: block;
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 30rem;
        margin: 1.5rem auto 0;
        padding: 0.5rem 0 1.5rem;            /* room for the card shadows */
        touch-action: pan-y;                 /* vertical page scroll stays native; horizontal swipe is ours */
    }
    .team-carousel-single { display: flex; justify-content: center; margin-top: 1.5rem; }
    .team-carousel-single .team-carousel-item { width: 62%; max-width: 18.6rem; }   /* 62% of the 30rem cap */
    .team-carousel-track { display: grid; justify-items: center; }
    .team-carousel-item {
        grid-area: 1 / 1;
        width: 62%;
        display: block;
        text-decoration: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }
    .team-carousel-item--center    { transform: none; opacity: 1; z-index: 2; }
    .team-carousel-item--left      { transform: translateX(-88%) scale(0.85); opacity: 0.6; z-index: 1; }
    .team-carousel-item--right     { transform: translateX(88%) scale(0.85); opacity: 0.6; z-index: 1; }
    .team-carousel-item--far-left  { transform: translateX(-176%) scale(0.7); opacity: 0; z-index: 0; pointer-events: none; }
    .team-carousel-item--far-right { transform: translateX(176%) scale(0.7); opacity: 0; z-index: 0; pointer-events: none; }
    .team-carousel-item .team-employee-item { width: 100%; height: 100%; }
    .team-carousel-item .team-employee-photo { height: auto; aspect-ratio: 24 / 19; }   /* same shape as the desktop photo */

    /* Round arrow buttons on the left and right edges, over the side cards */
    .team-carousel-arrow {
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        padding: 0;
        border: 1px solid var(--color-secondary);
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--color-secondary-dark);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        cursor: pointer;
    }
    .team-carousel-arrow--prev { left: 0.25rem; }
    .team-carousel-arrow--next { right: 0.25rem; }
}

/* Mobile/tablet (< 992px, same switch as the nav bar): the left column (header, text) is flattened
   into the grid so its pieces can be interleaved with the employee cards:
   header → cards → divider (big margin) → text. The group photo is shown on desktop only. */
.team-mobile-divider { display: none; }
@media (max-width: 991.98px) {
    .team-grid > .mud-grid-item.team-photo-column { display: contents; }
    /* The column's own padding is gone with display: contents — keep the same 12px side gutter */
    .team-photo-column > .team-order-header,
    .team-photo-column > .team-order-text { width: calc(100% - 24px); }
    .team-photo-column > .team-order-photo { display: none; }   /* group photo is desktop-only */

    /* More room below the nav bar (the flattened column no longer adds its own top padding) */
    .team-page.section-top { padding-top: 3.5rem; }

    /* The column used to centre these (flex column, align-items: center); now centre them directly */
    .team-photo-column > .team-order-header { order: 1; margin-left: auto; margin-right: auto; }
    .team-photo-column > .team-order-header-divider { order: 1; margin: 0.5rem auto 1.5rem; }
    .team-grid > .mud-grid-item.team-order-cards { order: 2; }
    .team-photo-column > .team-divider-cards { display: block; order: 3; margin: 3.5rem auto; }
    .team-photo-column > .team-order-text { order: 4; margin-top: 0; padding-left: 1rem; }

    .team-employee-grid { margin-bottom: 0; }   /* the divider's margin provides the spacing */
}
/* Desktop (992px+): two 50/50 columns (the MudItems are xs="12" only — MudBlazor's md is 960px) */
@media (min-width: 992px) {
    .team-grid > .mud-grid-item.team-photo-column,
    .team-grid > .mud-grid-item.team-order-cards { flex-basis: 50%; max-width: 50%; }
    .team-photo-frame { max-width: 32rem; }
    .team-photo-column::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: -1.5rem;
        width: 1px;
        background-color: var(--color-secondary);
    }
}

.price-list-item { padding: 0.5rem 0; }
.price-list-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.price-list-name { flex: 1; }
.price-book-btn { border-radius: 2rem; white-space: nowrap; }

/* ── Public news pages ── */
.news-list-container { display: flex; flex-direction: column; }
.news-list-card-link { text-decoration: none; display: block; }
.news-list-card {
    border-radius: 0.75rem;
    box-shadow: 0px 4px 15px 2px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.15s;
    padding: 1rem;
    margin: 0.5rem 0;
}
.news-list-card:hover { box-shadow: 0px 6px 20px 4px rgba(0,0,0,0.13); transform: translateY(-2px); }
.news-list-title-divider { width: 4rem; max-width: 4rem; margin: 0.5rem 0 0.75rem; }
.news-list-date { display: block; margin-bottom: 0.5rem; }
