/* Responsive Design */
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  header h1 {
    font-size: 2rem;
  }

  .banner-container {
    height: auto;
    margin-bottom: 1%;
  }

  .top-nav{
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .discord-button {
    top: 10px;
    right: 10px;
  }

  .title-box .subtitle{
    font-size: 0.92rem;
  }

  .featured-section {
    max-width: 100%;
  }

  .featured-card {
    flex-direction: row;
    padding: 15px 20px;
    gap: 15px;
    min-height: 80px;
    max-height: auto;
  }
  
  .featured-number {
    font-size: 1.5rem;
    min-width: 45px;
  }
  
  .featured-logo img {
    width: 55px;
    height: 55px;
  }
  
  .featured-info h3 {
    font-size: 1.1rem;
  }
  
  .featured-info p {
    display: none; /* Hide description text on mobile */
  }
  
  .featured-action {
    margin-left: auto;
  }
  
  .btn-featured {
    padding: 10px 15px;
    font-size: 0.8rem;
    min-width: 80px;
    white-space: nowrap;
  }

  .bonus-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .scroll-arrow {
    bottom: 70px;
  }
  
  .arrow-img {
    width: 40px;
  }
  
  .scroll-arrow-text {
    font-size: 0.75rem;
  }
  
  .top-section {
    padding: 0 10px;
  }

  .search-container-inline{
    width: 100%;
  }
  
  .search-container-inline input {
    width: 90%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(133, 133, 133, 1);
    border-radius: 0.5rem;
    background-color: rgba(133, 133, 133, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
  }

  .offerwalls-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 4%;
  }

  .offerwall-card {
    padding: 20px;
  }

  .offerwall-logo {
    height: 80px;
  }

  .modal-content {
    width: 85%;
    padding: 20px;
    margin: 10% auto;
  }

  #modalTitle {
    font-size: 1.3rem;
  }

  .modal-site-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .modal-site-info p {
    white-space: normal;
  }

  .section-title {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  background: linear-gradient(135deg, #c41e3a 0%, #d4af37 50%, #165b33 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  }
}

@media (max-width: 480px) {
  .card {
    height: 320px;
    padding: 20px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    padding: 10px;
  }
  
  .featured-card {
    padding: 12px 15px;
    gap: 10px;
    min-height: 70px;
    max-height: auto;
  }
  
  .featured-number {
    font-size: 1.2rem;
    min-width: 35px;
  }
  
  .featured-logo img {
    width: 45px;
    height: 45px;
  }
  
  .featured-info {
    flex: 1;
    min-width: 0;
  }
  
  .featured-info h3 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .featured-info p {
    display: none; /* Hide description text on mobile */
  }
  
  .section-title {
    font-size: 1.5rem;
  }

  .btn-featured {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-width: 55px;
    white-space: nowrap;
  }

  .bonus-badge {
    max-width: auto;
    font-size: 0.6rem;
    padding: 4px 8px;
  }
}