/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}


body, html {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  background: none; /* So background image from .bg-container shows through */
}

html {
  scroll-behavior: smooth;
}


/* Background Image Fullscreen */


.bg-container {
  background-image: url('../assets/imgs/search-bg.jpg'); /* Replace with your background */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  height: 100%;
  width: 100%;
  position: relative;
}




.overlay {
  background: rgba(0, 0, 0, 0.6); /* Soft blur effect */
  min-height: 100vh;
  padding: 60px 20px 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}



.main-wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 20px;
}

.content-box {
  text-align: center;
  color: white;
}

.brand-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 40px;
  text-shadow: 2px 2px 8px #000000;
}

/* Search Bar Styling */
.search-form {
  display: flex;
  justify-content: center;
}

.search-bar {
  background-color: white;
  display: flex;
  align-items: center;
  border-radius: 50px;
  overflow: hidden;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.search-bar input[type="text"] {
  flex: 1;
  padding: 20px 25px;
  border: none;
  font-size: 20px;
  outline: none;
  border-radius: 50px 0 0 50px;
}

.search-bar button {
  background: none;
  border: none;
  padding: 20px;
  font-size: 22px;
  cursor: pointer;
  color: #444;
  border-left: 1px solid #ddd;
  transition: background 0.3s;
}

.search-bar button:hover {
  background-color: #f2f2f2;
}


.results-container {
  margin-top: 40px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.result-card {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.result-title {
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.result-title:hover {
  text-decoration: underline;
}

.result-desc {
  color: #eee;
  margin: 10px 0;
}

.result-link {
  color: #a5d6ff;
  font-size: 14px;
}

.no-results {
  font-size: 18px;
  color: #ffcdd2;
  margin-top: 20px;
}

.top-categories-container {
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    max-width: 1200px;
}

.top-categories-container h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 🔥 4 columns by default */
    gap: 20px;
    padding: 10px;
}

/* Each card */
.category-card {
    width: 100%;
    max-width: 190px;
    min-width: 190px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    border-color: #007BFF;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
}





/* Responsive Settings */
@media (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row ✅ */
    }

    .category-card {
        padding: 10px; /* Smaller padding */
        width:92%;
        max-width: 120px;
        min-width:120px;
    }

    .category-icon {
        font-size: 28px; /* Smaller icons */
        margin-bottom: 6px;
    }

    .category-title {
        font-size: 16px; /* Smaller title text */
    }
}




/* Mobile Optimizations */
@media (max-width: 768px) {
  .brand-title {
    font-size: 32px;
  }

  .search-bar input[type="text"] {
    padding: 16px 20px;
    font-size: 18px;
  }

  .search-bar button {
    padding: 16px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .search-bar {
    flex-direction: row;
    width: 95%;
  }

  .search-bar input[type="text"] {
    padding: 14px 18px;
    font-size: 16px;
  }

  .search-bar button {
    padding: 14px;
  }
}
