/* Royal Services */
.royalelementservices{
    padding: 20px; 
    height: 100%;
}

.royalelementservices .serviceimg {
  width: 150px;
  height: 150px;
  position: relative;
  background-color: #EFF1F5;
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
}

.royalelementservices .serviceimg .imageoricon{
  width: 150px;
  height: 150px;  
  display: flex;
  justify-content: center;
  align-items: center;    
}

.royalelementservices .serviceimg .imageoricon img{
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.royalelementservices .serviceimg .imageoricon i{
  font-size: 80px;
}

.royalelementservices a {
    color: #0E5AF2;
    text-decoration: none;
    outline: 0;
    transition: all ease 0.4s;
}

.royalelementservices .linkbtn {
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  line-height: 0.8;
  position: relative;
  padding-bottom: 2px;
  margin-bottom: -2px;
}

.royalelementservices .linkbtn i {
  margin-left: 7px;
  font-size: 0.9rem;
}

.royalelementservices .linkbtn:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: #0E5AF2;
  transition: all ease 0.4s;
}

.royalelementservices:hover .linkbtn {
  color: #fff;
}

.royalelementservices .linkbtn:hover::before {
  width: 100%;
}


/* servicestyle1 */
.royalelementservices .servicestyle1 {
  display: block;
  text-align: center;
  margin: 0;
}

.royalelementservices .servicestyle1 .serviceimg {
  border-radius: 50%;
}

.royalelementservices .servicestyle1 .servicenumber {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  font-weight: 500;
  color: #0E5AF2;
  background-color: #ffffff;
  text-align: center;
  border-radius: 0 0 50% 50%;
  position: absolute;
  left: 50%;
top: 0;
transform: translateX(-50%);
}

.royalelementservices .servicestyle1 .servicetitle {
  margin: 10px 0 0 0;
}

.royalelementservices .servicestyle1 .servicetitle a {
  color: #1A1A1A;
  transition: all ease 0.4s;
}

.royalelementservices .servicestyle1 .servicedescription {
  margin: 0 0 12px 0;
}

.royalelementservices .servicestyle1 .servicecontent {
  flex: 1;
  position: relative;
  border-radius: 5px;
  padding: 99px 30px 30px 30px;
  margin: -69px 0 0 0;
  transition: all ease 0.4s;
  overflow: hidden;
  background-color: #ffffff;
}

.royalelementservices .servicestyle1 .servicecontent > * {
  position: relative;
  z-index: 1;
  transition: all ease 0.4s;
}

.royalelementservices .servicestyle1 .serviceshape {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 5px;
  transition: all ease 0.4s;
  transform: scale(1.1);
  background-color: #0E5AF2;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right center;
}

.royalelementservices:hover .servicestyle1 .servicedescription,
.royalelementservices:hover .servicestyle1 .servicetitle a,
.royalelementservices:hover .servicestyle1 .linkbtn {
  color: #ffffff;
}

.royalelementservices:hover .servicestyle1 .servicecontent {
  border-color: transparent;
}

.royalelementservices:hover .servicestyle1 .serviceshape {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}


/* servicestyle2 */
.royalelementservices .servicestyle2 {
  display: flex;
  align-items: center;
  margin: 0;
}

.royalelementservices .servicestyle2 .serviceimg img {
  border-radius: 5px;
}

.royalelementservices .servicestyle2 .servicenumber {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  font-weight: 500;
  color: #0E5AF2;
  background-color: #ffffff;
  text-align: center;
  border-radius: 0 0 5px 0;
  position: absolute;
  left: 0;
  top: 0;
}

.royalelementservices .servicestyle2 .servicetitle a {
  color: #1A1A1A;
  transition: all ease 0.4s;
}

.royalelementservices .servicestyle2 .servicecontent {
  flex: 1;
  position: relative;
  border-radius: 5px;
  padding: 30px 30px 30px 130px;
  margin: 0 0 0 -105px;
  transition: all ease 0.4s;
  overflow: hidden;
  background-color: #ffffff;
}

.royalelementservices .servicestyle2 .servicecontent > * {
  position: relative;
  z-index: 1;
  transition: all ease 0.4s;
}

