

/*
===========================================================
MARQUEE CONTAINER
- Wrapper for the marquee rows
- Overflow hidden ensures scrolling visuals stay within bounds
===========================================================
*/
.marquee-container {
  position: relative;
  overflow: hidden;
  background-color: #10102e; /* Background color of the marquee section */
}

/*
===========================================================
MARQUEE ROWS
- Displays content in a horizontal scrolling format
===========================================================
*/
.marquee {
  display: flex;
  white-space: nowrap;
  will-change: transform; /* Optimizes for animations */
}

.top-row {
  margin-bottom: 20px; /* Reduces gap between the top and bottom rows */
}

.bottom-row {
  flex-direction: row-reverse; /* Reverse direction for alternate scrolling effect */
}

/*
===========================================================
MARQUEE CHILD ITEMS
- Each item adapts for better readability and spacing
===========================================================
*/
.marquee > * {
  flex: 1 0 25%; /* Flex-basis at 25% width */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
===========================================================
CONTENT BOX
- Wrapper inside each marquee child for text and background
===========================================================
*/
.content-box {
  width: 95%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #fff;
}

.content-box h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.content-box p {
  font-size: 1rem;
  color: #e6e8eb;
}

/*
===========================================================
FADE OVERLAY EFFECT
- Wider fade for smoother edge transitions
===========================================================
*/
.marquee-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 16, 46, 1) 0%, rgba(16, 16, 46, 0) 25%, rgba(16, 16, 46, 0) 75%, rgba(16, 16, 46, 1) 100%);
  z-index: 1;
}

/*
===========================================================
ARROW CIRCLE FIX FOR MOBILE
- Ensures the arrow icon is properly round across all devices
===========================================================
*/
.Card .absolute {
  width: 40px; /* Ensure consistent size */
  height: 40px; /* Match width for a perfect circle */
  background-color: rgba(255, 255, 255, 0.2); /* Optional: Background color for visibility */
  border-radius: 50%; /* Makes it round */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .Card .absolute {
    width: 35px; /* Slightly smaller on mobile */
    height: 35px; /* Match width for a perfect circle */
  }
}

