/* =========================================
   INTERNAL PAGE HEADER & BREADCRUMBS
   ========================================= */

body.is-homepage .internal-page-header { 
    display: none !important; 
}

.internal-page-header.map {
    width: 100%;
    border-bottom: 8px solid #21256d;
    background: #f3f3f3;
    padding: 30px 0;
    /* margin-bottom: 20px; */
}

.internal-page-header .wrap {
    display: flex;
    flex-wrap: wrap; /* Auto line-wrap if elements overflow */
    justify-content: space-between; /* Title left, breadcrumbs right */
    align-items: center; /* Vertical alignment */
    gap: 15px; /* Gap between title and breadcrumbs */
    width: 100%;
}

.internal-page-header h1 {
    color: #40464a;
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    flex: 1 1 auto; /* Flexible sizing without forced width */
}

.internal-page-header .breadcrumbs {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    margin-left: auto; /* Align breadcrumbs to the right */
    flex: 0 0 auto;
}

/* =========================================
   BREADCRUMBS (EXACT MOJOPORTAL DOM FIX)
   ========================================= */

.internal-page-header .breadcrumbs {
    margin-top: 0;
    display: block;
    text-align: right;
    margin-left: auto;
}

.internal-page-header .breadcrumbs ul.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    text-align: right;
}

/* All links directly inside ul.breadcrumb */
.internal-page-header .breadcrumbs ul.breadcrumb > a {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: #40464a;
    text-decoration: none !important;
    display: inline-block;
    line-height: 20px;
    outline: none !important; /* Removes focus border ring */
    box-shadow: none !important;
}

.internal-page-header .breadcrumbs ul.breadcrumb > a:focus,
.internal-page-header .breadcrumbs ul.breadcrumb > a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Add separator arrow BEFORE 2nd, 3rd, etc. links */
.internal-page-header .breadcrumbs ul.breadcrumb > a + a::before {
    content: ">";
    margin: 0 12px;
    color: #21256d;
    font-weight: bold;
    display: inline-block;
    text-decoration: none !important;
    pointer-events: none; /* Prevents arrow from being clickable/focusable */
}

/* Hover effect on links (arrow remains un-underlined) */
.internal-page-header .breadcrumbs ul.breadcrumb > a:hover {
    color: #21256d;
    text-decoration: underline !important;
}

/* Selected / Current Page */
.internal-page-header .breadcrumbs ul.breadcrumb > a.selectedcrumb {
    pointer-events: none;
    color: #40464a;
    text-decoration: none !important;
}