/* ============================================
   Custom Overrides — Client Customisations
   ============================================ */

/* --- Brand Colours --- */
:root {
    --xoomcare-base: #6A2875;
    --xoomcare-base-rgb: 106, 40, 117;
    --subtitle-color: #af49c1; /* change this one value to update ALL section subtitles */
}

/* --- Typography --- */
:root {
    --xoomcare-font: "Noto Sans", sans-serif;
    --xoomcare-heading-font: "M PLUS Rounded 1c", sans-serif;
}

body {
    font-family: var(--xoomcare-font);
    font-size: 1.1rem; /* ~17.6px, matching competitor */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--xoomcare-heading-font);
}

/* Heading sizes & weights — matched to competitor */
h2 {
    font-size: 3rem;       /* 48px */
    font-weight: 800;
    line-height: 1.3;
}

h3 {
    font-size: 1.6rem;     /* ~25.6px */
    font-weight: 700;
}

h4 {
    font-weight: 700;
}

/* Buttons — Noto Sans bold, no odd letter-spacing */
.xoomcare-btn,
.xoomcare-btn-white,
button,
input[type="submit"],
input[type="button"] {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

/* Form inputs & labels */
input,
textarea,
select,
label {
    font-family: "Noto Sans", sans-serif;
}

/* ============================================
   Header — 3-column layout: logo | nav | icons
   ============================================ */

/* Top bar (phone, email, hours strip) — hidden via HTML class (d-lg-block removed).
   To re-enable, restore class="xc-header-one-top d-none d-lg-block" in index-one-page.html */

@media (min-width: 1200px) {
    /* Wrapper becomes positioning anchor for the centered nav */
    .xc-header-one__wrapper {
        position: relative;
        /* template already sets display:flex + justify-content:space-between */
    }
    /* Right column: push icons to the far right */
    .xc-header-one__right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .xc-header-one__right-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    /* Nav: absolutely centered across the full header width.
       Bootstrap's d-xl-block sets display:block !important — we don't
       fight it. The centering is entirely via position/transform. */
    .xc-main-menu.d-none.d-xl-block {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        pointer-events: auto;
        /* display:block is fine — the inner ul/li handle their own layout */
    }
}

/* Fix: give the <header> element a stacking context so the Staffing dropdown
   submenu renders above the hero slider section. The hero has position:relative
   + z-index via .p-relative and custom hero CSS, which otherwise covers the
   dropdown. z-index:100 beats the hero (z-index:2/10) while staying below the
   cloned sticky header (z-index:999).
   Applied to <header> instead of #xc-sticky-header to avoid interfering with
   the JS-cloned sticky header copy. */
header {
    position: relative;
    z-index: 100;
}

/* Keep clear header/page separation on staffing pages */
.xc-staffing-page #xc-sticky-header {
    box-shadow: 0 8px 22px rgba(25, 10, 32, 0.08);
    border-bottom: 1px solid rgba(var(--xoomcare-base-rgb), 0.1);
}

/* Nav icon buttons (email, phone, NDIS badge) */
/* Logo — reduce padding to compensate for larger logo width (keeps navbar same height).
   Template default is padding: 20px 0 in xoomcare.css. */
.xc-header-one__logo {
    padding: 11px 0;
}

/* Logo wrap: stack image and tagline vertically */
.xc-logo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-decoration: none;
}

.xc-logo-tagline {
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--xoomcare-base); /* match brand purple from logo */
    line-height: 1;
    padding-left: 76px; /* aligns start under the 'C' in CommunityCare */
    margin-top: -6px;  /* tuck closer to the WA line in the image */
}

@media (max-width: 768px) {
    .xc-header-one__logo {
        padding: 5px 0;
    }
    .xc-header-one__logo img {
        width: 180px; /* Reduced by ~20% from 224px */
    }
}

.xc-header-nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Referral button */
.xc-nav-text-btn,
.xc-nav-text-btn:visited,
.xc-nav-text-btn:focus,
.xc-nav-text-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background-color: #1c6caf; /* Updated blue background */
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    flex-shrink: 0;
    outline: none;
}

.xc-nav-text-btn:hover {
    background-color: #1c6caf;
    color: #ffffff;
    transform: translate(-2px, -3px);
    box-shadow: 3px 3px var(--xoomcare-base);
}

/* Email & phone icon buttons — change width/height here to resize.
   Also update height on .xc-nav-icon-btn--ndis img to match. */
.xc-nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 36px;
    background-color: #ffde5c;
    color: #2C1233;
    border-radius: 8px;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    flex-shrink: 0;
    outline: none;
}

.xc-nav-icon-btn:hover {
    background-color: #ffde5c;
    color: #2C1233;
    transform: translate(-2px, -3px);
    box-shadow: 3px 3px var(--xoomcare-base);
}

/* NDIS badge — no yellow box, just the image, no hover effect */
.xc-nav-icon-btn--ndis {
    background-color: transparent;
    width: auto;
    padding: 0;
    transition: none;
}

