.categories-hero {
  height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
  background: #000000;
  --bg-overlay: rgba(0, 0, 0);
  --bg-gradient: linear-gradient(180deg, rgba(0, 0, 0), rgba(0, 0, 0));
  background-image: var(--bg-gradient), var(--bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.categories-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  pointer-events: none;
}

.categories-hero > div:first-child {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.categories-hero img {
  max-width: 220px;
  margin-bottom: 0.75rem;
}

.categories-hero p {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
}

.categories-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  flex: 1;
  display: flex;
  gap: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background-color: #c5961d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1.5rem;
  z-index: 1;
}

.categories-list-and-image {
  display: flex;
  width: 100%;
  gap: 1.5rem;
}

.categories-list-group {
  flex: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
}

.categories-list-block {
  flex: 1;

  border-radius: 12px;

  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  margin-bottom: 0;
}

.categories-list-block:hover {
  transform: translateY(-6px);
}

.categories-list-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list-block ul li {
  margin: 0.4rem 0;
}

.categories-list-block ul li a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #000000;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: 600;
}

.categories-list-block ul li a:hover {
  background: #000;
  color: #ffe600;
  padding-left: 14px;
}

.categories-image-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.categories-image-block img {
  max-width: 120%;
  max-height: 120%;
  border-radius: 0.5rem;
  object-fit: contain;
}

/* Overwrite Categories content css */

.categories-block {
  text-align: center;
  margin: 0 auto; /* space around the block */
}

.categories-heading {
  font-size: 2.8rem; /* bigger */
  font-weight: 800; /* bolder */
  margin: 15px 0; /* spacing above & below */
  letter-spacing: 1px; /* elegant spacing */
  position: relative;
  color: #c5961d;
}

.categories-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 12px;
}

/* =============================
   RESPONSIVE MEDIA QUERIES
============================= */

/* ≤1200px (large tablets / small desktops) */
@media (max-width: 1200px) {
  .categories-content {
    width: 95%;
    gap: 1rem;
    padding: 1rem;
  }
  .categories-list-block {
    padding: 0.8rem;
  }
}

/* ≤1000px (tablets landscape) */
@media (max-width: 1000px) {
  .categories-list-and-image {
    flex-direction: column;
    align-items: center;
  }
  .categories-list-group,
  .categories-image-block {
    flex: none;
    width: 100%;
  }
  .categories-image-block img {
    max-width: 90%;
  }
}

/* ≤800px (tablets portrait) */
@media (max-width: 800px) {
  .categories-hero {
    height: auto;
    padding: 1.5rem 1rem;
  }
  .categories-hero img {
    max-width: 200px;
  }
  .categories-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .categories-list-group {
    flex-direction: column;
  }
  .categories-list-block {
    width: 100%;
  }
}

/* ≤600px (large phones / phablets) */
@media (max-width: 600px) {
  .categories-hero img {
    max-width: 180px;
    margin-bottom: 0.5rem;
  }
  .categories-hero h1,
  .categories-hero h2 {
    font-size: 1.8rem;
  }
  .categories-hero p {
    font-size: 0.9rem;
  }
  .categories-image-block img {
    max-width: 100%;
  }
}

/* ≤400px (phones) */
@media (max-width: 400px) {
  .categories-hero {
    padding: 1rem 0.5rem;
  }
  .categories-hero img {
    max-width: 160px;
  }
  .categories-hero h1,
  .categories-hero h2 {
    font-size: 1.5rem;
  }
  .categories-hero p {
    font-size: 0.8rem;
  }
  .categories-list-block ul li a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
}

/* ≤320px (small devices / very small phones) */
@media (max-width: 320px) {
  .categories-hero img {
    max-width: 140px;
  }
  .categories-hero h1,
  .categories-hero h2 {
    font-size: 1.3rem;
  }
  .categories-hero p {
    font-size: 0.75rem;
  }
  .categories-list-block ul li a {
    font-size: 0.8rem;
    padding: 5px 6px;
  }
}
