#coactive-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#filter-panel {
  width: 100%;
  background: #f7f7f7;
  padding: 25px;
  order: 1;
}

#filter-panel h2 {
    font-size: 1.5vw !important;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.filter-group h3 {
  font-size: 1.2vw !important;
  font-weight: 600;
  margin: 18px 0 8px 0;
}

#product-container {
  flex: 1;
  order: 2;
}

/* Desktop layout */
@media (min-width: 768px) {
  #coactive-layout {
    flex-direction: row;
  }
  
  #filter-panel {
    width: 250px;
    order: 0;
  }
  
  #product-container {
    order: 1;
  }
}

.filter-section {
  border-bottom: 1px solid #e2e8f0;
  padding: 24px;
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.filter-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  font-size: 14px;
  color: #4a5568;
}

.filter-option:last-child {
  margin-bottom: 0;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  margin-top: 6px;
  accent-color: #2b6cb0;
  cursor: pointer;
}

.filter-option label {
  cursor: pointer;
  flex: 1;
}

.filter-option label .parenthetical {
  font-size: 90%;
  color: #718096;
  font-weight: normal;
  font-style: italic;
  margin-left: 0;
      display: block;
    line-height: 1.6 !important;
    font-family: 'Merriweather', Georgia, "Times New Roman", serif;
}

/* Course Type and Course Bundle filter labels use Arimo font */
.filter-option label.fundamentals,
.filter-option label.coactive-foundations,
.filter-option label.ignite-the-practice,
.filter-option label.deepen-the-work,
.filter-option label.coach-training,
.filter-option label.certification,
.filter-option label.coach-training-bundle,
.filter-option label.full-certification-bundle {
    font-family: 'Arimo', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    font-size: 0.95vw;
}

.filter-option.sub-option {
  margin-left: 30px;
  font-size: 13px;
  color: #718096;
}

.filter-suboptions .filter-option {
  margin-left: 30px;
  font-size: 13px;
  color: #718096;
  margin-bottom: 4px;
}

.coach-training-description {
        font-size: .9vw;
    line-height: 1.7;
    text-align: left;
}

.course-row,
.product-row {
  background: #f7f7f7;
  padding: 25px;
    border-radius: 4px;
  margin-bottom: 1.5rem;
  margin-top: 20px;
  position: relative;
  overflow: visible;
}

.course-pill {
  background: #155450;
  color: white;
  padding: 0px 16px;
  font-family: 'Arimo', Helvetica, Arial, Lucida, sans-serif;
  font-size: 0.9vw;
  font-weight: 700;
  margin: 0;
  border-radius: 4px;
  z-index: 10;
  align-self: flex-start;
}

.course-pill.fundamentals {
  background: #155450;
}

.course-pill.coactive-foundations {
  background: #2d5a87;
}

.course-pill.ignite-the-practice {
  background: #8b5a3c;
}

.course-pill.deepen-the-work {
  background: #9f4f85;
}

.course-pill.coach-training {
  background: #d53f8c;
}

.course-pill.certification {
  background: #38a169;
}

.course-pill.coach-training-bundle,
.course-pill.full-certification-bundle {
  background: #23346B;
}

.course-content {
  padding: 20px 24px 24px;
}

.course-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.course-duration {
  font-size: 14px;
  color: #718096;
  margin-top: -8px;
}

.course-selection {
  margin: 20px 0;
}

.course-selection h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 16px;
}

.course-dropdown {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.course-dropdown:focus {
  outline: none;
  border-color: #2d5a87;
  box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.course-description {
  margin: 20px 0;
  line-height: 1.6;
      text-align: left;
    font-size: 0.9vw;
}

.course-description p {
  margin-bottom: 16px;
}

.course-description strong {
  font-weight: 600;
  color: #2d3748;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 24px;
  gap: 24px;
}

.course-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.speak-advisor {
  color: #d53f8c;
  text-decoration: none;
  font-weight: 500;
}

.speak-advisor:hover {
  text-decoration: underline;
}

.register-btn {
  background: #2d5a87;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.instructors {
  text-align: right;
}

.instructor-images {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.instructor-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.instructor-note {
  font-size: 12px;
  color: #718096;
  font-style: italic;
}

/* Mobile stacked layout for course cards */
@media (max-width: 767px) {
  .course-footer {
    flex-direction: column;
    gap: 16px;
  }
  
  .instructors {
    text-align: left;
    width: 100%;
  }
  
  .instructor-images {
    justify-content: flex-start;
  }
}


#coactive-registration-container {
    max-width:100% !important;
}

#sort-controls {
    margin-bottom: 20px;
}

#sort-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    color: #333 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sort-toggle:hover {
    opacity: 0.7;
}