.xc-nav-icon-btn--ndis:hover {
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

.xc-nav-icon-btn--ndis img {
    height: 54px;
    width: auto;
    display: block;
}

/* Mobile Hamburger Menu Spacing */
@media (max-width: 1199.98px) {
    .xc-header-one__hamburger {
        margin-right: 15px;
    }
}

/* Header padding reduction on mobile */
@media (max-width: 768px) {
    .xc-header-one__wrapper {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* Show scroll-to-top button on mobile */
@media (max-width: 768px) {
    .xc-back-to-top-wrapper {
        display: none !important;
    }
}

/* Speed up the mobile menu animation to remove the delay */
.xc-mobile-nav__wrapper, 
.xc-mobile-nav__wrapper.opened {
    transition: transform 0.4s ease-out 0s, visibility 0.4s ease-out 0s !important;
}
.xc-mobile-nav__content {
    transition: opacity 0.4s ease-out 0s, visibility 0.4s ease-out 0s, transform 0.4s ease-out 0s !important;
}

/* ============================================
   Mobile Menu Overhaul — Brand Purple Edition
   ============================================ */

/* Remove backdrop overlay entirely */
.xc-mobile-nav__overlay,
.xc-body-overlay {
    background-color: transparent !important;
    display: none !important;
}

/* Full-screen brand purple panel */
.xc-mobile-nav__content {
    width: 100vw !important;
    background-color: var(--xoomcare-base) !important;
    padding: max(16px, env(safe-area-inset-top)) 30px 40px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute !important;
}

/* Show logo — white version at top */
.xc-mobile-nav__content .logo-box {
    display: block !important;
    text-align: center;
    margin-bottom: 10px !important;
    padding-top: 10px;
}
.xc-mobile-nav__content .logo-box a {
    display: inline-block;
}
.xc-mobile-nav__content .logo-box img {
    max-width: 160px;
    height: auto;
}

/* Hide about section (not needed) */
.xc-mobile-nav-about {
    display: none !important;
}

/* Show contact info — styled for purple background */
.xc-mobile-nav-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    margin-bottom: 0 !important;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
}
.xc-mobile-nav-cta__item {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.xc-mobile-nav-cta__icon {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    color: #ffde5c !important;
}
.xc-mobile-nav-cta__title {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px !important;
}
.xc-mobile-nav-cta__info {
    font-size: 14px !important;
    color: #ffffff !important;
}
.xc-mobile-nav-cta__info a {
    color: #ffffff !important;
    text-decoration: none !important;
    background-image: none !important;
}
.xc-mobile-nav-cta__info a:hover {
    color: #ffde5c !important;
}

/* Close button — white X on purple, top-right corner of panel
   Root fix: the <a> shares .xc-search-popup__close which uses
   position:absolute + ::before/::after with right:0.
   We override all relevant properties with !important to avoid
   misalignment between element background and pseudo-element X. */
.xc-mobile-nav__close,
.xc-mobile-nav__content > .xc-search-popup__close {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
    display: block !important;
    z-index: 100;
    border-radius: 0;
    background: none !important;
    background-color: transparent !important;
    cursor: pointer;
}
.xc-mobile-nav__close:hover,
.xc-mobile-nav__content > .xc-search-popup__close:hover {
    background: none !important;
    background-color: transparent !important;
}
/* X pseudo-elements — centered in the 36×36 hit area */
.xc-mobile-nav__close::before,
.xc-mobile-nav__close::after,
.xc-mobile-nav__content > .xc-search-popup__close::before,
.xc-mobile-nav__content > .xc-search-popup__close::after {
    content: " " !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    width: 24px !important;
    height: 2.5px !important;
    margin-top: -1.25px !important;
    margin-left: -12px !important;
    background-color: #ffffff !important;
    transition: transform 0.2s ease;
}
.xc-mobile-nav__close::before,
.xc-mobile-nav__content > .xc-search-popup__close::before {
    transform: rotate(45deg) !important;
}
.xc-mobile-nav__close::after,
.xc-mobile-nav__content > .xc-search-popup__close::after {
    transform: rotate(-45deg) !important;
}
/* Hover — rotate to parallel lines */
.xc-mobile-nav__close:hover::before,
.xc-mobile-nav__close:hover::after,
.xc-mobile-nav__content > .xc-search-popup__close:hover::before,
.xc-mobile-nav__content > .xc-search-popup__close:hover::after {
    background-color: #ffde5c !important;
}

/* Navigation links container */
.xc-mobile-nav__menu {
    width: 100%;
    padding-bottom: 0 !important;
    margin-top: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove list-style dots / markers */
.xc-mobile-nav__menu ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Menu item styling */
.xc-mobile-nav__menu ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center;
}
.xc-mobile-nav__menu ul li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Menu link styling — white on purple */
.xc-mobile-nav__menu ul li a {
    font-family: "M PLUS Rounded 1c", "Noto Sans", sans-serif;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    padding: 14px 0 !important;
    display: block;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: none;
}

.xc-mobile-nav__menu ul li a:hover,
.xc-mobile-nav__menu ul li a:active {
    color: #ffde5c !important;
    letter-spacing: 1.5px;
}

/* Submenu container */
.xc-mobile-nav__menu .submenu {
    background-color: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin: 4px 20px 8px !important;
    padding: 4px 0 !important;
}
/* Submenu items — no extra top/bottom borders */
.xc-mobile-nav__menu .submenu li {
    border-bottom: none !important;
}
.xc-mobile-nav__menu .submenu li:first-child {
    border-top: none !important;
}
/* Submenu links — slightly smaller */
.xc-mobile-nav__menu .submenu li a {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 10px 15px !important;
}
.xc-mobile-nav__menu .submenu li a:hover {
    color: #ffde5c !important;
}

/* Dropdown toggle button — fix the purple square artifact */
.xc-mobile-nav__menu .dropdown-toggle-btn {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 12px !important;
    top: 12px !important;
    right: 10px !important;
    transition: all 0.2s ease;
}
.xc-mobile-nav__menu .dropdown-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Mobile Referral CTA Button */
.xc-mobile-nav-referral {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    text-align: center;
    padding: 25px 0 15px;
    flex: 0 0 auto;
}
.xc-mobile-nav-referral__btn {
    display: inline-block !important;
    visibility: visible !important;
    background-color: #ffde5c;
    color: #2C1233 !important;
    font-family: "M PLUS Rounded 1c", "Noto Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.15s ease;
}
.xc-mobile-nav-referral__btn i {
    margin-right: 8px;
}
.xc-mobile-nav-referral__btn:hover {
    background-color: #ffe97f;
    color: #2C1233 !important;
    transform: scale(1.03);
}

/* Mobile Nav Social Icons */
.xc-mobile-nav-social a {
    color: rgba(255, 255, 255, 0.7) !important;
}
.xc-mobile-nav-social a:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

/* --- Desktop Nav links --- */
.xc-main-menu nav ul li a {
    font-family: "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    padding-top: 22px;
    padding-bottom: 22px;
}

/* ============================================
   Hero Section — Colour Overrides
   ============================================ */

/* Background tint */
.xc-main-slider-one {
    background-color: rgba(var(--xoomcare-base-rgb), 0.06);
}

/* Subtitle text */
.xc-main-slider-one__subtitle,
.xc-hero-one__subtitle {
    color: var(--subtitle-color);
}

/* Subtitle decorative icon — replaces the line */
.xc-main-slider-one__subtitle.has-line::before,
.xc-hero-one__subtitle.has-line::before {
    background-color: transparent;
    background-image: url(../img/icons/sub-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    top: 4px;
    border-radius: 0;
}

/* Heading title */
.xc-main-slider-one__title {
    color: #2B2B2B;
}

/* CTA button — global default stays purple */
.xoomcare-btn {
    background-color: var(--xoomcare-base);
    color: #ffffff;
    border: 2px solid var(--xoomcare-base);
}
.xoomcare-btn:hover {
    background-color: #541F5D;
    border-color: #541F5D;
    color: #ffffff;
}

/* About modal trigger button: keep a stable look after click/focus */
.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"],
.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:hover,
.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:focus,
.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:focus-visible,
.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:active {
    background-color: var(--xoomcare-base);
    border-color: var(--xoomcare-base);
    color: #ffffff;
}

.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"] {
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:hover {
    transform: translate(-2px, -3px);
    box-shadow: 3px 3px #ffde5c;
}

.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:focus,
.xc-about-two__btns .xoomcare-btn[data-bs-target="#aboutModal"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--xoomcare-base-rgb), 0.25);
    outline: none;
}

/* Hero slider CTA only — yellow with dark text (accessibility) */
.xc-main-slider-one__btns .xoomcare-btn {
    background-color: #ffde5c;
    color: #2C1233;
    border-color: #ffde5c;
}
.xc-main-slider-one__btns .xoomcare-btn i {
    color: #2C1233;
}
.xc-main-slider-one__btns .xoomcare-btn:hover {
    background-color: #F4C400;
    border-color: #F4C400;
    color: #2C1233;
}
.xc-main-slider-one__btns .xoomcare-btn:hover i {
    color: #2C1233;
}

/* Hero one CTA button — yellow */
.xc-hero-one__btns .xoomcare-btn {
    background-color: #ffde5c;
    color: #2C1233;
    border-color: #ffde5c;
}
.xc-hero-one__btns .xoomcare-btn i {
    color: #2C1233;
}
.xc-hero-one__btns .xoomcare-btn:hover {
    background-color: #F4C400;
    border-color: #F4C400;
    color: #2C1233;
}

/* Mobile custom arrow colors */
@media (max-width: 767.98px) {
    .mobile-custom-arrow {
        background-color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    .mobile-custom-arrow i {
        color: var(--xoomcare-base) !important;
    }
}

/* Call link text */
.xc-main-slider-one__call {
    color: #2B2B2B;
}
.xc-main-slider-one__call:hover {
    color: var(--xoomcare-base);
}

/* Call icon circle — symbol colour; bg stays white */
.xc-main-slider-one__call i {
    color: var(--xoomcare-base);
}
.xc-main-slider-one__call:hover i {
    background-color: var(--xoomcare-base);
    color: #ffffff;
}

/* Carousel dots — active / hover */
.xoomcare-owl__carousel--basic-nav.owl-carousel .owl-dots .owl-dot:hover,
.xoomcare-owl__carousel--basic-nav.owl-carousel .owl-dots .owl-dot.active {
    background-color: #a7d57a;
}

/* Brush-stroke ring around hero image */
.xc-main-slider-one__img::after {
    background-color: #7A3B85;
}

/* Hero image — 80% opacity (base + override carousel's .active rule which sets opacity:1) */
.xc-main-slider-one__img {
    opacity: 0.9;
}
.xc-main-slider-one__carousel .active .xc-main-slider-one__img {
    opacity: 0.9;
}

/* Brand logo strip immediately below hero */
.xc-banner-one.base-bg {
    background-color: var(--xoomcare-base);
}

/* ============================================
   Hero Vanilla Image Slider
   ============================================ */

/* Slider wrapper — inherits the height from .xc-hero-one inside it */
.xc-hero-slider-section {
    position: relative;
    overflow: hidden;
}

/* Background image layers — stacked absolutely, crossfade via opacity */
.xc-hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.xc-hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    /* Safari flicker fix — force GPU compositing */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.xc-hero-bg-slide--active {
    opacity: 1;
    z-index: 1;
}

/* Content overlay sits above the background slides */
.xc-hero-slider-section > .xc-hero-one {
    position: relative;
    z-index: 2;
}

/* Vertical dot navigation — left side, vertically centered */
.xc-hero-dots {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xc-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.xc-hero-dot--active {
    background-color: #ffde5c;
    border-color: #ffde5c;
}

.xc-hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: #ffffff;
}

.xc-hero-dot--active:hover {
    background-color: #ffde5c;
    border-color: #ffde5c;
}

.xc-hero-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Screen reader only utility (if not already defined) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mobile: dots move to bottom center, horizontal */
@media (max-width: 767.98px) {
    .xc-hero-dots {
        left: 50%;
        top: auto;
        bottom: 18px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 10px;
    }

    .xc-hero-dot {
        width: 8px;
        height: 8px;
    }
}

/* --- About section: feature list pills always visible ---
   Template uses z-index:-1 at mobile, 768-991px (inherited), and ≥1200px — hiding pills
   behind the image. Fix each breakpoint individually without breaking the layout. */

/* Mobile default: template uses margin-top:-65px + z-index:-1 to tuck pills under the
   specially-shaped demo image. With a rectangular photo we keep the pull but fix z-index
   so pills render in front of the image instead of behind it. */
.xc-about-two__feature {
    z-index: 2 !important;
    margin-top: -65px !important;
}

/* 768-991px: template correctly uses position:absolute;bottom:0 (side-by-side pills at
   image bottom) — let that stand, just fix the inherited z-index:-1 so they're visible. */
@media (min-width: 768px) and (max-width: 991px) {
    .xc-about-two__feature {
        z-index: 2 !important;
        margin-top: 0 !important;
        position: absolute !important;
    }
}

/* ≥1200px: template uses bottom:-60px and z-index:-1 — fix both. */
@media (min-width: 1200px) {
    .xc-about-two__feature {
        z-index: 2 !important;
        bottom: 0 !important;
    }
}

/* About section: Registered NDIS badge (replaces social icons) */
.about-ndis-badge {
    height: 50px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 15px;
}

/* About feature list: custom image icons (replacing icon font) */
.xc-about-two__feature-list .feature-icon {
    width: 55px;
    height: 55px;
    padding: 10px;
    object-fit: contain;
    border: 1px dashed var(--xoomcare-base);
    border-radius: 50%;
}

/* About section testimonial: remove avatar and keep only quote icon with clean alignment */
.xc-about-two__testi {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}

.xc-about-two__testi-img {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
}

.xc-about-two__testi-quote {
    position: static;
}

.xc-about-two__testi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.xc-about-two__testi-info p {
    margin-bottom: 6px;
}

.xc-testi-attribution {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--xoomcare-base);
    letter-spacing: 0.01em;
}

/* About section: core values accent strip */
.xc-about-values {
    margin-top: 20px;
    margin-bottom: 0;
}

.xc-about-values__bar {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background-color: #ffde5c;
    margin-bottom: 12px;
}

.xc-about-values__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--xoomcare-base);
    letter-spacing: 0.04em;
    line-height: 1.6;
    margin: 0;
}

