
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    box-sizing: border-box;
}

.searchContainer {
    width: 100%;
}

.buttons-container {
    display: flex; 
    justify-content: center;
    gap: 20px;
    margin-top: inherit;
}


.hero-section {
  position: relative;
  overflow: hidden;
  background: url('/static/images/background.png') center center/cover no-repeat;
  padding: 100px 20px 50px;
  text-align: center;
  color: white;
  width: 100%;
  min-height: 400px;
}



.hero-animated {
  max-width: 800px;
  margin: 0 auto 40px;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: bold;
    font-family: 'Sora', sans-serif !important;
}


.hero-sub {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
      font-family: 'Sora', sans-serif !important;

}

.hero-cta {
  font-size: 1.1rem;
  padding: 14px 32px;
  background-color: #457B9D;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-cta:hover {
  background-color: #2e5984;
}

/* Simple fade-up animation */
.animate-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-fade:nth-child(1) { animation-delay: 0.2s; }
.animate-fade:nth-child(2) { animation-delay: 0.4s; }
.animate-fade:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wave-divider {
  line-height: 0;
  position: relative;
  margin-top: -5rem;
    z-index: 99; /* 👈 HIGHER than clouds/stars which use z-index: 1 or 2 */
}

.wave-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 80px;
  z-index: 99; 
  pointer-events: none;
}

.wave-divider path {
  fill: #7ea2bf; /* Matches your .container background */
}


.home-button {
    width: 200px;
    text-align: center;
    border-radius: 15px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;

}

.home-button:hover {
    transform: translateY(-4px);
}

.home-button span {
    color: black;
}

.home-button p {
    color: black;
}

.home-button img {
    width: 100%;
    border-radius: 10px;
}

.home-button p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}


@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
    }

    .buttons-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .home-button {
        width: 100%;
        max-width: 300px;
        padding: 12px;
    }

    .home-button p {
        font-size: 14px;
    }
}


.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin: 20px auto;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    width: 80%;
}

.category-buttons button {
    padding: 8px 16px;
    border: none;
    background-color: #457B9D;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-buttons button:hover {
    background-color: #0056b3;
}

.ads-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}


.ad-card h3 {
    margin: 0 0 10px;
}
.ad-card p {
    margin: 5px 0;
}
.ad-card img {
  max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 10px;
}


.ad-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #EDF2F4;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 15px;
  border-radius: 10px;
  width: 300px;
  height: 100%; 
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.cardImage {
  margin-bottom: 16px;
}
.cardDesc {
  margin-top: 10px;
}


.cardKeywords span {
  background-color: #e6f0ff;
  color: #2e5984;
  font-weight: 500;
  padding: 6px 10px;
  margin: 0 4px 4px 0;
  border-radius: 12px;
  font-size: 0.85rem;
  display: inline-block;
  cursor: pointer;
}


.ad-card a {
  padding: .9rem;
  background-color: #457B9D;
  border-radius: 1rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  margin-top: auto; 
}

.ad-card a:hover {
    background-color: #0056b3;
}


.card-buttons {
  display: flex;
  width: 100%;
  margin-top: auto;
  gap: 10px;
}

.join-btn {
  flex: 4;
  background-color: #28a745;
  color: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.more-btn {
  flex: 1;
  background-color: #007bff;
  color: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.join-btn:hover {
  background-color: #218838;
}

.more-btn:hover {
  background-color: #0056b3;
}

.cardDesc {
    display: block;
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
    text-align: left;
        max-height: 7rem;
    overflow: scroll;
      background: transparent;
  padding-left: 0;

}


.cardImage {
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  align-self: center;
}
.cardImage img {
  max-height: 100px;
  min-height: 100px;
  object-fit: contain;
}

.ad-card h3 {
  min-height: 24px;
  margin: 0 0 10px;
}

.ad-card p.cardDesc {
  min-height: 80px;
}

.cardKeywords {
  min-height: 30px;
  margin-bottom: 8px;
}

.tag {
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  margin-right: 4px;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
}


.ad-card {
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ad-card h3 {
  min-height: 1.5em;
  font-size: 1.1rem;
}

.ad-card p.cardDesc {
  flex-grow: 1;
}

.card-buttons {
  margin-top: auto;
}

.ads-grid {
  align-items: stretch;
}

.cardKeywords span {
    background-color: #b9bcbf;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
}

.section-heading {
  font-size: 2rem;
  color: #2e5984;
  font-weight: bold;
  text-align: center;
  margin: 40px 0 20px;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #457B9D;
  margin: 10px auto 0;
  border-radius: 2px;
}


.tranding-card {
  height: unset !important;
}




/* === Header Navigation Buttons === */
.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background-color: #457B9D;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: #2e5984;
}

/* Toggle menu button */
.menu-toggle {
  background: #457B9D;
  color: white;
  font-size: 1.5rem;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Dropdown container */
.dropdown-menu {
  display: none;
  flex-direction: column;
  background-color: white;
  border: 1px solid #ccc;
  position: absolute;
  right: 10px;
  top: 45px;
  z-index: 999;
  width: 150px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown-menu .nav-btn {
  background: none;
  color: black;
  text-align: left;
  padding: 12px 16px;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.dropdown-menu .nav-btn:hover {
  background-color: #f0f0f0;
}

/* Visibility control */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* On small screens: hide desktop nav, show toggle menu */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    position: relative;
  }

  .dropdown-menu {
    display: none; /* controlled via JS */
  }

  .dropdown-menu.show {
    display: flex;
  }
}


.centered-buttons-container button {
    font-family: monospace !important;
    font-size: 20px !important;
    font-weight: unset !important;
    background: none !important;
    color: black !important;
  }

  .centered-buttons-container button:hover {
  background-color: none;
  }