/* ==========================================================
   FAMILYNET DESIGN SYSTEM
   Master user.css v1.0
   For www, partners, BC, and future regional sites
   ========================================================== */

/* ==========================================================
   1. VARIABLES START
   ========================================================== */

:root {
    --fn-blue: #224faa;
    --fn-blue-dark: #1d2c3d;
    --fn-blue-light: #f4f9fe;

    --fn-green: #2d7d46;
    --fn-green-light: #f2f8f4;

    --fn-heading: #0d333f;
    --fn-text: #333333;
    --fn-muted: #666666;
    --fn-border: #d9e6f5;

    --fn-white: #ffffff;

    --fn-radius-sm: 8px;
    --fn-radius-md: 12px;
    --fn-radius-lg: 20px;

    --fn-width: 1000px;
    --fn-page-left: 30px;

    --fn-menu-grey: #5f6b7a;
    --fn-menu-hover: #eef1f4;
    --fn-menu-active: #2d7d46;
}

/* ==========================================================
   1. VARIABLES END
   ========================================================== */

/* ==========================================================
   2. GLOBAL TYPOGRAPHY START
   ========================================================== */

body {
    background: #fafbfc;
    color: var(--fn-text);
}

h1,
h2,
h3,
h4 {
    color: var(--fn-heading);
    font-weight: 500;
}

h1 {
    margin-bottom: 18px;
}

h2 {
    margin-bottom: 16px;
}

h3 {
    margin-bottom: 12px;
}

p {
    line-height: 1.65;
}

a {
    color: var(--fn-blue);
}

a:hover {
    color: var(--fn-green);
}

/* ==========================================================
   2. GLOBAL TYPOGRAPHY END
   ========================================================== */

/* ==========================================================
   3. UTILITY CLASSES START
   ========================================================== */

.fn-center {
    text-align: center;
}

.fn-muted {
    color: var(--fn-muted);
}

.fn-small {
    font-size: .92rem;
}

.fn-spacer {
    height: 30px;
}

.fn-external {
    margin-left: 4px;
    font-size: .8em;
    vertical-align: text-top;
}

/* ==========================================================
   3. UTILITY CLASSES END
   ========================================================== */

/* ==========================================================
   4. GENERAL LAYOUT START
   ========================================================== */

.fn-page {
    max-width: var(--fn-width);
    margin: 0 auto;
}

.fn-section {
    margin-bottom: 35px;
}

/* ==========================================================
   4. GENERAL LAYOUT END
   ========================================================== */

/* ==========================================================
   5. HEADER / MENU START
   ========================================================== */

header,
.container-header,
.container-nav,
.navbar,
.header {
    background: #ffffff !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.container-header,
.container-header .navbar {
    background: #ffffff !important;
}

.container-header .container-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    background: #ffffff !important;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span,
.container-header .mod-menu .nav-link {
    color: var(--fn-heading) !important;
    font-weight: 600;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu .nav-link:hover {
    color: var(--fn-blue) !important;
}

.container-header .mod-menu .active > a,
.container-header .mod-menu .active > .nav-link {
    color: var(--fn-green) !important;
}

.container-header .mod-menu ul {
    background: #ffffff;
}

.container-header .mod-menu ul a {
    color: var(--fn-heading);
}

/* ==========================================================
   5. HEADER / MENU END
   ========================================================== */


/* ==========================================================
   7. HERO SECTIONS START
   ========================================================== */

.fn-hero {
    display: grid;
    grid-template-columns: 40% 58%;
    gap: 2%;
    align-items: center;
    margin-bottom: 35px;
}

.fn-hero img {
    max-width: 100%;
    border-radius: 15px;
}

.fn-hero h1 {
    color: var(--fn-heading);
}

.fn-lead {
    color: var(--fn-green);
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
}

/* ==========================================================
   7. HERO SECTIONS END
   ========================================================== */

/* ==========================================================
   8. TWO COLUMN LAYOUT START
   ========================================================== */

.fn-two-column {
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 2%;
    align-items: center;
}

.fn-two-column img {
    max-width: 100%;
    border-radius: 15px;
}

/* ==========================================================
   8. TWO COLUMN LAYOUT END
   ========================================================== */

/* ==========================================================
   9. INFORMATION PANELS START
   ========================================================== */

.fn-panel {
    padding: 25px 30px;
    margin-bottom: 30px;
    border-radius: var(--fn-radius-lg);
}

.fn-blue {
    background: var(--fn-blue-light);
}

.fn-green {
    background: var(--fn-green-light);
}

.fn-white-panel {
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
}

/* ==========================================================
   9. INFORMATION PANELS END
   ========================================================== */

/* ==========================================================
   10. BUTTONS START
   ========================================================== */

.fn-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--fn-blue);
    color: var(--fn-white);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease;
}