/* About section: tighten heading-to-body spacing */
.xc-about-two__right .xc-heading.mb-30 {
    margin-bottom: 20px !important;
}

/* About section: tighten CTA section gap (quote removed) */
.xc-about-two__btns {
    margin-top: 24px;
}

/* ============================================
   Section subtitles — consistent icon prefix + colour
   (matches the hero "Care That Understands You" style)
   ============================================ */
.xc-heading__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--subtitle-color);
}

.xc-heading__subtitle::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: transparent;
    background-image: url(../img/icons/sub-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    position: relative;
    top: 0;
}

/* ============================================
   About Us Modal
   ============================================ */
.about-modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    box-shadow: none;
}

.about-modal-header {
    background: rgba(var(--xoomcare-base-rgb), 0.08);
    padding: 16px 24px;
    border-bottom: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
}

.about-modal-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.about-modal-body {
    padding: 40px 30px 50px;
    background: #fff;
}

.about-modal-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.09em;
}

.about-modal-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 600;
    font-size: 1.34rem;
    line-height: 1.5;
    color: #4b4b4b;
    margin-bottom: 30px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.about-modal-text {
    color: #4f4f4f;
    line-height: 1.75;
    font-size: 1rem;
    margin: 0;
}

.about-modal-heading-underlined {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--xoomcare-base);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.about-modal-heading-underlined::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background-color: #ffde5c;
    border-radius: 2px;
}

.about-modal-panel {
    background: rgba(var(--xoomcare-base-rgb), 0.04);
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.10);
    border-radius: 14px;
    padding: 22px 20px;
    height: 100%;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .about-modal-content {
        border-radius: 0;
    }

    .about-modal-body {
        padding: 30px 20px 40px;
    }

    .about-modal-header {
        padding: 12px 16px;
    }

    .about-modal-logo {
        height: 28px;
    }

    .about-modal-title {
        font-size: 1.16rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .about-modal-heading-underlined {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .about-modal-panel {
        padding: 18px 16px;
    }

    .about-modal-text {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}

/* ============================================
   Services grid: yellow underline on title hover
   ============================================ */
.xc-service-two__item:hover .xc-service-two__title a {
    background-image: linear-gradient(#ffde5c, #ffde5c), linear-gradient(#ffde5c, #ffde5c);
}

/* ============================================
   Custom Event Card Styles
   ============================================ */
.xc-event-one__content {
    height: 100%;
    min-height: 220px;
}

.xc-event-one__meta span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* --- Events: mobile card typography scaling --- */
@media (max-width: 767.98px) {
    /* Event card title — template default 30px is too large on mobile */
    .xc-event-one__title {
        font-size: 22px;
    }

    /* Remove excessive min-height on stacked mobile cards */
    .xc-event-one__content {
        min-height: auto;
    }
}

/* ============================================
   Testimonials in dark section: typography tune
   ============================================ */
#testimonials .xc-heading__title {
    font-size: 3rem;
    line-height: 1.2;
}

#testimonials .xc-heading.xc-heading__white .xc-heading__subtitle {
    color: #ffffff;
}

#testimonials .xc-testimonial-one__review {
    font-size: 1.05rem;
    line-height: 1.7;
}

#testimonials .xc-testimonial-one__name {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 4px;
}

#testimonials .xc-testimonial-one__bio {
    font-size: 0.95rem;
}

#testimonials .xc-testimonial-one__ratting-text {
    font-size: 1rem;
    font-weight: 700;
}

/* Keep testimonial cards visually equal even with different text lengths */
#testimonials .owl-stage {
    display: flex;
}

#testimonials .owl-item {
    display: flex;
    height: auto;
}

#testimonials .item {
    width: 100%;
    display: flex;
}

#testimonials .xc-testimonial-one__item {
    width: 100%;
    /* removed arbitrary min-height so cards fit content natively while still equalized by flexbox */
    display: flex;
    flex-direction: column;
    padding: 30px; /* Compress the card padding to make it less bulky */
}

/* Replace image row with simple quote row layout */
#testimonials .xc-testimonial-one__top {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#testimonials .xc-testimonial-one__quote-icon {
    color: #FFDE5C;
    font-size: 28px;
    opacity: 0.9;
}

