/* == Global Reset == */
html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #111;
  color: #fff;
  text-align: center;
}

/* == Hero Banner == */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

.hero-banner .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.hero-banner h1 {
  font-size: 2.8rem;
  margin: 0;
  text-shadow: 2px 2px 5px black;
}

.hero-banner p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #ddd;
}

/* == Categories Grid == */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category {
  background-color: #1a1a1a;
  border: 2px solid #e90101;
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(233, 1, 1, 0.6);
}

.category h2 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: #fff;
}

.category p {
  color: #aaa;
  font-size: 0.95rem;
}

/* == Footer == */
footer {
  padding: 2rem 1rem 1rem;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  margin-bottom: 0;
}

/* == Image-Based Tiles (Unholy + Others) == */
.tile-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  border: 2px solid #e90101;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-image .overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 1.5rem;
  box-sizing: border-box;
  text-align: center;
}

.tile-image h2 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.tile-image p {
  font-size: 0.95rem;
  color: #ddd;
  margin: 0;
}

/* == Responsive Fixes == */
@media (max-width: 600px) {
  .hero-banner {
    height: 320px;
    aspect-ratio: unset;
  }

  .hero-banner .hero-img {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
  }

  .hero-banner .overlay {
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.85));
  }

  .hero-banner h1 {
    font-size: 2.5rem;
  }

  .hero-banner p {
    font-size: 1.05rem;
    margin-top: 8px;
  }

  .categories {
    padding: 1rem;
    gap: 1rem;
  }

  .category {
    padding: 1.2rem;
  }

  .category h2 {
    font-size: 1.1rem;
  }

  .category p {
    font-size: 0.85rem;
  }

  .tile-image {
    height: auto;
    min-height: 180px;
    padding: 0;
  }

  .tile-image .overlay-text {
    padding: 1rem;
  }
}

/* === Accessibility / overflow-safety patch (add at END of index.css) === */
@media (max-width: 9999px) {              /* applies everywhere */
  .categories,
  .categories > * {                       /* every tile/link/card inside */
    box-sizing: border-box;               /* include padding & border in width calc */
    max-width: 100%;                      /* never grow wider than the screen */
    overflow-wrap: break-word;            /* long text won’t push width */
  }
}





