/*
Theme Name: GeneratePress UNCC Green
Description: UNC Charlotte green-header child theme for GeneratePress
Author: CHESS - KCOS IT Web Team
Version: 1.0.1
Template: generatepress
Text Domain: generatepress-uncc-green
*/

/* ================================
   CSS Variables
   ================================ */
:root {
    --uncc-green: #00703C;
    --uncc-dark: #1e2a23;
    --uncc-gold: #dac98a;
    --uncc-header-gradient: linear-gradient(to right, #005035, #151414);
    --uncc-footer-gold: #a49665;
    --uncc-footer-gradient: linear-gradient(to right, #005035 0%, #005035 38%, #0a1812 78%, #000000 100%);
}

body {
    background-color: #fff;
}

/* ================================
   Row 1: Top Bar
   ================================ */
.uncc-top-bar {
    background: var(--uncc-header-gradient);
    width: 100%;
    position: relative;
}

/* Stack above .uncc-overlay (9998) while explore panel is open */
.uncc-top-bar.uncc-top-bar--explore-open {
    z-index: 9999;
}

.uncc-top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 50px;
}

.uncc-top-bar__left {
    display: flex;
    align-items: center;
}

.uncc-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.uncc-logo-link svg {
    height: 30px;
    width: auto;
    display: block;
}

.uncc-mobile-site-title {
    display: none;
}

.uncc-mobile-site-title a {
    color: #fff;
    text-decoration: none;
    font-family: "interstate-condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 1.1rem;
    line-height: 1.2;
}

.uncc-divider {
    display: inline-block;
    width: 1px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 1rem;
}

.uncc-top-bar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.uncc-explore-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.uncc-explore-trigger:hover {
    background-color: var(--uncc-green);
}

.uncc-explore-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.uncc-search-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.uncc-search-icon-btn:active,
.uncc-search-icon-btn:focus {
    background: none;
}

.uncc-search-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.uncc-mobile-search-icon-btn {
    display: none;
    background-color: var(--uncc-green);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    color: #fff;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.uncc-mobile-search-icon-btn svg {
    width: 16px;
    height: 16px;
}

.uncc-mobile-search-icon-btn:hover,
.uncc-mobile-search-icon-btn:focus-visible,
.uncc-hamburger:hover,
.uncc-hamburger:focus-visible {
    background-color: var(--uncc-gold);
    color: var(--uncc-dark);
}

.uncc-hamburger[aria-expanded="true"] {
    background-color: var(--uncc-green);
    color: #fff;
}

.uncc-hamburger[aria-expanded="true"]:hover,
.uncc-hamburger[aria-expanded="true"]:focus-visible {
    background-color: var(--uncc-gold);
    color: var(--uncc-dark);
}

.uncc-hamburger {
    display: none;
    background-color: var(--uncc-green);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.uncc-hamburger span {
    display: block;
    width: 16px;
    height: 2.5px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.uncc-hamburger:hover span,
.uncc-hamburger:focus-visible span {
    background-color: var(--uncc-dark);
}

/* ================================
   Explore Panel (drops below top bar)
   ================================ */
.uncc-explore-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(90vh, calc(100dvh - 3rem));
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1;
    overflow-y: auto;
}

.uncc-explore-panel.is-open {
    display: block;
}

/* Close pill — green rounded button */
.uncc-explore-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: var(--uncc-green);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 1;
    transition: background-color 0.2s ease;
}

.uncc-explore-close span {
    font-size: 1.1rem;
    line-height: 1;
}

.uncc-explore-close:hover {
    background-color: #005a30;
}

.uncc-explore-panel__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

.uncc-explore-main-nav {
    margin-top: 1.5rem;
}

.uncc-explore-main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uncc-explore-main-nav ul li a {
    display: block;
    font-family: "interstate-condensed", "Arial Narrow", sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--uncc-green);
    text-decoration: none;
    padding: 0.1rem 0;
    transition: color 0.15s ease;
}

.uncc-explore-main-nav ul li a:hover,
.uncc-explore-main-nav ul li a:focus {
    text-decoration: underline;
}

/* Search section */
.uncc-explore-search-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin: 0 0 0.5rem;
}

.uncc-explore-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 48px;
    border: 2px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.uncc-explore-search:focus-within {
    border-color: var(--uncc-gold);
}

.uncc-explore-search__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.125rem;
    padding: 0 1rem;
}

.uncc-explore-search__input::placeholder {
    color: #999;
    font-weight: 600;
}

