.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3.5rem;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  text-decoration: none; /* remove underline */
}
.logo:hover {
  text-decoration: none;
}

.logo-highlight {
  color: #ff9900;
  font-weight: 800;
}

.header-center { flex: 1; display: flex; justify-content: center; }
.search-bar {
  width: 100%;
  max-width: 600px;
  padding: 10px 20px;
  font-size: 0.9rem;
  border: 0.1px solid #095861;
  border-radius: 5px;
}

.search-bar:focus {
  border-color: #095861;
  outline: none;
}

.headline {
  text-align: center;
  margin-top: 30px;
}

.headline h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
}


.intro {
  margin: 30px 0;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.categories {
  margin-bottom: 20px;
  overflow: hidden;
}
.category-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

.scroll-btn {
  width: 10%;
  background: transparent;
  border: none;
  color: #ff9900;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-btn:hover {
  color: #ff9900;
  transform: translateY(-1px);
}

.scroll-btn:active {
  transform: scale(0.96);
}

.category-scroll {
  flex: 0 0 90%;
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  gap: 1%;
  padding: 0 0.5%;
}

.category-box {
  flex: 0 0 calc((100% - 7%) / 8);
  height: 8rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s;
  text-decoration: none;
  color: #333;
}

.category-box:hover {
  /* background-color: #d6beb1; */
  border-color: #ff9900;
}

.category-box img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

.category-box span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ff9900;
  text-decoration: none;
  margin-top: 0.5rem;
}

.icons-grid {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
  justify-content: flex-start;
}

.icon-card {
  flex: 0 0 calc((100% - 7%) / 8); /* 8 cards with 1% gap = 7% total gap */
  height: 9rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s;
  box-sizing: border-box;
  overflow: auto;
  padding: 8px;
  margin-bottom: 1%;
  text-decoration: none;
}

.icon-card:hover {
  background-color: #eef5f6;
  border-color: #095861;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.icon-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 6px;
  object-fit: contain;
  text-decoration: none;
}

.icon-card p {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #333;
  margin: 0;
  padding-top: 0.4rem;
  width: 100%;
  font-weight: 700;       /* Make it bold */
  text-decoration: none;  /* Remove underline if any */
}

.icons-count {
  width: 90%;
  margin: 10px auto 0 auto;
  font-size: 1rem;
  color: #555;
  text-align: left;
  font-weight: 500;
  padding-bottom: 1rem;
}

.icons-header {
  width: 90%;
  margin: 10px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  padding-bottom: 1rem;
}

.download-dropdown {
  position: relative;
  display: inline-block;
}

.download-button {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: system-ui;
  padding: 8px 16px;
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.download-button:hover {
  background-color: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-color: #bbb;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: gray;
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.back-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ff9900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
    margin: 10px 3.5rem;
  }
  .back-link:hover {
    text-decoration: underline;
    /* color: #ff9900; */
  }

@media (max-width: 1024px) {
  .logo {
    margin-bottom: 0.5rem;
  }

  .category-box,
  .icon-card {
    flex: 0 0 calc((100% - 6%) / 4); /* Show 4 per row */
  }

  .scroll-btn {
    font-size: 1.5rem;
  }

  .download-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .dropdown-content a {
    font-size: 0.75rem;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
    gap: 10px;
  }

  .search-bar {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .headline h1 {
    font-size: 1.6rem;
    padding: 0 1rem;
  }

  .intro {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .category-box {
    flex: 0 0 50%; /* 2 category boxes per row */
    height: 7rem;
  }

  .icon-card {
    flex: 0 0 48%; /* 2 icon cards per row */
    height: 8.5rem;
    margin-bottom: 2%;
  }

  .category-box span {
    font-size: 0.75rem;
  }

  .icon-card p {
    font-size: 0.7rem;
  }

  .category-wrapper {
    padding: 0.5rem;
  }

  .scroll-btn {
    width: auto;
    font-size: 1.2rem;
    padding: 0 0.5rem;
  }

  .icons-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
  }

  .icons-count {
    width: 100%;
    margin: 0;
  }

  .download-button {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .dropdown-content a {
    font-size: 0.75rem;
  }

  .back-link {
    margin: 10px 1rem;
  }
}



