/* ====== GLOBAL TYPOGRAPHY ====== */
body, p, span, li {
    font-family: 'Rethink Sans', sans-serif;
    color: #052C47;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rethink Sans', sans-serif;
    color: #052C47;
    font-weight: 700;
}

/* ====== HEADER ====== */
#idHeader {
    background-color: #ffffff;
    border-bottom: 3px solid #BAA769;
}
#idHeader .login-block, 
#idHeader .logo-text {
    color: #052C47;
}

/* ====== NAVIGATION BAR ====== */
#idPrimaryNavigation {
    background-color: #052C47 !important; /* Deep Navy */
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* ====== NAVIGATION LINKS ====== */
#idPrimaryNavigation a {
    color: #ffffff !important; /* White links on navy background */
    font-weight: 600;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

/* ====== NAV HOVER & SELECTED ====== */
#idPrimaryNavigation a:hover,
#idPrimaryNavigation .selected > a {
    color: #BAA769 !important; /* Regal Gold */
    border-bottom: 2px solid #BAA769;
}

/* ====== DROPDOWN MENUS ====== */
#idPrimaryNavigation .submenu {
    background-color: #052C47 !important;
    border: 1px solid #007961;
}

#idPrimaryNavigation .submenu a {
    color: #ffffff !important;
}

#idPrimaryNavigation .submenu a:hover {
    background-color: #007961 !important;
    color: #ffffff !important;
}

/* ====== HOMEPAGE & SECTION STYLING ====== */
.home-hero {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}
.home-hero h1 {
    font-size: 48px;
    color: #052C47;
    font-weight: 800;
}
.home-hero p {
    font-size: 20px;
    color: #052C47;
    max-width: 800px;
    margin: 0 auto;
}
.section-blue {
    background-color: #052C47;
    color: white;
    padding: 40px 20px;
}
.section-green {
    background-color: #007961;
    color: white;
    padding: 40px 20px;
}
.section-light {
    background-color: #E6E1D3;
    padding: 40px 20px;
}

/* ====== BUTTONS (ALL STATES) ====== */
button,
input[type="submit"],
input[type="button"],
.Button,
.btn {
    background-color: #007961 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 12px 24px !important;
    font-family: 'Rethink Sans', sans-serif !important;
    font-weight: 600 !important;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #052C47 !important;
    color: #ffffff !important;
}

/* ====== FORM FIELDS ====== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1px solid #A8C2B0 !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-family: 'Rethink Sans', sans-serif !important;
    font-size: 15px !important;
    color: #052C47 !important;
    background-color: #ffffff !important;
}
label {
    font-family: 'Rethink Sans', sans-serif !important;
    font-size: 14px !important;
    color: #052C47 !important;
}

/* ====== LOGIN / REGISTER AREAS ====== */
#idLoginBox,
#idLoginForm,
#idRegistrationForm,
#idLoginForm .form,
.LoginWidget,
.LoginWidget a {
    background-color: #E6E1D3 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    color: #052C47 !important;
}
.LoginWidget .button {
    background-color: #007961 !important;
    color: #ffffff !important;
}

/* ====== MEMBER DIRECTORY & EVENTS ====== */
#idContent .ProfileCard, 
.EventListItem {
    border: 1px solid #A8C2B0;
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
}
.ProfileCard h3, 
.EventListItem h3 {
    color: #007961;
    font-size: 20px;
}
.EventListItem .event-date {
    color: #BAA769;
    font-weight: bold;
}

/* ====== FOOTER ====== */
#idFooter {
    background-color: #052C47 !important;
    color: #ffffff !important;
    padding: 30px 20px;
    font-size: 14px;
}
#idFooter a {
    color: #C9D8E2 !important;
    text-decoration: underline;
}
#idFooter a:hover {
    color: #BAA769 !important;
}

/* ====== MOBILE MENU ====== */
#idMobileMenuToggle {
    background-color: transparent;
    border: none;
    color: #ffffff !important; /* Mobile icon matches navy bar */
    font-size: 28px;
}
.mobile-nav-panel {
    background-color: #052C47 !important;
    padding: 20px;
    z-index: 9999;
}
.mobile-nav-panel a,
.mobile-nav-panel .menu-item a {
    display: block;
    padding: 12px 20px;
    font-family: 'Rethink Sans', sans-serif;
    font-size: 16px;
    color: #ffffff !important;
    border-bottom: 1px solid #007961 !important;
    text-decoration: none;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel .menu-item a:hover {
    background-color: #007961 !important;
    color: #ffffff !important;
}
.mobile-nav-panel .selected > a,
.mobile-nav-panel .selected > a:hover {
    background-color: #BAA769 !important;
    color: #052C47 !important;
    font-weight: bold;
}
.mobile-nav-panel .close {
    color: #ffffff !important;
    font-size: 24px !important;
    top: 10px !important;
    right: 20px !important;
    position: absolute;
    background: none;
    border: none;
}

/* ====== MOBILE OVERLAY / DIALOGS ====== */
.ui-widget-overlay,
.ui-dialog,
.wap-dialog {
    background: rgba(5, 44, 71, 0.85) !important;
    z-index: 9998 !important;
}