.sort-icon {
    width: 16px;
    height: 16px;
}

/* Expandable Card Layout */
.urgency-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    top: -10px;
    left: 20px;
    right: 20px;
    gap: 20px;
}

.urgency-row .urgency {
    margin-top: 10px;
    font-family: 'Arimo', Helvetica, Arial, Lucida, sans-serif;
    font-size: 85%;
}


.card-content-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.card-left-section {
    flex-shrink: 0;
    width: 30px;
    margin-top:10px;
    padding-top:4px;
}

.expand-arrow {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.expand-arrow:hover {
    opacity: 0.7;
}

.card-middle-section {
    flex: 1;
    min-width: 0;
    margin-top:10px;
}

.card-right-section {
    flex: 0 0 400px;
    text-align: right;
}

/* Always visible content */
.middle-visible .course-dates {
    font-family: 'Arimo', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    font-size: 1.2vw;
    color: #2d3748;
    margin-bottom: 0px;
}

.middle-visible .course-duration {
    font-size: 14px;
    color: #718096;
}

.right-visible {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.right-visible .location-format-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
        font-size: 0.8vw;
    line-height: 1.6;
}

.right-visible .location-tz {
    font-weight: 500;
    color: #2d3748;
}

.right-visible .format {
    font-size: 14px;
    color: #718096;
}

.register-actions-visible {
    display: flex;
    align-items: center;
    gap: 16px;
}

.register-actions-visible a{
 font-size: 0.8vw;
}

/* Expandable content */
.middle-hidden, .right-hidden {
    margin-top: 16px;
}

.course-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-description p {
    margin-bottom: 12px;
}

.course-description strong {
    font-weight: 600;
    color: #2d3748;
}

.course-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.instructor-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instructor-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.instructor-info {
    flex: 1;
}

.instructor-info p {
    margin-bottom: 0;
    line-height: 1.4;
}

.instructor-info strong {
    font-weight: 600;
    color: #2d3748;
}

.instructor-info em {
    color: #718096;
    font-size: 14px;
}

.instructor-image {
    flex-shrink: 0;
}

.instructor-details p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.instructor-details strong {
    font-weight: 600;
    color: #2d3748;
}

.instructor-details em {
    color: #718096;
    font-size: 14px;
}

/* Mobile responsive layout for expandable cards */
@media (max-width: 767px) {
  .card-content-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .card-left-section {
    order: 1;
    align-self: flex-start;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }
  
  .card-right-section {
    order: 2;
    flex: none;
    width: 100%;
    text-align: left;
  }
  
  .card-middle-section {
    order: 3;
    width: 100%;

  }
  
  .course-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .instructor-images {
    justify-content: flex-start;
  }
  
  .right-visible {
    flex-direction: column;
    gap: 12px;
  }
  
  .register-actions-visible {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* New card layout styles */
.course-info-left {
    display: flex;
    align-items: flex-start;
}

.location-format-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-format-info .location-tz {
    font-weight: 500;
    color: #2d3748;
}

.location-format-info .format {
    font-size: 14px;
    color: #718096;
}

.course-actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.instructor-block-dark {
    background: #e2e8f0 !important;
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
        font-size: 0.9vw;
    text-align: left;
}

.session-details {
    margin-bottom: 20px;
}

.session-group {
    margin-bottom: 16px;
}

.session-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.session-detail {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Expand/collapse states and transitions */
.middle-hidden, .right-hidden {
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Ensure hidden content is properly hidden */
.middle-hidden[style*="display: none"],
.right-hidden[style*="display: none"] {
    opacity: 0;
    animation: none;
}
