/* OpenAcademie Digitia Colors - 2026 Modernisation */

/* Primary brand colors */
:root {
  --oa-blue: #0b1f33;
  --oa-blue-dark: #081524;
  --oa-green: #67a832;
  --oa-green-dark: #4f8226;
  --oa-teal: #157a7a;
  --oa-amber: #e7a72e;
  --oa-bg-light: #f2f6f7;
  --oa-border: #d8e1e5;
}

/* ===== GLOBAL BUTTONS FIX ===== */
/* All buttons: green background, white text */
.button,
a.button,
input.button,
button.button,
.course_button a,
.bp_course_take_course a,
a.course_button,
.button.bp_course_button,
.wplms_button,
.action_button,
.action_button a,
.vbp_button,
.vibebp_button,
.bp_action a,
.generic-button a,
.start_course a,
.continue_course a,
.course_button .button,
.submit_registration_form.button,
#buddypress .action a,
#buddypress button,
#buddypress a.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--oa-green) !important;
  background-color: var(--oa-green) !important;
  border-color: var(--oa-green) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* All buttons hover */
.button:hover,
a.button:hover,
.course_button a:hover,
.bp_course_take_course a:hover,
a.course_button:hover,
.action_button:hover,
.action_button a:hover,
.vbp_button:hover,
.vibebp_button:hover,
.bp_action a:hover,
.generic-button a:hover,
.start_course a:hover,
.continue_course a:hover,
#buddypress .action a:hover,
#buddypress button:hover,
#buddypress a.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--oa-green-dark) !important;
  background-color: var(--oa-green-dark) !important;
  border-color: var(--oa-green-dark) !important;
  color: #ffffff !important;
}

/* ===== COURSE CARDS ===== */
.courseentry .course_title a,
.course_title h4 a,
.course_title h3 a {
  color: var(--oa-blue) !important;
}
.courseentry .course_title a:hover {
  color: var(--oa-green) !important;
}

/* Course price badge */
.course_price,
span.course_price {
  background: var(--oa-blue) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
}
span.free {
  background: var(--oa-green) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

/* Progress bar */
.course_progressbar .bar,
.progress .bar,
.course-progress .bar {
  background: var(--oa-green) !important;
}

/* Section headers in course */
.course_curriculum .course_section h5,
.course_curriculum .section_title {
  color: var(--oa-blue) !important;
  border-left: 4px solid var(--oa-green) !important;
  padding-left: 12px !important;
}

/* Tabs */
.vbp_tab.active,
.vibebp_tab.active {
  border-color: var(--oa-blue) !important;
  color: var(--oa-blue) !important;
}

/* ===== HEADER ===== */
#header,
.site_header,
header.header,
.header_container,
nav.navbar,
.navbar-default {
  background-color: var(--oa-blue) !important;
  border-bottom: 3px solid var(--oa-green) !important;
}

/* Logo */
#logo a,
#alt_logo a {
  align-items: center;
  display: inline-flex;
}

#logo img,
#alt_logo img,
#header_logo,
#header_mobile_logo,
#header_alt_logo {
  filter: none !important;
  max-width: min(240px, 70vw);
  object-fit: contain;
  width: auto !important;
}

/* Nav links white */
#header nav a,
#header .nav a,
.site_header nav a,
.header_container nav a,
.navbar-nav > li > a,
.header_menu a,
.menu-item > a {
  color: #ffffff !important;
}
#header nav a:hover,
.navbar-nav > li > a:hover,
.header_menu a:hover {
  color: var(--oa-green) !important;
}

/* Header icons */
#header .vicon,
#header .header_icons a,
.header_icons .vicon,
.notifications_icon,
.header_search_icon,
.vibebp_header_icons a,
.vibebp_header_icons .vicon,
.header_user_name,
.vibebp_header_user a,
.header_right a {
  color: #ffffff !important;
}

/* Search bar */
#header input[type=text],
.course_search input {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: #ffffff !important;
}
#header input[type=text]::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

/* Dropdown menus */
.dropdown-menu,
.sub-menu,
ul.dropdown-menu {
  background: #ffffff !important;
}
.dropdown-menu a,
.sub-menu a {
  color: #333 !important;
}
.dropdown-menu a:hover,
.sub-menu a:hover {
  color: var(--oa-blue) !important;
  background: #f0f5ff !important;
}

/* Upper header and mobile menu */
#headertop,
.pagesidebar {
  background-color: #3e7a22 !important;
  color: #ffffff !important;
}
.pagesidebar a {
  color: #ffffff !important;
}
.pagesidebar .sidemenu > li > a {
  background-color: transparent !important;
  opacity: 1;
}
.pagesidebar .sidemenu > li > a:hover,
.pagesidebar .sidemenu > li > a:focus-visible {
  background-color: rgba(0,0,0,0.16) !important;
}
.navbar-toggle .icon-bar {
  background-color: #ffffff !important;
}

/* ===== LINKS ===== */
a { color: var(--oa-blue); }
a:hover { color: var(--oa-green); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--oa-amber) !important;
  outline-offset: 3px !important;
}

.oa-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Instructor badge */
.instructor_badge,
.course_instructor a {
  color: var(--oa-blue) !important;
}

