.smart-device.Banner {
	position: relative;
    max-width: 1440px;
    margin: 100px auto 100px;
}

.banner-media {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* make video/img behave like background cover */
  display: block;
}

/* If your .bannerimg sets height via CSS, videos will inherit that */
.bannerimg {
  position: relative;
  overflow: hidden;
}

/* Desktop vs mobile swap */
.only-desktop { display: block; }
.only-mobile  { display: none; }

/* update */
.smart-device .bannerimg {
	width: 100%;
	height: 100%;
}
.bannerimg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* update */
.smart-device .banner-overlay{
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}
/* update */
.smart-device .Smart-Banner-text {
	position: absolute;
	width: min-content;
	left: 0;
	top: 50%;
    transform: translateY(-50%);
    margin: auto 100px;
}
/* update */
.smart-device .homepage_banner_h{
	color: #FFFFFF;
	font-family: Archivo;
	font-weight: 700;
	font-size: 48px;
	line-height: 1.2;
    letter-spacing: 0;
	margin: 0;
}
/* update */
.smart-device .Smart-Banner-text p {
    width: 514px;
	font-family: Archivo;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.5;
    letter-spacing: 0;
	color: #FFFFFF;
	margin: 0;
}
/* update */
.smart-device .Smart-Banner-text a {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 40px;
	background: #FFDF00;
	color: #191919;
	border-radius: 100px;
	padding: 17.5px 20px !important;
	text-decoration: none;
    width: max-content;
}
/* update */
.smart-device .Smart-Banner-text a span{
	font-family: Archivo;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.5;
    letter-spacing: 0;
	text-transform: none;
    width: max-content;
}
/* update */
.smart-device .Smart-Banner-text a img{
	display: inline;
	width: 19px;
	height: auto;
}
/* smart-device */
.smart-device .Smart-Banner-text h3{
    font-family: Archivo;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0;
}
.Smart-Banner-text .button-svg{
    height: 20px;
}
.smart-device .smart-device-detail{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 254px;
}
.smart-device .lock-img{
    display: none;
}

.page-template-template-careers .smart-device .Smart-Banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* sizing + readability */
  width: min(800px, calc(100% - 40px));
  margin: 0 !important;           /* kill leftover margins that push left */
  text-align: center;              /* centers inline content (incl. the link) */
  z-index: 1;                      /* keep above background if needed */
}

.page-template-template-careers .smart-device .Smart-Banner-text a {
  display: inline-flex;            /* shrink to content, allows centering via parent text-align */
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px auto 0;             /* auto left/right centers the button box */
  background: #FFDF00;
  color: #191919;
  border-radius: 100px;
  padding: 17.5px 24px !important;
  text-decoration: none;
  white-space: nowrap;             /* optional: prevent awkward wrapping */
}

.page-template-template-careers .smart-device .Smart-Banner-text p {
    width: auto;
}

.page-template-template-careers .smart-device .smart-device-detail {
	display:block;
	height:auto;
}

/* Shared styles for both mobile and tablet */
@media (max-width: 1024px) {
	.smart-device .Smart-Banner-text {
		top: auto;
	}
	.smart-device .banner-overlay{
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
	}
    /* smart-device */
    .smart-device.Banner{
        overflow: hidden;
        margin: 30px 0 31px;
    }
    .smart-device .bannerimg{
        height: 842px;
    }
    /* update */
    .smart-device .rm-mob-line-break{
        display: none;
    }
	.page-template-template-careers .smart-device .Smart-Banner-text {
		top:30%;
	}
	.page-template-template-careers .smart-device .homepage_banner_h {
	width:auto;	
		margin-top:10px;
	}
}

/* Mobile-specific overrides */
@media (max-width:767px){
	.smart-device .Smart-Banner-text {
		width: 408px;
		bottom: 15%
	}

	.smart-device .homepage_banner_h{
		font-weight: 700;
		font-size: 32px;
		line-height:1.2;
		font-weight:700;
	}
	
  .smart-device .bannerimg { 
    display: none !important;   /* hide the whole desktop block */
  }
  .smart-device .only-mobile {
    display: block !important;  /* ensure mobile media shows */
    width: 100%;
    height: auto;               /* or set a fixed height + object-fit if needed */
    object-fit: cover;
    display: block;
  }

	.smart-device .Smart-Banner-text p {
		font-size: 16px;
		font-weight:400;
		line-height:1.5;
		margin-top: 10px;
	}
	.smart-device .Smart-Banner-text a {
		margin-top: 40px
	}
    /* smart-device */
    .smart-device .banner-overlay{
        height: 80%;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    }
    .smart-device .Smart-Banner-text{
        margin: 78px 17px 0;
        top: 0%;
        bottom: 0%;
        transform: none;
        height: fit-content;
        width: auto;
    }
    .smart-device .Smart-Banner-text h3{
        font-weight: 400;
        font-size: 20px;
		line-height:1.2;
    }
    .smart-device .homepage_banner_h{
        font-weight: 700;
        font-size: 32px;
		line-height:1.2;
        width: 236px;
    }
    .smart-device .Smart-Banner-text p {
        font-weight: 400;
        font-size: 16px;
        line-height: 1.5;
        width: 95%;
    }
    .smart-device .smart-device-detail {
        height: 162px;
        align-items: center;
        text-align: center;
    }
    .smart-device .Smart-Banner-text a{
        margin: 55px auto 0;
        padding: 17px 20px;
    }
    .smart-device .bannerimg img {
        object-position: 40%;
    }
    .smart-device .lock-img{
        display: block;
        object-fit: cover;
        position: absolute;
        bottom: 52px;
        width: 65%;
        left: 36%;
        transform: translateX(-15%);
    }
    .smart-device .Smart-Banner-text a{
          padding: 10px 20px !important;
    }
    .smart-device .Smart-Banner-text a span {
        width: max-content;
        font-size: 16px;
    }
    .page-template-template-home .Banner-text .button-svg{
        margin-left: 15px;
    }
}
@media (min-width: 550px) and (max-width: 767px) {
    .smart-device .bannerimg img {
        object-position: 30%;
    }
    .smart-device .lock-img {
        width: 45%;
        left: 40%;
    }
}
/* Tablet-specific overrides */
@media (min-width: 768px) and (max-width: 1024px) {
    .smart-device .bannerimg {
        height: 420px;
    }
	.smart-device .Smart-Banner-text {
		width: 700px;
		bottom: 10%;
        transform: scale(0.7) translateX(-35%);
	}
    /* smart-device */
    .smart-device .bannerimg img {
        object-position: right;
    }
	  .only-desktop { display: none; }
  .only-mobile  { display: block; }
}

/* Optional: prevent click-to-pause on autoplay video */
.banner-media[autoplay] {
  pointer-events: none;
}
}
@media (max-width: 1279px) {
    .page-template-template-home .site-logo {
        margin-left: 30px;
    }
}

@media (min-width: 1441px) {
    .smart-device.Banner {
        border-radius: 35px;
        overflow: hidden;
    }
}
@media (max-width: 768px) {
.page-template-template-careers .smart-device .Smart-Banner-text {
    width: calc(100% - 32px);
  }
.page-template-template-careers .smart-device .Smart-Banner-text a {
    padding: 14px 18px !important;
    margin-top: 24px;
    white-space: normal;           /* allow wrapping on small screens if needed */
  }
}
