.nav-link {
  font-weight: 500;
  color: black;
  border-bottom: 2px solid white;
  margin: 0px 2px;
}

.dropdown-toggle::after {
  vertical-align: 0.2em;
  margin-left: 0.6em;
}

.site-logo {
  width: auto;
  height: 60px;
}

.mini-nav {
  font-size: 14px;
  font-weight: 500;
}

.par-size {
  font-size: 22px;
  line-height: 35px;
}

.card-bg {
  background-color: var(--primary-color);
  padding-bottom: 1rem;
  padding-top: 1rem;
  width: 100%;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary-color);
  padding: 14px 18px;
}

.nav-link.active {
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color);
}

.home-img {
  background-image: url(../images/home-img-1.png);
  height: 500px;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 40px;
}

/* -----timeline----- */

.timeline ul {
  --col-gap: 1rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(60rem, 102%);
  margin-inline: auto;
}

/* line */
.timeline ul::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
.timeline ul li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

/* card */
.timeline ul li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
.timeline ul li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);

  text-align: center;
  background-color: var(--accent-color);

  color: white;
  font-size: 1.25rem;
  font-weight: 700;

  display: grid;
  place-content: center;
  position: relative;

  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.timeline ul li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;

  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timeline ul li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--bgColor);
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;

  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
.timeline ul li .title,
.timeline ul li .descr {
  background: var(--bgColor);

  padding-inline: 1.5rem;
}

.timeline ul li .title {
  overflow: hidden;
  padding-block-start: 1.2rem;
  padding-bottom: 7px;

  font-weight: 500;
}

.timeline ul li .descr {
  padding-block-end: 1.5rem;
  font-weight: 400;
}

/* shadows */
.timeline ul li .title::before,
.timeline ul li .descr::before {
  content: "";

  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.timeline ul li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline ul li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}
.timeline-icon {
  padding-block-start: 1.5rem;
}
@media (min-width: 40rem) {
  .timeline ul {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }

  .timeline ul::before {
    grid-column: 2;
  }

  .timeline ul li:nth-child(odd) {
    grid-column: 1;
  }

  .timeline ul li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  .timeline ul li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline ul li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline ul li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }

  .timeline ul li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}

.credits {
  margin-top: 1rem;
  text-align: right;
}

.credits a {
  color: var(--color);
}

.top-section-personal-loan-img {
  background-image: url(../images/personal-loan.webp);
  background-size: cover;
  background-position: center;
}

.top-section-business-loan-img {
  background-image: url(../images/business-loan/img-1.webp);
  background-size: cover;
  background-position: center;
}

.top-section-home-loan-img {
  background-image: url(../images/home-loan-img2.webp);
  background-size: cover;
  background-position: center;
  /* filter: grayscale(100%); */
}

.top-section-first-home-img {
  background-image: url(../images/first-home-buyers-img1web.webp);
  background-size: cover;
  background-position: center;
}

.top-section-buying-next-img {
  background-image: url(../images/buying-next-home-page.webp);
  background-size: cover;
  background-position: center;
}

.top-section-refinance-img {
  background-image: url(../images/refinance-img1.webp);
  background-size: cover;
  background-position: center;
}

.top-section-invest-property-img {
  background-image: url(../images/investment-property-img1.webp);
  background-size: cover;
  background-position: center;
}

.top-section-construction-loan-img {
  background-image: url(../images/construction-loan-img1.webp);
  background-size: cover;
  background-position: center;
}

.top-concession-img {
  background-image: url(../images/concession-img1.webp);
  background-size: cover;
  background-position: center;
}

.top-concession-img2 {
  background-image: url(../images/stamp-duty.webp);
  background-size: cover;
  background-position: center;
}

.top-concession-img3 {
  background-image: url(../images/guarantee-scheme.webp);
  background-size: cover;
  background-position: center;
}