/* Certificate & Badge colors */
.course_certificate a,
.badge_icon {
  color: var(--oa-green) !important;
}

/* ===== MOBILE ===== */
.pusher > .oa-home {
  width: 100%;
  left: 0;
  right: auto;
  margin: 0;
}

@media (max-width: 768px) {
  .oa-course-title h1.course_element_text {
    font-size: 32px !important;
    overflow-wrap: anywhere;
  }
  .oa-course-category .wplms_course_categories a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .single-course .vibe_editor_rich_text {
    overflow-wrap: anywhere;
  }
  ul.course_curriculum li.course_lesson .item_title {
    flex: 1 1 120px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .course_reviews .review_breakup {
    flex-direction: column;
    gap: 16px;
    margin: 0;
  }
  .course_reviews .review_breakup .rating_snapshot,
  .course_reviews .review_breakup ul.rating_breakup {
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
  }
  .course_reviews .review_breakup .rating_snapshot h2 {
    font-size: 64px;
  }
  .course_reviews .review_breakup ul.rating_breakup li strong > span {
    color: var(--oa-blue);
  }
  .course_reviews_wrapper ol.reviewlist.commentlist li .comment-body-inner,
  .course_reviews_wrapper ol.reviewlist .comment-meta {
    flex-wrap: wrap;
  }
  .course_reviews_wrapper ol.reviewlist .comment-body-content {
    flex-basis: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .courseentry {
    margin-bottom: 20px !important;
  }
  .course_title h4 a {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== COURSE READER / APP SIDEBAR FIX ===== */
/* Sidebar course title - white text on blue bg */
.course_sidebar .course_title,
.course_sidebar .course_title a,
.course_sidebar .course_title h3,
.course_sidebar .course_title h4,
.course_sidebar h3,
.course_sidebar h4,
.vibebp_course_sidebar .course_title,
.vibebp_course_sidebar .course_title a,
.vibebp_course_sidebar h3,
.vibebp_course_sidebar h4,
#course_sidebar .course_title a,
#course_sidebar h3,
#course_sidebar h4,
.single-course .course_sidebar h3,
.single-course .course_sidebar h4,
.single-course .course_sidebar a,
.vbp_course .course_title a,
.vbp_course h3,
.vbp_course h4,
.course_cover h3,
.course_cover h4,
.course_cover a,
.course_sidebar .course_cover a,
.course_sidebar .course_cover h3,
[class*='course'] .sidebar_title,
[class*='course'] .sidebar_title a {
  color: #ffffff !important;
}

/* Sidebar progress bar */
.course_sidebar .course_progressbar,
.course_sidebar .progress,
.course_sidebar .course-progress,
.vibebp_course_sidebar .progress,
#course_sidebar .progress,
.vbp_course .progress,
.course_sidebar .course_progressbar .bar,
.course_sidebar .progress .bar,
.vibebp_course_sidebar .progress .bar,
#course_sidebar .progress .bar,
.vbp_course .progress .bar {
  background-color: var(--oa-green) !important;
  visibility: visible !important;
}

/* Progress bar track */
.course_sidebar .course_progressbar,
.course_sidebar .progress,
.vibebp_course_sidebar .progress,
#course_sidebar .progress,
.vbp_course .progress {
  background-color: rgba(255,255,255,0.2) !important;
}

/* Progress text */
.course_sidebar .course_progress_text,
.course_sidebar .progress_text,
.course_sidebar .progress span,
.course_sidebar span.progress_number,
.vibebp_course_sidebar .progress_text,
.vibebp_course_sidebar span,
#course_sidebar .progress_text,
.vbp_course .progress_text {
  color: #ffffff !important;
}

/* Sidebar section titles */
.course_sidebar .section_title,
.course_sidebar .course_section h5,
.course_sidebar .course_section h5 a,
.vibebp_course_sidebar .section_title,
#course_sidebar .section_title,
.vbp_course .section_title {
  color: #ffffff !important;
}

/* Sidebar unit/chapter list */
.course_sidebar .course_unit a,
.course_sidebar .course_curriculum a,
.course_sidebar li a,
.vibebp_course_sidebar li a,
#course_sidebar li a,
.vbp_course li a {
  color: rgba(255,255,255,0.85) !important;
}
.course_sidebar .course_unit a:hover,
.course_sidebar li a:hover,
.vibebp_course_sidebar li a:hover,
#course_sidebar li a:hover {
  color: #ffffff !important;
}

/* Active unit highlight */
.course_sidebar .active a,
.course_sidebar li.active a,
.course_sidebar .current a,
.vibebp_course_sidebar .active a,
#course_sidebar .active a {
  color: #ffffff !important;
  border-left: 3px solid var(--oa-green) !important;
}

/* Sidebar meta text (chapters, duration) */
.course_sidebar span,
.course_sidebar .meta,
.course_sidebar small,
#course_sidebar span,
.vbp_course span {
  color: rgba(255,255,255,0.7) !important;
}

/* Evaluation section in sidebar */
.course_sidebar .evaluation,
.course_sidebar .evaluation h5,
.course_sidebar .evaluation span {
  color: #ffffff !important;
}
