/* EducationList.css — Online Education list page.
   Split out of LMSPortalEducationAndEventsstylesEducationAndEvents.css;
   every rule below is carried over from it unchanged.

   The shared card system (tokens, .education-card, the image container, the
   badge pill, the body, the date row, the footer buttons, the spinner and
   their responsive rules) is NOT here — it is in
   ACECAOPagesPortalSharedstylesacec-listing-base.css, which this page
   loads first. What stays here is what only this page draws: the sub-tab
   strip, the search box, the topic filter dropdown, the MY EDUCATION button,
   the NEW badge, the limited-availability badge, the series indicator, the
   PDH row, the topics row and the pricing block.

   Two dead rules travelled with it rather than being deleted in passing:
   .filter-btn and .committee-meta-container .committee-meta match nothing on
   this page and matched nothing on the old one either. Removing them is its
   own piece of work, not this one. */

/* Sub Navigation Links (Classes / Series / Courses) */
.sub-nav-link {
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  color: var(--acec-nav-link);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sub-nav-link:hover {
  color: var(--acec-navy);
}

.sub-nav-link.active {
  color: var(--acec-navy);
  border-bottom: 2px solid var(--acec-gold);
  font-weight: 600;
  background: none;
}

.sub-nav-link i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-container .form-control {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.2rem !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid #dfdfdf !important;
  font-size: 1rem;
  color: var(--acec-navy);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 44px;
  box-shadow: rgba(255, 255, 255, 0.2) 1px 1px 0px 0px inset, rgba(0, 0, 0, 0.05) 1px 1px 2px 1px !important;
  font-family: var(--font-main);
}

.search-container .form-control:focus {
  border-color: var(--acec-gold);
  box-shadow: 0 0 0 0.2rem rgba(247, 201, 93, 0.25);
  outline: none;
}

.search-container .form-control::placeholder {
  color: var(--acec-placeholder);
}

.search-container .bi-search {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acec-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.search-container .clear-search {
  position: absolute !important;
  right: 0.65rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--acec-muted);
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 !important;
}

.search-container .clear-search:hover {
  color: var(--acec-navy);
}

/* Filter Buttons (Dropdown Toggle and Reset) */
#topicFilterDropdown,
#resetFiltersBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0) !important;
  border: 1.5px solid var(--acec-gold) !important;
  color: var(--acec-navy) !important;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-main);
}

#topicFilterDropdown:hover,
#topicFilterDropdown:focus,
#topicFilterDropdown.active,
#resetFiltersBtn:hover,
#resetFiltersBtn:focus,
#resetFiltersBtn.active {
  border: 1.5px solid var(--acec-gold) !important;
  background-color: var(--acec-gold) !important;
  color: var(--acec-navy) !important;
}

/* My Learnings Button */
.btn-my-learnings {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background-color: rgba(0, 0, 0, 0) !important;
  border: 1.5px solid var(--acec-gold) !important;
  border-left-width: 4px !important;
  color: var(--acec-navy) !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  font-family: var(--font-main);
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-my-learnings:hover,
.btn-my-learnings:focus {
  border: 1.5px solid var(--acec-gold) !important;
  border-left-width: 4px !important;
  background-color: var(--acec-gold) !important;
  color: var(--acec-navy) !important;
}

.btn-lucide-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke-width: 2px;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 10rem;
  margin: 0.125rem 0 0;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.25rem;
}

.dropdown-menu.show {
  display: block !important;
}

#topicFilterDropdown + .dropdown-menu.show {
  display: block !important;
  max-height: 300px !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* Dropdown Items */
.dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
  background: white !important;
  color: var(--acec-navy) !important;
  border: none !important;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--acec-gold) !important;
  color: var(--acec-navy) !important;
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus {
  background-color: var(--acec-gold-dark) !important;
  color: var(--acec-navy) !important;
}

.dropdown-menu .form-check-input {
  margin-right: 0.5rem !important;
  margin-top: 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--acec-gold);
  background-color: white;
  cursor: pointer;
}

.dropdown-menu .form-check-input:checked {
  background-color: var(--acec-gold);
  border-color: var(--acec-gold);
}

.dropdown-menu .dropdown-item label {
  cursor: pointer;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu li {
  list-style: none;
}

/* Clear Selection Section */
.dropdown-clear-section {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 10 !important;
  padding: 0 !important;
  background: #f9f9f9 !important;
  border-top: 1px solid #dee2e6 !important;
  list-style: none !important;
  margin: 0 !important;
}

.dropdown-clear-section .dropdown-divider {
  margin: 0 !important;
  border-top: 1px solid #dee2e6 !important;
}

.dropdown-clear-section .clear-selection {
  display: block !important;
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  text-align: left !important;
  color: var(--acec-gold-dark) !important;
  font-weight: 600 !important;
  background: #f9f9f9 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  text-decoration: none;
}

.dropdown-clear-section .clear-selection:hover {
  background-color: var(--acec-gold) !important;
  color: var(--acec-navy) !important;
}

/* Scrollbar for Dropdown */
#topicFilterDropdown + .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

#topicFilterDropdown + .dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#topicFilterDropdown + .dropdown-menu::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#topicFilterDropdown + .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.sub-tab-pane-content {
  display: block;
}