.top-calculator-img {
  background-image: url(../images/calculator-img-2.webp);
  background-size: cover;
  background-position: center;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contact-us-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.form-label {
  font-weight: 500;
  font-size: 18px;
}

.form-select {
  font-weight: 500;
  font-weight: 500;
  background-color: #e6e6e6;
  margin-right: 50px;
  color: dimgrey;
}

.form-control {
  font-weight: 500;
  background-color: #e6e6e6;
  border: unset;
}

/* .btn-default:hover {
    background-color: var(--primary-color);
    color: white;
    font-weight: 400;
} */

.map-au-section {
  margin-top: 150px;
}

#js-appoint-form {
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.service-bg {
  background-color: var(--primary-color);
}

.icon-bg {
  background-color: #e9f2ef;
  display: inline-block;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 24px;
  color: var(--primary-color);
}

.why-us .span {
  color: var(--text-gray) !important;
}

.why-us-icon {
  display: inline-block;
  padding: 14px 18px;
  font-size: 24px;
  color: var(--primary-color);
}

.why-us--card:hover {
  color: white;
  background-color: var(--primary-color);
  border-radius: unset;
}

.why-us--card:hover svg {
  fill: #ffffff;
}

.why-us--card:hover h4,
.why-us--card:hover p,
.why-us--card:hover div {
  color: white;
}

.loan-agree {
  position: absolute;
  width: 760px;
  height: 380px;
  left: 555px;
  top: 50px;
}

.calculator-icon {
  background: white;
  color: green;
  display: inline;
  padding: 16px;
  border-radius: 8px;
}

.calculator-icon2 {
  background: #e9f2ef;
  color: green;
  display: inline;
  padding: 16px;
  border-radius: 8px;
}

.chat-with-us {
  border: 1px solid var(--primary-color);
  padding: 20px;
}

.footer-bg {
  background-color: var(--footer);
}

.footer-hr {
  border-bottom: 2px solid white;
}

.footer-font-size {
  font-size: 12px;
  line-height: 19px;
}

/* -----about-us----- */

.about-us--hr {
  border-bottom: 1px solid black;
}

.about-us-card {
  display: inline;
  text-align: center;
  /* padding: 20px; */
  padding: 39px 0px;
}

.dis-width {
  max-width: 583px;
  margin: auto;
}

.privacy-ul {
  list-style: disc;
}

.construction-loan {
  position: absolute;
  width: 658px;
  height: 730px;
  left: 950px;
  top: 235px;
}

.concession {
  position: absolute;
  width: 658px;
  height: 490px;
  left: 950px;
  top: 235px;
}

.concession2 {
  position: absolute;
  width: 658px;
  height: 470px;
  left: 950px;
  top: 50px;
}

.calculators {
  position: absolute;
  width: 658px;
  height: 380px;
  left: 950px;
  top: 235px;
}

.brokers {
  width: 390px;

  object-fit: contain;
}

.refinance-card {
  border-left: 4px solid var(--primary-color) !important;
  border-radius: unset;
  height: 310px;
}

.calculator-card {
  border-left: 4px solid var(--primary-color) !important;
  border-radius: unset;
}

.cal-icon-arrow {
  background: var(--primary-color);
  display: inline-block;
  padding: 16px 20px;
  color: white;
  border-radius: 6px;
}

/* contact-us */
/* input[type=text],
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
} */

input[type="submit"] {
  width: 100%;
  background: var(--default-btn);
  color: white;
  font-size: 20px;
  padding: 12px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.contact-form {
  padding: 2rem 1rem;
  background-color: var(--primary-color);
}

/* 
input[type=text],
select,
textarea {
    width: 100%;
    padding: 14px 20px;
    margin: 14px 0;
    display: inline-block;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 18px;
    color: #000000;
} */

.client-text {
  font-size: 20px;
  font-weight: 400;
}

.rectangle {
  height: 600px;
  width: 490px;
  background-color: var(--primary-color);
  position: absolute;
  top: 182px;
  z-index: -1;
  margin-left: 110px;
}

.rectangle2 {
  height: 490px;
  width: 490px;
  background-color: var(--primary-color);
  position: absolute;
  top: -70px;
  z-index: -1;
  margin-left: -96px;
}

.rotate-text {
  display: block;
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); //For IE support
}

.our-service-font {
  font-size: 55px;
  line-height: 75px;
}

.vl {
  border-left: 1px solid black;
  height: 450px;
  margin-left: 43px;
}

.icon-margin {
  margin-right: 10px;
}

.client-bg {
  margin: -11px;
  padding: 30px;
  height: 80px;
  filter: grayscale(100%);
}

.client-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.client-bg:hover {
  filter: unset;
}

/* calculator styles */
.VisiCalcClass {
  background: url(/staticAssets/calculators/load.gif) 50% 15% no-repeat;
  background-size: 80px 80px;
  min-width: 750px;
  min-height: 800px;
  margin: 0;
  padding: 0;
}

#Loan_Repayment_Calculator {
  min-height: 750px !important;
}

