/* UCOSP theme overrides */
.MasterFooterIlinkLogo,
.MasterFooterWebhouseLogo,
#webhouse_logo,
#webhouse {
    display: none !important;
}

.ContentPageContent img,
.right_section img,
.content_section img {
    max-width: 100%;
    height: auto;
}

#content_holder .ContentPageTable,
#gallery_control .ContentPageTable,
.content_section .ContentPageTable {
    display: table !important;
    width: 100%;
}

.ContentPageHeader {
    color: #94ba1f;
    font-family: Arial;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    width: auto;
    float: none;
    margin: 0;
}

/* Primary navigation: sit inside the menu bar, aligned right */
.nav_section {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: url('../images/layout/MnuBg.jpg') no-repeat;
}

#nav {
    width: 100%;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#nav .DefaultNavigationMenu {
    float: none !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

#nav ul.level1 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    float: none;
    height: 100%;
}

#nav ul.level1::after {
    display: none;
}

#nav ul.level1 > li {
    position: relative;
    list-style: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
}

#nav ul.level1 > li > a.level1 {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 31px;
    padding-top: 0 !important;
    line-height: 1.2;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

#nav ul.level1 > li:last-child > a.level1 {
    border-right: 0;
}

#nav a.level1:hover,
#nav a.level1.selected,
#nav .current-menu-item > a.level1,
#nav .current-menu-ancestor > a.level1 {
    color: #94ba1f;
    background: url('../images/layout/leftMnuBtnTramine.gif') no-repeat;
    background-size: 100% 100%;
}

#nav ul.level1 > li > ul.sub-menu,
#nav ul.level1 > li > ul.level2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0;
    min-width: 200px;
    z-index: 1000000;
}

#nav ul.level1 > li:hover > ul.sub-menu,
#nav ul.level1 > li:hover > ul.level2,
#nav ul.level1 > li:focus-within > ul.sub-menu,
#nav ul.level1 > li:focus-within > ul.level2 {
    display: block;
}

#nav ul.level1 > li > ul.sub-menu li,
#nav ul.level1 > li > ul.level2 li {
    list-style: none;
}

#nav ul.level1 > li > ul.sub-menu a,
#nav ul.level1 > li > ul.level2 a {
    border-right: 0;
    white-space: nowrap;
    display: block;
    height: auto;
    padding-top: 9px !important;
}

/* Inner pages */
.main_holder > .row {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
}

.right_section {
    overflow: hidden;
    vertical-align: top;
    box-sizing: border-box;
}

.nav_section2 {
    overflow: hidden;
    vertical-align: top;
    flex-shrink: 0;
}

.content_section {
    margin-top: 44px;
    width: 747px;
    margin-left: 79px;
    box-sizing: border-box;
}

.content_section > .content {
    margin-top: -16px;
    width: 100%;
}

.HeaderHolder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    clear: both;
}

.HeaderHolder::after {
    display: none;
}

.ReturnToParent {
    float: none;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #94ba1f;
    text-decoration: none;
    white-space: nowrap;
}

.ReturnToParent:hover {
    text-decoration: underline;
}

.ContentPageContent {
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.ContentPageContent p {
    margin: 0 0 12px;
}

.ContentPageTable {
    width: 100%;
    border-collapse: collapse;
}

/* Sidebar navigation: remove WordPress list bullets, keep original button styling */
#nav2 ul,
#nav2 .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

#nav2 li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav2 table {
    width: 100%;
    border-collapse: collapse;
}

#nav2 .current-menu-item > a {
    font-weight: bold;
    color: #94ba1f;
    background: url('../images/layout/leftMnuBtnTramine.gif') no-repeat;
    background-size: 100% 100%;
}

/* Search in sidebar */
.nav_section2 .site_search {
    padding: 0 6px;
    box-sizing: border-box;
}

.nav_section2 .search-form {
    margin: 0;
    width: 100%;
}

.nav_section2 .SiteSearch_Search {
    width: 144px;
    max-width: 100%;
}

.nav_section2 .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Footer: keep bottom bar aligned with main 1002px container */
.bottom_image {
    width: 1002px;
    max-width: 100%;
    margin: 0 auto;
}

.bottom_image img {
    display: block;
    width: 100%;
    height: auto;
}

/* News display (Directory/NewsDisplay.aspx) */
.NewsDisplayPage,
.SingleNewsStoryHolder {
    width: 100%;
}

.NewsDisplayImage,
.NewsSingleDisplayImage {
    border: 2px solid #333333;
    margin: 5px;
    vertical-align: top;
}

.NewsDisplayImageHolder,
.NewsSingleDisplayImageHolder {
    padding-right: 10px;
    vertical-align: top;
}

.NewsDisplayDataTableCell,
.NewsSingleDisplayDataTableCell {
    padding-left: 12px;
    vertical-align: top;
}

