/* Reset and Global Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.8;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.container {
  font-size: 2rem;
  text-align: center;
  padding: 40px 20px;
  margin:50px 0px -53px;
}

/* Title Styling */
#finder > h1 {
  color: #111;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 40px auto 20px;
  padding-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 4px solid #f1c40f;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Location Buttons Styling */
.location-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.location-btn {
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  background: linear-gradient(to right, #000000, #d4af37);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.location-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Search Box */
.search-box {
  text-align: center;
  margin: 50px 0 30px;
}

.search-box input {
  padding: 14px 24px;
  font-size: 1.05rem;
  width: 60%;
  max-width: 500px;
  border: 2px solid #f1c40f;
  border-radius: 20px;
  background-color: #fff;
  color: #222;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
  border-color: #d4ac0d;
  box-shadow: 0 0 8px #f1c40f80;
}

.search-box button {
  padding: 13px 28px;
  font-size: 1.05rem;
  margin-left: 12px;
  border: none;
  background: linear-gradient(to right, #000000, #d4af37);
  color: #fff;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-box button:hover {
  transform: scale(1.05);
}

/* Buttons Container */
#bcontainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

#bcontainer button {
  padding: 13px 32px;
  background: linear-gradient(to right, #000000, #d4af37);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#bcontainer button:hover {
  transform: scale(1.05);
}

/* College Cards Layout */
.college-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  max-width: 1300px;
  margin: auto;
}

/* College Card Styling */
.college-card {
  background-color: #fff;
  border-left: 6px solid #f1c40f;
  border-radius: 16px;
  padding: 24px;
  width: 320px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.college-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.college-card h3 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1c40f;
  padding-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
}

.college-card p {
  font-size: 0.96rem;
  margin: 8px 0;
  color: #555;
  text-align: center;
}

.college-card a {
  color: #d4ac0d;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  text-align: center;
}

.college-card a:hover {
  text-decoration: underline;
}

/* Apply Button */
.apply-btn {
  display: block;
  margin: 12px auto 0;
  padding: 13px 26px;
  background: linear-gradient(to right, #000000, #d4af37);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.apply-btn:hover {
  transform: scale(1.05);
}

/* View More / Less Button */
button.toggle-btn {
  margin-top: 14px;
  background: linear-gradient(to right, #000000, #d4af37);
  color: #fff;
  padding: 11px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button.toggle-btn:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .college-card {
    width: 90%;
  }

  .search-box input {
    width: 85%;
  }

  .location-buttons,
  #bcontainer {
    flex-direction: column;
    gap: 16px;
  }

  .location-btn,
  #bcontainer button {
    width: 80%;
  }
}