/* Badges */
.badge-new {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 10;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 40px 40px 0 0;
  border-color: var(--acec-gold-variant-01) transparent transparent transparent;
  border-top-left-radius: var(--radius-md);
  overflow: visible;
}

.badge-new::after {
  content: 'NEW';
  position: absolute;
  top: -34px;
  left: -15px;
  width: 60px;
  text-align: center;
  transform: rotate(-45deg);
  color: var(--acec-navy);
  font-weight: bold;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-main);
}

/* Limited Availability Badge */
.limited-availability-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.limited-availability-text {
  background-color: var(--acec-gold-dark);
  color: white;
  text-align: center;
  padding: var(--sp-xs) var(--sp-md);
  font-size: var(--fs-100);
  font-weight: var(--fw-normal);
  border: var(--border-width-thin) solid var(--acec-gold-dark);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-main);
}

/* Series Indicator */
/* Series Indicator Icon */
.series-indicator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  background-color: var(--acec-light-gray);
  border: var(--border-width-thin) solid var(--acec-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.series-indicator-icon:hover {
  background-color: #e3e3e3;
  border-color: var(--acec-gold-dark);
}

.series-indicator-icon i {
  color: var(--acec-gold-dark);
  font-size: 0.9rem;
}


.pdh-credits {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: var(--fw-normal);
  cursor: pointer;
  color: var(--acec-gray);
  font-family: var(--font-main);
}

.pdh-icon {
  color: var(--acec-gold-dark);
  font-size: 1rem;
}

.pdh-only-row {
  display: flex;
  justify-content: flex-end;
}

/* Topics Section */
.topics-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-family: var(--font-main);
  margin-bottom: 0.3rem;
}

