/* ==========================================================
   AidNet.ca - Cassiopeia User CSS
   Complete replacement file
   ========================================================== */


/* ==========================================================
   AidNet Colour Palette
   ========================================================== */

:root {
    --aidnet-navy: #163A5F;

    --aidnet-link: #353B41;
    --aidnet-link-hover: #B7473A;

    --aidnet-brick: #B7473A;
    --aidnet-dark-green: #2F6656;

    --aidnet-light-blue: #EAF3FB;
    --aidnet-light-red: #FBEDEC;
    --aidnet-light-green: #EDF5F1;

    --aidnet-text: #3F4850;
    --aidnet-muted: #68737C;

    --aidnet-header-bg: #F5F7F9;
    --aidnet-border: #D8E0E7;

    --aidnet-white: #FFFFFF;
}


/* ==========================================================
   Cassiopeia Header
   ========================================================== */

.container-header {
    background: var(--aidnet-header-bg) !important;
    background-color: var(--aidnet-header-bg) !important;
    background-image: none !important;
    box-shadow: none;
}

/* Logo module in topbar position */
.container-header .container-topbar,
.container-header .topbar {
    padding-left: 25px;
}

/* Keep logo/module background transparent */
.container-header img,
.container-header .mod-custom,
.container-header .mod-custom p,
.container-header .mod-custom a {
    background: transparent !important;
}


/* ==========================================================
   General Page Styling
   ========================================================== */

body {
    color: var(--aidnet-text);
    line-height: 1.6;
}

.container-component {
    font-size: 1rem;
}

.item-page,
.com-content-article,
.blog-featured {
    max-width: 920px;
}

.item-page p,
.com-content-article p,
.blog-featured p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.65;
}


/* ==========================================================
   Headings
   ========================================================== */

.page-header h1,
.item-page h1,
.com-content-article h1,
.blog-featured h1 {
    color: var(--aidnet-navy);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1rem;
}

.item-page h2,
.com-content-article h2,
.blog-featured h2 {
    color: var(--aidnet-navy);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.item-page h3,
.com-content-article h3,
.blog-featured h3 {
    color: var(--aidnet-navy);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}


/* ==========================================================
   Welcome Heading
   ========================================================== */

.aidnet-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--aidnet-navy);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--aidnet-border);
}

.aidnet-flag {
    width: 36px;
    height: auto;
    flex: 0 0 auto;
}


/* ==========================================================
   Introductory Text
   ========================================================== */

.aidnet-intro {
    color: var(--aidnet-brick);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}


/* ==========================================================
   Highlighted Information Boxes
   ========================================================== */

.aidnet-principle,
.aidnet-notice,
.aidnet-closing {
    color: #6A2F2A;
    background: var(--aidnet-light-red);
    border: 1px solid #E4C6C3;
    border-left: 4px solid var(--aidnet-brick);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    margin: 1.5rem 0;
}

.aidnet-principle strong,
.aidnet-notice strong,
.aidnet-closing strong {
    color: #6A2F2A;
}

