/* ==========================================
   COPEBEED - PREMIUM HEADER DESIGN
   Bizix Header 1 | Header only
   ========================================== */

/* Top contact bar */
.swm-topbar {
    background: #172b4d !important;
    color: #ffffff !important;
    border: 0 !important;
}

.swm-topbar,
.swm-topbar a,
.swm-topbar i {
    color: #ffffff !important;
}

.swm-topbar a {
    transition: opacity .25s ease;
}

.swm-topbar a:hover {
    opacity: .75;
}

/* Main logo and college information area */
.swm-header.header_1s {
    background: #ffffff !important;
}

.swm-header.header_1s .swm-header-container-wrap {
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(23, 43, 77, .07);
}

.swm-header.header_1s .swm-header-logo-section {
    background: #ffffff !important;
}

/* Preserve logo dimensions and avoid distortion */
.swm-header.header_1s .swm-logo img {
    object-fit: contain;
}

/* Navigation background */
.swm-header.header_1s #swm-main-nav-holder {
    border-top: 1px solid rgba(23, 43, 77, .08);
}

.swm-header.header_1s .swm-header-menu-section-wrap,
.swm-header.header_1s .swm-header-menu-section,
.swm-header.header_1s .swm-primary-nav-wrap {
    background: #d94f50 !important;
}

.swm-header.header_1s .swm-main-nav {
    background: transparent !important;
}

/* Navigation links */
.swm-header.header_1s .swm-primary-nav > li > a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 15px 12px;
    transition: background-color .25s ease, color .25s ease;
}

.swm-header.header_1s .swm-primary-nav > li > a > span {
    line-height: 1.4;
}

.swm-header.header_1s .swm-primary-nav > li:hover > a,
.swm-header.header_1s .swm-primary-nav > li.swm-m-active > a {
    background: #bd3d43 !important;
    color: #ffffff !important;
}

/* Dropdown menu */
.swm-header.header_1s .swm-primary-nav ul,
.swm-header.header_1s .swm-primary-nav .sub-menu {
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(23, 43, 77, .16);
    border-top: 3px solid #172b4d;
}

.swm-header.header_1s .swm-primary-nav ul a,
.swm-header.header_1s .swm-primary-nav .sub-menu a {
    color: #263650 !important;
    transition: background-color .2s ease, color .2s ease;
}

.swm-header.header_1s .swm-primary-nav ul a:hover,
.swm-header.header_1s .swm-primary-nav .sub-menu a:hover {
    background: #f7eeee !important;
    color: #bd3d43 !important;
}

/* Search icon */
.swm-header.header_1s .swm-header-search {
    color: #172b4d;
}

/* Mobile navigation: retain theme's menu functionality */
@media (max-width: 1024px) {
    .swm-header.header_1s .swm-primary-nav > li > a {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .swm-header.header_1s .swm-header-menu-section-wrap,
    .swm-header.header_1s .swm-header-menu-section,
    .swm-header.header_1s .swm-primary-nav-wrap {
        background: #d94f50 !important;
    }

    .swm-header.header_1s #swm-mobi-nav-icon {
        color: #ffffff;
    }

    .swm-header.header_1s .swm-primary-nav > li > a {
        padding: 12px 16px;
    }
}

/* ===== Header layout correction ===== */

/* Keep the branding area white */
.swm-header.header_1s .swm-header-container-wrap {
    background: #ffffff !important;
}

.swm-header.header_1s .swm-container.header-main {
    background: #ffffff !important;
}

/* Prevent navigation background from filling the logo area */
.swm-header.header_1s .swm-header-menu-section-wrap {
    background: #d94f50 !important;
}

/* Keep navigation centered within its own section */
.swm-header.header_1s .swm-header-menu-section {
    max-width: 100%;
    margin: 0 auto;
}

/* More balanced navigation spacing */
.swm-header.header_1s .swm-primary-nav > li > a {
    padding: 15px 14px;
}

/* Improve brand section spacing */
.swm-header.header_1s .swm-header-logo-section {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 767px) {
    .swm-header.header_1s .swm-header-logo-section {
        padding: 10px 15px;
    }

    .swm-header.header_1s .swm-primary-nav > li > a {
        padding: 12px 16px;
    }
}

/* ===== Header layout correction ===== */

/* Keep the branding area white */
.swm-header.header_1s .swm-header-container-wrap {
    background: #ffffff !important;
}

.swm-header.header_1s .swm-container.header-main {
    background: #ffffff !important;
}

/* Prevent navigation background from filling the logo area */
.swm-header.header_1s .swm-header-menu-section-wrap {
    background: #d94f50 !important;
}

/* Keep navigation centered within its own section */
.swm-header.header_1s .swm-header-menu-section {
    max-width: 100%;
    margin: 0 auto;
}

