/* ==========================================================================
   Precision Group — Site Styles
   Custom CSS only — no frameworks
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Fonts — GuessSans (licensed via MyFonts)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'GuessSans-Bold';
    src: url('/fonts/385F45_0_0.woff2') format('woff2'),
         url('/fonts/385F45_0_0.woff') format('woff'),
         url('/fonts/385F45_0_0.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'GuessSans-Light';
    src: url('/fonts/385F45_1_0.woff2') format('woff2'),
         url('/fonts/385F45_1_0.woff') format('woff'),
         url('/fonts/385F45_1_0.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'GuessSans-Regular';
    src: url('/fonts/385F45_2_0.woff2') format('woff2'),
         url('/fonts/385F45_2_0.woff') format('woff'),
         url('/fonts/385F45_2_0.ttf') format('truetype');
    font-display: swap;
}

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Brand colours */
    --color-primary: #003c71;
    --color-accent: #aa9d2e;
    --color-secondary: #6c757d;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;

    /* Typography */
    --font-family: 'Lato', Tahoma, Arial, Helvetica, sans-serif;
    --font-family-heading: 'GuessSans-Bold', 'Lato', Tahoma, Arial, sans-serif;
    --font-size-base: 16px;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --line-height-base: 1.6;

    /* Breakpoints (for reference — used in media queries below) */
    --breakpoint-tn: 414px;
    --breakpoint-xxs: 568px;
    --breakpoint-xs: 667px;
    --breakpoint-sm: 768px;
    --breakpoint-md: 812px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1280px;
    --breakpoint-xxl: 1366px;
    --breakpoint-wd: 1440px;
    --breakpoint-hd: 1920px;

    /* Grid */
    --grid-columns: 16;
    --grid-gutter: 15px;
    --grid-max-width: 1200px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    list-style: none;
}

/* Restore native list rendering inside rich-text (RTE) output,
   which the global list reset above otherwise strips. */
.rich-text ul,
.rich-text ol {
    list-style: revert;
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.rich-text li {
    margin-bottom: 0.25rem;
}

/* The Umbraco RTE wraps list-item text in <p>; kill its 1rem
   bottom margin so bullets aren't spaced like paragraphs. */
.rich-text li p {
    margin-bottom: 0;
}

/* RTE headings sit tight against following copy by default — give
   them breathing room after (and before, when mid-content). */
.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
    margin-bottom: 0.75rem;
}

.rich-text :not(:first-child):is(h1, h2, h3, h4, h5, h6) {
    margin-top: 1.75rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: normal;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Grid System — 16 columns
   -------------------------------------------------------------------------- */
.grid {
    width: 100%;
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-gutter);
}

.full-grid {
    max-width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--grid-gutter) * -1);
    margin-right: calc(var(--grid-gutter) * -1);
    margin-bottom: 1.5rem;
}

.row.mb-0 {
    margin-bottom: 0;
}

/* Column base */
[class*="col"] {
    padding-left: var(--grid-gutter);
    padding-right: var(--grid-gutter);
    width: 100%;
}

.no-gutters {
    padding-left: 0;
    padding-right: 0;
}

/* Default column widths (mobile-first) */
.col-1  { width: 6.25%; }
.col-2  { width: 12.5%; }
.col-3  { width: 18.75%; }
.col-4  { width: 25%; }
.col-5  { width: 31.25%; }
.col-6  { width: 37.5%; }
.col-7  { width: 43.75%; }
.col-8  { width: 50%; }
.col-9  { width: 56.25%; }
.col-10 { width: 62.5%; }
.col-11 { width: 68.75%; }
.col-12 { width: 75%; }
.col-13 { width: 81.25%; }
.col-14 { width: 87.5%; }
.col-15 { width: 93.75%; }
.col-16 { width: 100%; }

/* tn (414px) */
@media (min-width: 414px) {
    .tn-1  { width: 6.25%; }
    .tn-2  { width: 12.5%; }
    .tn-3  { width: 18.75%; }
    .tn-4  { width: 25%; }
    .tn-5  { width: 31.25%; }
    .tn-6  { width: 37.5%; }
    .tn-7  { width: 43.75%; }
    .tn-8  { width: 50%; }
    .tn-9  { width: 56.25%; }
    .tn-10 { width: 62.5%; }
    .tn-11 { width: 68.75%; }
    .tn-12 { width: 75%; }
    .tn-13 { width: 81.25%; }
    .tn-14 { width: 87.5%; }
    .tn-15 { width: 93.75%; }
    .tn-16 { width: 100%; }
}

/* xxs (568px) */
@media (min-width: 568px) {
    .xxs-1  { width: 6.25%; }
    .xxs-2  { width: 12.5%; }
    .xxs-3  { width: 18.75%; }
    .xxs-4  { width: 25%; }
    .xxs-5  { width: 31.25%; }
    .xxs-6  { width: 37.5%; }
    .xxs-7  { width: 43.75%; }
    .xxs-8  { width: 50%; }
    .xxs-9  { width: 56.25%; }
    .xxs-10 { width: 62.5%; }
    .xxs-11 { width: 68.75%; }
    .xxs-12 { width: 75%; }
    .xxs-13 { width: 81.25%; }
    .xxs-14 { width: 87.5%; }
    .xxs-15 { width: 93.75%; }
    .xxs-16 { width: 100%; }
}

/* xs (667px) */
@media (min-width: 667px) {
    .xs-1  { width: 6.25%; }
    .xs-2  { width: 12.5%; }
    .xs-3  { width: 18.75%; }
    .xs-4  { width: 25%; }
    .xs-5  { width: 31.25%; }
    .xs-6  { width: 37.5%; }
    .xs-7  { width: 43.75%; }
    .xs-8  { width: 50%; }
    .xs-9  { width: 56.25%; }
    .xs-10 { width: 62.5%; }
    .xs-11 { width: 68.75%; }
    .xs-12 { width: 75%; }
    .xs-13 { width: 81.25%; }
    .xs-14 { width: 87.5%; }
    .xs-15 { width: 93.75%; }
    .xs-16 { width: 100%; }
}

/* sm (768px) */
@media (min-width: 768px) {
    .sm-1  { width: 6.25%; }
    .sm-2  { width: 12.5%; }
    .sm-3  { width: 18.75%; }
    .sm-4  { width: 25%; }
    .sm-5  { width: 31.25%; }
    .sm-6  { width: 37.5%; }
    .sm-7  { width: 43.75%; }
    .sm-8  { width: 50%; }
    .sm-9  { width: 56.25%; }
    .sm-10 { width: 62.5%; }
    .sm-11 { width: 68.75%; }
    .sm-12 { width: 75%; }
    .sm-13 { width: 81.25%; }
    .sm-14 { width: 87.5%; }
    .sm-15 { width: 93.75%; }
    .sm-16 { width: 100%; }
    .sm-text-right { text-align: right; }
}