.fn-button:hover {
    background: var(--fn-green);
    color: var(--fn-white);
    text-decoration: none;
}

.fn-button-secondary {
    background: var(--fn-green);
}

.fn-button-secondary:hover {
    background: var(--fn-blue);
}

/* ==========================================================
   10. BUTTONS END
   ========================================================== */

/* ==========================================================
   11. PRICING BOX START
   ========================================================== */

.fn-pricing-box {
    padding: 20px;
    border-radius: var(--fn-radius-md);
    margin: 20px 0;
    border: 1px solid var(--fn-border);
    background: var(--fn-white);
}

/* ==========================================================
   11. PRICING BOX END
   ========================================================== */

/* ==========================================================
   12. ACCORDIONS START
   ========================================================== */

.fn-accordion,
.fn-accordian {
    margin: 25px 0;
}

.fn-accordion-item {
    background: var(--fn-blue-light);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.fn-accordion-item summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 10px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fn-blue);
}

.fn-accordion-item summary::-webkit-details-marker {
    display: none;
}

.fn-accordion-item summary::marker {
    content: "";
}

.fn-accordion-item summary::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 14px;
    border-right: 2px solid var(--fn-blue);
    border-bottom: 2px solid var(--fn-blue);
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.fn-accordion-item[open] summary::before {
    transform: rotate(225deg);
}

.fn-accordion-content {
    padding: 0 20px 20px 44px;
    line-height: 1.7;
}

.fn-accordion-content p:first-child {
    margin-top: 0;
}

.fn-accordion-content ul {
    margin: 15px 0;
    padding-left: 22px;
}

.fn-accordion-content li {
    margin-bottom: 8px;
}

/* ==========================================================
   12. ACCORDIONS END
   ========================================================== */

/* ==========================================================
   13. TABLES START
   ========================================================== */

.fn-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.fn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}

.fn-table th,
.fn-table td {
    border: 1px solid var(--fn-border);
    padding: 10px 12px;
    text-align: left;
}

.fn-table th {
    background: var(--fn-blue-light);
    color: var(--fn-heading);
    font-weight: 700;
}

.fn-table tr:nth-child(even) td {
    background: #fafafa;
}

/* ==========================================================
   13. TABLES END
   ========================================================== */

/* ==========================================================
   14. FOOTER START
   Matches migrated BC footer HTML
   ========================================================== */

.fn-footer {
    width: 100%;
    margin-top: 30px;
    background: #f3f4f6;
    color: var(--fn-text);
    border-top: 1px solid #dde2e8;
}

