/* Section Title */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #023246;
}

/* Resource Dropdown Categories */
.resource-category {
  margin-bottom: 30px;
}

/* Toggle Button for Resource Sections */
.resource-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #287094;
  color: #fff;
  padding: 20px 25px;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 70px; /* Adjustable dropdown box height */
  margin-bottom: 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.resource-toggle:hover {
  background-color: #023246;
}

/* Resource List (Initially Collapsed) */
.resource-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.resource-category.open .resource-list {
  max-height: 1000px; /* large enough to reveal full content */
  padding-top: 16px;
}

/* Individual Resource Items */
.resource-list li {
  background-color: #fff;
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.resource-list li:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.resource-list a {
  font-weight: 700;
  font-size: 1.2rem;
  color: #287094;
  text-decoration: none;
  transition: color 0.3s;
}

.resource-list a:hover,
.resource-list a:focus {
  color: #023246;
  outline: none;
}

.resource-list p {
  margin-top: 8px;
  color: #444;
  font-weight: 500;
  font-size: 1rem;
}

/* Search and Filter Controls */
.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.search-controls input,
.search-controls select {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  flex: 1 1 300px;
  transition: border-color 0.3s;
}

.search-controls input:focus,
.search-controls select:focus {
  border-color: #287094;
  outline: none;
}

/* Search Results Card Style */
.resource-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(10px);
}

.resource-card[style*="display: block"] {
  opacity: 1;
  transform: translateY(0);
}
