/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500&display=swap');

* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: none;
  outline: none;
}

/* Dark mode adjustments */
body.dark, .dark-mode, body.dark-mode {
  background-color: #0b0f16;
  color: #e6eef8;
}

body.dark .exclusive-container,
body.dark .course-section,
body.dark .course-card,
body.dark .portlet,
body.dark .card,
body.dark .card-body,
body.dark .embed-responsive,
body.dark .video-thumb-wrapper,
body.dark .main-footer,
body.dark .exclusive-videos-section {
  background-color: #0f1720 !important;
  color: #dfe9f5 !important;
  border-color: #15202b !important;
  box-shadow: none !important;
}

body.dark .course-card .course-icon i,
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6,
body.dark p, body.dark a, body.dark .card-title, body.dark .card-text {
  color: #e6eef8 !important;
}

body.dark .form-control {
  background-color: #0b1220 !important;
  color: #e6eef8 !important;
  border-color: #1f2a38 !important;
}

/* ensure modal content is dark-friendly */
body.dark .modal-content,
body.dark .modal-body,
body.dark .embed-responsive iframe {
  background: #0b0f16 !important;
  color: #e6eef8 !important;
}

/* small override for footer */
body.dark .main-footer { background: #071018; color: #9fb6d6; }

/* Video/training card specific overrides */
body.dark .box-1,
body.dark .box-1 .thumb,
body.dark .box-1 .details,
body.dark .box-1 .footer,
body.dark .videoBlk,
body.dark .box-1 .title {
  background: transparent !important;
  color: #e6eef8 !important;
}

body.dark .box-1 { background-color: #0f1720 !important; border: 1px solid #16202a !important; box-shadow: none !important; }
body.dark .box-1 .thumb { background-color: #0b1220 !important; }
body.dark .box-1 .thumb img { opacity: 0.95; }
body.dark .box-1 .details { color: #e6eef8 !important; }
body.dark .box-1 .footer { color: #cfe6ff !important; }
body.dark .box-1 .footer .btn { background: #152430; color: #e6eef8 !important; border-color: #223246 !important; }

/* Wizard / levels (training) dark-mode fixes */
body.dark .m-wizard__head,
body.dark .m-wizard__nav,
body.dark .m-wizard__steps,
body.dark .m-wizard__step,
body.dark .sublevel-steps .m-wizard__step,
body.dark .sublevel-steps .m-wizard__step.active,
body.dark .m-wizard__step-number,
body.dark .m-wizard__step-info,
body.dark .m-wizard__step-title,
body.dark .m-wizard__step-title-2 {
  background: #071016 !important;
  color: #dfe9f5 !important;
  border-color: #12202a !important;
  box-shadow: none !important;
}

body.dark .sublevel-steps .m-wizard__step {
  border-color: #12202a !important;
  background: #071016 !important;
}

body.dark .sublevel-steps .m-wizard__step.active,
body.dark .sublevel-steps .m-wizard__step:hover {
  background: linear-gradient(90deg, #071018 0%, #143042 100%) !important;
  border-color: #39ab4d !important;
}

/* PDF card dark-mode overrides: only change background/border so icons and texts keep their page-defined colors */
body.dark .pdf-card {
  background-color: #0f1720 !important;
  border-color: #15202b !important;
  box-shadow: none !important;
}
/* keep icon/text/button colors as defined per page; only dim the decorative after mark */
body.dark .pdf-card::after { color: rgba(230,238,248,0.06) !important; }

/* Contacts page dark-mode fixes */
body.dark .page_title .exclusive-container {
  background: #0f1720 !important;
  color: #e6eef8 !important;
  border-color: #15202b !important;
  box-shadow: none !important;
}

/* Make page_title blocks dark in dark mode */
body.dark .page_title {
  background: #0f1720 !important;
  color: #e6eef8 !important;
}
body.dark .page_title h2, body.dark .page_title h1 {
  color: #e6eef8 !important;
}

/* Events: dark mode for event cards (recordings & texts) */
body.dark .widget_item-event {
  background-color: #0f1720 !important;
  box-shadow: none !important;
  border-radius: 12px;
}
body.dark .widget_item-event .widget_item-title { color: #e6eef8 !important; }
body.dark .widget_item-event .widget_item-date { color: #9fb6d6 !important; }
/* previous (bg_item) darker overlay */
body.dark .widget_item-event.bg_item { background-color: #12171b !important; }

/* Working Files page dark-mode fixes */
body.dark .working-container {
  background-color: #0b0f16 !important;
  color: #e6eef8 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
body.dark .section-box {
  background-color: #071018 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #dfe9f5 !important;
}

/* Per-page PDF card dark-mode variants: keep icon/text colors untouched, only change background/border. */
body.dark .pdf-card--financial {
  background-color: #071423 !important; /* dark blue tint for financial */
  border-color: #123043 !important;
  box-shadow: none !important;
}
body.dark .pdf-card--financial::after { color: rgba(230,238,248,0.04) !important; }

body.dark .pdf-card--invite {
  background-color: #2a1800 !important; /* dark amber tint for invite */
  border-color: #3a2308 !important;
  box-shadow: none !important;
}
body.dark .pdf-card--invite::after { color: rgba(230,238,248,0.04) !important; }

body.dark .pdf-card--heavy {
  background-color: #2a0f10 !important; /* dark red tint for heavyout */
  border-color: #3a1112 !important;
  box-shadow: none !important;
}
body.dark .pdf-card--heavy::after { color: rgba(230,238,248,0.04) !important; }

/* KPI card dark-mode: ensure KPI cards use a dark background without changing inline title colors */
body.dark .kpi-card {
  background-color: #0f1720 !important;
  border-radius: 20px;
  box-shadow: none !important;
  color: #e6eef8 !important;
}
body.dark .kpi-card .kpi-description { color: #cfe6ff !important; }

body.dark .page_title .form-control {
  background-color: #071018 !important;
  color: #e6eef8 !important;
  border-color: #12202a !important;
}

body.dark .main-users .header-users h3 {
  color: #dfe9f5 !important;
}

body.dark .item_user {
  background: #0f1720 !important;
  border: 1px solid #15202b !important;
  padding: 12px !important;
  border-radius: 8px !important;
  margin-bottom: 10px !important;
}

body.dark .item_user .name a { color: #e6eef8 !important; }
body.dark .avatar_sm img { filter: brightness(.95) contrast(.95); }

body.dark .progress.progress_users {
  background: #071018 !important;

/* kt-portlet (general page card) dark-mode: handle offer/form and other pages that wrap content in kt-portlet */
body.dark .kt-portlet,
body.dark .kt-portlet__body,
body.dark .inner_kt-portlet__body {
  background-color: #0f1720 !important;
  color: #e6eef8 !important;
  border: 1px solid #15202b !important;
  box-shadow: none !important;
}

body.dark .kt-portlet .kt-portlet__head {
  background: transparent !important;
  color: #e6eef8 !important;
  border-bottom-color: transparent !important;
}

/* Nav tabs active state in dark mode */
body.dark .nav-link.show.active,
body.dark .nav-tabs .nav-link.active {
  background-color: transparent !important;
  color: #e6eef8 !important;
  border-bottom: 2px solid #39ab4d !important;
}

/* bootstrap-select display text in dark mode */
body.dark .bootstrap-select .filter-option,
body.dark .bootstrap-select .filter-option-inner-inner {
  color: #e6eef8 !important;
  background: transparent !important;
}

/* Progress users dark mode */
body.dark .progress.progress_users {
  border: 1px solid #12202a !important;
  width: 40px;
  height: 12px;
  border-radius: 6px;
  display: inline-block;
  background: #071018 !important;
}

body.dark .progress.progress_users.active {
  background: linear-gradient(90deg,#39ab4d,#1f8a40) !important;
}

body.dark .footer h4, body.dark .footer a { color: #cfe6ff !important; }

body.dark .pagination .page-link {
  background: #071018 !important; color: #e6eef8 !important; border-color: #12202a !important;
}

/* FullCalendar dark-mode fixes */
body.dark .kt-timeline-v2 {
  background: #0f1720 !important;
  color: #e6eef8 !important;
  border-color: #15202b !important;
}

body.dark .fc {
  background: transparent !important;
  color: #e6eef8 !important;
}
body.dark .fc-toolbar, body.dark .fc-toolbar-chunk {
  background: transparent !important;
  color: #e6eef8 !important;
}
body.dark .fc-button {
  background: #0f1720 !important;
  color: #e6eef8 !important;
  border: 1px solid #12202a !important;
}
body.dark .fc-button:hover {
  background: #153042 !important;
}
body.dark .fc-col-header, body.dark .fc-col-header-cell {
  background: #071018 !important;
  color: #cfe6ff !important;
  border-bottom: 1px solid #12202a !important;
}
body.dark .fc-daygrid-day {
  background: #071018 !important;
  color: #dfe9f5 !important;
  border: 1px solid #0f2532 !important;
}
body.dark .fc-daygrid-day-number { color: #9fb6d6 !important; }
/* Allow FullCalendar event colors to come from the event data (green/red).
   Previously this forced a green background for every event in dark mode.
   Keep readable text and remove the forced background so the calendar's
   per-event color property is honored. */
body.dark .fc-daygrid-event,
body.dark .fc-event {
  color: #ffffff !important; /* ensure event text is readable on colored backgrounds */
  border: none !important;
}
body.dark .fc-daygrid-day-frame { background: transparent !important; }
body.dark .fc-scrollgrid { background: transparent !important; }




a:hover,
a:focus {
  text-decoration: none;
}

.font-bold {
  font-family: 'Cairo', sans-serif;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: #2c4250;
}

p {
  margin: 0;
}

h4,
h5,
h6 {
  line-height: 1.7;
}

input,
textarea,
a,
button {
  outline: none !important;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

a {
  color: #201e5a;
}

a:hover {
  color: #201e5a;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

@-webkit-keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

@-webkit-keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
.fadeInRight {
  -webkit-animation-name: fadeInRight;
  animation-name: fadeInRight;
}

@-webkit-keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -o-transform: translateX(-20px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    -moz-transform: translateX(-20px);
    -ms-transform: translateX(-20px);
    -o-transform: translateX(-20px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}
.fadeInLeft {
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
}

body {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.428571429;
  background-color: #f5f7fa;
  font-family: 'Cairo', sans-serif;
  color: #3c3c3c;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

button,
input,
optgroup,
select,
textarea {
  font-family: 'Cairo', sans-serif;
}

.form-control {
  background-color: #f6f6f6;
  height: 51px;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: 1px solid #f6f6f6;
  border-radius: 30px;
  padding: 0.375rem 1.4rem;
  color: #000000;
  font-size: 16px;
}

textarea.form-control {
  border-radius: 22px;
  border: 1px solid #f6f6f6;
}

.form-control:focus {
  -webkit-box-shadow: none;
          box-shadow: none;
  background-color: #f6f6f6;
  border: 1px solid #201e5a;
}

.main-wrapper {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.bg-general {
  background-color: #201e5a !important;
}

.color-general {
  color: #201e5a !important;
}

button {
  cursor: pointer;
}

.pointer {
  cursor: pointer;
}

::-webkit-input-placeholder {
  font-size: 16px;
  color: #999cb2;
}

::-moz-placeholder {
  font-size: 16px;
  color: #999cb2;
}

:-ms-input-placeholder {
  font-size: 16px;
  color: #999cb2;
}

::-ms-input-placeholder {
  font-size: 16px;
  color: #999cb2;
}

::placeholder {
  font-size: 16px;
  color: #999cb2;
}

.row.row-md {
  margin-right: -8px;
  margin-left: -8px;
}

.row.row-md > [class*="col-"] {
  padding-right: 8px;
  padding-left: 8px;
}

.row.row-sm {
  margin-right: -3px;
  margin-left: -3px;
}

.row.row-sm > [class*="col-"] {
  padding-right: 3px;
  padding-left: 3px;
}

.row.row-lg {
  margin-right: -10px;
  margin-left: -10px;
}

.row.row-lg > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

.portlet {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-shadow: 0px 1px 35px 0px rgba(78, 54, 168, 0.24);
          box-shadow: 0px 1px 35px 0px rgba(78, 54, 168, 0.24);
  background-color: #ffffff;
  margin-bottom: 20px;
  border-radius: 25px;
}
.portlet .portlet__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: relative;
  padding: 0 45px 0 10px;
  border-bottom: 1px solid #ebedf2;
  min-height: 67px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  background-color: #e0e0e0;
}
.portlet .portlet__head .portlet__head-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: flex-first;
  align-content: flex-first;
}
.portlet .portlet__head .portlet__head-label .portlet__head-title {
  margin: 0;
  padding: 0;
  font-size: 20px;
  color: #000000;
}
.portlet .portlet__head .portlet__head-label .portlet__head-title-2 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: #181818;
}
.portlet .portlet__head.bg_portlet_1 {
  background-color: #c93478;
}
.portlet .portlet__head.bg_portlet_1 .portlet__head-label .portlet__head-title {
  color: #fff;
}
.portlet .portlet__head.bg_portlet_2 {
  background-color: #812a89;
}
.portlet .portlet__head.bg_portlet_2 .portlet__head-label .portlet__head-title {
  color: #fff;
}
.portlet .portlet__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 35px 30px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}
.portlet .portlet__body .portlet__body-title {
  font-size: 28px;
  color: #3c3c3c;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.portlet .portlet__footer {
  border-top: 1px solid #f5f5f5;
  padding: 25px;
}

.p-30 {
  padding: 30px !important;
}

.p-40 {
  padding: 40px !important;
}

.btn:focus,
.btn.focus {
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.custom-select:focus {
  border-color: #201e5a;
  outline: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.loader-page {
  background: #f8f8f8;
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #201e5a;
  -webkit-animation-timing-function: cubic-bezier(0, 1, 1, 0);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  -webkit-animation: lds-ellipsis1 0.6s infinite;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  -webkit-animation: lds-ellipsis2 0.6s infinite;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  -webkit-animation: lds-ellipsis2 0.6s infinite;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  -webkit-animation: lds-ellipsis3 0.6s infinite;
  animation: lds-ellipsis3 0.6s infinite;
}

@-webkit-keyframes lds-ellipsis1 {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes lds-ellipsis1 {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@-webkit-keyframes lds-ellipsis3 {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
}
@-webkit-keyframes lds-ellipsis2 {
  0% {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
  100% {
    -webkit-transform: translate(24px, 0);
    transform: translate(24px, 0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
  100% {
    -webkit-transform: translate(24px, 0);
    transform: translate(24px, 0);
  }
}
.btn-primary {
  color: #fff;
  background-color: #201e5a;
  border-color: #201e5a;
  padding: 0.77rem 1.5rem;
  font-size: 16px;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-color: #201e5a !important;
  border-color: #201e5a !important;
  color: #fff;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}
.logo.mr-auto img {
    width: 90px;
}
.btn-sm {
  padding: 0.3rem 0.9rem;
  font-size: 14px;
}

.btn-outline-primary {
  color: #201e5a;
  border-color: #201e5a;
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
  background-color: #5a3ebe !important;
  border-color: #5a3ebe !important;
  color: #fff;
}

@media (min-width: 992px) {
  .main-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    top: 0px;
    right: 0;
    width: 100%;
    position: relative;
    height: 94px;
    background-color: #fff;
    z-index: 3;
    -webkit-box-shadow: 0px 1px 35px 0px rgba(199, 52, 121, 0.14);
            box-shadow: 0px 1px 35px 0px rgba(199, 52, 121, 0.14);
  }
  .main-header .menu--mobile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-left: auto;
  }
  .main-header .menu-container {
    position: relative;
  }
}
@media (max-width: 991px) {
  .main-header {
    padding: 10px 0px;
  }
}
.main-header {
  background-color: #fff;
}
.main-header .menu-container .main-menu .menu_item {
  display: inline-block;
  position: relative;
}
.main-header .menu-container .main-menu .menu_item .menu_link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0px 5px;
  line-height: 45px;
  position: relative;
  color: #201e5a;
  border-radius: 30px;
  padding: 0px 30px;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.main-header .menu-container .main-menu .menu_item .menu_link .menu_link-text {
  font-size: 16px;
}
.main-header .menu-container .main-menu .menu_item .menu_link .menu_link-icon {
  margin-left: 5px;
  font-size: 16px;
}
.main-header .menu-container .main-menu .menu_item .menu_link.active {
  color: #201e5a;
}
.main-header .menu-container .main-menu .menu_item .menu_link:hover {
  color: #201e5a;
}
.main-header .menu-container .main-menu .menu_item .menu_link.register {
  padding: 0px 64px;
  text-decoration: none;
  font-size: 16px;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  border-radius: 30px;
  background-color: #201e5a;
  line-height: 45px;
  color: #fff;
}
.main-header .menu-container .main-menu .menu_item .menu_link.register:hover {
  background-color: #5a3ebe;
  color: #fff;
}
.main-header .menu-container .main-menu .menu_item .menu_link.login:hover {
  background-color: #201e5a;
  color: #fff;
}

@media (max-width: 991px) {
  .main-header .menu-container .main-menu .menu_item .menu_link {
    line-height: 35px !important;
    padding: 0px 15px;
  }

  .main-header .menu-container .main-menu .menu_item .menu_link.register {
    padding: 0px 12px;
  }

  .main-header .menu-container .main-menu .menu_item .menu_link .menu_link-text {
    font-size: 12px;
  }


  .custom-select {
    padding: 0.375rem 0.55rem 0.375rem 1.25rem;
  }

  .main-header__topbar .header__topbar-item .header__topbar-wrapper .header__topbar-user {
    height: 35px;
  }

  .main-header__topbar .header__topbar-item .header__topbar-wrapper .header__topbar-user img {
    max-height: 35px;
    max-width: 35px;
  }

  .main-header__topbar .header__topbar-item .header__topbar-wrapper .header__topbar-user .header__topbar-username {
    font-size: 0.8rem !important;
  }
}
.hero {
  position: relative;
  -js-display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 50px 0px;
  background-color: #6549cb;
}
.hero::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url(../images/bg-hero.png) no-repeat center;
  background-size: cover;
  opacity: 0.2;
}
.hero .hero-content .hero-title {
  color: #000;
  line-height: 1.4;
  background-color: #fff;
  padding: 10px;
  display: inline-block;
  border-radius: 20px 0px 20px 0px;
}
.hero .hero-content .hero-text {
  color: #fff;
  line-height: 1.6;
  background-color: #201e5a;
  padding: 14px 20px;
  border-radius: 0px 20px 0px 20px;
}

@media (min-width: 992px) {
  .hero .hero-content .hero-title {
    font-size: 40px;
    margin-bottom: 30px;
  }
  .hero .hero-content .hero-text {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .offset-lg {
    margin-left: 70px;
  }
}
@media (max-width: 992px) {
  .hero {
    background-position: initial;
  }
  .hero .hero-image img {
    width: 200px;
    margin-bottom: 20px;
  }
  .hero .hero-content {
    text-align: center;
  }
  .hero .hero-content .hero-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .hero .hero-content .hero-text {
    font-size: 16px;
    margin-bottom: 35px;
  }
}
.title-section {
  text-align: center;
  margin-bottom: 20px;
  font-size: 30px;
  color: #00224f;
}

.sub-title {
  font-size: 20px;
  color: #fff;
  background-color: #201e5a;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 5px;
}

.desc-section {
  color: #a6b0b4;
  font-size: 18px;
  text-align: center;
  margin-bottom: 25px;
}

.section {
  padding: 60px 0px;
}

.text-about p {
  color: #727d8c;
  line-height: 2.439;
  font-size: 14px;
  margin-bottom: 25px;
}

.widget__item-1 {
  border-radius: 25px;
  background-color: #ffffff;
  -webkit-box-shadow: 0px 2px 46px 0px rgba(100, 109, 123, 0.09);
          box-shadow: 0px 2px 46px 0px rgba(100, 109, 123, 0.09);
  display: block;
  text-align: center;
  margin-bottom: 25px;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  border-bottom: 2px solid transparent;
}
.widget__item-1 .widget__item-image {
  border-radius: 50%;
  height: 94px;
  width: 94px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0px auto 15px;
  background-color: #e0d7ff;
}
.widget__item-1 .widget__item-image img {
  max-height: 60px;
  max-width: 60px;
}
.widget__item-1 .widget__item-title {
  font-size: 22px;
  color: #000000;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-transition: color 0.2s ease-in-out;
  -o-transition: color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out;
}
.widget__item-1 .widget__item-desc {
  font-size: 14px;
  color: #727d8c;
  line-height: 2;

}
.widget__item-1:hover {
  -webkit-box-shadow: 0px 2px 35px 0px #e0d7ff;
          box-shadow: 0px 2px 35px 0px #e0d7ff;
}
.widget__item-1:hover .widget__item-title {
  color: #7656e5;
}
@media (max-width: 991px) {
  .widget__item-1 {
    padding: 30px 29px;
  }
}
@media (min-width: 992px) {
  .widget__item-1 {
    padding: 50px 29px;
  }
}

.circle {
  position: absolute;
  z-index: 0;
}

.circle_1 {
  top: 60px;
  left: 41%;
}

.circle_2 {
  top: 40px;
  left: 35.5%;
}

.circle_3 {
  right: 10px;
  top: 90px;
  opacity: 0.2;
  z-index: 0;
}

.circle_4 {
  right: 82%;
  top: 42%;
  opacity: 0.2;
  z-index: 0;
}

.circle_5 {
  right: 13%;
  bottom: 10px;
  opacity: 0.2;
  z-index: 0;
}

.circle_6 {
  left: 13%;
  bottom: 10px;
  opacity: 0.2;
  z-index: 0;
}

.animation-spin {
  -webkit-animation: spin 18s linear infinite;
  animation: spin 18s linear infinite;
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.animation-delay {
  -webkit-animation: spin 22s linear infinite;
  animation: spin 22s linear infinite;
}

.section-about .image-about .img {
  position: relative;
  z-index: 1;
}

.section-vidoe {
  text-align: center;
  position: relative;
  background-color: #000;
  background: url(../images/bg-video.png) no-repeat center;
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px) {
  .section-vidoe {
    padding: 121px 0px 105px;
  }

  .content-video {
    padding: 214px 0px;
  }
}
@media (max-width: 991px) {
  .section-vidoe {
    padding: 75px 0px 59px;
  }

  .content-video {
    padding: 80px 0px;
  }
}
.content-video {
  border: 4px solid #fff;
}

.btn-video-play {
  text-align: center;
  cursor: pointer;
  display: inline-block;
  margin: 0px auto;
  position: relative;
}
.btn-video-play .btn-video-icon {
  border: 8px solid #7656e5;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: #7656e5;
  font-size: 34px;
  margin: 0px auto;
  position: relative;
  z-index: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.btn-video-play .btn-video-text {
  font-size: 24px;
  color: #ffffff;
  margin-top: 30px;
}
.btn-video-play:hover .btn-video-icon {
  background-color: #7656e5;
  color: #fff;
}

.ripple::before {
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0;
  bottom: 0;
  content: "";
  height: 100%;
  width: 100%;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  -webkit-animation-name: ripple;
  animation-name: ripple;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
  animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
  z-index: -1;
}

.ripple::after {
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0;
  bottom: 0;
  content: "";
  height: 100%;
  width: 100%;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  -webkit-animation-name: ripple;
  animation-name: ripple;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
  animation-timing-function: cubic-bezier(0.65, 0, 0.34, 1);
  z-index: -1;
}


.btn-video-play::before {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0;
    content: "";
    height: 100%;
    border: 8px solid #201e5a;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    z-index: 2;
}

@-webkit-keyframes ripple {
  from {
    opacity: 1;
    -webkit-transform: scale3d(1.19, 1.19, 1.45);
            transform: scale3d(1.19, 1.19, 1.45);
  }
  to {
    opacity: 0;
    -webkit-transform: scale3d(1.95, 1.95, 1.19);
            transform: scale3d(1.95, 1.95, 1.19);
  }
}

@keyframes ripple {
  from {
    opacity: 1;
    -webkit-transform: scale3d(1.19, 1.19, 1.45);
            transform: scale3d(1.19, 1.19, 1.45);
  }
  to {
    opacity: 0;
    -webkit-transform: scale3d(1.95, 1.95, 1.19);
            transform: scale3d(1.95, 1.95, 1.19);
  }
}
.image-about .img {
  border-radius: 30px;
  -webkit-box-shadow: 0px 2px 49px 0px #0000001a;
          box-shadow: 0px 2px 49px 0px #0000001a;
}

.list-service > .row:nth-child(even) {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
}
@media (min-width: 992px) {
  .list-service > .row:nth-child(even) .content-about {
    padding-left: 20px;
  }
}
@media (min-width: 992px) {
  .list-service > .row:nth-child(odd) .content-about {
    padding-right: 20px;
  }
}
@media (max-width: 991px) {
  .list-service .content-about {
    padding-bottom: 20px;
  }
}

@media (max-width: 991px) {
  .list-service > .row:not(:last-of-type) {
    margin-bottom: 30px;
  }
}
@media (min-width: 992px) {
  .list-service > .row:not(:last-of-type) {
    margin-bottom: 70px;
  }
}
.footer-bottom {
  border-top: 2px solid #242424;
  padding: 22px 0px;
}
.footer-bottom p {
  color: #fff;
  font-size: 14px;
}

.main-footer {
  background: url(../images/bg-footer.png);
  background-size: cover;
  background-repeat: no-repeat;
}
.footer-top {
  padding: 40px 0px 0px;
  position: relative;
}
.footer-top .title-footer {
  position: relative;
  display: inline-block;
  font-size: 22px;
  color: #fff;
}
.footer-top .link-footer a {
  color: #fff;
  margin-bottom: 14px;
  display: inline-block;
  position: relative;
  -webkit-transition: all 500ms, color 200ms;
  -o-transition: all 500ms, color 200ms;
  transition: all 500ms, color 200ms;
}
.footer-top .link-footer a:hover {
  color: #7656e5;
}
.footer-top .desc-website {
  font-size: 14px;
  color: #fff;
  line-height: 1.714;
}
@media (min-width: 992px) {
  .footer-top .title-footer {
    font-size: 22px;
    margin-bottom: 25px;
  }
  .footer-top .link-footer a {
    font-size: 16px;
  }
}
@media (max-width: 991px) {
  .footer-top .title-footer {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .footer-top .link-footer a {
    font-size: 14px;
  }
}

.list-contact .item-contact {
  color: #454545;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all 500ms, color 200ms;
  -o-transition: all 500ms, color 200ms;
  transition: all 500ms, color 200ms;
  margin-bottom: 5px;
}
.list-contact .item-contact .item-contact-icon {
  font-size: 15px;
  width: 30px;
  color: #fff;
}
.list-contact .item-contact .item-contact-text {
  color: #fff;
  font-size: 16px;
}

.social-media {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.social-media li {
  margin: 0px 8px;
}

.social-media li a {
  color: #fff;
  font-size: 24px;
  -webkit-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}
.social-media li a.fa:hover {
  color: #4064ad;
}
.social-media li a.tw:hover {
  color: #1da1f2;
}
.social-media li a.wh:hover {
  color: #4ec45b;
}
.social-media li a.in:hover {
  color: #9038bb;
}

.font-arial {
  font-family: arial;
}

.title-footer-2 {
  font-size: 20px;
  color: #0c0c0c;
  font-weight: bold;
  margin-bottom: 20px;
}
.link-footer.menu li {
    display: inline-block;
    margin: 50px 10px;
}
ul.link-footer.menu {
    text-align: center;
}
@media (max-width: 576px) {
  .portlet .portlet__body {
    padding: 20px;
  }
  .link-footer.menu li {
    margin: 10px 10px !important;
}
.logo.mb-4 {
    text-align: center;
}
.new-fot{
text-align: center;
}
ul.social-media.justify-content-lg-end li {
    display: inline-block;
    margin: 20px 10px;
}
ul.social-media.justify-content-lg-end {
    margin: auto;
    text-align: center;
    float: unset;
    width: 100%;
    display: inline-block;
}
}
.page-content.py-5 {
    min-height: 550px;
}

/* --------------------------------------------------
   Centralized header/nav overrides
   Keep this block identical in both main.css files
   to avoid style conflicts with header-auth/app blade styles
   -------------------------------------------------- */
:root {
  --nav-bg: #ffffff;
  --nav-text: #111827;
  --nav-hover-bg: #111827; /* dark hover bg for light mode */
  --nav-hover-text: #ffffff; /* white text on hover in light mode */
  --header-height: 80px; /* increased for better visual presence */
  --nav-height: 64px;    /* increased nav height for readability */
}
.dark-mode, body.dark, body.dark-mode {
  --nav-bg: #0b0f18;
  --nav-text: #f1f1f1;
}

/* header and nav must be solid and consistent */
.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--header-height) !important;
  background: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
  z-index: 1500 !important;
  backdrop-filter: none !important;
}

.main-navaigation {
  position: fixed !important;
  top: var(--header-height) !important;
  left: 0 !important;
  width: 100% !important;
  height: var(--nav-height) !important;
  background: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  border-top: 1px solid rgba(0,0,0,0.06) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  z-index: 1000 !important;
  backdrop-filter: none !important;
}

.main-header.scrolled,
.main-navaigation.scrolled {
  background: var(--nav-bg) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

.menu-mobile {
  position: fixed !important;
  top: calc(var(--header-height) + var(--nav-height)) !important;
  left: 0 !important;
  right: 0 !important;
  height: calc(100vh - (var(--header-height) + var(--nav-height))) !important;
  background: var(--nav-bg) !important;
  color: var(--nav-text) !important;
  backdrop-filter: none !important;
  z-index: 2000 !important;
}

/* Targeted overrides for light-mode mobile menu and hamburger */
body:not(.dark) .menu-mobile {
  background: #ffffff !important; /* white mobile menu background in light mode */
  color: #111827 !important; /* dark menu text */
}

body:not(.dark) .menu-mobile a {
  color: #111827 !important; /* ensure links are dark in light mode */
  border-bottom: 1px solid #e6e6e6 !important;
}

/* Ensure hamburger lines (toggle) are visible in light mode */
#toggle span, #toggle span:before, #toggle span:after {
  background-color: #111827 !important;
}

/* Tidy header/nav heights for professional look */
.main-header { height: var(--header-height) !important; }
.main-navaigation { height: var(--nav-height) !important; }

/* Desktop nav hover uses darker accent but does not hide text */
body:not(.dark) .main-navaigation .menu-container a:hover {
  color: #0b1220 !important;
  background: transparent !important;
}
/* Light mode: on hover make the nav item dark background with white text for contrast */
body:not(.dark) .main-navaigation .menu-container a:hover,
body:not(.dark) .main-navaigation .menu-container .menu_link:hover,
body:not(.dark) .main-navaigation .menu-container .menu_link:hover .menu_link-text {
  color: var(--nav-hover-text) !important;
  background: var(--nav-hover-bg) !important;
  border-radius: 8px !important;
}

/* Dark mode: subtle light overlay on hover so text remains visible but not harsh */
body.dark .main-navaigation .menu-container a:hover,
body.dark .main-navaigation .menu-container .menu_link:hover,
body.dark .main-navaigation .menu-container .menu_link:hover .menu_link-text {
  color: var(--nav-text) !important;
  background: rgba(255,255,255,0.06) !important;
  border-radius: 8px !important;
}

@media (min-width: 992px) {
  .main-navaigation .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .main-navaigation .menu-container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .main-navaigation .main-menu {
    justify-content: space-between !important;
    height: calc(var(--nav-height) - 8px) !important;
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* End central header/nav overrides */

/* --------------------------------------------------
   Styles moved from resources/views/front/layouts/app.blade.php
   - loader UI
   - layout height / sticky footer helpers
   - pagination centering
   - dark-mode variables and scoped rules (use body.dark)
   - theme toggle button
   -------------------------------------------------- */

/* page loader (was inline in app.blade.php) */
#load {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  display: block;
  opacity: 0.8;
  z-index: 100000;
  background-color: #fff;
  z-index: 199;
  text-align: center;
}

#loading-image {
  position: absolute;
  top: 50%;
  z-index: 200;
  right: 50%;
  z-index: 200;
}

/* ensure the document fills the viewport (moved from inline) */
html,
body {
  height: 100%;
  min-height: 100%;
}

/* apply layout-level flex so footer can stick to bottom (was in blade) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  background: #f8f9fa;
  padding: 20px 0;
}

/* pagination centering (moved from blade) */
.page-link {
  text-align: center;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Theme variables that were in the layout file. Keep scoped to root and prefer body.dark for dark rules. */
:root {
  --primary: #0077b6;
  --accent: #00b4d8;
  --dark-bg: #0b0f18;
  --light-bg: #f8faff;
  --light-text: #1a1a1a;
  --dark-text: #f1f1f1;
}

body {
  background: var(--light-bg);
  color: var(--light-text);
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* Dark mode: scope rules to body.dark only to avoid accidental global overrides
   (original blade used several selectors like .dark-mode which could be too broad). */
body.dark .main-header {
  background-color: #121212 !important; /* dark gray background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .main-header .logo img {
  filter: brightness(0) invert(1);
}

body.dark .main-header a,
body.dark .main-header h5,
body.dark .main-header h5 a {
  color: var(--dark-text) !important;
}

body.dark .main-wrapper {
  background-color: var(--dark-bg) !important;
}

body.dark .main-footer {
  background-color: #121212 !important;
  color: var(--dark-text) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .main-footer p {
  color: var(--dark-text) !important;
}

/* Apply dark text color to common elements when in dark mode */
/* Limit dark-mode global color to general text only; avoid overriding page-specific heading/link colors */
body.dark p,
body.dark span {
  color: var(--dark-text) !important;
}

/* Prevent accidental global white text in light mode by forcing nav/link colors
   to use nav variables; this ensures nav text is visible on white background. */
.main-header a,
.main-header h5,
.main-navaigation a,
.main-navaigation .menu_link,
.main-navaigation .menu_link .menu_link-text {
  color: var(--nav-text, #111827) !important;
}

/* Nav images in dark mode */
body.dark .main-header img,
body.dark .main-navaigation img {
  filter: brightness(0) invert(1);
}

/* Theme toggle button (moved from blade) */
.theme-toggle {
  position: fixed;
  left: 20px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 1.3rem;
}
.theme-toggle:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* End moved app.blade styles */

/* High-specificity light-mode nav color overrides
   Ensures nav bar text is dark on light backgrounds and not overridden by
   other broad 'color: #fff' rules. Scoped to light mode only. */
body:not(.dark) .main-header .menu-container a,
body:not(.dark) .main-header .menu-container .menu_link,
body:not(.dark) .main-header .menu-container .menu_link .menu_link-text,
body:not(.dark) .main-navaigation .menu-container a,
body:not(.dark) .main-navaigation .menu-container .menu_link,
body:not(.dark) .main-navaigation .menu-container .menu_link .menu_link-text,
body:not(.dark) .menu-mobile a {
  color: var(--nav-text, #111827) !important;
  background: transparent !important;
}

/*/////////////////////////////////

/* =============================================
   FINAL HEADER & NAV SIZE + ALIGNMENT FIX
   (use variables to avoid conflicting hard-coded values)
   ============================================= */

/* top bar (header) */
.main-header {
  height: var(--header-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--nav-bg) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* main navigation bar */
.main-navaigation {
  top: var(--header-height) !important; /* directly below the top bar */
  height: var(--nav-height) !important; /* nav height from variable */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--nav-bg) !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

/* link alignment fix */
.main-navaigation a,
.main-navaigation .menu_link {
  display: flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--nav-text) !important;
}

/* dark mode solid black background */
body.dark .main-header,
body.dark .main-navaigation {
  background-color: #000 !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* add subtle separation between top and main bar */
.main-navaigation::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.08);
  opacity: 0.8;
}
body.dark .main-navaigation::before {
  background: rgba(255,255,255,0.1);
}

/* ensure mobile menu still anchors below both */
.menu-mobile {
  top: calc(60px + 44px) !important;
  height: calc(100vh - 104px) !important;
}