/* ==========================================================================
   1. EXISTING HOME PAGE FIXES (RETAINED)
   ========================================================================== */
   nav.themeNavContainer ul li:first-child {
    display: none;
}

.themeLayoutStarterWrapper .body {
    flex: 1 0 auto;
}

.themeLayoutStarterWrapper .footer {
    color: #abb3be;
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 5px;
    max-width: 100%;
    padding: 1px 1rem;
}

.slds-accordion__list-item {
    border-radius: 12px;
    margin-top: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* * AmericanHort Merged Community Hub Stylesheet
 * Combines existing functional fixes with new Brand Identity
 */

/* ==========================================================================
   1. GLOBAL BRAND SETUP
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --ah-teal: #008685;
    --ah-olive: #a4ad00;
    --ah-orange: #e94e31;
    --ah-grey: #58595b;
    --ah-light-bg: #f8f9fa;
    --ah-white: #ffffff;
}

/* ==========================================================================
   2. EXISTING FUNCTIONAL FIXES (RETAINED)
   ========================================================================== */
.navbar {
    min-height: 60px;
    font-weight:lighter;
}

.m-logo-retina {
    height: 45px;
}

/* Indents and shrinks Community Hub navigation items */
.nav-child {
    margin-left: 2em;
    font-size: .9em;
}

/* CSS to control checkbox option display within flow on CH */
.nu-lightning-wrapper .uiBlock .bBody .slds-form-element__control .slds-checkbox {
    width: auto;
}

/* CSS to control text area label display within flow on CH */
.nu-lightning-wrapper .bBody .inputHeader .richTextLabel {
    display: inline-block;
    float: none;
    text-align: left;
    width: 100%;
}

/* CSS to allow Address lightning component country picklist to behave correctly within flow on CH */
.slds-scope .slds-form_compound .slds-form-element__group .slds-form-element__row {
    display: inherit;
}

/* CSS to relocate the required asterisk */
.nu-lightning-wrapper .uiBlock .bBody .inputHeader .required {
    margin-right: auto;
    margin-left: auto;
}

/* CSS to add padding to radio button inputs within a flow in Community Hub */
.flowruntimeRadioButtonInput .bBody .slds-form-element__control {
    padding-top: 25px;
}

/* ==========================================================================
   3. BRANDED HEADER & NAVIGATION
   ========================================================================== */
.nh-header {
    background-color: var(--ah-white) !important;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

/* The Signature AmericanHort Brand Bar */
.nh-header::before {
    content: "";
    display: block;
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, 
        var(--ah-teal) 33.33%, 
        var(--ah-olive) 33.33%, var(--ah-olive) 66.66%, 
        var(--ah-orange) 66.66%);
}

.n-menu .n-menu-item > a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--ah-grey) !important;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.n-menu .n-menu-item > a:hover {
    color: var(--ah-teal) !important;
}

.n-menu .n-menu-item.active > a {
    border-bottom: 3px solid var(--ah-olive);
}

/* ==========================================================================
   4. BRANDED BUTTONS & CARDS
   ========================================================================== */
/* Updated primary button to override the old blue button logic */
.slds-button.slds-button_neutral.uiButton--default.uiButton,
.n-button.primary, 
.btn-primary, 
.btn-login {
    background-color: var(--ah-teal) !important;
    border: none !important;
    border-radius: 4px !important;
    color: var(--ah-white) !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    text-align: center;
}

.n-button.primary:hover, 
.btn-primary:hover, 
.btn-login:hover {
    background-color: var(--ah-olive) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.n-card, .card {
    border: 1px solid #e0e0e0 !important;
    border-top: 4px solid var(--ah-olive) !important;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Custom teal heading for AmericanHort Community Hub */
.col-sm-12.m-no-padding {
    color: #00837e !important;
}

/* Increase font size for the Community Search Box button */
.forceCommunitySearchBox .search-button {
    font-size: 16px !important;
    color: #00837e !important;
}

/* Increase font size for main navigation items */
.forceCommunityThemeNav.cypressHomeHeader .mainNavItem .linkBtn {
    font-size: 15px !important;
    color: #00837e !important;
}

/* ==========================================================================
   5. LOGIN PAGE & FOOTER
   ========================================================================== */
.login-container::before {
    content: "";
    display: block;
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, 
        var(--ah-teal) 33.33%, 
        var(--ah-olive) 33.33%, var(--ah-olive) 66.66%, 
        var(--ah-orange) 66.66%);
}

.n-footer {
    border-top: 6px solid;
    border-image: linear-gradient(to right, 
        var(--ah-teal) 33.33%, 
        var(--ah-olive) 33.33%, var(--ah-olive) 66.66%, 
        var(--ah-orange) 66.66%) 1;
    padding: 40px 20px;
    background-color: var(--ah-white);
    color: var(--ah-grey);
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.n-footer a {
    color: var(--ah-grey);
    text-decoration: none;
    margin: 0 10px;
}

/* ==========================================================================
   6. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .btn-primary, .n-button, .btn-login {
        width: 100% !important;
    }
}

/* ==========================================================================
   2. GLOBAL NAVIGATION UPDATES
   ========================================================================== */
/* Base state for navigation links */
.navbar .navbar-nav > li > a {
    font-weight: normal;
    font-size: 16px;
    text-decoration: none; /* Removes default underline if present */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Hover state for navigation links */
.navbar .navbar-nav > li > a:hover {
    color: teal;
    text-decoration: underline;
}

a {
    color: #000;
}