.fn-footer .container {
    max-width: var(--fn-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.fn-footer-brand {
    text-align: center;
}

.fn-footer-logo {
    margin-bottom: 8px;
}

.fn-footer-logo img {
    display: inline-block;
    width: 44px;
    height: 44px;
}

.fn-footer-title {
    margin-bottom: 4px;
    color: #999999 !important;
    font-size: 1.0rem;
    font-weight: 500;
    line-height: 1.3;
}

.fn-footer-sub {
    color: #bbbbbb;
    font-size: .85rem;
    line-height: 1.5;
}

.fn-footer-heading {
    margin-bottom: 10px;
    color: var(--fn-heading);
    font-size: 1rem;
    font-weight: 600;
}

.fn-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fn-footer-links li {
    margin-bottom: 8px;
}

/* Footer links — match original BC site */
.fn-footer a {
    color: #0f3d66 !important;
    text-decoration: none;
    font-weight: 400;
}

.fn-footer a:visited {
    color: #0f3d66;
}

.fn-footer a:hover,
.fn-footer a:focus {
    color: #0f3d66 !important;
    text-decoration: underline !important;
    text-underline-offset: .18em;
}

/* END - FOOTER LINKS */

.fn-footer-note {
    margin-top: 8px;
    color: var(--fn-muted);
    font-size: .75rem;
    line-height: 1.4;
}

/* Cassiopeia footer override */
footer.footer {
    margin-top: 30px !important;
    padding: 0 !important;
    color: var(--fn-text) !important;
    background: #f3f4f6 !important;
    background-image: none !important;
}

footer.footer .grid-child {
    display: block !important;
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
}

footer.footer .moduletable,
footer.footer .card,
footer.footer .card-body,
footer.footer .mod-custom {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* ==========================================================
   14. FOOTER END
   ========================================================== */

/* ==========================================================
   15. FAQ PAGE START
   ========================================================== */

.fn-faq-page {
    max-width: var(--fn-width);
}

.fn-faq-section {
    margin-bottom: 35px;
}

.fn-faq-section h2 {
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fn-border);
}

/* ==========================================================
   15. FAQ PAGE END
   ========================================================== */

/* ==========================================================
   16. HOW FAMILYNET WORKS PAGE START
   ========================================================== */

.fn-how-hero img {
    max-width: 400px;
    width: 100%;
}

/* ==========================================================
   16. HOW FAMILYNET WORKS PAGE END
   ========================================================== */

/* ==========================================================
   17. ABOUT PAGE START
   ========================================================== */

.fn-about-section {
    margin-bottom: 35px;
    padding-left: 25px;
}

.fn-founder-message {
    background: var(--fn-green-light);
    border-radius: var(--fn-radius-lg);
    padding: 30px;
    margin: 35px 0;
    border-left: 5px solid var(--fn-green);
}

.fn-founder-message h2 {
    margin-top: 0;
}

.fn-founder-signature {
    margin-top: 25px;
    color: var(--fn-heading);
}

/* ==========================================================
   17. ABOUT PAGE END
   ========================================================== */

/* ==========================================================
   18. LEGAL PAGES START
   ========================================================== */

.fn-legal-page {
    max-width: var(--fn-width);
}

.fn-legal-content {
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    padding: 30px;
    margin-bottom: 35px;
}

.fn-legal-content h2 {
    margin-top: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--fn-border);
}

.fn-legal-content h2:first-child {
    margin-top: 0;
}

/* ==========================================================
   18. LEGAL PAGES END
   ========================================================== */

/* ==========================================================
   19. QUESTIONS / SMALL CTA SECTION START
   ========================================================== */

.fn-questions {
    margin: 30px;
}

/* ==========================================================
   19. QUESTIONS / SMALL CTA SECTION END
   ========================================================== */

/* ==========================================================
   20. ERROR PAGE START
   ========================================================== */

.fn-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--fn-blue-light);
}

.fn-error-box {
    max-width: 720px;
    width: 100%;
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    padding: 45px 35px;
    text-align: center;
}

.fn-error-logo {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.fn-error-debug {
    margin-top: 35px;
    text-align: left;
    font-size: .9rem;
    background: #f8f8f8;
    padding: 20px;
    border-radius: var(--fn-radius-md);
    overflow-x: auto;
}

/* ==========================================================
   20. ERROR PAGE END
   ========================================================== */

/* ==========================================================
   21. SITE-SPECIFIC OVERRIDES START
   Keep these minimal
   ========================================================== */

/* WWW SITE */
/* END - WWW SITE */

/* PARTNERS SITE */
/* END - PARTNERS SITE */

/* BC / REGIONAL SITES */

/* ==========================================================
   BC / REGIONAL ACCOUNT PAGES START
   Shared Page Class: fn-account-page
   Login Page Class: fn-login-page
   ========================================================== */

body.fn-account-page,
body.fn-login-page {
    background: var(--fn-blue-light);
}

/* Single-column account layout */
body.fn-account-page .site-grid,
body.fn-login-page .site-grid {
    display: block;
}

body.fn-account-page .container-component {
    max-width: 780px;
    margin: 18px auto 30px;
    padding: 0 20px;
}

body.fn-login-page .container-component {
    max-width: 440px;
    margin: 8px auto 20px;
    padding: 0 20px;
}

/* Shared FamilyNet branding */
body.fn-account-page .fn-section,
body.fn-login-page .fn-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    text-align: left;
}

body.fn-account-page .fn-section img,
body.fn-login-page .fn-section img {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0;
    flex: 0 0 auto;
}

body.fn-account-page .fn-section strong,
body.fn-login-page .fn-section strong {
    color: var(--fn-heading);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
}

