/* Dark theme — toggled via html[data-theme="dark"] */

html[data-theme="dark"] {
  color-scheme: dark;
  --ed-body-color: #c8c8c8;
  --ed-body-color-2: #d4d4d4;
  --ed-tt-color: #f2f2f2;
  --ed-tt-color-2: #ffffff;
  --ed-black-color: #ffffff;
}

html[data-theme="dark"] body.home-6 {
  background-color: #121212;
  color: var(--ed-body-color);
}

/* Header */
html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-header-wrap {
  background-color: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action:before {
  background-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action .top-act-item .item-text a,
html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action .top-act-item .item-text span,
html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action .top-act-item .item-text .hours-time {
  color: #e8e8e8;
}

html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action .top-act-item .item-icon {
  background-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action .top-act-item .item-icon i,
html[data-theme="dark"] .ed-header-section.header_style_six .ed-top-action .top-act-item .item-icon svg path {
  fill: #e8e8e8;
  color: #e8e8e8;
}

html[data-theme="dark"] .ed-header-section.header_style_six .header-navigation-wrap {
  background-color: #252525;
}

html[data-theme="dark"] .ed-header-section.header_style_six .main-navigation .dropdown-menu {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .ed-header-section.header_style_six .main-navigation .dropdown-menu a {
  color: #e0e0e0;
}

html[data-theme="dark"] .ed-header-section.header_style_six .main-navigation .dropdown-menu a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .ed-header-section.header_style_six .header-navigation-wrap .cta-btn a:hover {
  color: #050505;
}

html[data-theme="dark"] .agt-mobile-menu-btn {
  color: #e8e8e8;
  background: transparent;
}

/* Global typography on dark surfaces */
html[data-theme="dark"] .ed-sec-title-6 p,
html[data-theme="dark"] .ed-sec-title-2 p,
html[data-theme="dark"] .ed-ab6-ft-item p,
html[data-theme="dark"] .ed-tst6-text-wrap .ed-ab5-cl-text p,
html[data-theme="dark"] .ed-tst6-item .item-text p,
html[data-theme="dark"] .ed-tst6-item .item-img-degi .item-degi h3,
html[data-theme="dark"] .ed-tst6-item .item-img-degi .item-degi span,
html[data-theme="dark"] .ed-prg6-item .item-text p,
html[data-theme="dark"] .ed-prg6-item .item-text .course_title,
html[data-theme="dark"] .ed-course-bottom p {
  color: var(--ed-body-color);
}

html[data-theme="dark"] .ed-sec-title-2 .sec_title,
html[data-theme="dark"] .ed-sec-title-6 .sec_title,
html[data-theme="dark"] .ed-ab6-ft-item h3,
html[data-theme="dark"] .ed-tst6-text-wrap .ed-ab5-cl-text h3 {
  color: var(--ed-tt-color-2);
}

html[data-theme="dark"] .ed-ab6-ft-wrap {
  border-top-color: rgba(255, 255, 255, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .ed-ab6-ft-wrap:before {
  background-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .ed-ab6-ft-item .item-icon {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Programs section */
html[data-theme="dark"] .ed-prg6-wrap {
  background-color: #1a1614;
}

html[data-theme="dark"] .ed-prg6-item {
  background-color: #252220;
}

html[data-theme="dark"] .ed-prg6-item .item-text-img {
  background-color: #1f1c1a;
}

html[data-theme="dark"] .ed-prg-filter-btn button {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .ed-prg6-item .item-text .crs-meta a {
  background-color: #2f2b28;
  color: #e8e8e8;
}

html[data-theme="dark"] .ed-prg6-item:hover .item-text .crs-meta a {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Testimonials */
html[data-theme="dark"] .ed-tst6-nav .ed-tst6-next,
html[data-theme="dark"] .ed-tst6-nav .ed-tst6-prev {
  color: #e8e8e8;
  background-color: #2a2622;
}

html[data-theme="dark"] .ed-tst6-pagi .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.28);
}

/* Buttons — keep yellow hover readable */
html[data-theme="dark"] .ed-btn-6 a:hover {
  color: #050505;
}

html[data-theme="dark"] .ed-btn-6 a:hover svg path {
  fill: #050505;
}

/* Contact — keep brand maroon, ensure form contrast */
html[data-theme="dark"] .ed-cont6-sec {
  background-color: #6b0618;
}

html[data-theme="dark"] .ed-cont6-sec:before {
  background-color: #1e1e1e;
}

html[data-theme="dark"] .ed-cont6-form .info-input label {
  background-color: #6b0618;
}

html[data-theme="dark"] .ed-cont6-form .info-input input,
html[data-theme="dark"] .ed-cont6-form .info-input textarea {
  color: #fff;
}

html[data-theme="dark"] .ed-cont6-form button:hover {
  color: #050505;
}

/* Team cards */
html[data-theme="dark"] .ed-team-item-2 {
  border-left-color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .ed-team-item-2 .qualification-card .qual-text,
html[data-theme="dark"] .ed-team-item-2 .social-link a {
  color: #050505;
}

html[data-theme="dark"] .ed-team-item-2:hover {
  border-left-color: var(--ed-prime-c9);
  box-shadow: -8px 0 0 0 var(--ed-prime-c9);
}

/* Sidebar / modal */
html[data-theme="dark"] .txa-offcanvas-box,
html[data-theme="dark"] .mobile_menu_wrap {
  background-color: #1a1a1a;
  color: #e8e8e8;
}

html[data-theme="dark"] .modal-content {
  background-color: #1e1e1e;
  color: #e8e8e8;
}

html[data-theme="dark"] .modal-content input,
html[data-theme="dark"] .modal-content label {
  color: #e8e8e8;
}

html[data-theme="dark"] #preloader {
  background-color: #121212;
}

/* Floating theme toggle — bottom left */
.ed-theme-overlay-btn {
  left: 20px;
  right: auto;
  bottom: 20px;
  width: 55px;
  height: 55px;
  z-index: 5;
  border: none;
  display: flex;
  cursor: pointer;
  position: fixed;
  border-radius: 100%;
  align-items: center;
  justify-content: center;
  background: var(--ed-prime-c9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ed-theme-overlay-btn i {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.ed-theme-overlay-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

html[data-theme="dark"] .ed-theme-overlay-btn {
  background: var(--ed-prime-c9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