.NewsDisplayHeader,
.NewsSingleDisplayHeader {
    font-family: Century Gothic, sans-serif, Arial;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
}

.NewsDisplayDate,
.NewsSingleDisplayDate,
.NewsDisplayVenue,
.NewsSingleDisplayVenue {
    font-family: Century Gothic, sans-serif, Arial;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

.NewsDisplayInfo,
.NewsSingleDisplayInfo {
    font-family: Century Gothic, sans-serif, Arial;
    font-size: 14px;
    font-weight: normal;
    color: #333333;
}

.NewsDisplayReadMore,
.NewsSingleDisplayBackToNews {
    font-family: Century Gothic, sans-serif, Arial;
    font-size: 14px;
    font-weight: normal;
    color: #5d7b9d;
    text-decoration: none;
}

.NewsDisplayReadMore:hover,
.NewsSingleDisplayBackToNews:hover {
    color: #5d7b9d;
    font-weight: bold;
}

.NewsDisplayDataTable,
.NewsDisplayDataTableCellTable,
.NewsSingleDisplayDataTableCellTable {
    width: 100%;
}

.NewsDisplayDataHolder .NewsDisplayDataTable + .NewsDisplayDataTable {
    margin-top: 18px;
}

.NewsDisplayPagerHolder select:disabled,
.NewsDisplayCategoryHolder select:disabled,
.NewsDisplayArchiveHolder select:disabled,
.NewsDisplayPageSizeHolder select:disabled {
    opacity: 0.85;
}

/* Contact Us page — preserve inline-block sidebar/content overlap (CntBg curve) */
.ucosp-contact-page .right_section {
    overflow: visible;
    padding-bottom: 30px;
}

.ucosp-contact-page .bottom_image,
.ucosp-contact-page .MasterFooter {
    clear: both;
    position: relative;
}

.ucosp-contact-page #form_holder {
    margin-top: 24px;
    clear: both;
}

.ucosp-contact-page .ContentPageContent a[href^="mailto:"] {
    color: #94ba1f;
    text-decoration: underline;
}

.ucosp-contact-page .ContentPageContent a[href^="mailto:"]:hover {
    color: #7a9a19;
}

#form_holder {
    margin-top: 24px;
    clear: both;
}

.ucosp-enquiry-form-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000;
}

.ucosp-enquiry-form__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: bold;
    color: #94ba1f;
}

.ucosp-enquiry-form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ucosp-enquiry-form__field {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 10px;
}

.ucosp-enquiry-form__field--textarea {
    align-items: start;
}

.ucosp-enquiry-form__field label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    color: #000;
    text-align: left;
}

.ucosp-enquiry-form input[type="text"],
.ucosp-enquiry-form input[type="email"],
.ucosp-enquiry-form input[type="tel"],
.ucosp-enquiry-form textarea {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    border: 1px solid #bdbdbd;
    background: #fff;
    padding: 4px 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000;
}

.ucosp-enquiry-form textarea {
    min-height: 120px;
    resize: vertical;
}

.ucosp-enquiry-form__actions {
    margin-top: 12px;
    padding-left: 156px;
}

.ucosp-enquiry-form__submit {
    border: 1px solid #bdbdbd;
    background: #f0f0f0;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    padding: 4px 16px;
    cursor: pointer;
}

.ucosp-enquiry-form__submit:hover {
    background: #e4e4e4;
}

.ucosp-contact-notice {
    margin: 0 0 12px;
    font-size: 12px;
}

.ucosp-contact-notice--success {
    color: #2d6a1f;
}

.ucosp-contact-notice--error {
    color: #a40000;
}

/* Site search results (SiteSearch/SiteSearch.aspx) */
.ucosp-site-search-page .SiteSearch_Results_Search {
    margin-bottom: 20px;
}

.ucosp-site-search-results-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ucosp-site-search-page .SearchTextbox {
    width: 280px;
    max-width: 100%;
    border: 1px solid #bdbdbd;
    padding: 4px 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.ucosp-site-search-page .SearchButton {
    border: 1px solid #bdbdbd;
    background: #f0f0f0;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    padding: 4px 12px;
    cursor: pointer;
}

.ucosp-site-search-page .SiteSearch_Result_Page_Holder {
    margin-top: 18px;
}

.ucosp-site-search-page .SiteSearch_Result_Page_Header {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.ucosp-site-search-page .SiteSearch_Result_Header {
    margin-top: 14px;
}

.ucosp-site-search-page .SiteSearch_Result_Header a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #0000ee;
    text-decoration: underline;
}

.ucosp-site-search-page .SiteSearch_Result_Content {
    margin-top: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #000;
}

.ucosp-site-search-page .SiteSearch_Result_Content_Highlight {
    font-weight: bold;
    background: transparent;
}

.ucosp-site-search-page .SiteSearch_Result_News_Image {
    float: left;
    margin: 0 10px 6px 0;
    border: 2px solid #333;
}