.uncc-explore-search__input:focus {
    outline: none;
}

.uncc-explore-search__submit {
    background: var(--uncc-gold);
    border: none;
    color: #333;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.uncc-explore-search__submit:hover {
    background-color: #c4b574;
}

/* Four-column link grid below search */
.uncc-explore-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
}

.uncc-explore-col h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e0e0e0;
}

.uncc-explore-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uncc-explore-col ul li {
    margin: 0;
}

.uncc-explore-col ul li a {
    display: block;
    padding: 0.2rem 0;
    color: #333;
    text-decoration: underline;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.15s ease;
}

.uncc-explore-col ul li a:hover,
.uncc-explore-col ul li a:focus {
    color: var(--uncc-green);
}

/* ================================
   Row 2: Main Header
   ================================ */
.uncc-main-header {
    background: var(--uncc-header-gradient);
    width: 100%;
    padding: 1.25rem 0;
}

.uncc-main-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1.5rem;
}

.uncc-site-title {
    flex: 1;
}

.uncc-site-title .site-title {
    /* font-size: 1.875rem; */
    font-size: 40px;
    font-weight: 700;
    font-family: "interstate condensed", "Arial Narrow", sans-serif;
    font-style: italic;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.uncc-site-title .site-title a {
    color: #fff;
    text-decoration: none;
}

.uncc-site-title .site-title a:hover {
    text-decoration: underline;
}

.uncc-site-title .site-description {
    margin: 0.25rem 0 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.uncc-header-search {
    flex-shrink: 0;
}

.uncc-header-search .search-form {
    display: flex;
    align-items: stretch;
    width: 241px;
    height: 37px;
    background-color: rgba(245, 245, 245, 0.1);
    border: 1px solid #444444;
    border-radius: 6px;
    overflow: hidden;
}

.uncc-header-search .search-field {
    background: transparent !important;
    border: none;
    border-radius: 0;
    color: #e0e0e0;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    flex: 1;
    min-width: 0;
    height: 35px;
}

.uncc-header-search .search-field::placeholder {
    color: #a0a0a0;
}

.uncc-header-search .search-field:focus {
    background-color: #333333;
    color: #fff;
    outline: none;
}

.uncc-header-search .search-field:focus-visible {
    outline: 3px solid var(--uncc-gold);
    outline-offset: 2px;
}

.uncc-header-search .search-submit {
    background-color: rgba(99, 99, 99, 0.1);
    border: none;

    border-radius: 0;
    color: #a0a0a0;
    padding: 0 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.uncc-header-search .search-submit:hover {
    color: #e0e0e0;
    background-color: #3d3d3d;
}

.uncc-header-search .search-submit svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
/* ================================
   Main content link styling
   ================================ */
#primary a,
.widget-area a {
    color: #005035;
    font-weight: 600;
    text-decoration: underline;
}

#primary a:hover,
#primary a:focus,
.widget-area a:hover,
.widget-area a:focus {
    color: rgb(130.5558252427, 112.1553398058, 49.9441747573);
    text-decoration: none;
}

#primary h1 {
font-family: "interstate-condensed", "Arial Narrow", sans-serif;
font-size: 48px;
font-weight: 600;
font-style: italic;
text-transform: none;
}

/* ================================
   Row 3: Primary Nav Bar
   ================================ */
.uncc-nav-bar {
    background: var(--uncc-header-gradient);
    width: 100%;
}

.uncc-nav-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.uncc-nav-bar #primary-menu,
.uncc-nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uncc-nav-bar ul li a {
    display: block;
    padding: 0.875rem 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 5px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.uncc-nav-bar ul li a:hover,
.uncc-nav-bar ul li a:focus {
    border-bottom-color: var(--uncc-gold);
    color: var(--uncc-gold);
}

.uncc-nav-bar ul li.current-menu-item > a,
.uncc-nav-bar ul li.current_page_item > a {
    border-bottom-color: var(--uncc-gold);
    font-weight: 700;
    text-decoration: none;
}

/* Downward triangle for top-level items with sub-menus */
.uncc-nav-bar ul li.menu-item-has-children > a {
    padding-right: 1.5rem;
    position: relative;
}

.uncc-nav-bar ul li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 0.35em solid transparent;
    border-right: 0.35em solid transparent;
    border-top: 0.35em solid currentColor;
}

/* Dropdown sub-menus */
.uncc-nav-bar ul li {
    position: relative;
}

.uncc-nav-bar ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid var(--uncc-gold);
    min-width: 200px;
    z-index: 100;
    flex-direction: column;
}

.uncc-nav-bar ul li:hover > ul,
.uncc-nav-bar ul li:focus-within > ul {
    display: flex;
}

.uncc-nav-bar ul li ul li a {
    padding: 0.25rem 0.5rem;
    border-bottom: none;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    font-size: 0.875rem;
    white-space: normal;
    color: #000;
    text-decoration: underline;
}

.uncc-nav-bar ul li ul li a:hover,
.uncc-nav-bar ul li ul li a:focus {
    border-bottom: none;
    color: var(--uncc-gold);
    text-decoration: underline;
}

/* ================================
   Mobile Menu Panel
   ================================ */
.uncc-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background-color: var(--uncc-dark);
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.uncc-mobile-menu.is-open {
    transform: translateX(0);
}

.uncc-mobile-menu__inner {
    padding: 1.5rem 1rem;
}

.uncc-mobile-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    float: right;
    line-height: 1;
}

