html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  height:100%;
}

body {
  height:100%;
  display:flex;
  flex-direction:column;
}

.main-content {
    flex-grow:1;
}
.main-content h2{
    font-size: 1.5rem;
}

.content-header {
    background-color:#f0f0f0;
    padding:1rem 0;
    margin-bottom:2rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.ethics-banner {
    background: #2B265E;
    color: #f9f9f9;
    text-align:right;
}
.ethics-banner button {
    text-transform:uppercase;
    color: #fff !important;
    text-decoration:none;
}
    .ethics-banner button:hover, .ethics-banner a:hover {
        text-decoration: underline;
    }
.ethics-menu-wrapper {
    border-bottom: 4px solid #2B265E;
    position:relative;
}
    .ethics-menu {
        padding: 1rem 0;
        display: flex;
        justify-content: space-between;
        align-items:end;
    }

        .ethics-menu img {
            width: 380px;
        }

footer {
    background: #2B265E;
    color:#FFF;
}
footer h3{
    font-size:1.15rem;
}
    footer a {
        color: #fff !important;
        text-decoration: none;
    }
    footer a:hover {
        text-decoration:underline;
        filter:invert(0.1);
    }

.filter-active {
    background-color: #2B265E;
    color: #fff;
}

/* Placeholder would be invisible white-on-white otherwise irrelevant,
but keep it readable if a value is cleared programmatically */
.filter-active::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Bootstrap's select arrow is a dark SVG — swap it for white when active */
select.filter-active {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Date inputs: the calendar icon is also dark — invert it when active */
input[type="date"].filter-active::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.ciec-profilepage-subHeader {
    color: #2B265E;
    padding: 0rem;
    font-weight:bold;
    font-size:1.2em;
    margin-bottom: 0.5rem;
}
#clientTabsContent{
    margin-top:-1px;
}
#clientTabsContent .tab-pane-summary {
    padding: 1rem;
    margin-top: -1px;
}

#formContainer{
    background:#fafafa;
    padding:1rem 1rem 0.5rem 1rem;
    margin:0 0 1rem
    0;
}
a {
    color: #2B265E;
}
    a:hover {
        color: #606EB2;
    }

.declaration-details-card-title{
    font-size:1.2em;
}



.show-more-btn {
    text-decoration: underline;
}


.declaration-card-description {
    margin-bottom: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    /* Collapsed: clamp to 3 lines AND cap the height so it can animate */
    .declaration-card-description.clamped {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        max-height: 4.5em; /* ~3 lines at 1.5 line-height */
    }

    /* Expanded: release to a height larger than any realistic content */
    .declaration-card-description.expanded {
        display: block;
        -webkit-line-clamp: unset;
        max-height: 40em; /* generous ceiling; transitions toward it */
    }

.modal-body .ciec-declaration-registry {
    border-bottom: 1px solid #e0e0e0;
    margin: 0 -15px 15px -15px;
    padding-bottom: 15px;
    padding-left: 15px;
}
.container .registry-section{
    margin-top:-10px
}
.container .ciec-declaration-registry {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    
}
.ciec-declaration-section {
    margin-bottom: 25px;
    margin-top: 25px;
}
.ciec-declaration-DisplayTextInBox {
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #999;
}
.ciec-declaration-section-header, .ciec-declaration-section-additionaldocs, .ciec-declaration-section-excerpttitle, .ciec-declaration-titlesubheader {
    color: #2B265E;
    font-weight: bold;
}
.ciec-declaration-section-additionaldocs{
    margin-top:15px;
}
.ciec-declaration-section-indent{
    margin-left:25px;
}

.card {
    border:1px #2B265E solid ;
}
.card-body-title {
    border-bottom: 1px #2B265E solid;
}
.nav-tabs .nav-link {
    color: black;
    border-top: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

    .nav-tabs .nav-link.active {
        background: #fafafa;
        color: #000;
        border-bottom: 1px solid #fafafa
    }
#summary-pane, #declarations-pane {
    background: #fafafa;
    border:1px solid #e0e0e0;
}
#declarations-pane #cardsContainer{
    padding:1rem;

}

    #declarations-pane .card-header, #declarations-pane .card-footer {
        background: #f0f0f0;
    }
.list-group-item {
    background: #fafafa;
}
.container > #formContainer {
    border: #e0e0e0 1px solid;
}
.page-item.active a{
    background: #2B265E;
}
.page-item a {
    color: #2B265E;
}
#clientTabsContent {
    background: #fafafa;
}

a.button {
    background: #2b265e;
    color: #fff;
    padding: 0.4rem;
    border-radius: 5px;
    text-decoration: none;
}
    a.button:hover {
        background-color: #1a173a;
        border-color: #0f0d20;
    }


:root {
    --light-color: #F8F8F8;
    --light-color-hover: #F0F0F0;
    --primary-color: #2B265E;
    --primary-color-hover: #211D49;
    --bs-nav-pills-link-active-bg: var(--primary-color);
}


.page-group-page-links {
    background: var(--light-color);
    color: var(--dark-color);
}

    .page-group-page-links .nav-link {
        color: var(--primary-color);
        text-decoration: none;
    }

        .page-group-page-links .nav-link.active {
            background: var(--primary-color);
            border-radius: 0;
        }

        .page-group-page-links .nav-link:not(.active):hover {
            background: var(--light-color-hover);
            border-radius: 0;
        }

