/* ORDC Member area — primary green (#146c43) */
body.ordc-theme-member {
  --ordc-primary: #146c43;
  --ordc-primary-light: #1a9e5c;
  --ordc-primary-dark: #0d4f31;
  --ordc-accent: #ffc600;
  --ordc-accent-text: #146c43;
}

/* Header top bar — was blue #07294d, force green */
body.ordc-theme-member .header-top {
  background: linear-gradient(90deg, #0d4f31 0%, #146c43 50%, #1a9e5c 100%) !important;
  color: #fff !important;
}

body.ordc-theme-member .header-top ul li,
body.ordc-theme-member .header-top ul li span,
body.ordc-theme-member .header-opening-time ul li span {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.ordc-theme-member .header-contact ul li a {
  color: #ffc600 !important;
}

body.ordc-theme-member .header-contact ul li a:hover {
  color: #fff !important;
}

/* Main navigation — green bar */
body.ordc-theme-member .navigation {
  background-color: #146c43 !important;
  border-bottom: 3px solid #0d4f31 !important;
}

body.ordc-theme-member .navigation.sticky {
  background: #146c43 !important;
  border-bottom-color: #0d4f31 !important;
}

body.ordc-theme-member .navigation .navbar .navbar-nav li a {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active,
body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover {
  background-color: rgba(255, 198, 0, 0.95) !important;
  color: #0d4f31 !important;
  box-shadow: none !important;
}

body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active .nav-icon,
body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover .nav-icon {
  color: #0d4f31 !important;
}

body.ordc-theme-member .ordc-nav-search {
  border-left-color: rgba(255, 255, 255, 0.15) !important;
}

body.ordc-theme-member .ordc-nav-search a {
  color: #ffc600 !important;
}

body.ordc-theme-member .ordc-nav-search a:hover {
  background: rgba(255, 198, 0, 0.2) !important;
  color: #fff !important;
}

body.ordc-theme-member .navigation .navbar .navbar-nav li .sub-menu {
  background-color: #0d4f31 !important;
}

body.ordc-theme-member .navigation .navbar .navbar-nav li .sub-menu li a.active,
body.ordc-theme-member .navigation .navbar .navbar-nav li .sub-menu li a:hover {
  color: #ffc600 !important;
}

body.ordc-theme-member .navigation .navbar-toggler .icon-bar {
  background-color: #ffc600 !important;
}

@media (max-width: 991.98px) {
body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active,
body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover,
body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active,
body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover {
  background-color: rgba(255, 198, 0, 0.16) !important;
  color: #ffc600 !important;
  box-shadow: none !important;
}

body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active .nav-icon,
body.ordc-theme-member .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover .nav-icon,
body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active .nav-icon,
body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover .nav-icon {
  color: #ffc600 !important;
}
}

/* Buttons */
body.ordc-theme-member .main-btn {
  color: #0d4f31 !important;
  border-color: #ffc600 !important;
  background-color: #ffc600 !important;
}

body.ordc-theme-member .main-btn:hover,
body.ordc-theme-member .main-btn:focus {
  color: #ffc600 !important;
  border-color: #146c43 !important;
  background-color: #146c43 !important;
}

/* Section titles */
body.ordc-theme-member .section-title h5,
body.ordc-theme-member .section-title h3 a {
  color: #146c43 !important;
}

body.ordc-theme-member .section-title h5::before {
  background-color: #ffc600 !important;
}

/* Page banner tint */
body.ordc-theme-member #page-banner.bg_cover {
  position: relative;
}

body.ordc-theme-member #page-banner.bg_cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 79, 49, 0.82), rgba(20, 108, 67, 0.72));
  z-index: 0;
}

body.ordc-theme-member #page-banner .container {
  position: relative;
  z-index: 1;
}

body.ordc-theme-member .page-banner-cont h2,
body.ordc-theme-member .page-banner-cont .breadcrumb-item,
body.ordc-theme-member .page-banner-cont .breadcrumb-item a {
  color: #fff !important;
}

/* Member sidebar — โซน dashboard ใช้ AdminLTE (ordc-member-dashboard.css) */
body.ordc-theme-member .ordc-mem-sidebar .saidbar .categories h4,
body.ordc-theme-member .ordc-mem-sidebar .saidbar .saidbar-post h4 {
  color: #343a40 !important;
}

body.ordc-theme-member .ordc-mem-sidebar .saidbar .categories {
  border-top: 3px solid #007bff !important;
}

body.ordc-theme-member .course-features {
  border-top: 4px solid #146c43 !important;
}

body.ordc-theme-member .course-features .price-button span b {
  color: #146c43 !important;
}

body.ordc-theme-member .course-features ul li i {
  color: #146c43 !important;
}

