/* Disable default base.css hero styling ONLY on homepage */
.home-hero {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.hero {
  all: unset;
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 1.4rem;
  padding-top: 110px;
  padding-bottom: 80px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.44));
  z-index: 1;
}

.hero-logo,
.hero-text {
  position: relative;
  z-index: 2;
}

.hero-logo {
  margin-bottom: 1.1rem;
}

.hero-logo img {
  width: 104px;
  height: auto;
}

.hero-text {
  background: color-mix(in srgb, var(--bs-body-bg) 26%, transparent);
  border: 1px solid color-mix(in srgb, var(--bs-body-color) 22%, transparent);
  backdrop-filter: blur(7px);
  padding: 1.15rem 1.2rem;
  border-radius: 0.95rem;
  display: inline-block;
  max-width: min(700px, 92%);
}

.hero-text h1 {
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
  line-height: 1.22;
  text-wrap: balance;
}

.hero-text p {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: #fff;
  margin: 0;
  opacity: 0.92;
}

.home-section-title {
  margin-top: 0;
  text-align: center;
}

.home-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin-bottom: 0.35rem;
}

.home-section-title h3 {
  font-weight: 700;
  font-size: clamp(1.25rem, 2.1vw, 1.62rem);
  margin-bottom: 0.3rem;
}

.home-section-title p {
  color: var(--bs-secondary-color);
  margin: 0;
  font-size: 0.95rem;
}

.home-grid,
.brand-grid,
.user-grid {
  padding: 1.1rem 0.35rem 0.4rem;
  margin: 0 auto;
  align-items: stretch;
}

.home-section-block {
  margin-top: 1.2rem;
  padding: 1.15rem 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 76%, transparent);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--bs-body-bg) 94%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.home-section-last {
  margin-bottom: 0.5rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  max-width: 1200px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  max-width: 1000px;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  max-width: 1000px;
}

.home-card,
.brand-card,
.user-card {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.85rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.home-card {
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.home-card::after,
.brand-card::after,
.user-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: linear-gradient(130deg, color-mix(in srgb, var(--bs-primary) 10%, transparent), transparent 60%);
}

.brand-card,
.user-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.home-card:hover,
.brand-card:hover,
.user-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.12);
  border-color: color-mix(in srgb, var(--bs-primary) 34%, var(--bs-border-color));
}

.home-card:hover::after,
.brand-card:hover::after,
.user-card:hover::after {
  opacity: 1;
}

.home-card:focus-visible,
.brand-card:focus-visible,
.user-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bs-primary) 60%, white);
  outline-offset: 2px;
}

.home-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 164px;
  max-height: 190px;
  object-fit: contain;
  background: var(--bs-tertiary-bg);
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}

.home-card:hover img {
  opacity: 0.94;
}

.home-card .info {
  padding: 0.72rem 0.72rem 0.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 98px;
}

.home-card .info h5 {
  font-size: 0.95rem;
  margin: 0 0 auto;
  font-weight: 600;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.home-card .info p,
.brand-card p,
.user-card p {
  font-size: 0.84rem;
  color: var(--bs-secondary-color);
  margin: 0.45rem 0 0;
  font-weight: 500;
}

.brand-card {
  padding: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-card h5,
.user-card h5 {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.user-card {
  padding: 1rem 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.user-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.home-section-title,
.home-grid,
.brand-grid,
.user-grid {
  animation: homeFadeIn 0.45s ease both;
}

.home-grid { animation-delay: 0.05s; }
.brand-grid { animation-delay: 0.08s; }
.user-grid { animation-delay: 0.11s; }

@keyframes homeFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#cookie-banner {
  display: none;
  position: fixed;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-size: 0.9rem;
}

#cookie-banner button {
  float: right;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 330px;
    padding-top: 88px;
    padding-bottom: 64px;
  }

  .hero-logo img {
    width: 88px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 310px;
    border-radius: 1rem;
    padding-top: 74px;
    padding-bottom: 52px;
  }

  .hero-text {
    padding: 0.85rem 0.9rem;
  }

  .home-section-title {
    margin-top: 2.1rem;
  }

  .home-grid,
  .brand-grid,
  .user-grid {
    padding: 1rem 0 0.1rem;
    gap: 0.75rem;
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-grid,
  .user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card img {
    min-height: 118px;
    max-height: 134px;
  }

  .home-card .info {
    min-height: 82px;
    padding: 0.55rem 0.55rem 0.65rem;
  }

  .home-card .info h5 {
    font-size: 0.83rem;
  }

  .home-card .info p,
  .brand-card p,
  .user-card p {
    font-size: 0.75rem;
  }

  .brand-card,
  .user-card {
    padding: 0.8rem 0.7rem;
  }

  .user-card img {
    width: 52px;
    height: 52px;
  }
}

/* === HOME UPGRADE 2026 === */
.my18-modern .home-hero {
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 65%, transparent);
  box-shadow: 0 18px 46px rgba(13, 18, 28, 0.24);
}

.my18-modern .home-hero::before {
  background:
    linear-gradient(to bottom, rgba(8, 12, 18, 0.22), rgba(8, 12, 18, 0.56)),
    radial-gradient(circle at 16% 18%, rgba(14, 165, 164, 0.24), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(255, 91, 46, 0.28), transparent 30%);
}

.my18-modern .hero-text {
  background: color-mix(in srgb, #0f172a 46%, transparent);
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 1.1rem;
}

.my18-modern .home-grid,
.my18-modern .brand-grid,
.my18-modern .user-grid {
  gap: 1rem;
}

.my18-modern .home-section-block {
  border-color: color-mix(in srgb, var(--bs-border-color) 78%, transparent);
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 164, 0.06), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(255, 91, 46, 0.05), transparent 34%),
    color-mix(in srgb, var(--bs-body-bg) 94%, transparent);
}

.my18-modern .home-card,
.my18-modern .brand-card,
.my18-modern .user-card {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--bs-border-color) 76%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.my18-modern .home-card:hover,
.my18-modern .brand-card:hover,
.my18-modern .user-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.my18-modern .home-card img {
  min-height: 168px;
  max-height: 194px;
  background: linear-gradient(145deg, var(--bs-tertiary-bg), color-mix(in srgb, var(--bs-body-bg) 76%, transparent));
}

.my18-modern .home-card .info h5 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

@media (max-width: 767.98px) {
  .my18-modern .home-card img {
    min-height: 122px;
    max-height: 136px;
  }

  .home-section-block {
    margin-top: 0.9rem;
    padding: 0.9rem 0.7rem 1rem;
    border-radius: 0.95rem;
  }

  .home-section-kicker {
    margin-bottom: 0.25rem;
  }
}