/* md (812px) */
@media (min-width: 812px) {
    .md-1  { width: 6.25%; }
    .md-2  { width: 12.5%; }
    .md-3  { width: 18.75%; }
    .md-4  { width: 25%; }
    .md-5  { width: 31.25%; }
    .md-6  { width: 37.5%; }
    .md-7  { width: 43.75%; }
    .md-8  { width: 50%; }
    .md-9  { width: 56.25%; }
    .md-10 { width: 62.5%; }
    .md-11 { width: 68.75%; }
    .md-12 { width: 75%; }
    .md-13 { width: 81.25%; }
    .md-14 { width: 87.5%; }
    .md-15 { width: 93.75%; }
    .md-16 { width: 100%; }
}

/* lg (992px) */
@media (min-width: 992px) {
    .lg-1  { width: 6.25%; }
    .lg-2  { width: 12.5%; }
    .lg-3  { width: 18.75%; }
    .lg-4  { width: 25%; }
    .lg-5  { width: 31.25%; }
    .lg-6  { width: 37.5%; }
    .lg-7  { width: 43.75%; }
    .lg-8  { width: 50%; }
    .lg-9  { width: 56.25%; }
    .lg-10 { width: 62.5%; }
    .lg-11 { width: 68.75%; }
    .lg-12 { width: 75%; }
    .lg-13 { width: 81.25%; }
    .lg-14 { width: 87.5%; }
    .lg-15 { width: 93.75%; }
    .lg-16 { width: 100%; }
}

/* xl (1280px) */
@media (min-width: 1280px) {
    .xl-1  { width: 6.25%; }
    .xl-2  { width: 12.5%; }
    .xl-3  { width: 18.75%; }
    .xl-4  { width: 25%; }
    .xl-5  { width: 31.25%; }
    .xl-6  { width: 37.5%; }
    .xl-7  { width: 43.75%; }
    .xl-8  { width: 50%; }
    .xl-9  { width: 56.25%; }
    .xl-10 { width: 62.5%; }
    .xl-11 { width: 68.75%; }
    .xl-12 { width: 75%; }
    .xl-13 { width: 81.25%; }
    .xl-14 { width: 87.5%; }
    .xl-15 { width: 93.75%; }
    .xl-16 { width: 100%; }
}

/* xxl (1366px) */
@media (min-width: 1366px) {
    .xxl-1  { width: 6.25%; }
    .xxl-2  { width: 12.5%; }
    .xxl-3  { width: 18.75%; }
    .xxl-4  { width: 25%; }
    .xxl-5  { width: 31.25%; }
    .xxl-6  { width: 37.5%; }
    .xxl-7  { width: 43.75%; }
    .xxl-8  { width: 50%; }
    .xxl-9  { width: 56.25%; }
    .xxl-10 { width: 62.5%; }
    .xxl-11 { width: 68.75%; }
    .xxl-12 { width: 75%; }
    .xxl-13 { width: 81.25%; }
    .xxl-14 { width: 87.5%; }
    .xxl-15 { width: 93.75%; }
    .xxl-16 { width: 100%; }
}

/* --------------------------------------------------------------------------
   Display Utilities
   -------------------------------------------------------------------------- */
.d-none        { display: none !important; }
.d-block       { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex        { display: flex !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.align-self-center { align-self: center !important; }
.align-self-start  { align-self: flex-start !important; }
.align-items-center { align-items: center !important; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Responsive display */
@media (min-width: 414px) {
    .tn-d-none  { display: none !important; }
    .tn-d-block { display: block !important; }
    .tn-d-flex  { display: flex !important; }
    .tn-align-items-center { align-items: center !important; }
}

@media (min-width: 568px) {
    .xxs-d-none  { display: none !important; }
    .xxs-d-block { display: block !important; }
    .xxs-d-flex  { display: flex !important; }
}

@media (min-width: 667px) {
    .xs-d-none  { display: none !important; }
    .xs-d-block { display: block !important; }
    .xs-d-flex  { display: flex !important; }
    .xs-justify-content-end { justify-content: flex-end !important; }
}

@media (min-width: 992px) {
    .lg-d-none  { display: none !important; }
    .lg-d-block { display: block !important; }
    .lg-d-flex  { display: flex !important; }
    .lg-justify-content-center  { justify-content: center !important; }
    .lg-justify-content-between { justify-content: space-between !important; }
    .lg-justify-content-end     { justify-content: flex-end !important; }
    .lg-align-self-center       { align-self: center !important; }
}

@media (min-width: 1280px) {
    .xl-d-none  { display: none !important; }
    .xl-d-block { display: block !important; }
    .xl-d-flex  { display: flex !important; }
    .xl-justify-content-center { justify-content: center !important; }
    .xl-max-w   { max-width: var(--grid-max-width); margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 30px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
    border-radius: 2.25rem;
    padding: 0 1.25rem;
    line-height: 2.25rem;
    height: auto;
    text-transform: none;
    letter-spacing: 0;
}

.btn-outline-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* In-content CTA wrapper (e.g. after the body copy on Community / Beyond pages) */
.cta-row {
    margin: 1rem 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    border-bottom: 1px solid #e8e8e8;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Header inner — single flex row */
.header-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 90px;
}

.header-logo {
    flex-shrink: 0;
    margin-right: 40px;
}

.header-logo img {
    height: 55px;
    width: auto;
}

header .navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

header .navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 25px;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
}

.lang-switcher li {
    display: inline-block;
}

.lang-switcher .sep {
    color: var(--color-primary);
    opacity: 0.4;
}

.lang-switcher a {
    color: var(--color-primary);
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.lang-switcher a:hover {
    color: var(--color-accent);
}

.lang-switcher .active a {
    color: var(--color-accent);
}

.header-search {
    flex-shrink: 0;
    margin-left: 20px;
    align-items: center;
}

.search-toggle {
    color: var(--color-primary);
    font-size: 1.25rem;
    padding: 5px;
    transition: color 0.2s ease;
}

.search-toggle:hover {
    color: var(--color-accent);
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 60, 113, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.is-open {
    display: flex;
}

.search-overlay-inner {
    width: 100%;
    max-width: 700px;
    padding: 0 40px;
    position: relative;
}

.search-overlay-inner form {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 1.75rem;
    font-weight: var(--font-weight-light);
    padding: 15px 0;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-overlay-submit {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 15px;
}

.search-overlay-close {
    position: absolute;
    top: -80px;
    right: 40px;
    color: var(--color-white);
    font-size: 2rem;
    transition: opacity 0.2s ease;
}

.search-overlay-close:hover {
    color: var(--color-white);
    opacity: 0.7;
}

/* Navigation */
.navbar {
    display: flex;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 2px;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-accent);
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

/* Language switcher */
#lng-select {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 15px;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
}

#lng-select li {
    display: inline-block;
}

#lng-select a {
    color: var(--color-primary);
    padding: 0 4px;
}

#lng-select .active-ln a {
    color: var(--color-accent);
}

/* Mobile nav trigger */
.nav-trigger-box {
    display: flex;
    align-items: center;
}

.nav-trigger {
    display: block;
    width: 30px;
    height: 30px;
}

/* Search */
.search-field-box .form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    font-family: var(--font-family);
    font-size: 0.8125rem;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    outline: none;
    width: 160px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--color-primary);
}