/* Login branding remains centred */
body.fn-login-page .fn-section {
    justify-content: center;
    margin-bottom: 10px;
}

/* Login panel */
body.fn-login-page .cbLoginForm {
    margin: 0;
    padding: 22px 26px;
    background: var(--fn-white);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

/* Hide optional CB login heading */
body.fn-login-page .cbLoginForm .mod-login__pretext {
    display: none;
}

/* Shared form controls */
body.fn-account-page .form-control,
body.fn-login-page .cbLoginForm .form-control,
body.fn-login-page .cbLoginForm .input-group-text,
body.fn-login-page .cbLoginForm .input-password-toggle {
    min-height: 44px;
    border-color: var(--fn-border);
}

body.fn-account-page .form-control,
body.fn-login-page .cbLoginForm .form-control {
    font-size: 1rem;
}

body.fn-account-page .form-control:focus,
body.fn-login-page .cbLoginForm .form-control:focus {
    border-color: var(--fn-blue);
    box-shadow: 0 0 0 .2rem rgba(34, 79, 170, .12);
}

/* Login form spacing */
body.fn-login-page .cbLoginForm .form-group {
    margin-bottom: 12px;
}

body.fn-login-page .cbLoginForm .mod-login__remember {
    margin: 2px 0 12px;
}

/* Passkey button */
body.fn-login-page .cbLoginForm .plg_system_webauthn_login_button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--fn-border);
    background: var(--fn-white);
    color: var(--fn-heading);
}

body.fn-login-page .cbLoginForm .plg_system_webauthn_login_button:hover {
    background: var(--fn-blue-light);
    color: var(--fn-blue);
}

/* Main login button */
body.fn-login-page .cbLoginForm button[name="Submit"] {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--fn-blue);
    color: var(--fn-white);
    font-weight: 600;
}

body.fn-login-page .cbLoginForm button[name="Submit"]:hover {
    background: var(--fn-green);
}

/* Forgot login and signup */
body.fn-login-page .cbLoginForm .mod-login__options {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--fn-border);
    text-align: center;
}

body.fn-login-page .cbLoginForm .mod-login__options li {
    margin: 7px 0;
}

body.fn-login-page .cbLoginForm .mod-login__options a {
    text-decoration: none;
    font-weight: 500;
}

/* Signup as secondary action */
body.fn-login-page .cbLoginForm .form-login-options-register a {
    display: block;
    padding: 9px 16px;
    border: 1px solid var(--fn-blue);
    border-radius: 6px;
}

body.fn-login-page .cbLoginForm .form-login-options-register a:hover {
    background: var(--fn-blue);
    color: var(--fn-white);
}

/* Registration and other account forms */
body.fn-account-page .cbRegistration,
body.fn-account-page .cb_template {
    width: 100%;
    text-align: left;
}

body.fn-account-page .cb-page-header {
    margin-bottom: 20px;
}

body.fn-account-page .cbRegistrationTitle {
    color: var(--fn-heading);
    font-size: 1.7rem;
    font-weight: 500;
}

body.fn-account-page .cbregPlan {
    margin-bottom: 22px;
}

body.fn-account-page .cbregPlan .card {
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-md);
    background: var(--fn-white);
}

body.fn-account-page .cbregPlan .card-header {
    background: var(--fn-blue-light);
    color: var(--fn-heading);
}

body.fn-account-page .cb_form_line {
    margin-bottom: 14px;
}

body.fn-account-page .cbRegistrationSubmit {
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--fn-blue);
    color: var(--fn-white);
    font-weight: 600;
}

body.fn-account-page .cbRegistrationSubmit:hover {
    background: var(--fn-green);
}

/* Remove unrelated page elements */
body.fn-account-page .container-sidebar-right,
body.fn-account-page .pagenavigation,
body.fn-login-page .container-sidebar-right,
body.fn-login-page .pagenavigation {
    display: none;
}

/* ==========================================================
   BC / REGIONAL ACCOUNT PAGES END
   ========================================================== */
/* ==========================================================
   FAMILYNET TOP MENU LOGO START
   ========================================================== */
.fn-menu-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;

}

.fn-menu-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fn-menu-logo-link img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
  margin-top:12px;
  margin-left:25px;
      margin-right: 20px;
}
/* ==========================================================
   FAMILYNET TOP MENU LOGO END
   ========================================================== */