.page-group-related-links {
    color: var(--light-color);
}

    .page-group-related-links .nav-link {
        color: var(--light-color);
        background: var(--primary-color);
        text-decoration: none;
        margin-bottom: 0.4rem;
        display: flex;
        justify-content: space-between;
    }
        .page-group-related-links .nav-link:hover {
            background: var(--primary-color-hover);
            border-radius: 0;
        }
            .page-group-related-links .nav-link:after {
                content: "\e924";
                font-family: "hoc-icons" !important;
                speak: never;
                font-style: normal;
                font-weight: normal;
                font-variant: normal;
                text-transform: none;
                line-height: 1;
                -webkit-font-smoothing: antialiased;
                font-size: .9em;
                padding-left: 1em;
                margin-top: .25em;
            }

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color); text-decoration:none;
}

.btn-primary:hover {
    background: var(--primary-color-hover);
    color: var(--light-color);
    text-decoration:none;
}

.ciec-declaration-section-letterbullet {
    font-style: italic;
    float: left;
    padding-right: 0.5em;
}

.ciec-declaration-section-additionaldocs a{
    
    font-weight:normal;
    text-decoration:underline;

}
    .ciec-declaration-section-additionaldocs a::before {
        content: "\A";
        white-space: pre;
    }




    /* Custom Bilingual Error Layout Rules */
    .error-title-serif {
        font-family: Georgia, Cambria, "Times New Roman", Times, serif;
        color: #2b3a4a;
        font-weight: 400;
    }

    .error-divider {
        border-right: 1px solid #dee2e6;
    }

/* Turns the vertical line into a horizontal one on narrow mobile viewports */
@media (max-width: 767.98px) {
    .error-divider {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}


/* --- Style the Burger Button Container --- */
.ethics-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1050;
}

    /* --- Style the three lines inside the button --- */
    .ethics-burger span {
        width: 30px;
        height: 3px;
        background: #2B265E;
        border-radius: 2px;
        display: block;
        transition: all 0.3s ease-in-out; /* This is crucial for the smooth twist into an X */
        transform-origin: center;
    }

    /* --- PLACE THE NEW CODE RIGHT HERE --- */
    /* --- Animate the lines into an 'X' using your system's built-in states --- */
    .ethics-burger[aria-expanded="true"] span:nth-child(1),
    .ethics-burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .ethics-burger[aria-expanded="true"] span:nth-child(2),
    .ethics-burger.active span:nth-child(2) {
        opacity: 0; /* Smoothly hides the middle line */
    }

    .ethics-burger[aria-expanded="true"] span:nth-child(3),
    .ethics-burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


/* --- Mobile Burger Menu CSS --- */
@media (max-width: 991px) {
    .ethics-burger {
        display: flex !important;
    }

    /* Shrink the logo container so it leaves room for the burger icon */
    .ethics-menu img {
        width: 100%;
        max-width: 240px;
    }

    /* Hide the navigation links by default on mobile */
    ul#megaMenu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        border-top: 1px solid #ccc;
        padding-left: 0;
        margin-bottom: 0;
    }

        /* Show the menu when JS adds the 'open' class */
        ul#megaMenu.open {
            display: flex !important;
        }

    /* Stack items vertically and force override the red dashed lines */
    .ethics-menu-item {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eee !important;
        outline: none !important;
    }

    /* Style the trigger to look like a full-width button */
    .ethics-menu-trigger {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 1rem;
        background: none;
        border: none;
    }

    /* Reveal sub-panels when open */
    .ethics-menu-item.open .ethics-panel {
        display: block;
    }

    .ethics-panel {
        display: none;
        background: #f9f9f9;
    }
}

/* Ensure desktop remains horizontal and ignores mobile rules */
@media (min-width: 992px) {
    .ethics-burger {
        display: none !important;
    }

    .ethics-menu {
        display: flex !important;
    }
}
/********    End burger styling            **/




/*Splash page begin*/
.splash-fullscreen-container {
    background-color: #ffffff;
    min-height: 100vh;
}

.splash-title-en, .splash-title-fr {
    color: #2B265E;
    font-family: Arial, Helvetica, sans-serif;
    font-size: calc(1.35rem + 1vw); /* Dynamically shrinks font sizing down on small mobile screens */
    font-weight: 700;
    max-width: 85%; /* Prevents text elements from overlapping onto the right-side clocktower design element */
    line-height: 1.2;
}

/* Button Positioning Space Elements */
.splash-button-container {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Prominent Portal Action Buttons with fluid scaling widths */
.btn-splash-large {
    background-color: #2B265E;
    color: #ffffff !important;
    border: 1px solid #211D49;
    padding: 0.9rem 1rem;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 0px;
    width: 100%;
    max-width: 280px; /* Locks max proportions on large displays */
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: background-color 0.15s ease-in-out;
}

    .btn-splash-large:hover,
    .btn-splash-large:focus {
        background-color: #1a173a;
        border-color: #0f0d20;
        text-decoration: underline;
    }

/* Responsive Overrides specifically for smaller screens */
@media (max-width: 576px) {
    .splash-home-nested-bg {
        min-height: 180px;
        background-position: 85% center; /* Adjusts alignment layout background to frame the tower graphics elegantly */
    }

    .splash-title-en, .splash-title-fr {
        max-width: 100%; /* Allows full width usage on compact interfaces */
    }

    .splash-button-container {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .btn-splash-large {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
    }
}

/* Footer Line Formatting rules */
.splash-footer-hr {
    border-top: 1px solid #ffffff;
    opacity: 0.6;
    margin-bottom: 1.5rem;
    width: 100%;
}
/* splash page end*/