.site-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: var(--color-primary);
    font-size: 1rem;
}

/* Additional nav (desktop search, etc.) */
.additional-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
main {
    padding-top: 80px; /* offset for fixed header */
}

/* Consistent breathing room between the fixed nav and the first
   header on every content page, regardless of its top-level wrapper
   (section.grid, .page-subnav, .section-block, .hrz-list-items, …).
   Excludes hero/banner pages, whose image must stay flush under the
   header. A non-rendered first node (e.g. a <link>) is harmless. */
main > :first-child:not(.banner):not(.page-banner):not(.page-hero) {
    margin-top: 1.6rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
}

footer a {
    color: var(--color-white);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

footer a:hover {
    color: var(--color-white);
    opacity: 1;
}

/* Footer main area */
.footer-main {
    background-color: rgb(241, 241, 241);
    padding: 50px 0 40px;
    color: var(--color-dark);
}

.footer-main a {
    color: var(--color-dark);
    opacity: 1;
}

.footer-main a:hover {
    color: var(--color-primary);
}

.footer-inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 40px;
}

/* Footer columns */
.footer-col-about {
    flex: 0 0 35%;
    max-width: 35%;
}

.footer-col-links {
    flex: 0 0 12%;
    max-width: 12%;
}

.footer-col-contact {
    flex: 1;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-summary {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--color-secondary);
}

/* Footer link columns */
.footer-col-links ul li {
    margin-bottom: 8px;
}

.footer-col-links ul li a {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
}

/* Footer contact */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.8125rem;
}

.footer-contact-item i {
    margin-right: 10px;
    font-size: 1.125rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
    line-height: 1.5;
}

/* Copyright bar */
.footer-copyright {
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
}

.footer-copyright p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

.footer-policy-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-policy-links li {
    display: inline-block;
}

.footer-policy-links li a {
    font-size: 0.75rem;
    padding: 0 10px;
}

.footer-policy-links .sep {
    opacity: 0.4;
    font-size: 0.75rem;
}

/* Footer responsive */
@media (max-width: 991px) {
    .footer-inner {
        flex-wrap: wrap;
    }
    .footer-col-about {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
    .footer-col-links {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .footer-col-contact {
        flex: 0 0 45%;
        max-width: 45%;
    }
}

@media (max-width: 567px) {
    .footer-col-links,
    .footer-col-contact {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .footer-copyright-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Banners / Hero (Swiper)
   -------------------------------------------------------------------------- */
.banner {
    position: relative;
    overflow: hidden;
}

.banner .swiper-slide {
    position: relative;
}

.banner-img {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 640px;
}

@media (max-width: 767px) {
    .banner-img {
        height: 400px;
    }
}

.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 60px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.55) 100%);
    color: var(--color-white);
    z-index: 10;
}

/* Homepage banner — content centered both vertically and horizontally */
.home-banner .banner-content {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
}

.banner-inner-content h1,
.banner-inner-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .banner-inner-content h1,
    .banner-inner-content h2 {
        font-size: 1.75rem;
    }
}

.banner-inner-content .project-url a {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.banner-inner-content .project-url a:hover {
    color: var(--color-accent);
}

.banner-inner-content h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    margin-bottom: 20px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-heading-logo img {
    max-height: 80px;
    width: auto;
}

/* Swiper nav buttons */
.banner .swiper-button-prev,
.banner .swiper-button-next {
    color: var(--color-white);
    z-index: 20;
}

.banner .swiper-button-prev::after,
.banner .swiper-button-next::after {
    font-size: 1.5rem;
}

/* Banner scroll down button */
.banner-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.page-banner.mb-0 {
    margin-bottom: 0;
}

/* Inner-page hero — shorter than the full-viewport homepage banner */
.page-banner .banner-img {
    height: 60vh;
    max-height: 560px;
    min-height: 360px;
}

@media (max-width: 767px) {
    .page-banner .banner-img {
        height: 320px;
        min-height: 0;
    }
}

/* Banner CTA button */
.c-home-banner-slider-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    border: 2px solid var(--color-white);
    border-radius: 30px;
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.c-home-banner-slider-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    text-shadow: none;
}

/* --------------------------------------------------------------------------
   Project Tiles (Shopping Centres, Commercial Assets)
   -------------------------------------------------------------------------- */
.projects-group {
    padding: 0;
}

.projects-group .shopping-centres-section {
    background-color: #f5f5f5;
    padding: 40px 0 50px;
}

.projects-group .commercial-assets-section {
    background-color: var(--color-white);
    padding: 40px 0 50px;
}

.projects-group .section-block {
    padding: 10px 0 30px;
}

.projects-group h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.75rem;
}

.project-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.project-tile {
    padding: 0 !important;
    width: calc(33.333% - 6px);
    max-width: calc(33.333% - 6px);
}

@media (max-width: 811px) {
    .project-tile {
        width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
}

@media (max-width: 567px) {
    .project-tile {
        width: 100%;
        max-width: 100%;
    }
}

.project-tile a {
    display: block;
    overflow: hidden;
    position: relative;
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-tile a:hover .project-img img {
    transform: scale(1.08);
}

.project-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    text-align: center;
}

.project-name span {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Section Headings
   -------------------------------------------------------------------------- */
.section-block {
    padding: 30px 0;
}

.lined {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
}

.lined::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    margin: auto;
    width: 148px;
    height: 4px;
    background-color: var(--color-primary);
}

.lined.text-left::after {
    right: auto;
}

.sep-top {
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    color: var(--color-dark);
    background-color: var(--color-white);
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: 0;
}

.form-control-sm {
    padding: 4px 8px;
    font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Intro / Story Section
   -------------------------------------------------------------------------- */
.intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
}

@media (min-width: 667px) {
    .intro {
        display: flex;
        text-align: left;
    }
}

.value-subline {
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 667px) {
    .value-subline {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        flex-shrink: 0;
        margin-bottom: 0;
        padding-right: 40px;
        margin-right: 40px;
        border-right: 1px solid #ccc;
    }
}

.value-subline .value {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
}

@media (min-width: 667px) {
    .value-subline .value {
        margin-right: 10px;
    }
}

.value-subline .subline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    line-height: 1.3;
}

@media (min-width: 667px) {
    .value-subline .subline {
        text-align: left;
        padding-bottom: 4px;
    }
}

.value-content {
    flex: 1;
}

.value-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 20px;
}