.royalelementservices .servicestyle2 .serviceshape {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 5px;
  transition: all ease 0.4s;
  transform: scale(1.1);
  background-color: #0E5AF2;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.royalelementservices:hover .servicestyle2 .servicedescription,
.royalelementservices:hover .servicestyle2 .servicetitle a,
.royalelementservices:hover .servicestyle2 .linkbtn {
  color: #ffffff;
}
.royalelementservices:hover .servicestyle2 .servicecontent {
  border-color: transparent;
}

.royalelementservices:hover .servicestyle2 .serviceshape {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}


/* servicestyle3 */
.royalelementservices .servicestyle3 {
  display: flex;
  align-items: center;
  margin: 0;
  flex-direction: row-reverse;
}

.royalelementservices .servicestyle3 .serviceimg img {
  border-radius: 5px;
}

.royalelementservices .servicestyle3 .servicenumber {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 18px;
  font-weight: 500;
  color: #0E5AF2;
  background-color: #ffffff;
  text-align: center;
  border-radius: 0 0 0 5px;
  position: absolute;
  right: 0;
  top: 0;
}

.royalelementservices .servicestyle3 .servicetitle a {
  color: #1A1A1A;
  transition: all ease 0.4s;
}

.royalelementservices .servicestyle3 .servicecontent {
  flex: 1;
  position: relative;
  border-radius: 5px;
  padding: 30px 130px 30px 30px;
  margin: 0 -105px 0 0;
  transition: all ease 0.4s;
  overflow: hidden;
  background-color: #ffffff;
}

.royalelementservices .servicestyle3 .servicecontent > * {
  position: relative;
  z-index: 1;
  transition: all ease 0.4s;
}

.royalelementservices .servicestyle3 .serviceshape {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 5px;
  transition: all ease 0.4s;
  transform: scale(1.1);
  background-color: #0E5AF2;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.royalelementservices:hover .servicestyle3 .servicedescription,
.royalelementservices:hover .servicestyle3 .servicetitle a,
.royalelementservices:hover .servicestyle3 .linkbtn {
  color: #ffffff;
}
.royalelementservices:hover .servicestyle3 .servicecontent {
  border-color: transparent;
}

.royalelementservices:hover .servicestyle3 .serviceshape {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}


/*4*/
.royalelementservices .servicestyle4 {
  text-align: center;
  position: relative;
  cursor: pointer;
  background: #fff;
  border-radius: 20px;
  z-index: 10;
  padding: 10px;
  margin-top: 75px;
  transition: transform 0.8s;
}

.royalelementservices .servicestyle4 .imageoricon {
  width: 150px;
  height: 150px;
  background: #fff;
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 80px;
  border-radius: 50%;
  color: #007bff;
  border: 20px solid #007bff;
  margin: -75px auto 0;
  transition: transform 1s;
  overflow: hidden;
}

.royalelementservices .servicestyle4 .imageoricon img{
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.royalelementservices .servicestyle4 .servicetitle {
  height: 35px;
  width: 70%;
  text-align: center;
  font-size: 25px;
  text-transform: uppercase;
  margin: 25px auto;
  position: relative;
  background: #fff;
  line-height: 35px;
}
.royalelementservices .servicestyle4 .servicetitle:after {
  content: '';
  width: 40px;
  height: 30px;
  background: linear-gradient(to right, #fff, #007bff);
  position: absolute;
  right: -5px;
  top: -5px;
  z-index: -1;
}
.royalelementservices .servicestyle4 .servicetitle:before {
  content: '';
  width: 40px;
  height: 30px;
  background: linear-gradient(to right, #007bff, #fff);
  position: absolute;
  left: -5px;
  bottom: -5px;
  z-index: -1;
}
.royalelementservices .servicestyle4 p {
  font-size: 16px;
  margin: 35px 20px;
}
.royalelementservices:hover .servicestyle4 {
  transform: translateY(-20px);
}
.royalelementservices:hover .servicestyle4 .imageoricon {
  transform: rotate(360deg);
}



.servicestyle5 .servicestitlebox {
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


.servicestyle5 .servicetitle {
  color: #fff;
  font-size: 20px;
  margin-bottom: 0px;
  position: relative;
  z-index: 1;
  padding-left: 15px;
  font-weight: 400;
}
.servicestyle5 .servicetitle::after {
  position: absolute;
  content: "";
  background: #D7B474;
  width: 40px;
  height: 40px;
  left: -6px;
  top: -12px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
  transition: 0.5s;
}
.servicestyle5:hover .servicetitle::after{
  transition: 0.5s;
  top: -4px;
  left: 0;
}

.servicestyle5 .imageoricon{
  overflow: hidden;
}

.servicestyle5 .imageoricon img{
  position: relative;
  transform: scale(1);
  display: block;
  transition: 0.5s;
}
.servicestyle5:hover .imageoricon img{
  position: relative;
  transform: scale(1.1);
  display: block;
  transition: 0.5s;
}






/* ===== Service Style 6 — Hover Card ===== */
/* overflow:hidden scoped to only style 6 & 7 wrappers */
.royalelementservices .servicestyle6,
.royalelementservices .servicestyle7 {
    overflow: hidden;
}

.servicestyle6 {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

/* Back layer — always visible, centered (icon + title) */
.servicestyle6 .back {
    position: relative;
    z-index: 1;
    min-height: 250px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.5s ease;
}

.servicestyle6 .back .imageoricon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.servicestyle6 .back .imageoricon img {
    max-width: 80px;
}

.servicestyle6 .back .imageoricon i {
    font-size: 48px;
}

.servicestyle6 .back .servicestitlebox {
    margin-bottom: 0;
}

.servicestyle6 .back .servicedescription,
.servicestyle6 .back .linkbtn {
    display: none;
}

/* Top overlay — slides up from bottom on hover */
.servicestyle6 .top {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    transition: bottom 0.5s ease;
}

.servicestyle6 .top .imageoricon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.servicestyle6 .top .imageoricon img {
    max-width: 60px;
    filter: brightness(0) invert(1);
}

.servicestyle6 .top .imageoricon i {
    font-size: 36px;
    color: #fff;
}

.servicestyle6 .top .servicestitlebox .servicetitle,
.servicestyle6 .top .servicetitle {
    color: #fff;
    margin-bottom: 10px;
    transition: none;
}

/* Hover: slide the overlay up */
.royalelementservices:hover .servicestyle6 .top {
    bottom: 0;
}

/* Normal state: top overlay icon size */
.royalelementservices .servicestyle6 .top .servicetitle {
    font-size: inherit;
}



/* ===== Service Style 6 — description & button color inside overlay ===== */
.servicestyle6 .top .servicedescription {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}
.servicestyle6 .top .linkbtn {
    display: inline-block;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}
.servicestyle6 .top .linkbtn:hover {
    background: #fff;
    color: inherit;
}


/* ===== Service Style 7 — Hover Card (tools.royaltechbd.com) ===== */
.servicestyle7 {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* Front — always visible: icon + title */
.servicestyle7 .s7-front {
    position: relative;
    z-index: 1;
    min-height: 250px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 30px;
    text-align: center;
    transition: opacity 0.4s ease;
}

.servicestyle7 .s7-front .imageoricon {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.servicestyle7 .s7-front .imageoricon img {
    max-width: 80px;
}

.servicestyle7 .s7-front .imageoricon i {
    font-size: 50px;
    transition: transform 0.4s ease;
}

.royalelementservices:hover .servicestyle7 .s7-front .imageoricon i {
    transform: scale(1.1);
}

.servicestyle7 .s7-front .servicestitlebox {
    margin-bottom: 0;
}

/* Overlay — slides up from bottom on hover */
.servicestyle7 .s7-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 25px;
    text-align: center;
    transition: bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0E5AF2;
}

.royalelementservices:hover .servicestyle7 .s7-overlay {
    bottom: 0;
}

/* Overlay content styles */
.servicestyle7 .s7-overlay .imageoricon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.servicestyle7 .s7-overlay .imageoricon img {
    max-width: 55px;
    filter: brightness(0) invert(1);
}

.servicestyle7 .s7-overlay .imageoricon i {
    font-size: 38px;
    color: rgba(255,255,255,0.9);
}

.servicestyle7 .s7-overlay .servicestitlebox {
    margin-bottom: 8px;
}

.servicestyle7 .s7-overlay .servicetitle,
.servicestyle7 .s7-overlay .servicestitlebox .servicetitle,
.servicestyle7 .s7-overlay .servicestitlebox .servicetitle a {
    color: #fff !important;
    margin: 0 0 10px 0;
}

.servicestyle7 .s7-overlay .servicedescription {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.servicestyle7 .s7-overlay .linkbtn {
    display: inline-block;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 8px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.servicestyle7 .s7-overlay .linkbtn:hover {
    background: #fff;
    border-color: #fff;
    color: #0E5AF2;
}


/* ===== Service Style 8 — 3D Tilt Card (tools.royaltechbd.com exact) ===== */
.servicestyle8 {
    width: 100%;           /* fills Elementor column — overridden by Width control */
    max-width: 100%;       /* prevents overflow on narrow columns */
    height: 300px;         /* default — overridden by Elementor Height control */
    perspective: 1000px;
    display: block;
    position: relative;
    min-height: 100px;
    margin: 0 auto;        /* centers when Width control sets a fixed px value */
}

/* The card — starts rotated, flattens on hover */
.servicestyle8 .s8-card {
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(50deg);
    transition: all 0.8s;
    text-decoration: none;
    position: relative;
}

.royalelementservices:hover .servicestyle8 .s8-card {
    transform: rotateX(0deg);
}

/* Shadow/floor effect under the card */
.servicestyle8 .s8-card:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    transform: rotateX(90deg);
    transform-origin: bottom;
}

/* Title text — visible by default, fades on hover */
.servicestyle8 .s8-title {
    opacity: 1;
    width: 100%;
    transition: all 0.8s;
    font-size: 18px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 0);
    text-align: center;
    display: block;
    pointer-events: none;
    color: #222;
}


.royalelementservices:hover .servicestyle8 .s8-title {
    opacity: 0;
    transition: all 0.8s;
}


/* ===== Service Style 9 — Icon Left Card ===== */
.royalelementservices .servicestyle9 {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 24px rgba(30, 60, 180, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.royalelementservices:hover .servicestyle9 {
    box-shadow: 0 8px 32px rgba(30, 60, 180, 0.14);
    transform: translateY(-3px);
}

/* Icon wrapper — rounded square with light blue bg */
.royalelementservices .servicestyle9 .s9-icon-wrap {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: #e8eeff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.royalelementservices:hover .servicestyle9 .s9-icon-wrap {
    background-color: #d0dcff;
}

.royalelementservices .servicestyle9 .s9-icon-wrap .imageoricon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.royalelementservices .servicestyle9 .s9-icon-wrap .imageoricon i {
    font-size: 32px;
    color: #2563eb;
}

.royalelementservices .servicestyle9 .s9-icon-wrap .imageoricon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Content area */
.royalelementservices .servicestyle9 .s9-content {
    flex: 1;
    min-width: 0;
}

.royalelementservices .servicestyle9 .s9-content .servicestitlebox {
    margin-bottom: 4px;
}

.royalelementservices .servicestyle9 .s9-content .servicetitle {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.royalelementservices .servicestyle9 .s9-content .servicetitle a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.royalelementservices:hover .servicestyle9 .s9-content .servicetitle a {
    color: #2563eb;
}

.royalelementservices .servicestyle9 .s9-content .servicedescription {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* "View Plans →" style link */
.royalelementservices .servicestyle9 .s9-readmore {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.royalelementservices:hover .servicestyle9 .s9-readmore {
    color: #1d4ed8;
    letter-spacing: 0.3px;
}


.servicestyle10 .serviceimg{
    padding: 20px 0px;
    overflow: hidden;
}
.servicestyle10 .serviceimg .imageoricon{
    font-size: 50px;
    color: #fff;
    float: left;
}


.servicestyle10 .serviceimg .servicenumber{
    font-size: 50px;
    color: #fff;   
    float:right; 
}

.servicestyle10 .title{
    color: #42B7DD;
}
.servicestyle10 .title:hover{
    transition: all 1s;
    color: #10b0e6;
}


@media screen and (max-width: 767px) {
  .royalelementservices .mobileadapt{
	  display: grid;
  } 
  
.royalelementservices .mobileadapt .servicecontent {
    flex: 1;
    position: relative;
    border-radius: 5px;
    padding: 99px 30px 30px 30px;
    margin: -69px 0 0 0;
    transition: all ease 0.4s;
    overflow: hidden;
    background-color: #ffffff;
}
  
.royalelementservices .mobileadapt .servicenumber {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    font-weight: 500;
    color: #0E5AF2;
    background-color: #ffffff;
    text-align: center;
    border-radius: 0 0 50% 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}  
  
}