/* Preloader */
body.ordc-theme-member .rubix-cube .layer {
  background-color: #146c43 !important;
}

/* Footer */
body.ordc-theme-member #footer-part {
  border-top: 4px solid #146c43 !important;
}

body.ordc-theme-member .back-to-top,
body.ordc-theme-member #ordc-back-to-top {
  background-color: #146c43 !important;
  color: #ffc600 !important;
}

body.ordc-theme-member .back-to-top:hover,
body.ordc-theme-member #ordc-back-to-top:hover {
  background-color: #0d4f31 !important;
  color: #fff !important;
}

/* Tables & forms */
body.ordc-theme-member .btn-primary,
body.ordc-theme-member table .btn-primary {
  background-color: #146c43 !important;
  border-color: #146c43 !important;
}

body.ordc-theme-member .btn-primary:hover,
body.ordc-theme-member table .btn-primary:hover {
  background-color: #1a9e5c !important;
  border-color: #1a9e5c !important;
}

body.ordc-theme-member .pagination .page-item.active .page-link {
  background-color: #007bff !important;
  border-color: #007bff !important;
}

body.ordc-theme-member .ordc-mem-dash .btn-warning {
  color: #1f2d3d;
}

body.ordc-theme-member .form-control:focus {
  border-color: #1a9e5c !important;
  box-shadow: 0 0 0 0.2rem rgba(20, 108, 67, 0.2) !important;
}

/* Header user dropdown */
.header-contact .ordc-user-dropdown {
  position: relative;
  margin-right: 0 !important;
}
.header-contact .ordc-user-dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  color: #dee2e6 !important;
  transition: background 0.2s ease;
}
.header-contact .ordc-user-dropdown-toggle:hover,
.header-contact .ordc-user-dropdown.show .ordc-user-dropdown-toggle {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}
.header-contact .ordc-user-dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-left: 0 !important;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-contact .ordc-user-dropdown-caret {
  font-size: 12px;
  color: #ffc600;
  margin-left: 2px;
}
.header-contact .ordc-user-dropdown-menu {
  min-width: 220px;
  margin-top: 8px;
  padding: 6px 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 1100;
}

.header-contact .ordc-user-dropdown-menu.show {
  display: block;
}
body.ordc-theme-member .header-contact .ordc-user-dropdown-menu {
  background-color: #0d4f31;
}
body.ordc-theme-public .header-contact .ordc-user-dropdown-menu {
  background-color: #07294d;
}
.header-contact .ordc-user-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.15s ease, color 0.15s ease;
}
.header-contact .ordc-user-dropdown-menu .dropdown-item .fa {
  width: 16px;
  text-align: center;
  color: #ffc600;
}
.header-contact .ordc-user-dropdown-menu .dropdown-item:hover,
.header-contact .ordc-user-dropdown-menu .dropdown-item:focus {
  background: rgba(255, 198, 0, 0.15);
  color: #ffc600;
}
.header-contact .ordc-user-dropdown-menu .dropdown-item:hover .fa,
.header-contact .ordc-user-dropdown-menu .dropdown-item:focus .fa {
  color: #fff;
}
.header-contact .ordc-user-dropdown-menu .dropdown-divider {
  border-top-color: rgba(255, 198, 0, 0.25);
  margin: 4px 0;
}
.header-contact .ordc-user-dropdown-logout {
  color: #ffb4b4 !important;
}
.header-contact .ordc-user-dropdown-logout .fa {
  color: #ff8a8a !important;
}
.header-contact .ordc-user-dropdown-logout:hover {
  background: rgba(220, 53, 69, 0.2) !important;
  color: #fff !important;
}

/* Role badge */
body.ordc-theme-member .ordc-role-badge {
  display: inline-block;
  background: #146c43;
  color: #ffc600;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 6px;
}

/* Public site stays blue */
body.ordc-theme-public .header-top {
  background-color: #07294d !important;
}

body.ordc-theme-public .navigation {
  background-color: #07294d !important;
  border-bottom: 3px solid #051f38 !important;
}

body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active,
body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover {
  background-color: rgba(255, 198, 0, 0.95) !important;
  color: #07294d !important;
  box-shadow: none !important;
}

body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a.active .nav-icon,
body.ordc-theme-public .navigation .navbar .navbar-nav.ordc-main-nav > li > a:hover .nav-icon {
  color: #07294d !important;
}

body.ordc-theme-public .ordc-nav-search {
  border-left-color: rgba(255, 255, 255, 0.15) !important;
}

body.ordc-theme-public .ordc-nav-search a {
  color: #ffc600 !important;
}

body.ordc-theme-public .navigation .navbar .navbar-nav li .sub-menu {
  background-color: #051f38 !important;
}

body.ordc-theme-public .navigation .navbar-toggler .icon-bar {
  background-color: #ffc600 !important;
}