.value-content .btn {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    padding: 12px 35px;
    font-size: 0.8125rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.value-content .btn:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   People / Team
   -------------------------------------------------------------------------- */

/* Featured person's name — preserve case, keep dark, sit close to the subtitle */
.team-member h2 {
    color: var(--color-dark);
    text-transform: none;
    padding-bottom: 0;
    margin-bottom: 0.25rem;
}

/* Subtitle under featured person's name */
.team-title {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin: 0 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e6ecf1;
}

/* Featured member layout block */
.team-member { margin-bottom: 3rem; }
.team-member-desc p { margin-bottom: 1rem; line-height: 1.7; }

/* Featured photo container — constrains image to its column */
.img-box { position: relative; margin-bottom: 1rem; }
.img-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* LinkedIn wordmark sits as a small badge under the photo */
.linkedin-link {
    display: inline-block;
    margin-top: 0.75rem;
    max-width: 110px;
    line-height: 0;
}
.linkedin-link svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Quote box — navy left strip with white quote glyph, light body */
.team-member blockquote {
    position: relative;
    background-color: #eef0f2;
    color: var(--color-dark);
    margin: 2rem 0 0;
    padding: 1.75rem 2rem 1.5rem 6rem;
    overflow: hidden;
}
.team-member blockquote i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4.5rem;
    background-color: var(--color-primary);
}
.team-member blockquote i::before {
    content: '\201C';
    color: var(--color-white);
    font-family: Georgia, serif;
    font-size: 5rem;
    font-style: normal;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}
.team-member blockquote p {
    margin: 0 0 0.75rem;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.4;
}
.team-member blockquote p:last-child {
    margin-bottom: 0;
    font-style: normal;
}
.team-member blockquote p small {
    color: var(--color-primary);
    font-size: 0.95rem;
}

/* Card grid for non-featured people — image fills the tile, no letterbox padding */
.team-list-cards .card-img-top {
    padding: 0;
    aspect-ratio: 4 / 5;
}
.team-list-cards .card-img-top img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* --------------------------------------------------------------------------
   Media Centre
   -------------------------------------------------------------------------- */
.media-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.media-item:last-child {
    border-bottom: none;
}

.media-item h3 {
    margin-bottom: 5px;
}

.media-item .date {
    font-size: 0.8125rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.media-item .summary {
    font-size: 0.9375rem;
    color: var(--color-dark);
}

.media-folder-subtitle {
    color: var(--color-secondary);
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    margin-top: -1.5rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Material Icons (for centre attributes)
   -------------------------------------------------------------------------- */
.mi {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Centre Attributes (sidebar)
   -------------------------------------------------------------------------- */
.project-attributes .attrs {
    margin-top: 5px;
}

.project-attributes .attr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 2px;
    border-bottom: 1px solid #e6e6e6;
}

.project-attributes .attr:last-of-type {
    border-bottom: 0;
}

.project-attributes .attr-icon {
    flex: 0 0 26px;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-accent);
}

.project-attributes .attr-icon:empty {
    visibility: hidden;
}

.project-attributes .attr-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.project-attributes .attr-val {
    font-family: var(--font-family-heading);
    font-size: 1.35rem;
    line-height: 1.15;
    color: var(--color-primary);
}

.project-attributes .attr-var {
    margin-top: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.3;
    color: var(--color-secondary);
}

.project-attributes .inner-col {
    background: var(--color-light);
    padding: 30px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.project-attributes .social-media {
    display: flex;
    justify-content: center;
    gap: 14px;
    list-style: none;
    margin: 22px -20px -30px;
    padding: 18px;
    background: var(--color-primary);
}

.project-attributes .social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.project-attributes .social-media a:hover {
    background: #fff;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .project-attributes {
        position: relative;
        z-index: 20;
    }

    .project-attributes .inner-col {
        margin-top: -115px;
    }

    .project-description {
        padding-top: 45px;
    }
}

@media (max-width: 767px) {
    /* Stacked layout: separate the attributes card from the title below it */
    .project-attributes {
        margin-bottom: 36px;
    }
}

.find-us-section {
    padding-top: 50px;
}

.centres-section {
    background: #f5f5f5;
    padding: 40px 0 0;
}

.centres-section .section-block {
    padding-bottom: 0;
}

.centres-section .footer-projects-list,
.assets-section .footer-projects-list {
    max-width: var(--grid-max-width);
    margin-left: auto;
    margin-right: auto;
}

.project-title {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Centre Contact / Leasing Enquiries
   -------------------------------------------------------------------------- */
.project-contact-info {
    align-items: flex-start;
}

.project-contact-info > .col {
    margin-bottom: 28px;
}

.project-contact-info h4 {
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-contact-info p {
    margin: 0 0 10px;
    line-height: 1.4;
}

.project-contact-info p small {
    color: var(--color-secondary);
}

.project-contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.project-contact-info li {
    margin-bottom: 9px;
}

.project-contact-info li:last-child {
    margin-bottom: 0;
}

.project-contact-info li,
.project-contact-info li a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.4;
    color: var(--color-primary);
}

.project-contact-info li i {
    flex: 0 0 16px;
    margin-top: 2px;
    text-align: center;
    color: var(--color-accent);
}

.project-contact-info li a:hover,
.project-contact-info li a:hover i {
    color: var(--color-accent);
}

.project-attributes .project-logo {
    margin-bottom: 15px;
    text-align: center;
}

.project-attributes .project-logo img {
    max-width: 180px;
    margin: 0 auto;
}

.project-attributes .project-logo-text {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Key / Adjacent Retailers
   -------------------------------------------------------------------------- */
.retailers-title {
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
}

.retailers-wrap {
    margin-left: -6px;
    margin-right: -6px;
}

.retailers-wrap > .col {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

.key-retailer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 6px;
    background: transparent;
}

.key-retailer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   Project Gallery (Swiper)
   -------------------------------------------------------------------------- */
.gallery-section {
    background: #f5f5f5;
    padding: 40px 0 50px;
}

.gallery-section .gallery-wrap {
    max-width: var(--grid-max-width);
    margin-left: auto;
    margin-right: auto;
}

.project-gallery {
    position: relative;
    padding: 0 80px;
}

.project-gallery-swiper {
    overflow: hidden;
}

.project-gallery-swiper .gallery-item img {
    display: block;
    width: 100%;
    height: clamp(160px, 16vw, 220px);
    object-fit: cover;
}

.project-gallery .swiper-button-prev,
.project-gallery .swiper-button-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    margin-top: 0;
    top: calc(clamp(160px, 16vw, 220px) / 2);
    transform: translateY(-50%);
}

.project-gallery .swiper-button-prev::after,
.project-gallery .swiper-button-next::after {
    font-size: 1.05rem;
    font-weight: 700;
}

.project-gallery .swiper-button-prev { left: 18px; }
.project-gallery .swiper-button-next { right: 18px; }

.project-gallery .swiper-pagination {
    position: static;
    margin-top: 22px;
}

.project-gallery .swiper-pagination-bullet {
    background: #b5b5b5;
    opacity: 0.7;
}

.project-gallery .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-accent);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.gallery-lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    padding: 20px;
}

