

/* Full viewport background with dark overlay */
.background-container {

  background: url("../media/images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
}

/* Dark overlay */
.background-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Left-side logo panel */
.logo-panel {
  width: 33%;
  background: rgba(23, 54, 93, 0.75);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  height: 100%;
}

.logo-panel img {
  width: 80%;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Vertical carousel */
.carousel-vertical {
  height: 100%;
  width: 100%;
  overflow: hidden; /* hide native scrollbar */
  scroll-snap-type: none; /* optional */
  position: relative;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.9);
}


.carousel-track {
  display: flex;
  flex-direction: column;
  animation: slide-vertical 20s linear infinite; /* adjust speed */
}

.carousel-track img {
  width: 98%;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.5cm; /* vertical gap between images */
  display: block;       /* remove extra inline spacing */
}

@keyframes slide-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Right side: buttons card */
.login-panel {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.card-style {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.card-style h2 {
  margin-bottom: 2rem;
  color: #333;
  font-weight: 700;
}

.card-style a.btn {
  margin: 10px 0;
  width: 80%;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 10px;
  display: inline-block; /* ensure inline */
    
}

/* Policy note */
.policy-note {
  font-size: 0.85rem;
  margin-top: 10px;
  color: #555;
}

/* Floating links */
.floating-links {
  position: fixed;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.floating-links a {
  margin: 5px 0;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  background: #007bff;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-align: center;
}

.floating-links a:hover {
  background: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .background-container {
    flex-direction: column;
    height: auto;
    padding: 2rem 0;
  }

  .logo-panel, .login-panel {
    flex: none;
    width: 100%;
    padding: 1rem 2rem;
  }

  .carousel-vertical {
    width: 100%;
    height: 100px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    animation: none;
  }

  .carousel-track {
    flex-direction: row;
    animation: none;
  }

  .carousel-track img {
    margin: 0 1rem;
    height: 80px;
    width: auto;
  }

  .card-style {
    max-width: 100%;
    border-radius: 1rem;
    padding: 2rem 1rem;
  }
}



/* Horizontal scroll container */
.horizontal-scroll {
  width: 100%;
  height: 5cm; /* fixed height */
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
  border-top: 1px solid #ccc;
}

/* Track for continuous scrolling */
.horizontal-scroll-track {
  display: flex;
  flex-direction: row;
  position: absolute;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

/* Individual ad item */
.horizontal-scroll-track .ad-item {
  flex: 0 0 auto;
  min-width: 180px;
  margin-right: 20px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 5px;
  white-space: nowrap;
    
}


.ad-item {
  position: relative;
  overflow: hidden;
}
.ad-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 3px 5px;
  text-align: center;
}


/* Continuous scroll animation */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* moves half because of duplication */
}

/* Optional: smaller text for notices */

.notice-text {
  font-size: 0.9rem;
  white-space: normal !important;   /* allow wrapping */
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 200px;   /* text width limit */
  margin: 5px auto 0;
  text-align: center;
  line-height: 1.3;
}

/* Scrollbar hidden */
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}
.horizontal-scroll {
  -ms-overflow-style: none;  /* IE 10+ */
  scrollbar-width: none;  /* Firefox */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .horizontal-scroll {
    height: 100px;
  }

  .horizontal-scroll-track .ad-item img {
    height: 80px;
    width: auto;
  }
}


