@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');

.resources {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 2rem;
  flex: 1;
}

.resources-container {
  max-width: 1000px;
  width: 100%;
  text-align: left;
}

.resources-container h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #10824c;
  text-align: left;
  opacity: 0;
  animation: fadeSlideIn 0.9s ease-out forwards;
  position: relative;
  display: inline-block;
}

.resources-container h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #10824c;
  border-radius: 2px;
}

.resources-container p {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #2f3e2f;
  text-align: left;
  line-height: 1.0;
  opacity: 1;
}

.resources-container p.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.9s ease-out forwards;
  animation-delay: 0.2s;
}

.resource-card.initial-load {
  animation-delay: 0.8s;
}

#map-container {
  position: relative;
  max-width: 1200px;
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 1.4s;
  border: 3px solid #4cbb6a;
  background: none;
  padding: 0;
}

#map-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#map-container .map-description {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
  text-align: center;
}


#map {
  width: 100%;
  height: 600px;
  display: block;
  border-radius: 0;
  border: none;
}
.map-top-bar {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  z-index: 5;
  pointer-events: none;
}
.map-top-bar * {
  pointer-events: auto;
}

.search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 2px solid #4cbb6a;
  border-radius: 8px;
  padding: 0 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  width: 280px;
}

.search-wrapper input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  padding: 6px;
  width: 200px;
  background-color: transparent;
  box-shadow: none;
}

#map-search {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  padding: 10px;
  width: 200px;
  background-color: transparent;
}

#map-search:focus {
  outline: none;
}


.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#online-search {
  padding: 0.55rem 1rem;
  margin-right: 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  background-color: #fff;
  color: #2f3e2f;
  width: 240px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  flex-shrink: 0;
  margin-left: 0;
  opacity: 0;
  animation: fadeSlideIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

#online-search:focus {
  outline: none;
  border-color: #2d7a46;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #555;
  display: block;
  cursor: pointer;
}

.search-icon:hover {
  color: #10824c;
}

.search-icon.active {
  color: #4cbb6a;
}

.search-icon.active:hover {
  color: #2d7a46;
}

.search-icon.disabled {
  pointer-events: none;
  color: #555;
  cursor: default;
}
.search-icon.disabled:hover {
  color: #555;
}

#clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
  display: none;
  transition: color 0.2s ease;
}

#clear-search:hover {
  color: #333;
}

.resources-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.resource-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #4cbb6a;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.resource-card p {
  flex-grow: 1;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #2f3e2f;
  font-family: 'Inter', sans-serif;
}

.resource-card a {
  display: inline-block;
  color: #4cbb6a;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}

.resource-card a:hover {
  color: #2d7a46;
  text-decoration: underline;
}

#online-category {
  display: inline-block;
  margin: 0;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 2px solid #4CAF50;
  border-radius: 8px;
  background-color: white;
  color: #4CAF50;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0;
  animation: fadeSlideIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}


#online-category:hover {
  border-color: #2d7a46;
}

#online-category option {
  color: black;
}

.info-card {
  font-family: 'Inter', sans-serif;
  padding: 0.85rem 1.1rem;
  max-width: 300px;
  line-height: 1.0;
  color: #2f3e2f;
}

.info-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #10824c;
}

.info-category {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #3d5c3d;
  margin-bottom: 0.4rem;
}

.info-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #2f3e2f;
}

.info-address {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  color: #3b4d3b;
}

.info-link {
  font-family: 'Inter', sans-serif;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4cbb6a;
  text-decoration: none;
  transition: all 0.4s ease;
}

.info-link:hover {
  color: #2d7a46;
  text-decoration: underline;
}

.info-distance {
  font-style: italic;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #555;
  margin-left: 0px;
}

#questionnaire {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 4px solid #4cbb6a;

  opacity: 0;
  animation: fadeSlideIn 0.8s ease-in 0.6s forwards;
}

#questionnaire h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
}

#questionnaire label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #333;
}

#questionnaire select {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border 0.2s ease;
}

#questionnaire select:focus {
  border-color: #4cbb6a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 187, 106, 0.2);
}

.questionnaire-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.questionnaire-buttons button {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#questionnaire-form button[type="submit"] {
  background-color: #4cbb6a;
  color: #fff;
}

#questionnaire-form button[type="submit"]:hover {
  background-color: #3a9c55;
}

#back-to-questionnaire.styled-back-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #4cbb6a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: background 0.2s ease-in-out;
}

#back-to-questionnaire.styled-back-btn:hover {
  background: #3aa257;
}

#map-category {
  border: 2px solid #4CAF50;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  background-color: #fff;
  color: #4CAF50;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  width: auto;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#map-category:hover {
  border-color: #2d7a46;
}

#university-select {
  max-width: 350px;
  width: 100%;
  display: inline-block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; box-shadow: 0 0 0 rgba(0,0,0,0); }
  to { opacity: 1; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
}

#resource-disclaimer {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.9s ease-out forwards;
  animation-delay: 1.8s;
}
