/* White header background */
.container-header {
    background: #ffffff;
    background-image: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Header content alignment */
.container-header .grid-child {
    margin: 0 auto;
    padding: 12px 0 0;
}

/* Logo container */
.container-header .navbar-brand {
    margin: 0;
    padding: 0;
}

/* Logo image */
.container-header .navbar-brand .brand-logo img {
    display: block;
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
}

/* Prevent logo link from expanding */
.container-header .navbar-brand .brand-logo {
    display: inline-block;
    width: auto;
    max-width: 160px;
}

/* Navigation container */
.container-header .container-nav {
    background: #ffffff;
    padding-top: 0;
    padding-bottom: 10px;
}

/* Navigation links */
.container-header .mod-menu .nav-item a {
    color: #004563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Hover and active navigation */
.container-header .mod-menu .nav-item a:hover,
.container-header .mod-menu .nav-item.active > a {
    color: #0079a8;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .container-header .grid-child {
        padding: 10px 15px;
    }

    .container-header .navbar-brand .brand-logo img {
        max-width: 80px;
    }
}


/* ==========================================
   PDA INTRANET — NAVIGATION & SIDEBAR
   Joomla 6 / Cassiopeia Child Template
   ========================================== */

:root {
    --pda-navy: #003e5d;
    --pda-blue: #006b91;
    --pda-text: #243746;
    --pda-border: #e5eaf0;
    --pda-surface: #f6f9fb;
}

/* ==========================================
   1. MAIN NAVIGATION
   ========================================== */

.container-header .container-nav {
    background: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Main menu list */
.container-header #mod-menu1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Navigation links */
.container-header #mod-menu1 > .nav-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    color: var(--pda-navy);
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

/* Hover and keyboard focus */
.container-header #mod-menu1 > .nav-item > a:hover,
.container-header #mod-menu1 > .nav-item > a:focus-visible {
    background: #eaf3f8;
    color: var(--pda-blue);
}

/* Current active page */
.container-header #mod-menu1 > .nav-item.active > a,
.container-header #mod-menu1 > .nav-item.current > a {
    background: #e7f1f6;
    color: var(--pda-navy);
    font-weight: 700;
}

/* Avoid the default Cassiopeia underline */
.container-header #mod-menu1 > .nav-item.active > a::after {
    display: none;
}

/* ==========================================
   2. SIDEBAR CARDS
   ========================================== */
.sidebar-right.card:first-of-type {
    margin-top: 40px;
}
.container-sidebar-right .sidebar-right.card {
    position: relative;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--pda-border);
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(20, 45, 65, 0.045);
    overflow: hidden;
}

/* Sidebar heading */
.container-sidebar-right .sidebar-right.card > .card-header {
    margin: 0;
    padding: 10px 18px;
    background: var(--pda-surface);
    border-bottom: 1px solid var(--pda-border);
    color: var(--pda-navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

/* Sidebar content */
.container-sidebar-right .sidebar-right.card > .card-body {
    padding: 18px;
    color: var(--pda-text);
    font-size: 14px;
}

/* ==========================================
   3. LOGIN MODULE
   ========================================== */

.sidebar-right.card .login-greeting {
    margin-bottom: 14px;
    color: var(--pda-text);
    font-size: 14px;
}

.sidebar-right.card .logout-button .btn-primary {
    background: var(--pda-navy);
    border: 1px solid var(--pda-navy);
    border-radius: 6px;
    padding: 9px 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s ease;
}

.sidebar-right.card .logout-button .btn-primary:hover {
    background: var(--pda-blue);
    border-color: var(--pda-blue);
}

/* ==========================================
   4. USER MENU
   ========================================== */

.sidebar-right.card #mod-menu89 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-right.card #mod-menu89 .nav-item a {
    display: block;
    padding: 9px 12px;
    background: var(--pda-surface);
    border-radius: 6px;
    color: var(--pda-navy);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s ease;
}

.sidebar-right.card #mod-menu89 .nav-item a:hover {
    background: #e7f1f6;
    color: var(--pda-blue);
}

/* ==========================================
   5. FRONTEND EDITING CONTROLS
   ========================================== */

/* Keep Joomla's editing controls available
   while positioning them more discreetly */

.sidebar-right.card > .jmodedit {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* ==========================================
   6. RESPONSIVE NAVIGATION
   ========================================== */

@media (max-width: 768px) {

    .container-header #mod-menu1 {
        gap: 4px;
    }

    .container-header #mod-menu1 > .nav-item > a {
        min-height: 38px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .container-sidebar-right .sidebar-right.card {
        margin-bottom: 16px;
    }
}