/* ===== OFFBAR (TOP FULL WIDTH) ===== */
.offbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px;

  background: linear-gradient(135deg, #ffffff, rgb(0, 103, 167));
  color: rgb(0, 103, 167);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  padding: 0 20px;
  box-sizing: border-box;

  font-weight: 500;
  z-index: 1100;

  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Text inside */
.offbar p {
  margin: 0;
  font-size: 15px;
  text-align: center;
}


/* ===== CTA BUTTON ===== */
.cta-btn {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgb(0, 103, 167);
  cursor: pointer;
  transition: 0.25s ease;
}

.cta-btn p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 2;
}
.cta-btn:hover p{
    color:rgb(0, 103, 167);
}

/* ----- LEFT-TO-RIGHT SLIDE EFFECT USING ::after ----- */
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

  background: #ffffff; /* new color sliding */
  transition: all 0.35s ease;
  color:rgb(0, 103, 167);
  z-index: 1;
}

/* On hover slide from left */
.cta-btn:hover::after {
  left: 0;
}

/* Slight lift on hover */
.cta-btn:hover {
  transform: translateY(-2px);
}


/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets and below */
@media (max-width: 768px) {
  .offbar {
    flex-direction: column;
    padding: 12px;
    min-height: auto;
  }

  .offbar p {
    font-size: 14px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .offbar {
    padding: 10px 8px;
    gap: 10px;
  }

  .offbar p {
    font-size: 13px;
  }

  .cta-btn {
    padding: 7px 16px;
  }
}