.uncc-mobile-title {
    margin: 0.5rem 0 1.5rem;
    clear: both;
}

.uncc-mobile-title a {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
}

.uncc-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uncc-mobile-menu ul li a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uncc-mobile-menu ul li a:hover {
    color: var(--uncc-gold);
}

.uncc-mobile-menu ul li ul {
    padding-left: 1rem;
}

/* Overlay */
.uncc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.uncc-overlay.is-open {
    display: block;
}

/* ================================
   Center content area to match header
   ================================ */
#page > .site-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ================================
   Sidebar layouts: align page title with sidebar widget title
   GP applies padding-top on .inside-article plus margin-top on .inside-*-sidebar
   (separator), so the main h1 often sits lower than the nav widget title bar.
   ================================ */
body.left-sidebar .site-main .inside-article,
body.right-sidebar .site-main .inside-article,
body.both-sidebars .site-main .inside-article,
body.both-left .site-main .inside-article,
body.both-right .site-main .inside-article {
    padding-top: 0 !important;
}

/* ================================
   Widget area: remove default widget padding
   ================================ */
.widget-area .widget {
    padding: 0;
}

/* ================================
   Sidebar Navigation Menu Widget (.widget_nav_menu)
   Scoped to #left-sidebar and #right-sidebar.
   Block widget areas may wrap menus in .widget_block / .wp-block-group and use
   .widgettitle (no hyphen) instead of core .widget-title — include both.
   ================================ */
#left-sidebar .widget_nav_menu,
#right-sidebar .widget_nav_menu,
#left-sidebar .widget_block .widget_nav_menu,
#right-sidebar .widget_block .widget_nav_menu {
    margin-bottom: 2em;
}

.inside-left-sidebar .widget_nav_menu,
.inside-right-sidebar .widget_nav_menu,
.inside-left-sidebar .widget_block .widget_nav_menu,
.inside-right-sidebar .widget_block .widget_nav_menu {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

#left-sidebar .widget_nav_menu .widget-title,
#right-sidebar .widget_nav_menu .widget-title,
#left-sidebar .widget_nav_menu .widgettitle,
#right-sidebar .widget_nav_menu .widgettitle,
#left-sidebar .widget_block .widget_nav_menu .widget-title,
#right-sidebar .widget_block .widget_nav_menu .widget-title,
#left-sidebar .widget_block .widget_nav_menu .widgettitle,
#right-sidebar .widget_block .widget_nav_menu .widgettitle {
    background: #00502a;
    color: #fff;
    font-family: "interstate", "Arial Narrow", sans-serif;
    font-weight: 700;

    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* One size for .widget-title and .widgettitle so classic + block widgets match */
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0;
    padding: 0.75rem 1rem;
    border: none;
}

#left-sidebar .widget_nav_menu .menu,
#right-sidebar .widget_nav_menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

#left-sidebar .widget_nav_menu .menu > li,
#right-sidebar .widget_nav_menu .menu > li {
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

#left-sidebar .widget_nav_menu .menu > li:last-child,
#right-sidebar .widget_nav_menu .menu > li:last-child {
    border-bottom: none;
}

#left-sidebar .widget_nav_menu .menu li a,
#right-sidebar .widget_nav_menu .menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