.topics-icon {
  color: var(--acec-gold-dark);
  font-size: 1rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.topics-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.topic-badge {
  display: inline-block;
  padding: 0.1rem var(--sp-sm);
  font-size: 0.7rem;
  background-color: var(--acec-light-gray);
  color: var(--acec-gray);
  border: var(--border-width-thin) solid var(--acec-border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-weight: var(--fw-normal);
}

/* Pricing Section */
.pricing-section {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--acec-border);
  font-size: 0.9rem;
  color: var(--acec-gray);
  font-family: var(--font-main);
}

.pricing-icon {
  color: var(--acec-gold-dark);
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  width: 1rem;
}

/* Spacer that reserves the same width as .pricing-icon so labels align */
.pricing-icon-spacer {
  display: inline-block;
  width: 1rem;
  flex-shrink: 0;
}

.pricing-details {
  display: flex;
  flex-direction: column;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.price-row .price-label {
  flex: 1;
}

.price-row .price-value {
  flex-shrink: 0;
}

.price-label {
  color: var(--acec-gray);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: var(--fw-normal);
  letter-spacing: normal;
}

.price-value {
  font-weight: var(--fw-semibold);
  color: var(--acec-navy);
  font-family: var(--font-main);
  font-size: 0.9rem;
  letter-spacing: normal;
}

.price-value.text-muted {
  color: var(--acec-muted);
  font-weight: var(--fw-normal);
}

@media (max-width: 991.98px) {
  .sub-nav-link:not(.active) .tab-text {
    display: none !important;
  }
  
  /* Sub tabs - Show icon + text on active tab */
  .sub-nav-link.active .tab-text {
    display: inline !important;
    margin-left: 0.35rem;
    font-size: 1.05rem;
  }
  
  /* Sub tabs - Ensure icons are always visible - larger size for better visibility */
  .sub-nav-link i {
    margin-right: 0;
    font-size: 1.35rem;
    display: inline-block;
  }
  
  /* Sub tabs - Active tab icon spacing */
  .sub-nav-link.active i {
    margin-right: 0.35rem;
    font-size: 1.35rem;
  }
  
  /* Sub tabs - Adjust padding and layout for icon-only tabs */
  .sub-nav-link:not(.active) {
    padding: 10px 10px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Sub tabs - Active tab maintains normal padding with flex layout */
  .sub-nav-link.active {
    padding: 10px 14px;
    display: flex;
    align-items: center;
  }
  
  /* Sub tabs - Override base gap for mobile */
  .sub-nav-link {
    gap: 0;
  }
  
  /* Add margin between tabs */
  .d-flex.align-items-center.gap-3 {
    gap: 0.5rem !important;
  }
  
  /* Education description text - responsive font size */
  .btn-my-learnings {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
  }
  
  /* Filter buttons - reduced padding for mobile */
  #topicFilterDropdown,
  #resetFiltersBtn {
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
  }
  
  /* Education card title - responsive font size */
  /* Meta sections (PDH) - responsive font size. Split out of the shared
     .date-text/.date-icon groups so it still lands after the .pdh-credits
     and .pdh-icon base rules above. */
  .pdh-credits {
    font-size: 0.85rem;
  }

  .pdh-icon {
    font-size: 0.9rem;
  }
  /* Pricing section - responsive font size */
  .pricing-section,
  .price-label,
  .price-value {
    font-size: 0.85rem;
  }
  
  .pricing-icon {
    font-size: 0.9rem;
    width: 0.9rem;
  }
  
  .pricing-icon-spacer {
    width: 0.9rem;
  }
}

@media (max-width: 768px) {
  .sub-nav-link.active .tab-text {
    font-size: 0.95rem;
    margin-left: 0.3rem;
  }
  
  .sub-nav-link i {
    font-size: 1.2rem;
  }
  
  .sub-nav-link.active i {
    font-size: 1.2rem;
    margin-right: 0.3rem;
  }
  
  /* Sub tabs - Adjust padding on smaller screens */
  .sub-nav-link:not(.active) {
    padding: 10px 8px;
    min-width: 40px;
  }
  
  .sub-nav-link.active {
    padding: 10px 12px;
  }
  
  /* Add margin between tabs on smaller screens */
  .d-flex.align-items-center.gap-3 {
    gap: 0.4rem !important;
  }

  .search-container .form-control {
    padding: 0.5rem 2.5rem 0.5rem 2.2rem !important;
    font-size: 0.85rem;
    height: auto;
  }
  
  /* Education description text - smaller font size */
  .btn-my-learnings {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.6rem;
  }
  
  /* Filter buttons - further reduced padding */
  #topicFilterDropdown,
  #resetFiltersBtn {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
  }
  /* Meta sections (PDH) - responsive font size. Split out of the shared
     .date-text/.date-icon groups so it still lands after the .pdh-credits
     and .pdh-icon base rules above. */
  .pdh-credits {
    font-size: 0.8rem;
  }

  .pdh-icon {
    font-size: 0.85rem;
  }
  /* Pricing section - smaller font size */
  .pricing-section,
  .price-label,
  .price-value {
    font-size: 0.8rem;
  }
  
  .pricing-icon {
    font-size: 0.85rem;
    width: 0.85rem;
  }
  
  .pricing-icon-spacer {
    width: 0.85rem;
  }

  .filter-btn {
    font-size: var(--fs-50);
    padding: var(--sp-xs) var(--sp-sm);
  }

}

@media only screen and (max-width: 480px) {
  .committee-meta-container .committee-meta {
    font-size: 0.85rem;
  }
  
  /* Main tabs - Tabs for very small phones */
  .sub-nav-link.active .tab-text {
    font-size: 0.9rem;
    margin-left: 0.3rem;
  }
  
  .sub-nav-link i {
    font-size: 1.15rem;
  }
  
  .sub-nav-link.active i {
    font-size: 1.15rem;
    margin-right: 0.3rem;
  }
  
  /* Sub tabs - Padding for very small screens */
  .sub-nav-link:not(.active) {
    padding: 10px 6px;
    min-width: 38px;
  }
  
  .sub-nav-link.active {
    padding: 10px 10px;
  }
  
  /* Add margin between tabs on very small screens */
  .d-flex.align-items-center.gap-3 {
    gap: 0.3rem !important;
  }
  
  /* Education description text - smallest font size */
  .btn-my-learnings {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.55rem;
  }
  
  /* Filter buttons - minimal padding */
  #topicFilterDropdown,
  #resetFiltersBtn {
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
  }
  
  /* Education card title - smallest font size */
  /* Meta sections (PDH) - responsive font size. Split out of the shared
     .date-text/.date-icon groups so it still lands after the .pdh-credits
     and .pdh-icon base rules above. */
  .pdh-credits {
    font-size: 0.75rem;
  }

  .pdh-icon {
    font-size: 0.8rem;
  }
  /* Pricing section - smallest font size */
  .pricing-section,
  .price-label,
  .price-value {
    font-size: 0.75rem;
  }
  
  .pricing-icon {
    font-size: 0.8rem;
    width: 0.8rem;
  }
  
  .pricing-icon-spacer {
    width: 0.8rem;
  }
}
