* {
  font-family: "Outfit", sans-serif;
}

body {
  font-family: "Outfit", sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* Subtle Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    #1a1a2e 0%,
    #16213e 50%,
    #0a0a0a 100%
  );
  z-index: -2;
}

.animated-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Hero section */
.hero {
  color: white;
  position: relative;
  z-index: 1;
  background-color: transparent;
  box-shadow: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #4facfe, #00f2fe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
  color: transparent;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: #e0e0e0;
}

.instruction-text {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  font-weight: 300;
  opacity: 0.8;
  color: #e0e0e0;
  text-align: center;
  margin-top: -35px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.instruction-link {
  color: #4facfe;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.arrow-icon {
  width: 0.8em;
  height: 0.8em;
  transition: transform 0.3s ease;
}

/* Filter form */
.filter-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.custom-select-trigger {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: white;
}

.custom-select-trigger:after {
  color: #e0e0e0;
}

.custom-select-option {
  color: #e0e0e0;
}

.custom-select-option:hover {
  background-color: #16213e;
}

.filter-form button {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-form button:hover {
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.6);
}

.filter-form button:active {
  transform: scale(0.98);
}

/* Scholarship cards */
.scholarship-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: none;
}

.scholarship-card:hover {
  background: rgba(79, 172, 254, 0.1);
  box-shadow: 0 20px 40px rgba(79, 172, 254, 0.2);
  border-color: rgba(79, 172, 254, 0.4);
}

.card-content {
  padding: 1.5rem;
  color: #e0e0e0;
}

.card-content h3 {
  color: white;
  margin-bottom: 0.8rem;
}

.card-badges .badge {
  background: rgba(79, 172, 254, 0.2);
  color: #4facfe;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.card-institution,
.card-location {
  color: #e0e0e0;
}

.view-button {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-button:hover {
  box-shadow: 0 10px 20px rgba(79, 172, 254, 0.4);
}

.view-button:active {
  transform: scale(0.98);
}

.featured-scholarships h2,
.search-results h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff, #4facfe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.filter-summary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.filter-summary p {
  color: #e0e0e0;
}

.no-scholarships {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  color: #e0e0e0;
}

/* Make sure content is visible over the background */
.container {
  position: relative;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Fade in animation */
body {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* Add media query for mobile devices to disable hover effects */
@media (max-width: 768px) {
  .scholarship-card:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 172, 254, 0.2);
  }

  .view-button:hover {
    box-shadow: none;
  }

  .filter-form button:hover {
    box-shadow: none;
  }

  .custom-select-option:hover {
    background-color: transparent;
  }

  .instruction-text {
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
