/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero Section */
.hero-simple {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}
.hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero-content p {
  font-size: 16px;
  opacity: 0.9;
}

/* Stats Bar */
.stats-bar {
  background: white;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  border-radius: 16px;
  margin-left: 16px;
  margin-right: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.stats-grid {
  display: flex;
  justify-content: space-around;
  padding: 16px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}
.stat-label {
  font-size: 13px;
  color: #64748b;
}

/* Course Finder */
.course-finder {
  padding: 20px 0 40px;
  background: #f8fafc;
  min-height: calc(100vh - 300px);
}

/* Filter Sidebar - Desktop */
.filter-sidebar {
  background: white;
  border-radius: 12px;
}
.filter-sidebar-content {
  padding: 12px;
}
.filter-group {
  margin-bottom: 12px;
  border: 1px solid #eef2ff;
  border-radius: 10px;
  overflow: hidden;
}
.filter-group .filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fafbfc;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-group .filter-header:hover {
  background: #f1f5f9;
}
.filter-group .filter-header h6 {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-group .filter-header h6 i {
  color: #4f46e5;
  font-size: 12px;
}
.filter-group .filter-header i {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s;
}
.filter-group.collapsed .filter-header i {
  transform: rotate(-90deg);
}
.filter-group .filter-content {
  padding: 12px;
  border-top: 1px solid #eef2ff;
}
.filter-group.collapsed .filter-content {
  display: none;
}
.filter-search {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f8fafc;
}
.filter-search:focus {
  outline: none;
  border-color: #4f46e5;
  background: white;
}
.filter-list {
  max-height: 200px;
  overflow-y: auto;
}
.filter-list .filter-item,
.filter-check {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  margin-bottom: 8px;
}
.filter-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: #4f46e5;
}
.filter-check:hover {
  color: #1e293b;
}
.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.btn-apply-filters {
  flex: 1;
  padding: 10px;
  background: #4f46e5;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  cursor: pointer;
}
.btn-reset {
  flex: 1;
  padding: 10px;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-reset:hover {
  background: #fee2e2;
}

/* Mobile Filter Styles */
.filter-count-badge {
  background: #4f46e5;
  color: white;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  margin-left: 8px;
  display: none;
}
.btn-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.filter-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eef2ff;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}
.filter-header-mobile h6 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.close-filter {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}
.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.filter-overlay.show {
  display: block;
}

@media (max-width: 767px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 340px;
    height: 100%;
    z-index: 1000;
    background: white;
    transition: left 0.3s ease;
    border-radius: 0;
    overflow-y: auto;
  }
  .filter-sidebar.show {
    left: 0;
  }
  .filter-sidebar .filter-sidebar-content {
    padding-bottom: 80px;
  }
  body.filter-open {
    overflow: hidden;
  }
  .filter-group .filter-content {
    padding: 12px;
  }
  .filter-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 12px;
    margin-top: 16px;
    border-top: 1px solid #eef2ff;
  }
}

@media (min-width: 768px) {
  .filter-sidebar {
    position: sticky;
    top: 10px;
    overflow-y: auto;
  }
  .btn-filter-toggle,
  .filter-header-mobile,
  .filter-overlay,
  .btn-apply-filters {
    display: none;
  }
  .course-item {
    padding: 16px;
  }
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.sort-select {
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: white;
  cursor: pointer;
}
.btn-refresh {
  padding: 8px 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-refresh:hover {
  background: #f1f5f9;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 0;
  background: #f8fafc;
  border-radius: 12px;
}
.active-label {
  font-size: 12px;
  color: #64748b;
  margin-left: 4px;
}
.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eef2ff;
  border-radius: 20px;
  font-size: 11px;
  color: #4f46e5;
}
.active-tag i {
  font-size: 10px;
  cursor: pointer;
  opacity: 0.7;
}
.active-tag i:hover {
  opacity: 1;
}
.clear-filters {
  background: none;
  border: none;
  font-size: 11px;
  color: #ef4444;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}

/* Course Items */
.course-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 16px;
  transition: all 0.2s;
  border: 1px solid #c7c7c7;
}
.course-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.course-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.course-main {
  flex: 1;
  min-width: 0;
}
.course-title-link {
  text-decoration: none;
}
.course-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.course-title:hover {
  color: #4f46e5;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 11px;
  color: #475569;
}
.course-badge i {
  font-size: 10px;
  color: #64748b;
}
.mode-online {
  background: #e0f2fe;
  color: #0284c7;
}
.mode-part {
  background: #fef3c7;
  color: #d97706;
}
.mode-full {
  background: #dcfce7;
  color: #059669;
}
.degree-badge {
  background: #eef2ff;
  color: #4f46e5;
}
.course-college {
  margin-bottom: 8px;
}
.course-college a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.course-college a:hover {
  color: #4f46e5;
}
.course-eligibility {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.course-eligibility i {
  color: #10b981;
  font-size: 11px;
}
.course-action {
  text-align: right;
  min-width: 130px;
}
.course-fee {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 10px;
}
.course-fee span {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}
.btn-view {
  padding: 8px 18px;
  background: #4f46e5;
  border: none;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-view:hover {
  background: #4338ca;
  transform: translateX(2px);
}

/* Skeleton Loader */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eef2ff;
}
.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 12px;
}
.skeleton-line.short {
  width: 60%;
}
.skeleton-line.extra-short {
  width: 40%;
}
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Pagination */
.pagination-wrapper {
  margin-top: 24px;
  text-align: center;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 10px;
}
.page-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.page-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}
.page-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #94a3b8;
}

/* Empty & Error States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
}
.empty-state i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.empty-state h6 {
  font-size: 18px;
  color: #334155;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}
.btn-reset-sm {
  padding: 8px 20px;
  background: #f1f5f9;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
}
.error-msg {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #dc2626;
  font-size: 14px;
}
.error-msg a {
  color: #dc2626;
  text-decoration: underline;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 767px) {
  .hero-simple {
    height: 150px;
  }
  .hero-content h1 {
    font-size: 22px;
  }
  .stats-bar {
    margin-left: 12px;
    margin-right: 12px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 11px;
  }
  .course-content {
    flex-direction: column;
  }
  .course-action {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
  }
  .course-fee {
    margin-bottom: 0;
  }
  .course-title {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .course-finder .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.banner-background {
  background:
    linear-gradient(135deg, #0d1b47 0%, #1a3b7c 50%, #0d1b47 100%),
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 154, 54, 0.15) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 154, 54, 0.1) 0%,
      transparent 20%
    ),
    url(https://dial4college.com/public/assets/bg/gradiant_1.png);
  background-size:
    cover,
    200% 200%,
    200% 200%,
    cover;
  background-position: center;
  background-blend-mode: overlay, overlay, overlay, normal;
  height: calc(43vh);
}

@media (max-width: 768px) {
  .banner-background {
    height: calc(20vh) !important;
  }
}