#Borrowing_Power_Calculator {
  min-height: 750px !important;
}

#Budget_Planner {
  min-height: 2850px !important;
}

#Compound_Interest_Calculator {
  min-height: 850px !important;
}

#Credit_Card_Calculator {
  min-height: 900px !important;
}

#How_Long_to_Repay_Calculator {
  min-height: 750px !important;
}

#Interest_Only_Mortgage_Calculator {
  min-height: 750px !important;
}

#Saving_Calculator {
  min-height: 600px !important;
}

#Split_Loan_Calculator {
  min-height: 800px !important;
}

#Property_Selling_Cost_Calculator {
  min-height: 700px !important;
}

#Reverse_Mortgage_Calculator {
  min-height: 1100px !important;
}

#Stamp_Duty_Calculator {
  min-height: 800px !important;
}

#Income_Gross_Up_Calculator {
  min-height: 900px !important;
}

#Income_Gross_Up_Calculator {
  min-height: 900px !important;
}

#RentvsBuyCalculator {
  min-height: 1100px !important;
}

#Mortgage_Switching_Calculator {
  min-height: 1100px !important;
}

@media screen and (max-width: 767px) {
  .VisiCalcClass {
    min-width: 100%;
    min-height: 1250px;
    margin: 0;
    padding: 0;
  }

  #Loan_Repayment_Calculator {
    min-height: 1250px !important;
  }

  #Borrowing_Power_Calculator {
    min-height: 1800px !important;
  }

  #Budget_Planner {
    min-height: 5000px !important;
  }

  #Comparison_Rate_Calculator {
    min-height: 1450px !important;
  }

  #Compound_Interest_Calculator {
    min-height: 1200px !important;
  }

  #Credit_Card_Calculator {
    min-height: 1500px !important;
  }

  #Extra_Repayment_Calculator {
    min-height: 1450px !important;
  }

  #Home_Loan_Offset_Calculator {
    min-height: 1400px !important;
  }

  #How_Long_to_Repay_Calculator {
    min-height: 1250px !important;
  }

  #Interest_Only_Mortgage_Calculator {
    min-height: 1450px !important;
  }

  #Saving_Calculator {
    min-height: 1250px !important;
  }

  #Introductory_Rate_Loan_Calculator {
    min-height: 1400px !important;
  }

  #Lump_Sum_Repayment_Calculator {
    min-height: 1450px !important;
  }

  #Split_Loan_Calculator {
    min-height: 1550px !important;
  }

  #Loan_Comparison_Calculator {
    min-height: 1800px !important;
  }

  #Property_Buying_Cost_Calculator {
    min-height: 1850px !important;
  }

  #Property_Selling_Cost_Calculator {
    min-height: 1650px !important;
  }

  #Reverse_Mortgage_Calculator {
    min-height: 1900px !important;
  }

  #Stamp_Duty_Calculator {
    min-height: 1250px !important;
  }

  #Income_Gross_Up_Calculator {
    min-height: 1700px !important;
  }

  #Income_Gross_Up_Calculator {
    min-height: 1700px !important;
  }

  #RentvsBuyCalculator {
    min-height: 1900px !important;
  }

  #Mortgage_Switching_Calculator {
    min-height: 1900px !important;
  }
}

