/* Utility Styles - Helpers, Typography, Search, Filters */

/* Typography */
.merriweather-font {
  font-family: 'Merriweather', serif;
}

.merriweather-light {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: normal;
}

.merriweather-regular {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: normal;
}

.merriweather-bold {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-style: normal;
}

.merriweather-black {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: normal;
}

.merriweather-light-italic {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: italic;
}

.merriweather-regular-italic {
  font-family: "Merriweather", serif;
  font-weight: 400;
  font-style: italic;
}

.merriweather-bold-italic {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-style: italic;
}

.merriweather-black-italic {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: italic;
}

.quicksand-300 {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.rounded-circle {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.rounded-lg {
  border-radius: 16px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 4px;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 16px; /* Prevents iOS zoom */
  border: none;
  border-radius: 4px;
  min-height: 44px;
}

.search-bar button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}

/* Mobile Search Bar */
@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    padding: 0.75rem;
  }
  
  .search-bar input[type="text"] {
    width: 100%;
    margin-bottom: 0.75rem;
    margin-left: 0;
    border-radius: 4px;
  }
  
  .search-bar button {
    width: 100%;
    margin-left: 0;
    border-radius: 4px;
  }
}

.search-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-bar {
  width: 100%;
  margin-bottom: 1rem;
}

/* Filters */
.filters ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.filters ul li {
  margin-right: 20px;
  margin-bottom: 10px;
}

.filters ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 4px;
  background-color: rgb(92, 92, 233);
  transition: background-color 0.3s;
  display: inline-block;
}

.filters ul li a:hover {
  background-color: rgb(11, 139, 182);
  font-weight: normal;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.additional-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.additional-filters select,
.additional-filters button {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 10px;
  min-height: 44px;
}

.additional-filters button {
  background-color: #f5f5f5;
  color: #333333;
  cursor: pointer;
  touch-action: manipulation;
}

.additional-filters label {
  margin-left: 10px;
  font-size: 14px;
}

.additional-filters select {
  padding: 10px;
  font-size: 16px; /* Prevents iOS zoom */
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 10px;
  min-width: 120px;
}

/* Mobile Filter Adjustments */
@media (max-width: 768px) {
  .additional-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .additional-filters select,
  .additional-filters button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  
  .additional-filters label {
    margin-left: 0;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .filters ul {
    flex-direction: column;
  }
  
  .filters ul li {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .filters ul li a {
    display: block;
    text-align: center;
    padding: 0.75rem;
    min-height: 44px;
  }
}

.filter-button-container {
  position: relative;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.filter-button {
  background-color: #4CAF50;
  margin-top: 0.65rem;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}

.filter-options {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  padding: 1rem;
  left: 0;
}

.filter-options label {
  display: block;
  margin-bottom: 0.5rem;
}

/* Input Groups */
.input-group .custom-select:not(:last-child),
.input-group .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .input-group-append .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Course Section */
.course-section {
  font-family: Arial, sans-serif;
  background-color: #fff;
  padding: 20px;
}

.course-section h2 {
  color: #1e88e5;
  font-size: 24px;
  margin-bottom: 20px;
}

.course-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.course-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1e88e5;
  margin-bottom: 10px;
}

.course-box .learners {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
  flex-grow: 1;
}

.course-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.course-details span {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
  margin-bottom: 5px;
}

.course-price {
  margin-bottom: 20px;
}

.course-price .price {
  font-size: 24px;
  font-weight: bold;
  color: #1e88e5;
}

.course-price .per-class {
  font-size: 14px;
  color: #666;
}

/* Main Categories */
#main-categories {
  background-color: #fff;
  padding: 40px 0;
}

#main-categories h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

#main-categories .btn {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

#main-categories .btn:hover {
  background-color: #007bff;
  color: #fff;
}

/* Admin Actions */
.admin-action-buttons a {
  margin-right: 10px;
}

/* Container */
.container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
}

h2, h3 {
  color: #007BFF;
}

label, p {
  margin-bottom: 10px;
}

.agree-section {
  margin-bottom: 20px;
}

