/* ============= COURSES FILTER ============= */
.courses-filter {
  text-align: center;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.courses-filter h2 {
  color: #003b77;
  margin-bottom: 25px;
  font-size: 2rem;
}

.category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-btn {
  background: #fff;
  color: #003b77;
  padding: 12px 26px;
  border: 2px solid #e53333;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: #e53333;
  color: #fff;
  transform: translateY(-2px);
}

.category-btn.active {
  background: #e53333;
  color: #fff;
}

/* ============= COURSE CONTAINER ============= */
.course-container {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= COURSE CARD ============= */
.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-top: 5px solid #e53333;
  transition: all 0.3s ease;
}

.course-card:hover {
  box-shadow: 0 12px 30px rgba(229,51,51,0.2);
  transform: translateY(-5px);
}

.course-header {
  background: linear-gradient(135deg, #003b77 0%, #e53333 100%);
  color: #fff;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.course-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.6rem;
  flex: 1;
}

.course-badge {
  background: rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

/* ============= COURSE DETAILS GRID ============= */
.course-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.course-left,
.course-right {
  padding: 25px;
  border-right: 2px solid #f0f0f0;
}

.course-right {
  border-right: none;
}

.info-box {
  margin-bottom: 20px;
}

.info-box h3 {
  color: #003b77;
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e53333;
}

.info-box p {
  color: #555;
  margin: 8px 0;
  line-height: 1.6;
}

.highlight {
  color: #e53333;
  font-weight: bold;
  font-size: 1.1rem;
}

.fee-details p {
  color: #555;
  margin: 6px 0;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  color: #555;
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e53333;
  font-weight: bold;
}

.mode-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-badge {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.offline-badge {
  background: #003b77;
}

.online-badge {
  background: #e53333;
}

.hybrid-badge {
  background: #6c63ff;
}

.enroll-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 12px 20px;
}

.btn-primary {
  background: #e53333;
  color: #fff;
}

.btn-primary:hover {
  background: #003b77;
}

.btn-secondary {
  background: #f0f0f0;
  color: #003b77;
  border: 2px solid #e53333;
}

.btn-secondary:hover {
  background: #e53333;
  color: #fff;
}

/* ============= COURSE FOOTER ============= */
.course-footer {
  background: #f7fafd;
  padding: 15px 25px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid #e8e8e8;
}

.course-stat {
  color: #555;
  font-size: 0.95rem;
}

/* Responsive adjustments */

/* Tablet and below */
@media (max-width: 1024px) {
  .course-container {
    padding: 0 15px;
  }

  .course-header h2 {
    font-size: 1.4rem;
  }

  .course-details-grid {
    grid-template-columns: 1fr;
  }

  .course-left,
  .course-right {
    padding: 20px;
    border-right: none;
    border-bottom: 2px solid #f0f0f0;
  }

  .course-right {
    border-bottom: none;
  }

  .enroll-btn-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 100%;
  }
}

/* Mobile (max-width 480px) */
@media (max-width: 480px) {
  .course-container {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .course-header {
    padding: 18px 15px;
  }

  .course-header h2 {
    font-size: 1.2rem;
  }

  .course-badge {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .course-details-grid {
    gap: 20px;
  }

  .course-left,
  .course-right {
    padding: 15px;
  }

  .info-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .info-box p,
  .fee-details p,
  .bullet-list li {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .mode-options {
    gap: 8px;
  }

  .mode-badge {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .enroll-btn-group {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 100%;
  }

  .course-footer {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}


/* ============= ENROLLMENT SECTION ============= */
.enrollment-section {
  background: #f7fafd;
  padding: 50px 20px;
  margin: 50px 0;
  border-radius: 12px;
}

.enrollment-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
}

.enrollment-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.enrollment-step {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: #e53333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
}

.enrollment-step h3 {
  color: #003b77;
  margin-top: 15px;
  font-size: 1.2rem;
}

.enrollment-step p {
  color: #555;
  margin-top: 12px;
  line-height: 1.6;
}


/* ======================= COMPARISION TABLE ========================= */
/* Container max width and margin */
.comparison-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 15 20px;
  /* overflow: hidden; */
}

/* Center the heading */
.comparison-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 35px;
}

.ctc {
  overflow-x: auto;
}

/* Table styling */
.comparison-table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 800px; /* Minimum width for table to avoid collapsing too much */
}

/* Grid layout for rows - 5 equal columns */
.table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-bottom: 1px solid #e8e8e8;
}

.table-row.header {
  background: linear-gradient(135deg, #003b77 0%, #e53333 100%);
  color: #fff;
  font-weight: bold;
}

.table-row:last-child {
  border-bottom: none;
}

/* Cell styling */
.table-cell {
  padding: 12px 8px; /* Reduced padding to fit smaller screens */
  text-align: center;
  border-right: 1px solid #f0f0f0;
  font-size: 0.95rem; /* Slightly smaller font */
  word-wrap: break-word; /* Ensure long text wraps */
}

.table-cell:last-child {
  border-right: none;
}

.table-row.header .table-cell {
  font-weight: bold;
  font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .comparison-section {
    padding: 10 10px;
  }
  .table-cell {
    padding: 10px 6px;
    font-size: 0.9rem;
  }
  .comparison-table {
    min-width: 700px;
  }
}

@media (max-width: 768px) {
    .comparison-section {
    padding: 8px 5px;
  }
  .comparison-table {
    min-width: 600px;
  }
  .table-cell {
    padding: 8px 5px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .table-cell {
    padding: 6px 4px;
    font-size: 0.8rem;
  }
}

@media (max-width: 350px) {
  .table-cell {
    padding: 5px 3px;
    font-size: 0.75rem;
  }
}
