/* Hero Section */
.hero-section {
    text-align: center;
    padding-bottom: 2rem;
    padding-inline: 2em;
  }
  
  .hero-content {
    height: 100%;
    margin: 0 auto;
    padding-top: 5vw;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
  }
  
  .subtext {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
  }
  
  .cta-button {
    background: linear-gradient(135deg, #060676, #36323a);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 3rem;
    max-width: 400px;
    margin-inline: auto;
    transition: transform 0.2s;
  }
  
  .cta-button:hover {
    transform: translateY(-2px);
  }
  
  .avatar-stack {
    display: flex;
    justify-content: center;
    padding-left: 20px; /* Counteracts negative margin for container edge */
  }
  
  .avatar {
    width: 4em;
    height: 4em;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    margin-left: -20px; /* Fixed overlap amount */
    transition: all .5s ease;
  }
  
  .avatar:first-child {
    margin-left: 0; /* First avatar has no negative margin */
  }
  
  .avatar-counter {
    margin-left: -20px; /* Aligns with overlap */
    background: #f0f0f0;
    padding: 0 12px;
    border-radius: 3em;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    border: 2px solid white;
  }


  /* University Marquee */
  .university-marquee {
    width: 100%;
    max-width: 85vw;
    overflow: hidden;
    margin-top: 2rem;
    margin-inline: auto;
  }

  .marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
  }

  .marquee-content img {
    height: 40px;
    margin: 0 2rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
  }

  .marquee-content img:hover {
    filter: grayscale(0);
    opacity: 1;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }


  .university-logo {
    height: 40px;
    margin: 0 2rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
  }
  
  .university-logo:hover {
    filter: grayscale(0);
    opacity: 1;
  }

 
  /* Search Section */
  .search-section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .category-options {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .option-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  
  .option-card h3 {
    margin-bottom: 1rem;
    color: #2d3748;
  }
  
  .option-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .option-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
  }
  
  .more-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
  }
  
  .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    min-height: 50px;
  }
  
  .tag {
    background: #ebf4ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
  }
  
  .remove-tag {
    margin-left: 6px;
    cursor: pointer;
  }
  
  .submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
  }
  
  .submit-btn:hover {
    background: #5a67d8;
  }


  .university-container {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .university-item {
    position: relative;
    height: 40px; /* Match your logo height */
    min-width: 100px; /* Ensure space for fallback text */
  }
  
  .university-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
  }
  
  .university-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
    text-align: center;
    padding-top: 8px;
    border-radius: 4px;
  }
  
  /* Show fallback when image fails */
  .university-item img[src*="broken"] { /* For testing */
    display: none;
  }
  .university-item img[src*="broken"] + .university-fallback,
  .university-item img:not([src]) + .university-fallback {
    display: block;
  }

  .hero-title {
    font-size: 8vw;
    margin-top: 0vh;
    padding-inline: 15vw;
    line-height: 1;
    font-weight: bold;
    color: black;
    white-space: normal;
    display: inline;
    word-spacing: normal;
    letter-spacing: normal;
  }
  
  /* For mobile responsiveness */
  @media (max-width: 701px) {

  .hero-section {
      padding-bottom: 4rem;
    }
    

    .hero-content {
      padding-top: 35vw;
    }

    .hero-title {
      padding-inline: 0;
      font-size: 3.5rem;
      margin-inline: auto;
      margin-bottom: 1em;
    }
  }