.hover-zoom {
  transition: transform 0.2s;
}

.hover-zoom:hover {
  transform: scale(1.1);
}

.top-section {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  position: relative;
}

.contact-icon1 {
  background-color: #58a48b;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 24px;
  color: white;
}

.contact-icon2 {
  background-color: #58a48b;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 24px;
  color: white;
}

.contact-line {
  border-top: 1px solid #ffffff;
  padding-top: 50px;
}

.avatar {
  height: 60px;
}

.top-section-index-img {
  background-image: url(../images/home-img-1-min.webp);
  background-size: cover;
  background-position: top;
}

.title-lg {
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 3.5rem;
  text-transform: capitalize;
  margin-top: 5rem;
}

.bg-color {
  background-color: rgb(0 0 0 / 35%);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.our-service {
  margin-top: -86px;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgb(30 122 92 / 40%);
}

.error {
  color: #ff0000;
  font-size: 13px;
}

.form-control.error {
  background-color: rgb(255 0 0 / 15%);
}

.text-default {
  color: var(--primary-color);
}

/* table, td, th {
    border: 1px solid;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
  } */

.cm-table {
  width: 100%;
}

.cm-table tr th {
  border: 1px solid white;
  background-color: #e4e0fd;
  padding: 8px;
  font-size: 13px;
  color: #5243aa;
  text-align: center;
  /* white-space: nowrap; */
}

.cm-table tr td {
  border: 1px solid white;
  background-color: #e9f7f1;
  padding: 8px;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  text-align: center;
  /* white-space: nowrap; */
}

table {
  font-family: arial, sans-serif;

  width: 100%;
}

td,
th {
  border: 1px solid #e5e4e4;
  text-align: left;
  padding: 8px;
}

tr:nth-child(odd) {
  background-color: #f4f4f4;
}

tbody {
  border-color: inherit;
  border-style: solid;
  border-width: 1px;
}

.table-font {
  font-size: 12px;
  font-weight: 700;
}

.table-bg {
  background: #b9d6cc;
  color: white;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.table-bg2 {
  background: #98c2b4;
  color: white;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.table-bg3 {
  background: #68a692;
  color: white;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.table-bg4 {
  background: #4b957d;
  color: white;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.table-bg5 {
  background: #1e7a5c;
  color: white;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.table-bg6 {
  background: #1b6f54;
  color: white;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* .description{
    display:none;
} */
/* .tooltip {
    --bs-tooltip-bg:  #1B6F54;
} */
.tooltip-inner {
  background-color: #1b6f54;
  max-width: 400px !important;
}

.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #1b6f54 !important;
}

.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #1b6f54 !important;
}

.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
  border-bottom-color: #1b6f54 !important;
}

@media (max-width: 767px) {
  .navbar-nav .nav-dropdown .dropdown .dropdown-menu {
    width: 100%;
  }
}

/* Blog Section */
.bg-blog {
  background-color: #ececec;
}

.blog-card {
  width: 100%;
}

.blog-card .card-body .date {
  font-size: 12px !important;
}

.blog-card img {
  height: 15rem;
  background-repeat: no-repeat;
  background-size: cover;
}

.card-description {
  font-size: 15px;
  line-height: normal;
}

.text-overflow-clamp {
  width: 100%;
  /* this code clamps based on specified lines */
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
}

@media screen and (max-device-width: 480px) {
  .blog-card {
    width: 25rem;
  }
}

.blog-details-img {
  width: 100%;
}

@media (min-width: 992px) {
  .blog-details-img {
    width: 80%;
  }
}