#testimonials .xc-testimonial-one__ratting {
    display: flex;
    align-items: center;
    gap: 8px;
}

#testimonials .xc-testimonial-one__review {
    flex-grow: 1;
    margin-bottom: 16px;
}

#testimonials .xc-testimonial-one__name {
    margin-top: auto;
}

/* Change slider dots to brand yellow */
#testimonials .owl-carousel .owl-dots .owl-dot:hover,
#testimonials .owl-carousel .owl-dots .owl-dot.active {
    background-color: #FFDE5C;
}

@media (max-width: 1199px) {
    #testimonials .xc-heading__title {
        font-size: 2.4rem;
    }
}

@media (max-width: 767px) {
    #testimonials .xc-heading__title {
        font-size: 2rem;
    }

    #testimonials .xc-testimonial-one__review {
        font-size: 1rem;
    }

    #testimonials .xc-testimonial-one__name {
        font-size: 1.2rem;
    }

    #testimonials .xc-testimonial-one__item {
        padding: 24px; /* Even tighter on mobile */
    }
}

/* ============================================
   Service Detail Modal
   ============================================ */
.service-modal-content {
    border-radius: 22px;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.1);
    box-shadow: 0 18px 55px rgba(44, 18, 51, 0.14);
    overflow: hidden;
}

.service-modal-header {
    background: linear-gradient(180deg, rgba(var(--xoomcare-base-rgb), 0.08) 0%, rgba(var(--xoomcare-base-rgb), 0.03) 100%);
    border-bottom: 1px solid rgba(var(--xoomcare-base-rgb), 0.1);
    padding: 18px 28px;
}

.service-modal-title {
    font-size: 1.6rem;
    color: #2c1233;
    font-weight: 800;
}

.service-modal-body {
    padding: 26px 30px 36px;
    background: #ffffff;
}

.service-modal-section {
    margin-top: 20px;
}

.service-modal-text-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
}

.service-modal-heading-underlined {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--xoomcare-base);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
    align-self: flex-start;
}

.service-modal-heading-underlined::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffde5c;
    border-radius: 2px;
}

.service-modal-section-title {
    font-size: 1.5rem;
    color: #2c1233;
    margin-bottom: 12px;
}

.service-modal-lead,
.service-modal-how-lead,
.service-modal-closing {
    color: #595959;
    line-height: 1.75;
}

.service-modal-how-lead {
    margin: 0 auto;
    max-width: 700px;
}

.service-modal-image-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(44, 18, 51, 0.12);
}

.service-modal-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 290px;
    max-height: 360px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.service-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.service-modal-list li {
    position: relative;
    padding-left: 18px;
    color: #2f2f2f;
    line-height: 1.65;
}

.service-modal-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffde5c;
}

.service-modal-pill {
    border-radius: 16px;
    padding: 20px 18px;
    height: 100%;
}

.service-modal-pill--base {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 6px solid var(--xoomcare-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-modal-pill--base .service-modal-list li {
    color: #423848;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-modal-pill--base .service-modal-list li::before {
    content: "";
    position: static;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A2875' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 0;
}

.service-modal-pill--accent {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 6px solid #6FA84E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-modal-pill--accent .service-modal-list li {
    color: #423848;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-modal-pill--accent .service-modal-list li::before {
    content: "";
    position: static;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236FA84E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 0;
}

.service-modal-closing {
    margin-top: 20px;
    text-align: center;
}

.service-modal-how-wrap {
    margin-top: 24px;
    padding: 22px 18px 18px;
    border-radius: 18px;
    background: rgba(var(--xoomcare-base-rgb), 0.04);
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.09);
}

@media (max-width: 991.98px) {
    .service-modal-body {
        padding: 22px 18px 26px;
    }

    .service-modal-title {
        font-size: 1.3rem;
    }

    .service-modal-section-title {
        font-size: 1.25rem;
    }

    .service-modal-image-wrap img {
        min-height: 220px;
        max-height: 280px;
    }

    .service-modal-how-wrap {
        padding: 18px 14px 14px;
    }
}

/* ============================================
   Services section: separate non-NDIS card
   ============================================ */
.xc-service-two__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 30px;
    margin-bottom: 10px;
    line-height: 1;
}

.xc-service-two__tag--non-ndis {
    background: #f4e7f7;
    color: var(--xoomcare-base);
}

.xc-service-two__extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.14);
    background: rgba(var(--xoomcare-base-rgb), 0.04);
    border-radius: 14px;
    padding: 22px 26px;
}

.xc-service-two__extra-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.xc-service-two__extra-icon {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    background: var(--xoomcare-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 35px;
}

.xc-service-two__extra-title {
    font-family: var(--xoomcare-heading-font);
    font-size: 1.55rem;
    margin: 10px 0 6px;
}

.xc-service-two__extra-text {
    color: #606060;
    font-size: 0.98rem;
}

.xc-service-two__extra-btn {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--xoomcare-base);
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xc-service-two__extra-btn:hover {
    color: #ffffff;
    background: var(--xoomcare-base);
    border-color: var(--xoomcare-base);
}

@media (max-width: 767.98px) {
    .xc-service-two__extra {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .xc-service-two__extra-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .xc-service-two__extra-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .xc-service-two__extra-title {
        font-size: 1.28rem;
    }
}

/* ============================================
   Footer Redesign — Full-Width Brand Purple
   ============================================ */

/* --- Override template dark background --- */
.xc-footer-one__overlay {
    background-color: var(--xoomcare-base) !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

/* --- Remove template dark overlay --- */
.xc-footer-one__overlay::before {
    display: none !important;
}

/* --- Subtle radial glow behind content area --- */
.xc-footer-one__overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(175, 73, 193, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Ensure content sits above decorative layers --- */
.xc-footer-one__wrapper,
.xc-footer-one__copyright {
    position: relative;
    z-index: 1;
}

/* --- Reduce top padding for cleaner proportions --- */
.xc-footer-one.pt-120 {
    padding-top: 80px !important;
}

/* --- Widget title with marker-highlight style (matching staffing page) --- */
.xc-footer-one__widget-title {
    font-family: var(--xoomcare-heading-font);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    display: inline-block;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    padding: 2px 0;
}

.xc-footer-one__widget-title::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #d9a622;
    top: 0px;
    bottom: 0px;
    left: -6px;
    right: -6px;
    border-radius: 3px 8px 4px 6px;
    transform: rotate(-1deg);
}

/* --- Nav links — softer default, green hover --- */
.xc-footer-one__nav li a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.xc-footer-one__nav li a:hover {
    color: #6fa84e;
    padding-left: 4px;
}

/* --- Contact/CTA links --- */
.xc-footer-one__cta li a {
    color: rgba(255, 255, 255, 0.85);
}

.xc-footer-one__cta li a:hover {
    color: #6fa84e;
}

.xc-footer-one__cta li i {
    color: #6fa84e;
}

/* --- Copyright strip — dark plum bar, full-width --- */
.xc-footer-one__copyright {
    background: #23112C;
    border-top: none;
    margin-top: 0;
    padding: 15px 0;
    width: 100%;
    height: auto !important;
    min-height: 75px;
}

.xc-footer-one__copyright p,
.xc-footer__copyright__text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.xc-footer-one__copyright p a {
    color: rgba(255, 255, 255, 0.85);
}

.xc-footer-one__copyright p a:hover {
    color: #ffffff;
    background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
}

/* --- Footer NDIS Badge — frosted glass on purple --- */
.xc-footer-ndis {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
}

.xc-footer-ndis__badge {
    width: 52px;
    flex-shrink: 0;
}

.xc-footer-ndis__text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

.xc-footer-ndis__text strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.04em;
}

/* --- Footer Developer Credit --- */
.xc-footer__credit-wrap {
    opacity: 0.5;
    font-size: 0.9em;
    margin-left: 8px;
    transition: opacity 0.3s ease;
}

.xc-footer__credit-wrap:hover {
    opacity: 1;
}

.xc-footer__credit-wrap a {
    color: inherit;
    text-decoration: none;
}

.xc-footer__credit-wrap a:hover {
    color: #ffffff;
    background-image: none;
}

/* --- Footer Acknowledgement of Country --- */
.xc-footer-acknowledgement {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.80);
}

.xc-footer-flags {
    display: block;
    margin-top: 18px;
    width: 100%;
    max-width: 230px;
    border-radius: 4px;
}

/* --- Footer Logo — slight glow on purple bg --- */
.xc-footer-one__logo img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.10));
}