.aidnet-closing h2 {
    color: #6A2F2A;
    font-size: 1.35rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.aidnet-closing p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Collapsible Sections
   ========================================================== */

.aidnet-sections {
    margin-top: 1.75rem;
}

.aidnet-sections details {
    background: var(--aidnet-white);
    border: 1px solid var(--aidnet-border);
    border-radius: 5px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.aidnet-sections summary {
    color: var(--aidnet-navy);
    background: var(--aidnet-light-blue);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.9rem 1rem;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.aidnet-sections summary:hover,
.aidnet-sections summary:focus {
    color: var(--aidnet-navy);
    background: #DCECF9;
}

.aidnet-sections details[open] summary {
    border-bottom: 1px solid var(--aidnet-border);
}

.aidnet-section-content {
    padding: 0.9rem 1.15rem 1rem;
}

.aidnet-section-content p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Lists
   ========================================================== */

.item-page ul,
.com-content-article ul,
.blog-featured ul,
.aidnet-section-content ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 0.35rem 0 0.75rem 1.35rem;
    padding-left: 0.65rem;
}

.item-page ol,
.com-content-article ol,
.blog-featured ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin: 0.35rem 0 0.75rem 1.35rem;
    padding-left: 0.65rem;
}

.item-page li,
.com-content-article li,
.blog-featured li,
.aidnet-section-content li {
    display: list-item !important;
    margin-bottom: 0.12rem;
    padding-left: 0.15rem;
    line-height: 1.42;
}

.item-page li:last-child,
.com-content-article li:last-child,
.blog-featured li:last-child,
.aidnet-section-content li:last-child {
    margin-bottom: 0;
}

.aidnet-section-content li::marker {
    color: var(--aidnet-brick);
}


/* ==========================================================
   Content Links
   ========================================================== */

a {
    color: var(--aidnet-link);
    font-weight: 500;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover,
a:focus {
    color: var(--aidnet-link-hover);
}


/* ==========================================================
   Main Menu
   ========================================================== */

.mod-menu a,
.nav-link,
.nav-item a {
    color: var(--aidnet-link);
    font-size: 1.05rem;
    font-weight: 500;
}

.mod-menu a:hover,
.mod-menu a:focus,
.nav-link:hover,
.nav-link:focus,
.nav-item a:hover,
.nav-item a:focus {
    color: var(--aidnet-link-hover);
}

.mod-menu .current > a,
.mod-menu .active > a,
.nav-item.current > a,
.nav-item.active > a {
    color: var(--aidnet-navy);
    font-weight: 600;
}


/* ==========================================================
   Strong and Highlighted Text
   ========================================================== */

strong {
    font-weight: 600;
}

mark {
    color: #6A2F2A;
    background: var(--aidnet-light-red);
    border-radius: 2px;
    padding: 0.05rem 0.2rem;
}


/* ==========================================================
   Cards and Sidebar
   ========================================================== */

.card {
    border-color: var(--aidnet-border);
    box-shadow: none;
}

.card-header {
    color: var(--aidnet-navy);
    background: var(--aidnet-light-blue);
    border-bottom-color: var(--aidnet-border);
    font-weight: 500;
}


/* ==========================================================
   Aid Centre Action Cards
   ========================================================== */

.aidnet-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.aidnet-action-card {
    background: var(--aidnet-white);
    border: 1px solid var(--aidnet-border);
    border-radius: 6px;
    padding: 1.25rem;
}

.aidnet-action-card h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.aidnet-action-card p {
    margin-bottom: 1rem;
}


/* ==========================================================
   Buttons
   ========================================================== */

.btn-primary {
    color: var(--aidnet-white);
    background-color: var(--aidnet-navy);
    border-color: var(--aidnet-navy);
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--aidnet-white);
    background-color: #0F2C49;
    border-color: #0F2C49;
}

.btn-secondary {
    color: var(--aidnet-white);
    background-color: var(--aidnet-dark-green);
    border-color: var(--aidnet-dark-green);
    font-weight: 500;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--aidnet-white);
    background-color: #244F43;
    border-color: #244F43;
}


/* ==========================================================
   Footer
   ========================================================== */

.aidnet-footer {
    color: #E9EFF4;
    background: var(--aidnet-navy);
    padding: 1.4rem 25px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.aidnet-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.aidnet-footer-links {
    margin-bottom: 0.65rem;
}

.aidnet-footer-links a {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 1rem;
    white-space: nowrap;
}

.aidnet-footer-links a:hover,
.aidnet-footer-links a:focus {
    color: #F2C6C2;
    text-decoration: underline;
}

.aidnet-footer-purpose {
    margin: 0 0 0.4rem;
}

.aidnet-footer-legal {
    color: #CAD7E1;
    margin: 0;
}


/* ==========================================================
   Breadcrumbs
   ========================================================== */

.breadcrumb {
    color: var(--aidnet-muted);
}

.breadcrumb a {
    color: var(--aidnet-link);
    font-weight: 500;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
    color: var(--aidnet-link-hover);
}


/* ==========================================================
   Forms
   ========================================================== */

.form-control:focus,
.form-select:focus {
    border-color: var(--aidnet-navy);
    box-shadow: 0 0 0 0.2rem rgba(22, 58, 95, 0.15);
}

.form-check-input:checked {
    background-color: var(--aidnet-navy);
    border-color: var(--aidnet-navy);
}


/* ==========================================================
   Optional Positive / Provider Highlight
   ========================================================== */

.aidnet-positive {
    color: #244F43;
    background: var(--aidnet-light-green);
    border: 1px solid #C9DDD5;
    border-left: 4px solid var(--aidnet-dark-green);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    margin: 1.5rem 0;
}


/* ==========================================================
   Mobile Adjustments
   ========================================================== */

@media (max-width: 767.98px) {

    .container-header .container-topbar,
    .container-header .topbar {
        padding-left: 15px;
    }

    .page-header h1,
    .item-page h1,
    .com-content-article h1,
    .blog-featured h1,
    .aidnet-welcome {
        font-size: 1.65rem;
    }

    .item-page h2,
    .com-content-article h2,
    .blog-featured h2 {
        font-size: 1.3rem;
    }

    .aidnet-flag {
        width: 30px;
    }

    .aidnet-action-grid {
        grid-template-columns: 1fr;
    }

    .aidnet-sections summary {
        padding: 0.8rem 0.85rem;
    }

    .aidnet-section-content {
        padding: 0.8rem 0.9rem 0.9rem;
    }

    .aidnet-footer-links a {
        display: inline-block;
        margin-bottom: 0.35rem;
    }
}
/* Menu Items */
.container-header .mod-menu {
    color: #0072c4;
  font-weight:500;
    flex: 1 0 100%;
    margin: 0 0 0 15px;
    padding: 0;
    list-style: none;
}