* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* HEADER */
.site-header {
  background: linear-gradient(135deg, #0a0c10 0%, #1a1f2c 100%);
  padding: 32px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* SEARCH CONTAINER */
.search-container {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0 20px;
  position: relative;
}

#logoSearch {
  width: 100%;
  max-width: 360px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 20px;
  outline: none;
  transition: all 0.2s ease;
}

#logoSearch:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* SEARCH RESULTS - গ্রিড লেআউট এবং ব্যাকগ্রাউন্ড ফিক্স করা হয়েছে */
#searchResults {
  position: fixed;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background: white; /* ব্যাকগ্রাউন্ড সাদা করা হয়েছে */
  z-index: 9999;
  max-height: 500px;
  overflow-y: auto;
  border-radius: 12px; /* বর্ডার রেডিয়াস যোগ করা হয়েছে */
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* শ্যাডো যোগ করা হয়েছে যাতে সাদার ওপর স্পষ্ট হয় */
  border: 1px solid #eee;
  
  /* display: block এর বদলে এখানে grid ব্যবহার নিশ্চিত করা হয়েছে */
  display: none; /* ডিফল্টভাবে হাইড থাকবে, JS দিয়ে দেখানোর সময় grid করতে হবে */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 25px;
  justify-content: center;
  padding: 20px;
  
  animation: fadeSlideDown 0.2s ease;
}

/* যখন সার্চ রেজাল্ট সক্রিয় হবে, তখন এটি গ্রিড হিসেবে কাজ করবে */
#searchResults[style*="display: block"] {
  display: grid !important;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* স্ক্রল বার স্টাইল */
#searchResults::-webkit-scrollbar {
  width: 6px;
}

#searchResults::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* সার্চ আইটেম */
.search-item {
  background: #fafafa; /* আইটেমের ব্যাকগ্রাউন্ড হালকা গ্রে করা হয়েছে যাতে সাদার ওপর বোঝা যায় */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
}

.search-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background: white;
}

.search-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.search-item span {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}

.section h2 {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: #222;
  text-align: center;
}

/* LOGO GRID */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 160px);
  gap: 25px;
  justify-content: center;
}

/* LOGO CARD */
.logo-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
  text-decoration: none;
  display: block;
}

.logo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.logo-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.logo-card span {
  display: block;
  font-size: 14px;
  margin-top: 10px;
  color: #333;
  font-family: Arial, sans-serif;
}

/* A-Z GRID */
.az-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.az-grid a {
  background: white;
  padding: 12px 6px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 15px;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.az-grid a:hover {
  background: #333;
  color: white;
  transform: scale(1.05);
}

/* LOGO DETAIL PAGE */
.logo-detail {
  max-width: 1200px;
  margin: auto;
  padding: 32px 24px;
}

.logo-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* DETAIL IMAGE */
.logo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 16px;
  padding: 32px;
}

.logo-image img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
}

/* DETAIL INFO */
.logo-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
  margin-top: 0;
}

.logo-info p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

/* DOWNLOAD BUTTON */
.download-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: 0.2s;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: #333;
  transform: scale(1.02);
}

/* TAGS */
.logo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.logo-tags span {
  background: #eee;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #555;
}

/* BREADCRUMB */
.breadcrumb {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  font-size: 14px;
  text-align: left;
}

.breadcrumb a {
  text-decoration: none;
  color: #666;
}

.breadcrumb a:hover {
  color: #000;
}

/* FOOTER */
.site-footer {
  margin-top: 50px;
  padding: 40px 20px;
  background: #111;
  color: #fff;
  text-align: center;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: #ddd;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo-detail-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .logo-image img {
    height: 150px;
  }

  .logo-grid {
    grid-template-columns: repeat(auto-fill, 140px);
    gap: 20px;
  }
  
  .logo-card img {
    width: 80px;
    height: 80px;
  }

  .az-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  #searchResults {
    top: 170px;
    grid-template-columns: repeat(auto-fill, 140px);
    gap: 20px;
    max-height: 400px;
  }
  
  .search-item img {
    width: 80px;
    height: 80px;
  }
  
  .search-item span {
    font-size: 12px;
  }
  
  #logoSearch {
    width: 90%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .az-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  #searchResults {
    top: 160px;
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 15px;
    max-height: 350px;
  }
  
  .search-item img {
    width: 70px;
    height: 70px;
  }
  
  .search-item {
    padding: 12px;
  }
  
  .logo-grid {
    grid-template-columns: repeat(auto-fill, 120px);
    gap: 15px;
  }
  
  .logo-card img {
    width: 70px;
    height: 70px;
  }
  
  .logo-card span {
    font-size: 11px;
  }
}