#left-sidebar .widget_nav_menu .menu li a:hover,
#right-sidebar .widget_nav_menu .menu li a:hover {
    background-color: #f2f2f2;
    box-shadow: inset 3px 0 0 var(--uncc-green);
    color: var(--uncc-green);
}

/* Parent items: caret to the LEFT of text; toggle button overlays left area */
#left-sidebar .widget_nav_menu .menu .menu-item-has-children,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children {
    position: relative;
}

#left-sidebar .widget_nav_menu .menu .menu-item-has-children > .sidebar-nav-toggle,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children > .sidebar-nav-toggle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2rem;
    z-index: 2;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
}

#left-sidebar .widget_nav_menu .menu .menu-item-has-children > a,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children > a {
    position: relative;
    padding-left: 2rem;
}

/* Collapsed: caret points right; open: caret points down. Kept left so it does not overlap link text. */
#left-sidebar .widget_nav_menu .menu .menu-item-has-children > a::before,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children > a::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 0.28em solid transparent;
    border-bottom: 0.28em solid transparent;
    border-left: 0.32em solid #333;
    transition: border 0.2s ease, transform 0.2s ease;
}

/* Open state: caret down. Also show for current/ancestor so no flash on load. */
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.open > a::before,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.open > a::before,
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-item > a::before,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-item > a::before,
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-ancestor > a::before,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-ancestor > a::before {
    left: 0.5rem;
    border-left: 0.28em solid transparent;
    border-right: 0.28em solid transparent;
    border-top: 0.32em solid #333;
    border-bottom: 0.28em solid transparent;
}

/* Expanded parent: light gray bg + green left bar. Also for current/ancestor so no flash on load. */
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.open > a,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.open > a,
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-item > a,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-item > a,
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-ancestor > a,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-ancestor > a {
    background-color: #f2f2f2;
    box-shadow: inset 3px 0 0 var(--uncc-green);
}

/* Sub-menus: hidden until parent has .open or is current/ancestor (avoids caret flash on load). */
#left-sidebar .widget_nav_menu .menu .sub-menu,
#right-sidebar .widget_nav_menu .menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

#left-sidebar .widget_nav_menu .menu .menu-item-has-children.open > .sub-menu,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.open > .sub-menu,
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-item > .sub-menu,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-item > .sub-menu,
#left-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-ancestor > .sub-menu,
#right-sidebar .widget_nav_menu .menu .menu-item-has-children.current-menu-ancestor > .sub-menu {
    display: block;
}

#left-sidebar .widget_nav_menu .menu .sub-menu li,
#right-sidebar .widget_nav_menu .menu .sub-menu li {
    margin: 0;
    padding-left: 1.25rem;
}

#left-sidebar .widget_nav_menu .menu .sub-menu li a,
#right-sidebar .widget_nav_menu .menu .sub-menu li a {
    background: #fff;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e8e8e8;
}

#left-sidebar .widget_nav_menu .menu .sub-menu li:last-child > a,
#right-sidebar .widget_nav_menu .menu .sub-menu li:last-child > a {
    border-bottom: none;
}

#left-sidebar .widget_nav_menu .menu .sub-menu li a:hover,
#right-sidebar .widget_nav_menu .menu .sub-menu li a:hover {
    background-color: #f2f2f2;
    color: var(--uncc-green);
}

/* Current/active page: darker gray bg + green left bar */
#left-sidebar .widget_nav_menu .menu .current-menu-item > a,
#right-sidebar .widget_nav_menu .menu .current-menu-item > a {
    background-color: #e6e6e6;
    box-shadow: inset 3px 0 0 var(--uncc-green);
    color: #333;
}

#left-sidebar .widget_nav_menu .menu .sub-menu .current-menu-item > a,
#right-sidebar .widget_nav_menu .menu .sub-menu .current-menu-item > a {
    background-color: #e6e6e6;
}

/* ================================
   Footer (custom footer.php)
   ================================ */
.site-footer {
    position: relative;
    background: var(--uncc-footer-gradient);
    color: #fff;
    overflow: hidden;
}

/* Faint pickaxe / brand watermark on the right */
.site-footer::before {
    content: "";
    position: absolute;
    right: -4%;
    top: 50%;
    transform: translateY(-50%);
    width: min(42vw, 400px);
    aspect-ratio: 422 / 535;
    background: url("images/pickaxe-watermark.svg") center / contain no-repeat;
    opacity: 0.09;
    pointer-events: none;
    z-index: 0;
}

.uncc-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.uncc-footer-main {
    padding: 2.75rem 0 2rem;
}

