/* 
  Theme Name: Axtra - Digital Agency Portfolio Template
  Author: Crowdyflow
  Support: habib.crowdyflow@gmail.com
  Description: BUILDY – is a  Constructor HTML5 template that comes with high-quality 3 Pre build Home Pages and many built-in awesome inner pages  which are perfect for any creative agencies, designers, digital agencies, freelancers, developers, designers, marketing, startup, blog and portfolio.
  Version: 1.0
*/

/* Custom styling to ensure hero heading responsiveness */
.hero__title {
  display: inline-block;
  width: 100%;
}

/* Disable the original badge on the H1 container */
.hero__title::after {
  content: none !important;
  display: none !important;
}

/* Position the badge relative to the first line span */
.hero__title-line-1 {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero__title-line-2 {
  display: inline-block;
}

.hero__title-line-1::after {
  position: absolute;
  content: "Pro";
  width: 70px;
  height: 45px;
  right: -85px; /* 15px gap from the end of the text */
  top: 70px;
  border: 2px solid var(--white);
  border-radius: 15px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--white);
  text-align: center;
  padding-top: 4px;
}

/* Responsive adjustments for the badge position */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .hero__title-line-1::after {
    top: 35px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .hero__title-line-1::after {
    top: 40px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .hero__title-line-1::after {
    top: 32px;
  }
}

@media only screen and (max-width: 767px) {
  .hero__title-line-1::after {
    right: -85px;
    top: 24px;
  }
}

@media only screen and (max-width: 575px) {
  .hero__title-line-1::after {
    right: 0;
    top: -35px;
    width: 64px;
    height: 37px;
    font-size: 20px;
    padding-top: 2px;
  }
}

@media only screen and (max-width: 440px) {
  .hero__title-line-1::after {
    right: 0;
    top: -38px;
  }
}

/* RTL (Right-to-Left) overrides for the badge positioning */
.dir-rtl .hero__title-line-1::after {
  right: unset !important;
  left: -85px !important;
}

@media only screen and (max-width: 767px) {
  .dir-rtl .hero__title-line-1::after {
    right: unset !important;
    left: -85px !important;
  }
}

@media only screen and (max-width: 575px) {
  .dir-rtl .hero__title-line-1::after {
    right: unset !important;
    left: 0 !important;
  }
}

/* Responsive font scaling to prevent overflow on mobile screen sizes */
@media only screen and (max-width: 575px) {
  .hero__title {
    font-size: clamp(30px, 8vw, 40px) !important;
    max-width: 100% !important;
  }
}

@media only screen and (max-width: 440px) {
  .hero__title {
    font-size: clamp(24px, 7.5vw, 32px) !important;
    max-width: 100% !important;
  }
}