/* ==========================================================
   BC / REGIONAL TOP MENU START
   Module Class: fn-topmenu
   Joomla Menu Layout: Default
   ========================================================== */

/* Module and navigation container */
.fn-topmenu {
    flex: 1 1 auto;
    width: auto;
    margin-top: -25px;
  margin-left:20px;
}
.fn-topmenu .navbar {
    width: 100%;
    padding: 0;
    box-shadow: none;
}

/* Desktop menu */
.fn-topmenu .mod-menu {
    align-items: center;
}

.fn-topmenu .mod-menu > li {
    margin: 0 8px;
}

/* Menu items */
.fn-topmenu .mod-menu > li > a {
    position: relative;
    display: block;
    height: auto;
    min-width: 0;
    padding: 0;
    line-height: normal;
    text-align: center;
}

/* Menu icons */
.fn-topmenu .fn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--fn-menu-grey);
    font-size: 1.5rem !important;
    line-height: 1;
    border-radius: 6px;
}

/* Hover */
.fn-topmenu .mod-menu a:hover .fn-icon,
.fn-topmenu .mod-menu a:focus .fn-icon {
    background: var(--fn-menu-hover);
}

/* Active icon */
.fn-topmenu .mod-menu li.active .fn-icon {
    color: var(--fn-menu-active);
}

/* Labels */
.fn-topmenu .mod-menu a::after {
    content: attr(title);
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 6px;
    color: var(--fn-menu-grey);
    background: transparent;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
}

/* Active label */
.fn-topmenu .mod-menu li.active > a::after {
    color: var(--fn-menu-active);
    font-weight: 600;
}

/* Hamburger button */
.fn-topmenu .navbar-toggler {
    min-width: 46px;
    min-height: 46px;
    margin: 8px 12px 8px auto;
    padding: 8px 10px;
    background: #0072c4;
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-sm);
    box-shadow: none;
}

.fn-topmenu .navbar-toggler:hover,
.fn-topmenu .navbar-toggler:focus {
    color: var(--fn-green);
    background: var(--fn-menu-hover);
    border-color: var(--fn-border);
    box-shadow: 0 0 0 .2rem rgba(34, 79, 170, .12);
}

/* ==========================================================
   BC / REGIONAL TOP MENU END
   ========================================================== */
/* ==========================================================
   21. SITE-SPECIFIC OVERRIDES END
   ========================================================== */
/* ==========================================================
   CB NOTIFICATIONS ICON START
   Replaces the default globe with a bell
   ========================================================== */

.notificationsStreamButtonIcon::before {
    content: "\f0f3" !important; /* Font Awesome bell */
}

/* ==========================================================
   CB NOTIFICATIONS ICON END
   ========================================================== */
/* ==========================================================
   CB ACTIVITY LIKES OVERRIDE START
   ========================================================== */

.cb_template .cbActivityArticleLikes .likeStream:not(.likeStreamBoxed) {
    display: none !important;
}

/* ==========================================================
   CB ACTIVITY LIKES OVERRIDE END
   ========================================================== */
/* ==========================================================
   BC MOBILE HEADER AND WRAPPED ICON MENU START
   ========================================================== */