.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }

.gallery-lightbox button:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Social Sharing
   -------------------------------------------------------------------------- */
.social-share {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.social-share a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Contact page (self-contained modern layout — CSS Grid, no legacy
   grid/breakpoint classes; responsive via auto-fit/minmax)
   -------------------------------------------------------------------------- */
.contact-page {
    padding-block-end: 3rem;
}

/* Info tiles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-block: 2.5rem;
}

.contact-info__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    color: var(--color-primary);
}

.contact-info__item i {
    font-size: 2.5rem;
    line-height: 1;
}

.contact-info__item a {
    color: inherit;
}

.contact-info__item a:hover {
    color: var(--color-accent);
}

/* Divider */
.contact-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin-block: 2.5rem;
}

/* Form */
.contact-form {
    max-width: 680px;
    margin-inline: 0;
    margin-block: 2.5rem;
}

.contact-form__title {
    margin-bottom: 2.5rem;
}

/* Umbraco Forms (default theme) — reset the UA fieldset chrome
   (that stray border/line), lay field groups out side-by-side,
   and give inputs an iOS look with a rounded Precision-blue submit. */
.contact-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Umbraco Forms renders each group as its own <fieldset> (a row).
   Treat each fieldset as a row and lay the fields inside its
   container side-by-side: a 1-field group fills the row, a
   2-field group (e.g. Email + Phone) splits into two columns. */
.contact-form .umbraco-forms-fieldset {
    margin: 0 0 0.75rem;
    padding: 0;
}

.contact-form .row-fluid,
.contact-form .umbraco-forms-field-wrapper {
    margin: 0;
}

.contact-form .umbraco-forms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
}

.contact-form .umbraco-forms-field {
    margin: 0;
    min-width: 0;
}

/* The default theme leaves an empty validation <span> after every
   field that still reserves space — hide it until it holds an error. */
.contact-form .field-validation-valid {
    display: none;
}

/* A long-answer/textarea always spans the full container width */
.contact-form .umbraco-forms-field:has(textarea),
.contact-form .umbraco-forms-field.longanswer {
    grid-column: 1 / -1;
}

.contact-form .umbraco-forms-label,
.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--color-primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form input[type="url"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-primary);
    background-color: #f2f2f7;
    border: 1px solid transparent;
    border-radius: 12px;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8e8e93;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 60, 113, 0.15);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .field-validation-error,
.contact-form .umbraco-forms-field-error {
    display: block;
    margin-top: 0.35rem;
    color: #c0392b;
    font-size: 0.875rem;
}

.contact-form input.input-validation-error,
.contact-form textarea.input-validation-error,
.contact-form select.input-validation-error {
    border-color: #c0392b;
}

.contact-form .umbraco-forms-navigation {
    text-align: left;
    margin-top: 1rem;
}

.contact-form button[type="submit"],
.contact-form input[type="submit"],
.contact-form .umbraco-forms-navigation .btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover,
.contact-form .umbraco-forms-navigation .btn:hover {
    background-color: #002a50;
}

.contact-form button[type="submit"]:active,
.contact-form input[type="submit"]:active {
    transform: translateY(1px);
}

/* People directory */
.contact-people {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-block: 3rem;
}