/* --- Mobile: prevent long email links from overflowing containers --- */
@media (max-width: 575.98px) {
    .xc-contact-page__cta__info a,
    .xc-footer-one__cta li a {
        overflow-wrap: break-word;
        word-break: break-all;
    }
}

/* --- Mobile Footer: condense spacing for shorter scroll ---
     Reduces top padding, inter-column gaps, widget title margins,
     acknowledgement text size, logo size, flags width, NDIS badge,
     and copyright strip — all without removing any content.
   ------------------------------------------------------------ */
@media (max-width: 767.98px) {

    /* 1. Reduce top padding from 80px → 50px */
    .xc-footer-one.pt-120 {
        padding-top: 50px !important;
    }

    /* 2. Reduce bottom padding of wrapper from 60px → 30px */
    .xc-footer-one__wrapper.pb-60 {
        padding-bottom: 30px !important;
    }

    /* 3. Tighten row gutter from 40px → 24px */
    .xc-footer-one__wrapper .row.gutter-y-40 {
        --bs-gutter-y: 24px !important;
    }

    /* 4. Smaller footer logo */
    .xc-footer-one__logo img {
        width: 200px !important;
    }
    .xc-footer-one__logo.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    /* 5. Smaller acknowledgement text, tighter line-height */
    .xc-footer-acknowledgement {
        font-size: 0.8rem !important;
        line-height: 1.45 !important;
        margin-bottom: 0 !important;
    }

    /* 6. Smaller flags image */
    .xc-footer-flags {
        max-width: 160px;
        margin-top: 12px;
    }

    /* 7. Tighter widget title spacing */
    .xc-footer-one__widget-title {
        margin-bottom: 16px !important;
        font-size: 19px !important;
    }

    /* 8. Tighter nav link spacing */
    .xc-footer-one__nav li {
        margin-bottom: 0 !important;
    }
    .xc-footer-one__nav li + li {
        margin-top: 4px !important;
    }
    .xc-footer-one__nav li a {
        font-size: 14px !important;
    }

    /* 9. Compact NDIS badge */
    .xc-footer-ndis {
        margin-top: 12px;
        padding: 8px 12px;
        gap: 8px;
    }
    .xc-footer-ndis__badge {
        width: 40px;
    }
    .xc-footer-ndis__text {
        font-size: 0.75rem;
    }
    .xc-footer-ndis__text strong {
        font-size: 0.88rem;
    }

    /* 10. Compact CTA list items */
    .xc-footer-one__cta {
        margin-bottom: 8px !important;
    }
    .xc-footer-one__cta li {
        font-size: 14px !important;
        margin-bottom: 0 !important;
    }
    .xc-footer-one__cta li + li {
        margin-top: 6px !important;
    }

    /* 11. Copyright strip tighter */
    .xc-footer-one__copyright {
        min-height: auto !important;
        padding: 12px 0 !important;
    }

    /* 12. "Site by CodeforIt." on its own line on mobile */
    .xc-footer__credit-wrap {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 4px;
    }
}

/* --- Mobile Header: Show "Caring with Dignity" tagline ---
     Overrides Bootstrap d-none d-md-block to always show tagline,
     with adjusted positioning for small screens.
   ------------------------------------------------------------ */
@media (max-width: 767.98px) {
    .xc-logo-tagline {
        display: block !important;
        padding-left: 58px; /* align under smaller logo */
        font-size: 7px;
        margin-top: -4px;
    }
}

/* --- Global: consistent mobile section title sizing --- */
@media (max-width: 767.98px) {
    /* All section titles share the same mobile size for consistency */
    .xc-heading__title {
        font-size: 28px !important;
    }
}

/* --- Contact section: mobile typography scaling --- */
@media (max-width: 767.98px) {
    /* Reduce section padding on mobile */
    #contact.xc-contact-page {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* "Get In Touch" heading — h2 is 36px by default, too large on mobile */
    .xc-cotnact-page__title {
        font-size: 24px !important;
    }

    /* Phone / email / address info — h4 is 24px by default, needs to be body-like */
    .xc-contact-page__cta__info {
        font-size: 16px !important;
    }

    /* "Send A Message" form heading — h3 is 28px, scale down */
    .xc-contact-page__form-title {
        font-size: 22px !important;
    }

    /* CTA label text */
    .xc-contact-page__cta-title {
        font-size: 14px;
    }

    /* Reduce headline bottom margin */
    .xc-contact-page__headline.mb-40 {
        margin-bottom: 20px !important;
    }
}

/* ============================================
   Service Detail Modal - Tabbed Cards
   ============================================ */
.service-category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.service-category-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    height: 100%;
}

.service-category-card__tab {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.service-category-card__title {
    color: #fff;
    font-size: 1.10rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.service-category-card__content {
    flex: 1;
    padding: 24px 25px;
    display: flex;
    align-items: flex-start;
}

.service-category-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.service-category-card__list li {
    position: relative;
    padding-left: 22px;
    color: #423848;
    font-size: 1rem;
    line-height: 1.6;
}

.service-category-card__list li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--xoomcare-base);
    opacity: 0.85;
}

@media (max-width: 900px) {
    .service-category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-category-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Feature Section Icons
   ============================================ */
.custom-feature-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes the icons white to match the previous font icons */
    display: block;
}

.xc-feature-two__icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.xc-feature-two__icon {
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out !important;
}

.xc-feature-two__item:hover .xc-feature-two__icon {
    background-color: rgba(var(--xoomcare-secondary-rgb), 0.2) !important;
    border-color: #FFDE5C !important;
    animation: none !important; /* Remove the default shake animation for a smoother effect */
}

/* ============================================
   Events Section
   ============================================ */
.xc-event-one {
    background-color: #FBF9FC;
    /* pt-120 and pb-120 classes in HTML already provide 120px padding */
}

.xc-event-one__item {
    background-color: #ffffff;
    border-radius: 10px; /* Assuming some border radius is needed, or it might already have one */
}

/* ============================================
   Feedback and Complaints Modal
   ============================================ */
.feedback-modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    box-shadow: 0 18px 55px rgba(44, 18, 51, 0.14);
}

.feedback-modal-header {
    background: #fff;
}

.feedback-modal-body {
    padding: 0 40px 50px;
    background: #fff;
}

.feedback-modal-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--xoomcare-base); /* Brand purple text */
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.feedback-modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 4px;
    background-color: #ffde5c; /* Brand yellow underline accent */
    border-radius: 2px;
}

.feedback-form .form-label {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #2c1233;
}

.feedback-form .form-control,
.feedback-form .form-select {
    border-radius: 8px;
    border: 1px solid #d1d1d1;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

.feedback-form input[type="text"].form-control,
.feedback-form input[type="email"].form-control {
    min-height: 60px;
}

.feedback-form .form-control:focus,
.feedback-form .form-select:focus {
    border-color: var(--xoomcare-base);
    box-shadow: 0 0 0 3px rgba(var(--xoomcare-base-rgb), 0.15);
    outline: none;
}

.feedback-form .form-text {
    font-size: 0.85rem;
    margin-top: 6px;
    color: #7a7a7a !important;
}

.feedback-form .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border-color: #d1d1d1;
}

.feedback-form .form-check-input:checked {
    background-color: var(--xoomcare-base);
    border-color: var(--xoomcare-base);
}

