/* Theme sets p { text-align: justify }, which stretches gaps between words. */
p {
  text-align: inherit;
  word-spacing: normal;
  letter-spacing: normal;
}

/* HJ Enterprises — 80px header + larger logo-4 */
.main-header.header-style-three .header-lower {
  padding-top: 0;
  padding-bottom: 0;
}

.main-header.header-style-three .header-lower > .auto-container,
.main-header.header-style-three .header-lower .outer-box {
  min-height: 80px;
  height: 95px;
  align-items: center;
}

.main-header.header-style-three .outer-box .logo-box {
  padding: 0 !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  height: 80px;
}

.main-header.header-style-three .outer-box .logo-box .logo {
  margin: 0;
  line-height: 0;
}

.main-header.header-style-three .outer-box .logo-box .logo img {
  display: block;
  height: 100px;
  width: auto;
  object-fit: contain;
}

.main-header.header-style-three .main-menu .navigation > li > a {
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 24px;
}

.main-header.header-style-three .main-menu .navigation > li.dropdown > a:before {
  top: 28px;
}

.main-header.header-style-three .sticky-header .outer-box {
  min-height: 80px;
  height: 95px;
  align-items: center;
}

.main-header.header-style-three .sticky-header .outer-box .logo-box {
  padding: 0 !important;
  height: 80px;
}

.main-header.header-style-three .sticky-header .outer-box .logo-box .logo img {
  height: 100px;
}

.main-header.header-style-three .sticky-header .main-menu .navigation > li > a {
  padding-top: 28px;
  padding-bottom: 28px;
}

.main-header.header-style-three .sticky-header .main-menu .navigation > li.dropdown > a:before {
  top: 28px;
}

@media only screen and (max-width: 767px) {
  .main-header.header-style-three .header-lower .outer-box {
    min-height: 80px;
    height: auto;
  }

  .main-header.header-style-three .outer-box .logo-box {
    height: auto;
    padding: 8px 0 !important;
  }

  .main-header.header-style-three .outer-box .logo-box .logo img {
    height: 64px;
    max-width: 180px;
  }

  .main-header.header-style-three .main-menu .navigation > li > a {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* Why Choose cards: every box matches the tallest card */
.service-style-three.service-page-2 .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.service-style-three.service-page-2 .service-block {
  display: flex;
  margin-bottom: 30px;
}

.service-style-three.service-page-2 .service-block-one {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.service-style-three.service-page-2 .service-block-one .inner-box {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.funfact-section.about-page .funfact-block-one {
  width: 50%;
}

@media only screen and (max-width: 991px) {
  .funfact-section.about-page .funfact-block-one:last-child {
    width: 50%;
  }
}

@media only screen and (max-width: 767px) {
  .funfact-section.about-page .funfact-block-one,
  .funfact-section.about-page .funfact-block-one:last-child {
    width: 100%;
  }
}

/* Square marketing photos fill rectangular card frames */
.service-block-one .image-box img,
.about-style-two .image_block_two .image-box .image img {
  width: 100%;
  aspect-ratio: 11 / 10;
  object-fit: cover;
}

.about-section .image_block_one .image-box .image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.career-block-one .inner-box .author-box .thumb-box {
  overflow: hidden;
  flex-shrink: 0;
}

.career-block-one .inner-box .author-box .thumb-box img {
  width: 200px;
  height: 180px;
  object-fit: cover;
}

/* Loan and Mutual Fund rows: photo stays on the right */
.career-section .career-block-one .inner-box .author-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.career-section .loan-detail-note {
  margin-top: 10px;
  margin-bottom: 0;
}

.career-section .loan-detail-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin-top: 14px;
}

.career-section .loan-detail-list {
  flex: 1 1 calc(50% - 18px);
  min-width: 140px;
}

.career-section .loan-detail-list.full {
  flex-basis: 100%;
}

.career-section .loan-detail-list p {
  margin-bottom: 6px;
}

.career-section .loan-detail-list ul {
  margin: 0;
  padding-left: 18px;
}

.career-section .loan-detail-list li {
  list-style: disc;
  margin-bottom: 4px;
}

.career-section .career-block-one .inner-box .author-box .text-box {
  flex: 1 1 auto;
  width: auto;
  margin-right: 30px;
}

.career-section .career-block-one .inner-box .author-box .thumb-box {
  order: 2;
  margin-right: 0;
  margin-left: auto;
}

@media only screen and (max-width: 499px) {
  .career-section .career-block-one .inner-box .author-box {
    display: block;
  }

  .career-section .career-block-one .inner-box .author-box .thumb-box {
    display: block;
    width: 250px;
    margin: 16px 0 0 auto !important;
  }
}

/* Testimonials carousel: every visible card matches the tallest item */
.testimonial-section .three-item-carousel .owl-stage {
  display: flex !important;
  align-items: stretch;
}

.testimonial-section .three-item-carousel .owl-item {
  display: flex;
  float: none;
  flex-shrink: 0;
  align-items: stretch;
}

.testimonial-section .three-item-carousel .owl-item > .testimonial-block-one {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
}

.testimonial-section .three-item-carousel .testimonial-block-one .inner-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  height: auto;
  box-sizing: border-box;
}

.testimonial-section .testimonial-block-one .inner-box .thumb-box img {
  height: 100%;
  object-fit: cover;
}