@media (max-width: 991px) {
    .contact-people { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 666px) {
    .contact-people { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
    .contact-people { grid-template-columns: 1fr; }
}

.contact-people__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: #f5f5f5;
    padding: 1.5rem;
}

/* Alternate tile background — every other tile white */
.contact-people__card:nth-child(even) {
    background-color: #fff;
}

.contact-people__name {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.2;
    /* Reserve two lines so the position text aligns across all
       cards regardless of whether the name wraps. */
    min-height: 2.4em;
}

.contact-people__title {
    margin: 0 0 1.25rem;
    flex: 1 1 auto;
}

.contact-people__card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Whistleblower + map */
.contact-aside {
    display: flex;
    justify-content: flex-end;
    margin-block: 1.5rem 1rem;
}

.contact-whistleblower {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-map :is(iframe, img) {
    width: 100%;
    border: 0;
    display: block;
}

/* --------------------------------------------------------------------------
   Search results
   -------------------------------------------------------------------------- */
.search-results .news-list-items {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.search-results .hrz-list-item {
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
}

.search-results .hrz-list-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.search-results .hrz-list-item > a {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    padding: 1.25rem;
    color: inherit;
    transition: background-color 0.15s ease;
}

.search-results .hrz-list-item > a:hover {
    background-color: #f5f5f5;
}

.search-results .hrz-list-item i {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.search-results .hrz-list-item-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 0.35rem;
    color: var(--color-primary);
    transition: color 0.15s ease;
}

.search-results .hrz-list-item > a:hover .hrz-list-item-title {
    color: var(--color-accent);
}

.search-results .hrz-list-item-desc {
    grid-column: 2;
    grid-row: 2;
}

.search-results .hrz-list-item-desc p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.search-results .hrz-list-item-desc .text-secondary {
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}

/* --------------------------------------------------------------------------
   Toggle / Hamburger
   -------------------------------------------------------------------------- */
.toggle-spin {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

.toggle-box {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.toggle-inner,
.toggle-inner::before,
.toggle-inner::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    transition: transform 0.2s ease;
}

.toggle-inner {
    top: 50%;
    transform: translateY(-50%);
}

.toggle-inner::before {
    content: '';
    top: -7px;
}

.toggle-inner::after {
    content: '';
    bottom: -7px;
}

/* --------------------------------------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Hamburger pinned to the far right of the header row */
    .header-inner > .nav-trigger-box {
        margin-left: auto;
    }

    /* Dimmed backdrop behind the panel */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 60, 113, 0.45);
        opacity: 0;
        visibility: hidden;
        z-index: 1999;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* Off-canvas panel — slides in from the right.
       Selector matches header .navbar specificity to override the
       desktop justify-content: center. */
    header .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        background: var(--color-white);
        z-index: 2000;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0 28px 28px;
        transition: right 0.3s ease;
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
    }

    .navbar.is-open {
        right: 0;
    }

    /* Close button occupies a header-height band so it lines up
       vertically with the hamburger in the closed header bar */
    .navbar > .nav-trigger-box {
        align-self: stretch;
        justify-content: flex-end;
        min-height: 90px;
        flex-shrink: 0;
        border-bottom: 1px solid #ececec;
        margin: 0 -28px;
        padding: 0 28px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding-top: 6px;
    }

    .nav-item {
        display: block;
        width: 100%;
    }

    .nav-link {
        padding: 14px 2px;
        border-bottom: 1px solid #ececec;
        font-size: 0.875rem;
        letter-spacing: 1.5px;
    }

    /* Drop the desktop sliding underline inside the panel */
    .navbar .nav-link::after {
        display: none;
    }

    .navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Search opens the full-screen overlay (consistent with desktop) */
    .navbar .nav-search-trigger {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar .nav-search-trigger i {
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive Visibility (additional)
   -------------------------------------------------------------------------- */
@media (min-width: 667px) {
    .xs-d-flex { display: flex !important; }
    .xs-justify-content-end { justify-content: flex-end !important; }
    .xs-text-left { text-align: left !important; }
}

/* --------------------------------------------------------------------------
   Text & weight utilities
   -------------------------------------------------------------------------- */
.text-primary     { color: var(--color-primary) !important; }
.text-accent      { color: var(--color-accent)  !important; }
.font-weight-bold { font-weight: var(--font-weight-bold) !important; }

/* Scroll-target offset so in-page anchors clear the fixed header + sticky subnav */
.scrl-target { scroll-margin-top: 180px; }

/* --------------------------------------------------------------------------
   Generic row & column ordering helpers (used by row-block layouts)
   -------------------------------------------------------------------------- */
.row-block { margin-bottom: 2.5rem; }

.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }

@media (min-width: 768px) {
    .sm-order-1 { order: 1; }
    .sm-order-2 { order: 2; }
    .sm-order-3 { order: 3; }
    .sm-order-4 { order: 4; }
}

@media (min-width: 812px) {
    .md-order-1 { order: 1; }
    .md-order-2 { order: 2; }
    .md-order-3 { order: 3; }
    .md-order-4 { order: 4; }
}

@media (min-width: 992px) {
    .lg-order-1 { order: 1; }
    .lg-order-2 { order: 2; }
    .lg-order-3 { order: 3; }
    .lg-order-4 { order: 4; }
}

/* --------------------------------------------------------------------------
   Fluid image
   -------------------------------------------------------------------------- */
.fluid-img        { margin-bottom: 1rem; }
.fluid-img img    { width: 100%; height: auto; display: block; }
.video-wrapper iframe { border: 0; }

/* --------------------------------------------------------------------------
   Page hero banner — edge-to-edge cinematic strip at the top of inner pages
   (Community / Beyond Property detail pages). Sits outside the grid so it
   extends the full viewport width.
   -------------------------------------------------------------------------- */
.page-hero {
    width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .page-hero { aspect-ratio: 3 / 1; }
}

@media (max-width: 480px) {
    .page-hero { aspect-ratio: 2 / 1; }
}

/* --------------------------------------------------------------------------
   Pill button (.md-btn) — used in the page sub-navigation
   Reference: main.css from precision.com.au
   -------------------------------------------------------------------------- */
.md-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: inline-block;
    padding: 0 1.25rem;
    line-height: 2.25rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: 2.25rem;
    outline: 0;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.md-btn-alternative {
    background-color: #f6f6f6;
    border-color: #f6f6f6;
    color: #333;
}

.md-btn-alternative:hover,
.md-btn-alternative:active,
.md-btn-alternative.active,
.md-btn-alternative.is-active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Page Sub-Navigation (pill tab strip on inner pages)
   Mobile: collapsible dropdown anchored to a gold toggle button.
   Desktop: inline pill strip aligned right.
   Reference: precision.css from precision.com.au
   -------------------------------------------------------------------------- */
.page-subnav {
    margin-bottom: 1.5rem;
    position: relative;
}

.page-subnav > .grid {
    padding: 0;
}

/* Mobile toggle (hidden on lg+) */
.subnav-toggle {
    background: var(--color-accent);
}

.subnav-toggle a,
.subnav-toggle a i {
    line-height: 2.5rem;
}

.subnav-toggle a {
    color: var(--color-white);
    display: block;
    padding: 0 3rem;
    position: relative;
}

.subnav-toggle a i:first-child {
    color: var(--color-white);
    display: block;
    font-size: 1.75rem;
    left: 1rem;
    position: absolute;
    text-align: left;
    top: 0;
    width: 1.25rem;
}

.subnav-toggle a i:last-child {
    position: absolute;
    right: 1rem;
    top: 0;
}

.subnav-toggle a span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mobile-only collapsed list */
.page-subnav ul {
    background: #f6f6f6;
    border-bottom: 1px solid var(--color-accent);
    display: none;
    left: 0;
    right: 0;
    top: 100%;
    position: absolute;
    z-index: 90;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-subnav ul.is-open {
    display: block;
}

.page-subnav ul li {
    border-bottom: 1px solid #ddd;
}

.page-subnav ul li:last-child {
    border-bottom: none;
}

.page-subnav ul li a,
.page-subnav ul li a i {
    line-height: 2.5rem;
}

.page-subnav ul li a {
    color: #333;
    display: block;
    font-weight: var(--font-weight-bold);
    padding-left: 3rem;
    background: transparent;
    border-radius: 0;
    border: none;
}

.page-subnav ul li a:hover,
.page-subnav ul li a:active,
.page-subnav ul li a.is-active {
    background: #c3ba6d;
    color: var(--color-white);
}

/* Desktop (>=992px): full-width sticky bar with centered pill strip */
@media (min-width: 992px) {
    .subnav-toggle a { display: none; }

    .page-subnav {
        position: sticky;
        top: 90px;
        z-index: 50;
        padding: 1rem 0;
        background-color: transparent;
        border-bottom: 1px solid transparent;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
        transition: background-color 300ms ease,
                    border-bottom-color 300ms ease,
                    box-shadow 300ms ease;
    }

    .page-subnav.is-stuck {
        background-color: var(--color-white);
        border-bottom-color: #e6ecf1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .page-subnav ul {
        display: block !important;
        position: static;
        background: transparent;
        border-bottom: none;
        text-align: center;
    }

    .page-subnav ul li {
        display: inline-block !important;
        margin: 0 0.25rem;
        border-bottom: none;
    }

    .page-subnav ul li a {
        /* re-enable pill button styling on desktop */
        background-color: #f6f6f6;
        color: #333;
        border: 2px solid #f6f6f6;
        border-radius: 2.25rem;
        padding: 0 1.25rem;
        line-height: 2.25rem;
        font-weight: 700;
    }

    .page-subnav ul li a:hover,
    .page-subnav ul li a:active,
    .page-subnav ul li a.is-active {
        background-color: var(--color-accent);
        border-color: var(--color-accent);
        color: var(--color-white);
    }
}

/* --------------------------------------------------------------------------
   Precision Attributes (the stat strip below Our Story)
   Reference: precision.css from precision.com.au
   -------------------------------------------------------------------------- */
.precision-attrs {
    background: #f6f6f6;
}

.precision-attrs .attrs {
    margin: 0 auto;
    max-width: 1440px;
    padding: 4rem 0;
    margin-bottom: 0;
}

.precision-attrs .attr {
    font-size: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    position: relative;
    text-align: center;
}

.precision-attrs .attr:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.precision-attrs .attr:not(:last-child)::after {
    background: #b3c4d4;
    bottom: 0;
    content: '';
    height: 1px;
    left: 1rem;
    right: 1rem;
    position: absolute;
}

/* Mobile: value left, label right */
.precision-attrs .attr span {
    display: inline-block;
    vertical-align: middle;
    width: 50%;
}

.precision-attrs .attr-val {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    padding-right: 0.5rem;
    text-align: right;
}

.precision-attrs .attr-var {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-dark);
    padding-left: 0.5rem;
    text-align: left;
    line-height: 1.4em;
}

/* Tablet+: stack vertically inside each attribute, centered */
@media (min-width: 414px) {
    .precision-attrs .attr span {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .precision-attrs .attr-val {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .precision-attrs .attr-var {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0;
    }

    /* When stacked, last two attrs lose their dividers */
    .precision-attrs .attr:nth-last-child(2) {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .precision-attrs .attr:nth-last-child(2)::after {
        content: none;
    }
}

/* Desktop: four side-by-side, no dividers, equal spacing */
@media (min-width: 992px) {
    .precision-attrs .attrs {
        justify-content: space-between !important;
    }

    .precision-attrs .attr {
        margin-bottom: 0;
        padding-bottom: 0;
        max-width: 260px;
    }

    .precision-attrs .attr:not(:last-child)::after {
        content: none;
    }

    .precision-attrs .attr-val {
        font-size: 2.25rem;
    }
}

/* --------------------------------------------------------------------------
   Timeline (Our History) — left rail with circular markers per year
   Reference: precision.css from precision.com.au
   -------------------------------------------------------------------------- */
.timeline {
    padding-left: 2rem;
    position: relative;
}

.timeline::before {
    background: #c0c0c0;
    bottom: 0;
    content: '';
    left: 1rem;
    position: absolute;
    top: 2rem;
    width: 1px;
}

.timeline .text-primary {
    padding-top: 2rem;
    position: relative;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.timeline .text-primary::before {
    background: #c0c0c0;
    border-radius: 50%;
    content: '';
    height: 0.6875rem;
    width: 0.6875rem;
    left: -1.3125rem;
    margin: auto;
    position: absolute;
    top: 2rem;
    bottom: 0;
}

.timeline p.text-primary:first-of-type {
    padding-top: 0;
}

.timeline p.text-primary:first-of-type::before {
    top: 0;
}

.timeline .text-primary.active::before {
    background: var(--color-primary);
    height: 1.0625rem;
    width: 1.0625rem;
    left: -1.5rem;
}

@media (min-width: 992px) {
    .timeline .text-primary { font-size: 2.25rem; }
    .timeline { padding-left: 4rem; padding-top: 5rem; }
    .timeline .text-primary::before { left: -3.3125rem; }
    .timeline .text-primary.active::before { left: -3.5rem; }
}

/* --------------------------------------------------------------------------
   History Slider (Our History — horizontal carousel)
   -------------------------------------------------------------------------- */
.history-slider {
    position: relative;
}

/* --- Year legend (clickable timeline along the top) --- */
.history-legend {
    align-items: center;
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0 0 0.5rem;
    /* Breathing room so the active button isn't flush against the edge after auto-scroll */
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar — still scrollable via drag, wheel, or legend button clicks */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/legacy Edge */
}

.history-legend::-webkit-scrollbar { display: none; } /* WebKit */

.history-legend-btn {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    cursor: pointer;
    flex: 0 0 auto;
    font-family: 'GuessSans-Bold', 'Lato', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    position: relative;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.history-legend-btn:hover { color: var(--color-primary, #003c71); }

.history-legend-btn.is-active {
    border-bottom-color: var(--color-primary, #003c71);
    color: var(--color-primary, #003c71);
}

/* --- Track (swiper + side arrows wrapper, for positioning context) --- */
.history-track {
    position: relative;
}

.history-swiper {
    overflow: hidden;
    padding: 0.5rem 0.25rem 0.5rem; /* leave room for card shadow */
}

/* Smooth easing for the autoHeight wrapper transition.
   Swiper inlines transition-property + transition-duration on .swiper-wrapper
   when autoHeight is on, but leaves timing-function for CSS to set.
   align-items: flex-start is CRITICAL — without it the active slide gets
   stretched vertically by flex defaults, and Swiper's autoHeight measurement
   reads the stretched height instead of the slide's natural content height. */
.history-swiper .swiper-wrapper {
    align-items: flex-start;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.history-swiper .swiper-slide {
    height: auto;
    /* Cross-fade between years so content swap matches the height animation. */
    opacity: 0;
    transition: opacity 0.35s ease;
}

.history-swiper .swiper-slide-active {
    opacity: 1;
}

/* --- Card --- */
.history-card {
    background: #fff;
    border: 1px solid rgba(0, 60, 113, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.25rem;
    width: 100%;
}

.history-year {
    color: var(--color-primary, #003c71);
    font-family: 'GuessSans-Bold', 'Lato', sans-serif;
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
}

/* Gold accent bar — picks up brand secondary */
.history-year::after {
    background: #aa9d2e;
    border-radius: 2px;
    bottom: 0;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 2rem;
}

.history-content {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.55;
}

.history-content p { margin: 0 0 0.6rem; }
.history-content p:last-child { margin-bottom: 0; }

/* --- Side-mounted navigation arrows --- */
.history-nav-btn {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 60, 113, 0.15);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 60, 113, 0.10);
    color: var(--color-primary, #003c71);
    cursor: pointer;
    display: none; /* hidden on mobile — users swipe or use the legend */
    height: 2.75rem;
    width: 2.75rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
}

.history-nav-btn:hover {
    background: var(--color-primary, #003c71);
    border-color: var(--color-primary, #003c71);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 60, 113, 0.25);
}

.history-nav-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

.history-prev { left: -1rem; }
.history-next { right: -1rem; }

.history-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

@media (min-width: 768px) {
    .history-nav-btn { display: inline-flex; }
    .history-prev { left: -1.5rem; }
    .history-next { right: -1.5rem; }
}

@media (min-width: 992px) {
    .history-card { padding: 2rem 2rem 1.75rem; }
    .history-year { font-size: 2.5rem; }
    .history-legend-btn { font-size: 1rem; padding: 0.5rem 0.75rem; }
}

/* --------------------------------------------------------------------------
   Cards (Our Difference / Community / Beyond Property)
   Reference: main.css from precision.com.au
   -------------------------------------------------------------------------- */
.cards-section { margin-top: 1rem; }

.card-wrap {
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: stretch;
}

/* 3-up width — three cards per row from lg up. Tiles that also carry
   `.xl-4` (Community / Beyond Property) escalate to 4-up at xl via the
   more specific override below. */
@media (min-width: 992px) {
    .lg-3-up { width: 33.3333%; }
}

@media (min-width: 1280px) {
    .lg-3-up.xl-4 { width: 25%; }
}

/* "N-up" responsive utilities — N items per row (width = 100/N).
   Ported from the legacy grid; ordered by ascending breakpoint so
   larger breakpoints win the cascade. Used by Contact, Leasing
   contact blocks, etc. */
@media (min-width: 568px) {
    .xxs-3-up { width: 33.3333%; }
}

@media (min-width: 667px) {
    .xs-3-up { width: 33.3333%; }
}

@media (min-width: 768px) {
    .sm-3-up { width: 33.3333%; }
}

@media (min-width: 992px) {
    .lg-5-up { width: 20%; }
}

@media (min-width: 1280px) {
    .xl-5-up { width: 20%; }
}

@media (min-width: 1366px) {
    .xxl-6-up { width: 16.6667%; }
}

.card {
    background-color: var(--color-white);
    background-clip: border-box;
    border: 1px solid #eee;
    box-shadow: 0 3px 4px 1px #eee;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    position: relative;
    word-wrap: break-word;
}

.card-img-top {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    width: 100%;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--color-primary);
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

/* When the title isn't followed by a subtitle, give it the same gap
   before the divider line that the subtitle would have provided. */
.card-title:nth-last-child(2) {
    margin-bottom: 1.25rem;
}

.card-subtitle {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
    padding: 0;
}

.card-text {
    color: #333;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.card-text:last-child,
.card-text p:last-child {
    margin-bottom: 0;
}

/*
   Divider above the Read More button. Rendered as a flex pseudo-element with
   `margin-top: auto` so it absorbs free space and lands at a consistent
   Y position across cards — independent of how much title/subtitle copy
   each tile actually has.
*/
.card-body::after {
    content: '';
    display: block;
    order: 1;
    margin: auto -1.25rem 1rem;
    height: 1px;
    background: #e6ecf1;
}

/* Read More button inside cards — gold pill, ordered after the divider */
.card .btn-outline-secondary {
    order: 2;
    align-self: flex-start;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 2.25rem;
    padding: 0 1.25rem;
    line-height: 2.25rem;
    font-size: 0.875rem;
}

.card .btn-outline-secondary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* Simple cards (Our Difference) — no image, transparent shell */
.simple-card .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.simple-card .card-body {
    border: none;
    padding: 1rem 0;
}

.simple-card .card-body::after {
    content: none;
}

/* === Media Centre listing (editorial list) =====================
   Used by MediaCentre.cshtml and MediaFolder.cshtml. Single-column
   news stream: gold uppercase date, navy title, 2-line summary clip,
   chevron, subtle dividers + hover tint. */
.media-list {
    max-width: 760px;
    margin: 0 auto;
}

.media-list-item {
    border-bottom: 1px solid #e5e5e5;
}

.media-list-item > a {
    display: block;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

/* First item sits close to the header — no top divider, tight top pad. */
.media-list-item:first-child > a {
    padding-top: 0.5rem;
}

.media-list-item > a:hover,
.media-list-item > a:focus-visible {
    background-color: #fafafa;
    text-decoration: none;
}

.media-list-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.media-list-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.65rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.15s ease;
}

.media-list-item > a:hover .media-list-title,
.media-list-item > a:focus-visible .media-list-title {
    color: var(--color-accent);
}

.media-list-arrow {
    flex: 0 0 auto;
    color: var(--color-accent);
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.media-list-item > a:hover .media-list-arrow,
.media-list-item > a:focus-visible .media-list-arrow {
    transform: translateX(4px);
}

.media-list-summary {
    margin: 0;
    color: var(--color-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta line: date + optional file-type badge */
.media-list-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.media-list-meta .media-list-date {
    margin-bottom: 0;
}

.media-list-type {
    display: inline-flex;
    align-items: center;
    height: 1.25rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.media-list-type--pdf {
    background: rgba(52, 58, 64, 0.08);  /* soft slate */
    color: var(--color-dark);
}

.media-list-type--page {
    background: rgba(0, 60, 113, 0.08);
    color: var(--color-primary);
}

@media (max-width: 575px) {
    .media-list-item > a { padding: 1.25rem 1rem; }
    .media-list-title { font-size: 1.2rem; }
}

/* === Media Centre layout (list + share sidebar) =================
   Stacks on mobile; on desktop list takes available width and the
   share rail floats sticky on the right. */
.media-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    /* No auto margin / max-width — list left-aligns with the page
       header. Share rail is pushed to the far right via margin-left. */
}

@media (min-width: 768px) {
    .media-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
}

.media-layout .media-list {
    flex: 0 1 auto;
    width: 100%;
    max-width: 760px;
    margin: 0; /* left-aligned to header */
}

@media (min-width: 768px) {
    .media-layout .media-share {
        margin-left: auto; /* hug the right edge */
    }
}

/* === Media share rail =========================================== */
.media-share {
    flex: 0 0 auto;
    text-align: center;
}

@media (min-width: 992px) {
    .media-share {
        position: sticky;
        top: 9rem; /* clearance below the fixed site header */
        min-width: 5rem;
    }
}

.media-share-title {
    margin: 0 0 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.media-share-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .media-share-list {
        flex-direction: column;
        align-items: center;
    }
}

.media-share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    color: var(--color-primary);
    font-size: 1.25rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease,
                border-color 0.15s ease, transform 0.15s ease;
}

.media-share-btn:hover,
.media-share-btn:focus-visible {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.media-share-btn.is-copied {
    background: var(--color-success, #28a745);
    color: var(--color-white);
    border-color: var(--color-success, #28a745);
}

.media-share-btn.is-copied i { display: none; }

.media-share-btn.is-copied::after {
    content: "\2713"; /* check */
    font-size: 1.1rem;
    font-weight: 600;
}

/* === Pager ====================================================== */
.pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin: 3rem 0 1rem;
}

.pager-list {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pager-btn,
.pager-current,
.pager-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    line-height: 1;
}

.pager-btn:hover,
.pager-btn:focus-visible {
    background: rgba(0, 60, 113, 0.08);
    color: var(--color-primary);
    text-decoration: none;
}

.pager-current {
    background: var(--color-primary);
    color: var(--color-white);
    cursor: default;
}

.pager-step {
    border: 1px solid #e5e5e5;
    padding: 0 1rem;
    gap: 0.4rem;
}

.pager-step:hover {
    border-color: var(--color-primary);
    background: transparent;
}

.pager-step.is-disabled {
    color: #bbb;
    pointer-events: none;
    border-color: #eee;
    cursor: not-allowed;
}

.pager-ellipsis {
    color: var(--color-secondary);
    cursor: default;
    min-width: 1.5rem;
    padding: 0 0.25rem;
}

.pager-summary {
    color: var(--color-secondary);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 575px) {
    .pager-step span:not([aria-hidden]) { display: none; }
    .pager-step { padding: 0 0.75rem; }
}
