/* Hero Section */
.rpg-hero {
  height: 450px;
  background-image: url("/wp-content/themes/mgl/assets/images/asking-price-atlantic/Mask group.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom right;
  margin-top: 113.11px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rpg-hero h1 {
  font-family: "Inter Tight";
  font-weight: 700;
  font-size: 94px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.01em;
  color: #000000;
  margin-top: 0px;
  margin-bottom: 0px;
}

.rpg-hero-main-container {
}

/* Media Queries */
@media (max-width: 1024px) {
  .rpg-hero h1 {
    font-size: 55px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.008em;
  }

  .rpg-fees-title-container p
  {
    margin-top: 0px;
  }
}

@media screen and (max-width: 1024px) {
  .rpg-hero {
    background-position: bottom right calc(-240px + 10vw);
  }
}

@media screen and (max-width: 1296px) {
  .rpg-hero {
    margin-top: 111.25px;
  }
}

/* Header positioning */
#main-header {
  top: 0px;
  background: white;
}

.rpg-protect {
  padding: 60px 0px;
}

.rpg-protect h2 {
  font-weight: 400;
  margin-bottom: 0px;
  margin-top: 0px;
}

.rpg-province {
  background: #253977;
  color: white;
  font-weight: 400;
  font-family: "Inter Tight";
  font-size: 24px;
  padding: 20px 0px;
}

.rpg-province-banner {
  display: flex;
  column-gap: 15px;
  font-style: italic;
}

.rpg-province-banner svg {
  max-height: 30px;
  max-width: 30px;
}

@media (max-width: 1024px) {
  .faq-service-title {
    font-size: 26px;
  }
}

/* accordion css */

.rpg-service-item {
  background: #f1f8fb;
  border-radius: 10px;
  padding: 20px;
}

.rpg-service-item ul {
  padding-left: 0px;
  padding-left: 15px;
}

.rpg-service-title {
  cursor: pointer;
  position: relative;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 800;
  font-size: 35px;
  line-height: 110%;
  letter-spacing: -0.01em;
  margin: 0px;
  color: #333333;
  display: flex;
  /* justify-content: space-between; */
}

.rpg-service-arrow {
  min-height: 30px;
  min-width: 30px;
  max-height: 30px;
  max-width: 30px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.rpg-service-item.active .rpg-service-arrow {
  transform: rotate(180deg);
}

.rpg-service-item.active .rpg-service-arrow circle {
  fill: #cbe9f1;
  transition: fill 0.3s;
}

.rpg-service-item.active .rpg-service-arrow polygon {
  fill: #2a3972;
  transition: fill 0.3s;
}

.rpg-service-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.rpg-service-content-inner {
  padding-top: 20px;
  color: black;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.005em;
  display: flex;
  column-gap: 20px;
  text-decoration: unset !important;
  padding-left: 55px;
}

.rpg-service-item.active .rpg-service-content {
  max-height: 500px; /* Adjust based on your content height */
}

.rpg-service-items {
  display: flex;
  row-gap: 20px;
  flex-direction: column;
}

.rpg-service {
  padding: 60px 0px;
}

@media (max-width: 767px) {
  .faq-service-content {
    flex-direction: column;
    row-gap: 10px;
  }
}

.rpg-service-icon {
  height: 35px;
  width: 35px;
  margin-right: 15px;
}

.rpg-fees-title-container {
  display: flex;
  color: white;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rpg-fees-title-container h2 {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 35px;
}
.rpg-fees-title-container p {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 18px;
  margin-top: 5px;
}

.rpg-fees {
  background: #839196;
  color: white;
  padding: 60px 0px;
}
.rpg-fees-items {
  display: flex;
  column-gap: 40px;
  row-gap: 15px;
}

.rpg-fees-item {
  width: 50%;
}

@media (max-width: 767px) {
  .rpg-fees-items {
    flex-direction: column;
  }

  .rpg-fees-item {
    width: 100%;
  }
}

.rpg-fees-item-title {
  background: #314076;
  font-family: "Inter Tight";
  padding: 10px 20px;
  padding-left: 50px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  font-size: 20px;
}

.rpg-fees-item-title::before {
  position: absolute;
  content: "";
  display: inline-block;
  background: #d1e8f0;
  height: 100%;
  width: 20px;
  top: 0px;
  left: 0px;
}

.rpg-fees-item-subtitle {
  margin-left: 50px;
  color: #d1e8f0;
  font-family: "Inter Tight";
  margin-top: 10px;
  font-size: 18px;
}

.rpg-counsel {
  padding: 60px 0px;
}

.rpg-counsel .rpg-counsel-container {
  background: #dee2e7;
  border-radius: 10px;
  padding: 30px;
}

.rpg-counsel h2 {
  color: #314076;
  margin-top: 0px;
  font-size: 35px;
}

.rpg-counsel p {
  margin-bottom: 0px;
  font-size: 18px;
}

.rpg-lawyers {
  padding: 60px 0px;
}

.rpg-lawyers-title {
  color: #314076;
  font-size: 35px;
  font-family: "Inter Tight";
  font-weight: bold;
}

.rpg-paralegals-title {
  color: #314076;
  font-size: 35px;
  font-family: "Inter Tight";
  font-weight: bold;
}

.rpg-paralegals-container {
  padding: 0px 30px;
}

@media (max-width: 767px) {
  .rpg-paralegals-container {
    padding: 0px 0px;
  }
}

.rpg-paralegals-description {
  font-size: 18px;
}

/* About Team Section Starts Here */

#about-team {
  margin-top: 123px;
  margin-bottom: 145.38px;
}

.about-team-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(116, 126, 133, 0.4);
  padding-bottom: 24px;
}

.about-team-header h2 {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 120%;
  letter-spacing: 0.01em;
  margin: 0px;
  color: #586a72;
}

.about-animated-heading h2 {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 740;
  font-size: 45px;
  line-height: 105%;
  margin-top: 41px;
  margin-bottom: 109px;
  letter-spacing: -0.01em;
  color: #586a72;
}

.about-animated-heading {
  max-width: 992px;
}

.our-team {
  max-width: 1330px;
  padding-left: 55px;
  padding-right: 55px;
  margin: 0 auto;
  padding-bottom: 110px;
  padding-top: 145px;
}

.our-team h2 {
  font-family: "Inter Tight";
  font-size: 94px;
  line-height: 95%;
  letter-spacing: -0.01em;
  color: #333333;
  margin-top: 0px;
  margin-bottom: 48px;
}

.team-box {
  background-color: #e5f4f8;
  max-width: 430px;
  width: 430px;
  min-height: 440px;
  padding: 37px 33px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.team-box-headings h2 {
  font-family: "Inter Tight";
  font-weight: 600;
  font-size: 33px;
  line-height: 120%;
  color: #333333;
  margin: 0px;
}

.team-box-headings h3 {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.002em;
  color: #586a72;
  margin: 0px;
}

.team-box-headings {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.team-box-header {
  display: flex;
  justify-content: space-between;
}

.team-box-footer {
  display: flex;
  justify-content: flex-end;
}

.team-box-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.team-box-header-icon {
  border: 1px solid #586a72;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  box-sizing: border-box;
  transition: 0.6s;
}

.team-content-hidden p {
  font-family: "Inter Tight";
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.002em;
  color: #586a72;
  margin: 0px;
  max-width: 372px !important;
  width: 372px;
}

.team-content-hidden {
  position: absolute;
  top: 40%;
  opacity: 0;
  visibility: hidden;
  transition: 0.6s;
  height: 311px;
  display: flex;
  align-items: center;
}

.team-content-hidden {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
}

.team-content-hidden a {
  font-family: "Inter Tight";
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.002em;
  color: #586a72;
  margin: 0px;
  text-decoration: none;
}

.team-box-container .owl-stage-outer {
  overflow: visible !important;
}

.hidden-bg-container {
  position: absolute;
  height: 311px;
  background-color: #e5f4f8;
  width: 100%;
  left: 0;
  top: 100%;
  transition: 1s;
}

.about-team-box-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Team Hover States */
@media (hover: hover) {
  .team-content-hidden a:hover {
    color: #263a76;
  }
}

.team-content-hidden a {
  transition: 0.5s;
}

@media (min-width: 1025px) {
  .team-box:hover .hidden-bg-container {
    top: 30%;
  }

  .team-box:hover .team-content-hidden {
    top: 30%;
    opacity: 1;
    visibility: visible;
  }

  .team-box:hover .team-box-header-icon {
    transform: rotate(135deg);
  }
}

@media (max-width: 1439px) and (min-width: 1025px) {
  .team-box {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 1439px) {
  .team-content-hidden p {
    max-width: 100% !important;
    width: 90%;
  }
}

/* Mobile Styles for Team Section */
@media (max-width: 1024px) {
  #about-team {
    margin-top: 86px;
  }

  .about-team-header {
    padding-bottom: 22px;
  }

  .about-team-header h2 {
    font-size: 22px;
    line-height: 120%;
    letter-spacing: 0.01em;
  }

  .about-team-header .main-btn {
    display: none;
  }

  .btn-mobile {
    display: block !important;
    margin-bottom: 96px;
  }

  .about-animated-heading h2 {
    font-size: 36px;
    line-height: 110%;
    margin-bottom: 37px;
    letter-spacing: 0px;
  }

  .team-box-container {
    flex-direction: column;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .team-box {
    width: auto;
    max-width: 100%;
    padding: 36px 20px 33px;
    min-height: 394px;
  }

  .team-box-headings h2 {
    font-size: 26px;
    line-height: 125%;
  }

  .team-box-headings {
    gap: 8px;
  }

  .team-box-headings h3 {
    font-size: 16px;
    line-height: 120%;
  }

  .team-box-header-icon {
    width: 45px;
    height: 45px;
  }

  .team-box-footer img {
    width: 218px;
    height: 209px;
  }

  .team-active-box .hidden-bg-container {
    top: 30%;
  }

  .team-active-box .team-content-hidden {
    top: 26%;
    opacity: 1;
    visibility: visible;
  }

  .team-active-box .team-box-header-icon {
    transform: rotate(135deg);
  }

  .team-content-hidden p,
  .team-content-hidden a {
    font-size: 16px;
    line-height: 110%;
    letter-spacing: -0.002em;
  }

  .team-content-hidden {
    height: 272px;
  }
}

.about-team-box-container {
  margin-top: 40px;
}
/* About Team Section Ends Here */

.rgp-service-items {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}
