body {
  font-family: 'Orbitron', sans-serif;
  background-color: #0b0c10;
  color: #fff;
}

.btn-yellow {
  background-color: #ffc107;
  color: #000;
  border: none;
}

.btn-yellow:hover {
  background-color: #e0a800;
}

.btn-outline-yellow {
  background-color: #000;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.btn-outline-yellow:hover {
  background-color: #111;
  color: #ffc107;
}

.view-toggle-btn.active.btn-yellow {
  background-color: #ffc107 !important;
  color: #000 !important;
  border: none !important;
}

.view-toggle-btn:not(.active).btn-outline-yellow {
  background-color: #000 !important;
  color: #ffc107 !important;
  border: 2px solid #ffc107 !important;
}


.listing-card {
  background-color: #1f1f1f;
  border: 1px solid #ffc107;
  padding: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.listing-card p,
.listing-card .tags {
  color: #ccc;
}

.carousel-container {
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

.activity-box {
  background-color: #1a1a1a;
  padding: 20px;
  margin-top: 30px;
  border-left: 5px solid #ffc107;
}

.news-box {
  background-color: rgba(26, 26, 26, 0.5); /* 50% transparent version of #1a1a1a */
  padding: 20px;
  margin-top: 30px;
  border-left: 5px solid #ffc107;
}

/* ✅ NEW - Transparent box effect with sharp content */
.news-overlay-box {
  position: relative;
  margin-top: 30px;
  padding: 20px;
  border-left: 5px solid #ffc107;
  background-color: transparent;
  overflow: hidden;
}

.news-overlay-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 26, 0.85); /* 85% solid, only 15% transparent */
  z-index: 0;
}

.news-overlay-box > * {
  position: relative;
  z-index: 1; /* Keeps text and buttons above the overlay */
}

/* Limit long content overflow only in selected columns */
.table td.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.table th, .table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.table td a {
  color: #ffc107;
}

.table td a:hover {
  text-decoration: underline;
}

.intro-background-wrapper {
  position: relative;
  background: url('images/ARTop.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.intro-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.intro-background-wrapper section {
  position: relative;
  z-index: 2;
}

.listing-background-wrapper {
  position: relative;
  background: url('images/ARListing.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.listing-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.listing-background-wrapper section {
  position: relative;
  z-index: 2;
}

.newsmain-background-wrapper {
  position: relative;
  background: url('images/ARNewsReader.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.newsmain-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.newsmain-background-wrapper section {
  position: relative;
  z-index: 2;
}

.marketfeatured-background-wrapper {
  position: relative;
  background: url('images/ARMarketplace.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.marketfeatured-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* overlay */
  z-index: 1;
}

.marketfeatured-background-wrapper section {
  position: relative;
  z-index: 2;
}


.aboutus-background-wrapper {
  position: relative;
  background: url('images/ARAboutUs.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.aboutus-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.aboutus-background-wrapper section {
  position: relative;
  z-index: 2;
}

.profilemain-background-wrapper {
  position: relative;
  background: url('images/ARProfileMain.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.profilemain-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.profilemain-background-wrapper section {
  position: relative;
  z-index: 2;
}

.dashboard-background-wrapper {
  position: relative;
  background: url('images/ARDashboard.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.dashboard-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.dashboard-background-wrapper section {
  position: relative;
  z-index: 2;
}

.messaging-background-wrapper {
  position: relative;
  background: url('images/ARMessaging.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.messaging-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.messaging-background-wrapper section {
  position: relative;
  z-index: 2;
}

.marketplace-background-wrapper {
  position: relative;
  background: url('images/ARMarketplace.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.marketplace-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.marketplace-background-wrapper section {
  position: relative;
  z-index: 2;
}

.updatesubmit-background-wrapper {
  position: relative;
  background: url('images/ARUpdateSubmit.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.updatesubmit-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.updatesubmit-background-wrapper section {
  position: relative;
  z-index: 2;
}

.loginregister-background-wrapper {
  position: relative;
  background: url('images/ARLoginRegister.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.loginregister-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  z-index: 1;
}

.loginregister-background-wrapper section {
  position: relative;
  z-index: 2;
}

.news-background-wrapper {
  position: relative;
  z-index: 0;
  background: url('images/ARNewsReader.jpg') center center / cover no-repeat;
  padding: 60px 0;
}

.news-background-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(33, 37, 41, 0.5); /* semi-transparent overlay */
  z-index: 1;
  pointer-events: none;
}

/* ✅ Only the immediate wrapper gets the z-index boost */
.news-background-wrapper > .content-wrapper {
  position: relative;
  z-index: 2;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Cart Slideout Panel */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 400px;
  height: 100vh;
  transition: transform 0.3s ease;
  z-index: 1055;
  border-left: 2px solid #ffc107;
}

.cart-panel.show {
  transform: translateX(0);
}

@media (max-width: 500px) {
  .cart-panel {
      width: 100%;
  }
}

.sponsor-hover {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}

.sponsor-hover:hover {
  transform: scale(1.05); /* slightly zoom in */
  filter: brightness(1.2); /* lighten image */
}