.feedback-form .form-check-label {
    font-size: 1rem;
    color: #4f4f4f;
    padding-left: 5px;
}

.feedback-submit-btn {
    background-color: #ffde5c; /* Brand yellow background */
    color: #2c1233;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 30px; /* Slightly reduced padding */
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

.feedback-submit-btn:hover {
    background-color: #F4C400; /* Darker yellow on hover */
    color: #2c1233;
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .feedback-modal-body {
        padding: 0 20px 40px;
    }
    
    .feedback-modal-title {
        font-size: 1.6rem;
    }
}

/* ============================================
   Privacy Policy Modal
   ============================================ */
.privacy-modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    box-shadow: 0 18px 55px rgba(44, 18, 51, 0.14);
}

.privacy-modal-header {
    background: #fff;
}

.privacy-modal-body {
    padding: 0 40px 50px;
    background: #fff;
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-modal-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--xoomcare-base); /* Brand purple text */
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    padding-bottom: 12px;
}

.privacy-modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 4px;
    background-color: #ffde5c; /* Brand yellow underline accent */
    border-radius: 2px;
}

.privacy-content {
    color: #4f4f4f;
    line-height: 1.7;
    font-size: 1.05rem;
}

.privacy-content h3 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #2c1233;
}

.privacy-content h4 {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--xoomcare-base);
}

.privacy-content ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-content strong {
    color: #2c1233;
}

