/* ========================================================================
   explore-courses.css
   Deepak Enterprises - MakeStudy
   ======================================================================== */

/* ========================================================================
   Base & Reset
   ======================================================================== */

a,
.breadcrumb a,
a.course-box {
  text-decoration: none;
}

/* ========================================================================
   Layout
   ======================================================================== */

.main-content {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.filters-section {
  flex: 1;
  max-width: 250px;
}

.courses-section {
  flex: 3;
}

/* ========================================================================
   Mobile Filter Toggle
   ======================================================================== */

.filter-toggle {
  display: none;
  background-color: #052374;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 20px 20px;
  position: relative;
}

.filter-toggle::after {
  content: '\25BC'; /* down caret */
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s;
}

.filter-toggle.open::after {
  content: '\25B2'; /* up caret */
}

/* ========================================================================
   Course Grid & Cards
   ======================================================================== */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.course-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-box img {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.college-name {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.course-name {
  font-size: 1rem;
  font-weight: 600;
  color: #052374;
  margin-bottom: 8px;
}

.course-credentials {
  font-size: 0.9rem;
  font-style: italic;
  color: #333;
  margin-bottom: 12px;
}

.course-fees {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
  color: #555;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.course-fees div {
  flex: 1;
  text-align: center;
}

/* ========================================================================
   Utility & Forms
   ======================================================================== */

.course-search-input {
  width: 100%;
  padding: 10px 15px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 20px 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================================================
   Section Title
   ======================================================================== */

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #052374;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, #970a26, #052374, #097969, #f1c40f);
  border-radius: 2px;
}

/* ========================================================================
   Filter Sidebar
   ======================================================================== */

.filter-sidebar {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.filter-title {
  background-color: #052374;
  color: #fff;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 20px;
}

.filter-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 8px;
  fill: currentColor;
}

.filter-group + .filter-group {
  margin-top: 24px;
}

.filter-header {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #052374;
  margin-bottom: 12px;
  border-bottom: 2px solid #052374;
  padding-bottom: 4px;
}

.filter-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  appearance: none;
}

/* ========================================================================
   Responsive Breakpoints
   ======================================================================== */

@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .filter-toggle {
    display: block;
  }

  .filters-section {
    display: none;
  }

  .filters-section.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    padding: 20px;
    z-index: 1000;
  }

  .courses-section {
    margin-top: 20px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }
}
