/* Main Content Adjustments */
.pkp_structure_main li { margin: 10px 0; text-align: justify; }
.pkp_structure_main p { text-align: justify; }

/* Sidebar Table */
.sidebar_1 { width: 100%; }
.sidebar_1 td { height: 30px; padding: 3px 0; vertical-align: middle; text-align: center; border-bottom: 2px solid #ffffff; }
.sidebar_1 td a { width: 100%; display: block; }
.sidebar_1 tr { background: #4b92b7; color: #ffffff; margin: 3px; }
.sidebar_1 tr:hover { background-color: #2c3e50; }
.sidebar_1 tr a { color: #ffffff; }

/* Header Image */
@media (min-width: 992px) {
  .pkp_site_name .is_img img { max-height: 180px !important; }
}

/* --- 1. FORCE HEADER BACKGROUND TO BLUE --- */
.pkp_structure_head_wrapper,
.pkp_structure_head,
header.pkp_structure_head { 
    background-color: #005a9c !important; 
    border: none !important;
}
.pkp_site_name .is_text { color: #ffffff !important; }

/* --- 2. FORCE SINGLE LINE NAVIGATION --- */
.pkp_navigation_primary_wrapper {
    background-color: #005a9c !important;
    display: flex !important;
    flex-wrap: nowrap !important; /* Prevents container from breaking */
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

ul.pkp_navigation_primary, 
ul.pkp_navigation_user {
    display: flex !important;
    flex-wrap: nowrap !important; /* Prevents list items from dropping */
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_navigation_primary > li,
.pkp_navigation_user > li {
    white-space: nowrap !important;
}

/* Shrink padding and font so everything physically fits on smaller screens */
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
    color: #ffffff !important; 
    padding: 12px 6px !important; /* Tighter spacing */
    font-size: 12px !important;   /* Slightly smaller text */
}

/* --- 3. HOVER COLORS --- */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus,
.pkp_search > a:hover,
.pkp_search > a:focus,
a.search_toggle:hover,
a.search_toggle:focus {
    color: #ff9800 !important; 
}
/* --- Oval Style for Login and Register Buttons --- */
/* --- Oval Style for User Buttons (Blue Background, White Text) --- */
.pkp_navigation_user > li > a {
    background-color: #005a9c !important;   /* Blue background to match header */
    color: #ffffff !important;              /* White text */
    border: 2px solid #ffffff !important;   /* White border to keep the oval outline visible */
    border-radius: 50px !important;         /* Oval/pill shape */
    padding: 8px 20px !important;           
    margin: 5px 10px !important;            
    display: inline-block !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;   
    line-height: 1 !important;
}

/* Hover effect */
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background-color: #ff9800 !important;   /* Orange background on hover */
    border-color: #ff9800 !important;       /* Orange border on hover */
    color: #ffffff !important;              /* White text on hover */
}
/* Fix dropdown menu text overflow */
.pkp_navigation_primary ul {
    min-width: 250px !important; /* Widen the box to fit most text */
    white-space: normal !important;
}

.pkp_navigation_primary ul li,
.pkp_navigation_primary ul li a {
    white-space: normal !important; /* Allows text to wrap to a second line */
    word-wrap: break-word !important;
    line-height: 1.4 !important;
}