.privacy-content a {
    color: var(--xoomcare-base);
    text-decoration: underline;
    text-decoration-color: rgba(var(--xoomcare-base-rgb), 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.privacy-content a:hover {
    text-decoration-color: var(--xoomcare-base);
}

@media (max-width: 575.98px) {
    .privacy-modal-body {
        padding: 0 20px 40px;
        max-height: 85vh;
    }
    
    .privacy-modal-title {
        font-size: 1.6rem;
    }
    
    .privacy-content {
        font-size: 1rem;
    }
    
    .privacy-content h3 {
        font-size: 1.4rem;
    }
    
    .privacy-content h4 {
        font-size: 1.15rem;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -5px 25px rgba(44, 18, 51, 0.1);
    padding: 20px 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    border-top: 1px solid rgba(var(--xoomcare-base-rgb), 0.1);
}

.cookie-consent-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-consent-content {
    flex: 1;
}

.cookie-consent-title {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--xoomcare-base);
    margin-bottom: 8px;
}

.cookie-consent-text {
    font-size: 0.95rem;
    color: #4f4f4f;
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-consent-link {
    color: var(--xoomcare-base);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(var(--xoomcare-base-rgb), 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.cookie-consent-link:hover {
    text-decoration-color: var(--xoomcare-base);
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background-color: var(--xoomcare-base);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid var(--xoomcare-base);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background-color: #541F5D;
    border-color: #541F5D;
    color: #ffffff;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background-color: transparent;
    color: #4f4f4f;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: #d1d1d1;
    text-underline-offset: 3px;
}

.cookie-btn-decline:hover {
    color: var(--xoomcare-base);
    text-decoration-color: var(--xoomcare-base);
}

@media (max-width: 991.98px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn-accept,
    .cookie-btn-decline {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Referrals Page Form Styles
   ============================================ */
.xc-referrals-title-line {
    width: 65px;
    height: 6px;
    border-radius: 999px;
    background-color: #ffde5c;
    margin: 15px auto 0;
}

.xc-referral-form-wrapper {
    background-color: #ffffff;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.15);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.xc-referral-form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--xoomcare-base); /* Brand purple */
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 0;
}

.xc-referral-input {
    background-color: #fdfdfd;
    border: 1px solid #8e8e8e;
    border-radius: 6px;
    padding: 10px 15px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.xc-referral-input:focus {
    border-color: var(--xoomcare-base);
    box-shadow: 0 0 0 3px rgba(var(--xoomcare-base-rgb), 0.15);
    background-color: #ffffff;
}

/* Make rows match the table-like styling from the inspiration */
.xc-referral-form-group .row {
    margin-left: 0;
    margin-right: 0;
}

.xc-referral-form-group .border-top {
    border-top-color: #eaeaea !important;
}

.xc-referral-form-group label,
.xc-referral-form-group .col-md-4 > span {
    color: #333333;
    font-size: 0.95rem;
}

.xc-referral-form-group .form-check-label {
    font-size: 0.95rem;
    color: #444444;
}

.xc-referral-form-group .form-check-input:checked {
    background-color: var(--xoomcare-base);
    border-color: var(--xoomcare-base);
}

.xc-referral-form-group .input-group-text {
    background-color: #f1f1f1;
    border: 1px solid #8e8e8e;
    color: #555555;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Specific styling for nested Guardian/Trustee Input groups */
.xc-referral-nested-group {
    border: 1px solid #8e8e8e;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}
.xc-referral-nested-group .input-group-text {
    width: 80px;
    border: 0;
    border-right: 1px solid #8e8e8e;
    border-radius: 0;
    background-color: #eef0f3;
    font-weight: 600;
    color: #444;
    justify-content: flex-start;
    padding: 0 14px;
}
.xc-referral-nested-group .form-control {
    background-color: #ffffff;
    border: none !important;
    border-radius: 0;
    min-height: 58px;
    padding: 12px 14px;
    box-shadow: none !important;
}
.xc-referral-nested-group .form-control:focus {
    background-color: #ffffff;
    border: 0 !important;
    box-shadow: none !important;
}
.xc-referral-nested-group:focus-within {
    border-color: var(--xoomcare-base);
    box-shadow: 0 0 0 3px rgba(var(--xoomcare-base-rgb), 0.15);
}

/* Fieldset/legend reset — maintain existing visual layout */
.xc-referral-form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.xc-referral-form-group fieldset legend {
    float: none;
    width: auto;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333333;
}

/* Required field asterisk */
.xc-referral-form-group .xc-required {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 2px;
    display: inline;
    white-space: nowrap;
}

/* Helper / small text readability */
.xc-referral-form-group small,
.xc-referral-form-group .fw-normal {
    color: #555555;
    font-size: 13px;
}

/* Section separation — stronger visual breaks */
.xc-referral-form-group + .xc-referral-form-group {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 3px solid rgba(var(--xoomcare-base-rgb), 0.15);
}

/* Subtle tint for Next-of-Kin section */
.xc-referral-form-group--nok {
    background-color: #faf6fb;
    border-radius: 10px;
    padding: 2rem 1.5rem;
}

/* Subtle tint for NDIS section */
.xc-referral-form-group--ndis {
    background-color: #f5f8fb;
    border-radius: 10px;
    padding: 2rem 1.5rem;
}

/* Submit button — wider for visual weight + centered
   Root cause: Template .xoomcare-btn uses display:inline-flex which makes
   it an inline element. The parent <div class="d-flex justify-content-center">
   provides flexbox centering. We override the button to display:block with
   width:fit-content and margin:auto as a belt-and-braces approach to ensure
   true centering regardless of any inherited offsets from the form layout. */
.xc-referral-form-wrapper .xoomcare-btn {
    min-width: 220px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Guardian/Trustee conditional fields — hidden by default */
.xc-referral-guardian-fields,
.xc-referral-trustee-fields {
    display: none;
    transition: opacity 0.3s ease;
}
.xc-referral-guardian-fields.show,
.xc-referral-trustee-fields.show {
    display: block;
}

/* Interpreter row — responsive fix for tablets */
@media (max-width: 991px) {
    .xc-referral-interpreter-row {
        flex-direction: column;
    }
    .xc-referral-interpreter-row .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

/* Referral form — validation error states */
.xc-referral-input--error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}
.xc-referral-input--error:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.25);
}
.xc-referral-error {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
    line-height: 1.4;
}

/* ============================================
   Staffing Pages - Organic Layered Layout
   ============================================ */
.xc-staffing-organic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #faf6fb 100%);
}

.xc-staffing-organic::before,
.xc-staffing-organic::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.xc-staffing-organic::before {
    width: 380px;
    height: 380px;
    right: -130px;
    top: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(var(--xoomcare-base-rgb), 0.12), rgba(var(--xoomcare-base-rgb), 0.03) 65%, transparent 100%);
}

.xc-staffing-organic::after {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -70px;
    background: radial-gradient(circle at 50% 50%, rgba(var(--xoomcare-base-rgb), 0.04), transparent 70%);
}

/* Staffing hero kicker badge */
.xc-staffing-kicker {
    display: inline-block;
    background-color: #FFDE5C;
    color: #2c0a37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.xc-staffing-kicker::before {
    display: none;
}

.xc-staffing-quick__lead {
    color: #4e4e4e;
    line-height: 1.9;
    max-width: 620px;
    margin-bottom: 10px;
}

.xc-staffing-quick__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.xc-staffing-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 10px 24px;
    border: 2px solid rgba(var(--xoomcare-base-rgb), 0.25);
    border-radius: 999px;
    color: var(--xoomcare-base);
    font-weight: 700;
    background: #ffffff;
}

.xc-staffing-outline-btn:hover {
    color: #ffffff;
    border-color: var(--xoomcare-base);
    background: var(--xoomcare-base);
}

.xc-staffing-photo-card {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    min-height: 460px;
    box-shadow: 0 28px 60px rgba(44, 18, 51, 0.18);
}

.xc-staffing-photo-card img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.xc-glass-overlay {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 20px;
    padding: 18px 18px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.xc-glass-overlay h4,
.xc-glass-overlay h5 {
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.xc-glass-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.xc-glass-overlay--small {
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: 16px;
    padding: 12px 14px;
}

.xc-audience-strip {
    background: #FFDE5C;
    border-top: 2px solid rgba(var(--xoomcare-base-rgb), 0.35);
    border-bottom: 2px solid rgba(var(--xoomcare-base-rgb), 0.35);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.xc-audience-strip__inner {
    width: 100%;
    max-width: 1220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: #2c0a37;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.xc-audience-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.xc-audience-strip__check {
    color: #2c0a37;
    font-weight: 800;
}

.xc-staffing-bento-wrap {
    position: relative;
    overflow: hidden;
}

.xc-staffing-bento-wrap::before {
    content: "";
    position: absolute;
    top: 90px;
    right: -110px;
    width: 330px;
    height: 330px;
    border-radius: 60% 40% 65% 35%;
    background: rgba(var(--xoomcare-base-rgb), 0.08);
}

.xc-staffing-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 18px;
}

.xc-bento-card {
    background: #ffffff;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    border-radius: 28px;
    padding: 24px 22px;
    box-shadow: 0 16px 32px rgba(44, 18, 51, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 195px;
}

.xc-bento-card::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(var(--xoomcare-base-rgb), 0.05);
}

.xc-bento-card h4 {
    font-size: 1.22rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.xc-bento-card p {
    margin: 0;
    color: #5a5a5a;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.xc-bento-card__label {
    display: inline-flex;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--xoomcare-base);
    background: rgba(var(--xoomcare-base-rgb), 0.1);
    padding: 8px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.xc-bento-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(var(--xoomcare-base-rgb), 0.12);
}

.xc-bento-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.xc-bento-icon svg {
    width: 30px;
    height: 30px;
}

/* Company page: What We Offer as a clean 2x2 grid */
.xc-staffing-bento--offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.xc-staffing-bento--offer-grid .xc-bento-card {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xc-offer-urgent-banner {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f2f8 0%, #efebf3 100%);
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    color: #3a2b43;
    font-weight: 600;
    text-align: center;
}

/* Company page offer section: flat offset design treatment */
.xc-staffing-offer--company {
    padding-top: 80px;
}

.xc-staffing-offer--company::before {
    display: none;
}

.xc-staffing-offer--company .xc-staffing-bento--offer-grid .xc-bento-card {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0px 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.xc-staffing-offer--company .xc-staffing-bento--offer-grid .xc-bento-card::after {
    display: none;
}

.xc-staffing-offer--company .xc-staffing-bento--offer-grid .xc-bento-card h4,
.xc-staffing-offer--company .xc-staffing-bento--offer-grid .xc-bento-card p,
.xc-staffing-offer--company .xc-staffing-bento--offer-grid .xc-bento-icon {
    color: #2c0a37;
}

.xc-staffing-offer--company .xc-staffing-bento--offer-grid .xc-bento-icon {
    background: rgba(var(--xoomcare-base-rgb), 0.10);
    border-radius: 14px;
}

.xc-staffing-offer--company .xc-offer-urgent-banner {
    background: #fceeb6;
    border: none;
    box-shadow: 0px 10px 40px -10px rgba(0, 0, 0, 0.08);
    color: #2c0a37;
    font-weight: 600;
}

.xc-staffing-offer--company .marker-highlight {
    position: relative;
    z-index: 1;
}

.xc-staffing-offer--company .marker-highlight::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #C1D8EB;
    top: 0px;
    bottom: 0px;
    left: -6px;
    right: -6px;
    border-radius: 3px 8px 4px 6px;
    transform: rotate(-1deg);
}

.xc-bento-card--hero {
    grid-column: span 2;
    min-height: 250px;
}

.xc-bento-card--image {
    grid-row: span 2;
    padding: 0;
    border: none;
    overflow: hidden;
}

.xc-bento-card--image::after {
    display: none;
}

.xc-bento-card--image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.xc-bento-card--wide {
    grid-column: span 2;
}

.xc-staffing-roles {
    position: relative;
}

.xc-staffing-roles::before {
    content: "";
    position: absolute;
    left: -80px;
    top: 80px;
    width: 230px;
    height: 230px;
    border-radius: 65% 35% 45% 55%;
    background: rgba(var(--xoomcare-base-rgb), 0.08);
    pointer-events: none;
}

.xc-staffing-roles__intro {
    max-width: 760px;
    margin: 16px auto 0;
    color: #575757;
    font-size: 1rem;
    line-height: 1.72;
}

.xc-role-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.xc-role-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.xc-role-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.xc-role-tile:hover img {
    transform: scale(1.07);
}

.xc-role-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(44, 10, 55, 0.62) 0%, rgba(44, 10, 55, 0.41) 24%, rgba(44, 10, 55, 0) 50%, rgba(44, 10, 55, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px 16px;
    transition: background 0.3s ease;
}

.xc-role-tile:hover .xc-role-tile__overlay {
    background: linear-gradient(0deg, rgba(44, 10, 55, 0.64) 0%, rgba(44, 10, 55, 0.43) 24%, rgba(44, 10, 55, 0) 50%, rgba(44, 10, 55, 0) 100%);
}

.xc-role-tile__overlay h5 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.xc-staffing-yourself-services::before {
    display: none; /* Prevent double-stacking of purple aesthetic near hero */
}

.xc-staffing-yourself-services {
    padding-top: 72px;
}

.xc-staffing-yourself-services .xc-support-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.xc-staffing-yourself-services .xc-support-service-card {
    background: #ffffff;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(44, 18, 51, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xc-staffing-yourself-services .xc-support-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(44, 18, 51, 0.12);
}

.xc-staffing-yourself-services .xc-support-service-card__media {
    aspect-ratio: 10 / 9;
    overflow: hidden;
    background: #f5f3f7;
}

.xc-staffing-yourself-services .xc-support-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xc-staffing-yourself-services .xc-support-service-card__body {
    padding: 18px 18px 20px;
}

.xc-staffing-yourself-services .xc-support-service-card__title {
    color: var(--xoomcare-base);
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.xc-staffing-yourself-services .xc-support-service-card__intro {
    margin: 0 0 12px;
    color: #3f3f3f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.xc-staffing-yourself-services .xc-support-service-card__list {
    display: grid;
    gap: 7px;
}

.xc-staffing-yourself-services .xc-support-service-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.6;
}

.xc-staffing-yourself-services .xc-support-service-card__list li span {
    font-size: inherit;
    line-height: inherit;
}

.xc-staffing-yourself-services .xc-support-service-card__list i {
    color: #6fa84e;
    font-size: 0.82rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.xc-staffing-process .xc-staffing-process-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    padding: 34px 26px 28px;
    box-shadow: 0 12px 28px rgba(44, 18, 51, 0.08);
}

.xc-staffing-process-card__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(145deg, var(--xoomcare-base), #8f3d9d);
}

.xc-staffing-contact {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fbf9fc 0%, #ffffff 100%);
}

.xc-staffing-contact::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -130px;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(var(--xoomcare-base-rgb), 0.08);
}

.xc-staffing-contact__summary {
    --xc-staffing-card-bg: rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.15);
    background: var(--xc-staffing-card-bg);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.xc-staffing-contact__media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--xc-staffing-card-bg);
}

.xc-staffing-contact__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.xc-staffing-contact__body {
    padding: 24px 24px 26px;
    background: var(--xc-staffing-card-bg);
}

.xc-staffing-how-title {
    color: var(--xoomcare-base);
    margin-top: 10px;
    margin-bottom: 0;
}

.xc-staffing-how-title__line {
    width: 52px;
    height: 6px;
    border-radius: 999px;
    background-color: #ffde5c;
    margin-top: 10px;
    margin-bottom: 18px;
}

.xc-staffing-contact__row {
    align-items: stretch;
}

.xc-staffing-contact__row > [class*="col-"] {
    display: flex;
}

.xc-staffing-contact__row .xc-contact-page__left,
.xc-staffing-contact__row .xc-contact-page__form {
    width: 100%;
    height: 100%;
}

.xc-staffing-steps {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.xc-staffing-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4f4f4f;
    line-height: 1.6;
}

.xc-staffing-steps__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--xoomcare-base-rgb), 0.12);
    color: var(--xoomcare-base);
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 2px;
}

.xc-staffing-contact__summary .xc-contact-page__cta__info,
.xc-staffing-contact__summary .xc-contact-page__cta__info a {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.xc-staffing-contact__summary .xc-contact-page__cta__info a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #374151;
}

.xc-staffing-contact__summary .xc-contact-page__cta__info i {
    font-size: 0.9rem;
    color: rgba(var(--xoomcare-base-rgb), 0.78);
}

.xc-staffing-contact__summary .xc-contact-page__cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.xc-staffing-contact .xc-contact-page__form {
    border: 1px solid rgba(var(--xoomcare-base-rgb), 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(44, 18, 51, 0.08);
}

.xc-staffing-contact .xc-contact-page__form input,
.xc-staffing-contact .xc-contact-page__form textarea {
    background: #fcfbfd;
}

.xc-staffing-contact .xc-staffing-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 8px;
}

.xc-staffing-contact .xc-staffing-form-label .xc-required {
    color: #e15757;
    font-weight: 800;
}

.xc-staffing-contact .xc-contact-page__form input,
.xc-staffing-contact .xc-contact-page__form select,
.xc-staffing-contact .xc-contact-page__form textarea {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #2f2f2f;
    width: 100%;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 500;
    box-shadow: none;
}

.xc-staffing-contact .xc-contact-page__form select option {
    font-size: 1rem;
    line-height: 1.35;
}

.xc-staffing-contact .xc-contact-page__form .xc-form__input input,
.xc-staffing-contact .xc-contact-page__form .xc-form__input select {
    height: 44px;
    min-height: 44px;
    padding: 10px 14px;
    line-height: 1.25;
}

.xc-staffing-contact .xc-contact-page__form textarea {
    min-height: 128px;
    padding: 12px 14px;
    resize: vertical;
}

.xc-staffing-contact .xc-contact-page__form .mb-20 {
    margin-bottom: 14px !important;
}

.xc-staffing-contact .xc-contact-page__form input:focus,
.xc-staffing-contact .xc-contact-page__form select:focus,
.xc-staffing-contact .xc-contact-page__form textarea:focus {
    border-color: var(--xoomcare-base);
    box-shadow: 0 0 0 3px rgba(var(--xoomcare-base-rgb), 0.14);
    outline: none;
}

.xc-staffing-form-actions {
    width: 100%;
}

@media (max-width: 1199.98px) {
    .xc-staffing-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xc-staffing-bento--offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xc-bento-card--hero,
    .xc-bento-card--wide {
        grid-column: span 2;
    }

    .xc-bento-card--image {
        grid-row: span 1;
    }

    .xc-bento-card--image img {
        min-height: 260px;
    }

}

@media (max-width: 991.98px) {
    .xc-staffing-photo-card,
    .xc-staffing-photo-card img {
        min-height: 320px;
    }

    .xc-staffing-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xc-staffing-bento--offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xc-bento-card--hero,
    .xc-bento-card--wide {
        grid-column: span 2;
    }

    .xc-role-tiles {
        grid-template-columns: repeat(3, 1fr);
    }

    .xc-staffing-yourself-services .xc-support-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xc-staffing-yourself-services {
        padding-top: 60px;
    }

    .xc-audience-strip__inner {
        gap: 20px;
        font-size: 0.95rem;
    }

}

@media (max-width: 991.98px) {
    /* Hide background blobs on tablet and smaller screens */
    .xc-staffing-organic::before,
    .xc-staffing-organic::after {
        display: none;
    }
}

@media (max-width: 575.98px) {
    /* Reduce top padding on hero section for mobile */
    .xc-staffing-organic {
        padding-top: 50px !important;
        padding-bottom: 80px !important;
    }

    .xc-staffing-quick__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .xc-staffing-outline-btn,
    .xc-staffing-quick__actions .xoomcare-btn {
        width: 100%;
    }

    .xc-staffing-photo-card,
    .xc-staffing-photo-card img {
        min-height: 220px;
        border-radius: 20px;
    }

    .xc-glass-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px 12px 8px;
        border-radius: 12px;
    }

    .xc-glass-overlay h4 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .xc-glass-overlay p {
        font-size: 13px;
        line-height: 1.45;
    }

    .xc-staffing-bento {
        grid-template-columns: 1fr;
    }

    .xc-bento-card,
    .xc-bento-card--hero,
    .xc-bento-card--wide {
        grid-column: span 1;
        border-radius: 20px;
        min-height: 0;
    }

    .xc-staffing-bento--offer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xc-offer-urgent-banner {
        margin-top: 14px;
        padding: 14px 12px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .xc-staffing-offer--company {
        padding-top: 56px;
    }

    .xc-staffing-process .xc-staffing-process-card,
    .xc-staffing-contact__summary {
        border-radius: 18px;
        padding: 0;
    }

    .xc-staffing-contact__media {
        height: 170px;
    }

    .xc-staffing-contact__body {
        padding: 20px 16px 22px;
    }

    .xc-staffing-contact__summary .xc-contact-page__cta__info {
        font-size: 0.95rem;
    }

    .xc-role-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .xc-staffing-yourself-services .xc-support-services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .xc-staffing-yourself-services {
        padding-top: 48px;
    }

    .xc-audience-strip {
        min-height: 0;
        padding: 14px 16px;
    }

    .xc-audience-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 320px;
        margin: 0 auto;
        gap: 8px;
        font-size: 0.92rem;
    }

    .xc-role-tile {
        border-radius: 10px;
    }
}

/* Footer Social Links */
.xc-footer-social a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}
.xc-footer-social a:hover {
    color: #6fa84e !important;
}


/* Footer Bottom Social Links */
.xc-footer-social-bottom .xc-footer-social-link {
    color: #ffffff !important;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.xc-footer-social-bottom .xc-footer-social-link:hover {
    color: #6fa84e !important;
    transform: translateY(-2px);
}