@media (max-width: 767.98px) {

    /* Full-width mobile navigation area */

    .container-header .container-nav {
        display: block;
        width: 100%;
        max-width: none;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* Hide the separate desktop logo module */

    .fn-menu-logo {
        display: none;
    }

    /* Remove desktop menu positioning */

    .fn-topmenu {
        display: block;
        width: 100%;
        margin: 0;
    }

    .fn-topmenu .fn-mobile-navbar {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Mobile brand header */

    .fn-mobile-brandbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 58px;
        padding: 8px 12px;
        background: #f5f7fa;
        border-radius: 8px;
        box-sizing: border-box;
      margin-top:10px;
    }

    .fn-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--fn-heading);
        text-decoration: none;
          }

    .fn-mobile-brand:hover {
        color: var(--fn-blue);
        text-decoration: none;
    }

    .fn-mobile-brand-logo {
        display: block;
        width: 30px;
        height: 30px;
        object-fit: contain;
        flex: 0 0 30px;
    }

    .fn-mobile-brand-title {
        color: var(--fn-heading);
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    /* Hamburger */

    .fn-topmenu .fn-mobile-navbar .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: auto;
        min-height: auto;
        margin: 0;
        padding: 8px 10px;
        color: #0072c4;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .fn-topmenu .fn-mobile-navbar .navbar-toggler .icon-menu {
        color: #0072c4;
        font-size: 1.35rem;
    }

    .fn-topmenu .navbar-collapse {
        width: 100%;
    }

    /* Wrapped icon menu */

    .fn-topmenu .mod-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
        margin: 10px 0 0;
        padding: 0;
    }

    /* Hide first menu item on mobile */

    .fn-topmenu .mod-menu > li:first-child {
        display: none;
    }

    .fn-topmenu .mod-menu > li {
        flex: 0 0 calc(33.333% - 6px);
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .fn-topmenu .mod-menu > li > a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        min-height: 76px;
        padding: 7px 3px;
        line-height: 1.2;
        text-align: center;
        box-sizing: border-box;
    }

    .fn-topmenu .fn-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0 0 4px;
        font-size: 1.3rem !important;
    }

    /* Convert desktop floating labels to mobile labels */

    .fn-topmenu .mod-menu a::after {
        position: static;
        display: block;
        max-width: 100%;
        margin: 0;
        padding: 0;
        transform: none;
        font-size: .78rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
        opacity: 1;
    }
}

/* ==========================================================
   BC MOBILE HEADER AND WRAPPED ICON MENU END
   ========================================================== */

/* ==========================================================
   BC DESKTOP BRAND HEADER START
   ========================================================== */

@media (min-width: 768px) {
    .fn-mobile-brandbar {
        display: contents;
    }

    .fn-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
        margin-left: 25px;
        margin-right: 30px;
        color: var(--fn-heading) !important;
        text-decoration: none !important;
    }

    .fn-mobile-brand:hover,
    .fn-mobile-brand:focus {
        color: var(--fn-heading) !important;
        text-decoration: none !important;
    }

    .fn-mobile-brand-logo {
        display: block;
        width: 44px;
        height: 44px;
        object-fit: contain;
        flex: 0 0 44px;
    }

    .fn-mobile-brand-title {
        color: var(--fn-heading);
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    .fn-topmenu .navbar-collapse {
        flex: 1 1 auto;
    }
}
/* ==========================================================
   BC DESKTOP BRAND HEADER END
   ========================================================== */

/* ==========================================================
   BC MOBILE MENU — FORCE ICON WRAP START
   ========================================================== */

@media (max-width: 767.98px) {

    .fn-topmenu .navbar-collapse > .mod-menu.nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 8px;
    }

    .fn-topmenu .navbar-collapse > .mod-menu.nav > li {
        display: block !important;
        flex: 0 0 calc(33.333% - 6px) !important;
        width: calc(33.333% - 6px) !important;
        max-width: calc(33.333% - 6px) !important;
    }
}

/* ==========================================================
   BC MOBILE MENU — FORCE ICON WRAP END
   ========================================================== */

/* ==========================================================
   PAGE HEADER START
   ========================================================== */

.fn-page-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin: 20px 0 30px 30px;
}

.fn-page-header img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.fn-page-header h1 {
    margin: 0;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--fn-heading);
    line-height: 1.1;
}

/* ==========================================================
   PAGE HEADER END
   ========================================================== */

/* ==========================================================
   FAMILYNET SHARED PAGE WIDTH START
   ========================================================== */

/* Common page width and left alignment */
.site-grid,
.container-component,
.container-banner,
.container-top-a,
.container-top-b,
.container-bottom-a,
.container-bottom-b,
footer.footer .grid-child,
.fn-footer .container {
    max-width: var(--fn-width);
    margin-left: var(--fn-page-left);
    margin-right: auto;
}

/* Header alignment */
.container-header .container-nav {
    max-width: var(--fn-width);
    margin-left: var(--fn-page-left);
    margin-right: auto;
}

/* Body alignment */
main,
.container-component {
    padding-left: 0 !important;
}

/* Account pages */
body.fn-account-page .container-component,
body.fn-login-page .container-component {
    margin-left: var(--fn-page-left);
    margin-right: auto;
}

/* Footer */
.fn-footer .container,
footer.footer .grid-child {
    padding-left: 0 !important;
}

/* ==========================================================
   FAMILYNET SHARED PAGE WIDTH END
   ========================================================== */

