.bg-dark-program {
  background-color: #c70e25;
}

.program-list-links {
  padding: 10px 20px;
  cursor: pointer;
}

.program-list-links a {
  color: white;
  font-size: 16px;
}

.program-list-links a:hover {
  color: white;
}

.program-list-links.program-active {
  padding: 10px 20px;
  background-color: #ffd3d3;
  font-weight: 600;
}

.program-list-links.program-active a {
  color: #c70e25;
  font-size: 16px;
}

.program-list {
  max-width: 380px;
  overflow-x: hidden;
}

.program-heading {
  font-size: 46px;
  color: black !important;
  font-weight: 500;
}

.program-mobile-menu-container {
  position: sticky;
  top: 58px;
  margin-bottom: 20px;
  display: none;
  z-index: 1;
}

#program-menuToggle {
  border: none;
  background-color: #c62828;
  color: white;
  font-size: 17px;
  cursor: pointer;
  z-index: 1050;
  padding: 0 10px;
}

#program-customSidebar {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1040;
  display: none;
}

.heading-style {
  border-bottom: 4px solid #bf282f;
}

@media (min-width: 901px) and (max-width: 991px) {
  .program-mobile-menu-container {
    top: 80px;
  }
}

@media (max-width: 991px) {
  .program-list {
    display: none;
  }

  .program-mobile-menu-container {
    display: block;
  }

  .program-sub-container {
    padding-top: 0;
  }
}

@media (min-width: 992px) {
  .program-mobile-menu-container {
    display: none;
  }
}

/* Common Responsive Table and Card Styles */
.heading-table {
  color: var(--main-color-2) !important;
  background-color: #f0f0f0;
}

.program-subheading {
  font-weight: 600;
}

/* B.Com Course Cards - Common Styles */
.bcom-table-container {
  display: block;
}

.bcom-cards-container {
  display: none;
}

.course-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.course-card .card-header {
  background: linear-gradient(135deg, #1c1e4d 0%, #d12b3f 100%);
  color: white;
  padding: 15px;
  position: relative;
}

.course-card .course-type {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.course-card h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: white;
}

.course-card .semester {
  margin: 5px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

.course-card .card-body {
  padding: 15px;
}

.course-card .card-body h6 {
  color: #1c1e4d;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 5px;
}

.course-card .card-body ul {
  margin: 0;
  padding-left: 20px;
}

.course-card .card-body li {
  margin-bottom: 8px;
  line-height: 1.4;
  color: #333;
  font-size: 14px;
}

.course-card .card-body li:last-child {
  margin-bottom: 0;
}

/* Syllabus Cards - Common Styles */
.syllabus-table-container {
  display: block;
}

.syllabus-cards-container {
  display: none;
}

.subject-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.subject-card .card-header {
  background: linear-gradient(135deg, #1c1e4d 0%, #d12b3f 100%);
  color: white;
  padding: 12px 15px;
  position: relative;
}

.subject-card .category-badge {
  position: absolute;
  bottom: 8px;
  right: 66px;
  background: rgba(255,255,255,0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.subject-card .credits-badge {
  position: absolute;
  bottom: 8px;
  right: 5px;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.subject-card h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  padding-right: 120px;
  color: white;
}

.subject-card .card-body {
  padding: 12px 15px;
}

.subject-card .card-body h6 {
  color: #1c1e4d;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 4px;
}

.subject-card .card-body ul {
  margin: 0;
  padding-left: 18px;
}

.subject-card .card-body li {
  margin-bottom: 6px;
  line-height: 1.3;
  color: #333;
  font-size: 13px;
}

.subject-card .card-body li:last-child {
  margin-bottom: 0;
}

.subject-card .card-body p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
}

.list-style {
    list-style: none;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.list-style::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background: url('/website/media/frontend/images/check_box.png') no-repeat left center;
    background-size: contain;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .program-heading {
    font-size: 28px;
  }

  /* B.Com Course Cards Mobile */
  .bcom-table-container {
    display: none;
  }

  .bcom-cards-container {
    display: block;
  }

  .course-card {
    margin-bottom: 15px;
  }

  .course-card .card-header {
    padding: 12px;
  }

  .course-card h5 {
    font-size: 16px;
  }

  .course-card .semester {
    font-size: 13px;
  }

  .course-card .card-body {
    padding: 12px;
  }

  .course-card .card-body h6 {
    font-size: 15px;
  }

  .course-card .card-body li {
    font-size: 13px;
    line-height: 1.3;
  }

  /* Syllabus Cards Mobile */
  .syllabus-table-container {
    display: none;
  }

  .syllabus-cards-container {
    display: block;
  }

  .subject-card {
    margin-bottom: 12px;
  }

  .subject-card .card-header {
    padding: 10px 12px;
  }

  .subject-card h5 {
    font-size: 15px;
    padding-right: 100px;
  }

  .subject-card .card-body {
    padding: 10px 12px;
  }

  .subject-card .card-body h6 {
    font-size: 13px;
  }

  .subject-card .card-body li,
  .subject-card .card-body p {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .course-card {
    margin-bottom: 18px;
  }

  .course-card .card-body li {
    font-size: 13px;
  }

  .subject-card {
    margin-bottom: 14px;
  }

  .subject-card .card-body li,
  .subject-card .card-body p {
    font-size: 12px;
  }
}