/* Core Layout */
.sermon-tab {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1rem;
  justify-content: left;
  flex-wrap: wrap;
}

.sermon-tab button {
  padding: 0.5rem 1.25rem;
  border: none;
  background-color: #f0f0f0;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.sermon-tab button.active,
.sermon-tab button:hover {
  background-color: #800000;
  color: #fff;
}

#sermonGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.sermon-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sermon-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.sermon-card img {
  width: 100%;
  height: auto;
  display: block;
}

.sermon-card a,
.sermon-card a:visited {
  text-decoration: none;  /* no underline */
  color: inherit;         /* keep the existing text color from .sermon-details */
}

/* If you want a hover style, you can add it below */
.sermon-card a:hover {
  text-decoration: none;  /* still no underline on hover */
  color: #800000;         /* or any color you prefer */
}

.sermon-details {
  padding: 1rem;
}

.sermon-details h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #800000;
}

.sermon-details p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #333;
}

#pagination {
  margin: 2rem auto;
  text-align: center;
}

#pagination button {
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pagination button.active-page,
#pagination button:hover {
  background-color: #800000;
  color: #fff;
}

.filter-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: left;
  margin: 2rem 0 1rem;
  color: #800000;
}

.filter-heading {
  font-size: 1.75rem;
  color: #222;
  text-align: center;
  margin: 2rem 0 1rem;
}

.highlighted-name {
  color: #800000;
  font-weight: bold;
}

.no-results {
  text-align: center;
  font-size: 1.2rem;
  color: #665;
  margin-top: 2rem;
}

.search-container {
  position: relative;
  display: inline-block;
  flex: 1;
  max-width: 300px;
}

#searchInput {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 8px;
  border: none;
  background-color: #eee;
  font-size: 1rem;
  color: #333;
}

#searchInput::placeholder {
  color: #888;
}

.search-container::before {
  content: "\f002"; /* Unicode for FontAwesome search icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
  pointer-events: none;
}

#searchInput.active-search {
  border: 2px solid #800000;
  outline: none;
  background-color: #fff;
}