.uncc-footer-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 2.5rem 2rem;
    align-items: start;
}

.uncc-footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.uncc-footer-logo-svg {
    display: block;
    width: 100%;
    max-width: 311px;
    height: auto;
}

.uncc-footer-logo-svg .logo-eyebrow path {
    fill: var(--uncc-gold);
}

.uncc-footer-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--uncc-gold);
    font-style: normal;
}

.uncc-footer-contact-block {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.uncc-footer-contact-block a {
    color: #fff;
    text-decoration: underline;
}

.uncc-footer-section-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

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

.uncc-footer-links li {
    margin: 0 0 0.45rem;
}

.uncc-footer-links a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.95rem;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--uncc-gold);
}

.uncc-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.uncc-footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--uncc-green);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.uncc-footer-social-btn svg {
    width: 17px;
    height: 17px;
}

.uncc-footer-social-btn:hover,
.uncc-footer-social-btn:focus {
    background-color: var(--uncc-gold);
    color: var(--uncc-dark);
}

.uncc-footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 1rem 0 2rem;
}

.uncc-footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .uncc-footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .uncc-footer-col--contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .uncc-footer-columns {
        grid-template-columns: 1fr;
    }

    .uncc-footer-col--contact {
        grid-column: auto;
    }

    .uncc-footer-main {
        padding: 2rem 0 1.5rem;
    }
}

/* ================================
   Responsive: <= 768px
   ================================ */
@media (max-width: 768px) {
    .uncc-mobile-search-icon-btn {
        display: flex;
        position: absolute;
        bottom: 20px;
        right: calc(1rem + 35px + 0.5rem);
    }

    .uncc-hamburger {
        display: flex;
        position: absolute;
        bottom: 20px;
        right: 1rem;
    }

    .uncc-divider {
        display: none;
    }

    .uncc-explore-trigger {
        display: none;
    }

    .uncc-mobile-site-title {
        display: block;
        order: 3;
        flex-basis: 100%;
        padding-top: 0.25rem;
    }

    .uncc-explore-close {
        top: 0.75rem;
        right: 1rem;
    }

    .uncc-explore-panel__inner {
        padding: 1.5rem 1rem 2rem;
    }

    .uncc-explore-main-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 1.25rem;
    }

    .uncc-explore-main-nav ul li a {
        font-size: 1.25rem;
    }

    .uncc-explore-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .uncc-main-header,
    .uncc-nav-bar {
        display: none;
    }

    .uncc-mobile-menu {
        display: block;
    }

    .uncc-top-bar__inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 0.75rem;
        padding-bottom: 2.5rem;
    }

    #page > .site-content {
        display: block;
    }

    .site-content .content-area,
    .is-left-sidebar,
    .is-right-sidebar {
        width: 100% !important;
    }
}

/* Block headings in main content: page title typography + all caps */
.entry-content .wp-block-heading {
    color: #000;
    font-family: "interstate-condensed", "Arial Narrow", sans-serif;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.entry-content h2.wp-block-heading {
    font-size: 2.25rem;
}

.entry-content h3.wp-block-heading {
    font-size: 1.875rem;
}

.entry-content h4.wp-block-heading {
    font-size: 1.5rem;
}

.entry-content h5.wp-block-heading,
.entry-content h6.wp-block-heading {
    font-size: 1.25rem;
}

/* ================================
   Search Page
   ================================ */
.uncc-search-page-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.uncc-search-page-title {
    font-family: "interstate-condensed", "Arial Narrow", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    color: #333;
    margin: 0 0 1rem;
}

.uncc-search-page-title span {
    color: var(--uncc-green);
}

.uncc-search-page-field {
    display: flex;
    align-items: stretch;
    max-width: 600px;
    height: 48px;
    border: 2px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.uncc-search-page-field:focus-within {
    border-color: var(--uncc-green);
}

.uncc-search-page-field__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.125rem;
    padding: 0 1.25rem;
}

.uncc-search-page-field__input::placeholder {
    color: #999;
}

.uncc-search-page-field__input:focus {
    outline: none;
}

.uncc-search-page-field__submit {
    background: var(--uncc-green);
    border: none;
    color: #fff;
    padding: 0 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.uncc-search-page-field__submit:hover {
    background-color: #005a30;
}

/* ================================
   Accessibility
   ================================ */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: var(--uncc-green);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 99999;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--uncc-gold);
    outline-offset: 2px;
}