/* =========================================================
   FAMILYNET RIGHT SIDEBAR MODULE START
   "Your FamilyNet" navigation and column spacing
   ========================================================= */

.container-sidebar-right {
    margin-left: 35px;
}

.familynet-member-links {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.familynet-member-links h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding: 0;
    color: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.familynet-member-links h3::before {
    content: "\f0c0";
    flex: 0 0 auto;
    color: #008000;
    font-family: "Font Awesome 6 Free",
                 "Font Awesome 5 Free",
                 FontAwesome;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.familynet-member-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.familynet-member-links li {
    margin: 0;
    padding: 0;
    border: 0;
}

.familynet-member-links a {
    display: block;
    margin: 0;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}

.familynet-member-links a:hover,
.familynet-member-links a:focus {
    text-decoration: none;
}

@media (max-width: 991px) {
    .container-sidebar-right {
        margin-left: 0;
    }

    .familynet-member-links {
        margin-top: 20px;
    }
}

/* =========================================================
   FAMILYNET RIGHT SIDEBAR MODULE END
   ========================================================= */

/* =========================================================
   FAMILYNET – POPULAR COMMUNITY IDEAS PAGE START
   ========================================================= */

.familynet-community-ideas {
    max-width: 1000px;
}

.familynet-community-ideas h1 {
    margin-bottom: 16px;
    font-size: 2.25rem;
    line-height: 1.15;
}


.familynet-community-ideas-intro {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.familynet-community-ideas > p {
    margin-bottom: 10px;
}


/* =========================================================
   FAMILYNET – POPULAR COMMUNITY IDEAS PAGE END
   ========================================================= */

/* =========================================================
   FAMILYNET – COMMUNITY IDEAS GRID START
   ========================================================= */

.familynet-community-ideas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.familynet-community-ideas-card {
    padding: 18px 24px;
    background: #f7f9fb;
    border: 1px solid #e1e6eb;
    border-radius: 6px;
}

.familynet-community-ideas-card h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #183244;
}

.familynet-community-ideas-card ul {
    margin: 0;
    padding-left: 20px;
}

.familynet-community-ideas-card li {
    margin-bottom: 5px;
}

.familynet-community-ideas-card li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FAMILYNET – COMMUNITY IDEAS GRID END
   ========================================================= */

/* =========================================================
   FAMILYNET – COMMUNITY IDEAS FOOTER START
   ========================================================= */

.familynet-community-ideas-footer {
    margin-top: 28px;
    padding: 18px 20px;
    background: #f7f9fb;
    border-left: 4px solid #3157a5;
}

.familynet-community-ideas-footer p {
    margin: 0;
}


/* =========================================================
   FAMILYNET – COMMUNITY IDEAS FOOTER END
   ========================================================= */

/* =========================================================
   FAMILYNET – POPULAR COMMUNITY IDEAS MOBILE START
   ========================================================= */

@media (max-width: 767px) {
    .familynet-community-ideas-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FAMILYNET – POPULAR COMMUNITY IDEAS MOBILE END
   ========================================================= */
/* CANADIAN TEXT BRAND START */

.canadian-brand {
display: inline-flex;
flex-direction: column;
align-items: flex-start;
line-height: 1;
margin-left:10px;
  margin-top:15px;
}

.canadian-brand__name {
display: flex;
align-items: baseline;
font-family: inherit;
font-size: clamp(2rem, 4vw, 3.25rem);
letter-spacing: -0.045em;
white-space: nowrap;
}

.canadian-brand__primary {
/*  color: #17365d;  */
  color: #333333;
font-weight: 700;
}

.canadian-brand__secondary {
color: #0072c4;
font-weight: 400;
}

.canadian-brand__tagline {
display: flex;
align-items: center;
gap: 0.45rem;
margin-top: 0.4rem;
color: #6b7280;
font-family: inherit;
font-size: clamp(0.78rem, 1.5vw, 0.95rem);
font-weight: 400;
line-height: 1.3;
white-space: nowrap;
}

.canadian-brand__leaf {
display: inline-block;
flex: 0 0 auto;
font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
font-size: 1.05em;
font-style: normal;
line-height: 1;
}

@media (max-width: 480px) {
.canadian-brand__name {
font-size: 1.8rem;
}

.canadian-brand__tagline {
font-size: 0.76rem;
}
}

/* CANADIAN TEXT BRAND END */