/* More balanced navigation spacing */
.swm-header.header_1s .swm-primary-nav > li > a {
    padding: 15px 14px;
}

/* Improve brand section spacing */
.swm-header.header_1s .swm-header-logo-section {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (max-width: 767px) {
    .swm-header.header_1s .swm-header-logo-section {
        padding: 10px 15px;
    }

    .swm-header.header_1s .swm-primary-nav > li > a {
        padding: 12px 16px;
    }
}

/* Header layout: separate branding and navigation rows */
.swm-header.header_1s .swm-container.header-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.swm-header.header_1s .swm-header-logo-section {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff !important;
}

.swm-header.header_1s .swm-header-button-search {
    background: #ffffff !important;
}

.swm-header.header_1s .swm-header-menu-section-wrap {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: #d94f50 !important;
}

.swm-header.header_1s .swm-header-menu-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.swm-header.header_1s .swm-primary-nav-wrap {
    width: 100%;
    background: transparent !important;
}

@media (max-width: 767px) {
    .swm-header.header_1s .swm-container.header-main {
        display: block;
    }

    .swm-header.header_1s .swm-header-logo-section,
    .swm-header.header_1s .swm-header-menu-section-wrap {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
   PREMIUM NAVIGATION TYPOGRAPHY & HOVER
   ========================================= */

/* Main menu typography */
.swm-header.header_1s .swm-primary-nav > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1px;
    padding: 17px 13px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
    transition: background-color .25s ease, color .25s ease;
}

/* Keep menu labels neatly aligned */
.swm-header.header_1s .swm-primary-nav > li > a > span {
    line-height: 1.5 !important;
}

/* Elegant underline accent */
.swm-header.header_1s .swm-primary-nav > li > a:before,
.swm-header.header_1s .swm-primary-nav > li > a > span:before {
    top: auto !important;
    bottom: 5px !important;
    left: 13px !important;
    width: 0 !important;
    height: 2px !important;
    background: #ffe2a8 !important;
    display: block !important;
    transition: width .25s ease;
}

/* Underline on hover and active menu */
.swm-header.header_1s .swm-primary-nav > li:hover > a:before,
.swm-header.header_1s .swm-primary-nav > li:hover > a > span:before,
.swm-header.header_1s .swm-primary-nav > li.swm-m-active > a:before,
.swm-header.header_1s .swm-primary-nav > li.swm-m-active > a > span:before {
    width: calc(100% - 26px) !important;
}

/* Premium hover and active state */
.swm-header.header_1s .swm-primary-nav > li:hover > a,
.swm-header.header_1s .swm-primary-nav > li.swm-m-active > a {
    background: #bd3d43 !important;
    color: #ffffff !important;
}

/* Clear keyboard focus */
.swm-header.header_1s .swm-primary-nav > li > a:focus-visible {
    outline: 2px solid #ffe2a8;
    outline-offset: -3px;
}

/* Tablet menu sizing */
@media (min-width: 768px) and (max-width: 1024px) {
    .swm-header.header_1s .swm-primary-nav > li > a {
        font-size: 14px !important;
        padding: 14px 9px !important;
    }
}

/* Mobile menu readability */
@media (max-width: 767px) {
    .swm-header.header_1s .swm-primary-nav > li > a {
        font-size: 15px !important;
        padding: 13px 16px !important;
    }

    .swm-header.header_1s .swm-primary-nav > li > a:before,
    .swm-header.header_1s .swm-primary-nav > li > a > span:before {
        display: none !important;
    }
}

/* FIX: REMOVE DUPLICATE MENU UNDERLINES */
.swm-header.header_1s .swm-primary-nav > li > a,
.swm-header.header_1s .swm-primary-nav > li > a > span {
    text-decoration: none !important;
}

.swm-header.header_1s .swm-primary-nav > li > a > span:after,
.swm-header.header_1s .swm-primary-nav > li > a:after {
    display: none !important;
}


/* FINAL FIX: SINGLE GOLD HOVER UNDERLINE */
.swm-header.header_1s .swm-primary-nav > li > a,
.swm-header.header_1s .swm-primary-nav > li > a > span {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.swm-header.header_1s .swm-primary-nav > li > a:before {
    display: none !important;
}

.swm-header.header_1s .swm-primary-nav > li > a > span:before {
    content: "" !important;
    position: absolute !important;
    top: auto !important;
    bottom: -9px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: #ffe2a8 !important;
    transition: width .25s ease !important;
}

.swm-header.header_1s .swm-primary-nav > li:hover > a > span:before,
.swm-header.header_1s .swm-primary-nav > li.swm-m-active > a > span:before {
    width: 100% !important;
}

