/**
 * Hero Banner Block Styles
 * Extracted from service.css and info.css for the hero banner section
 * 
 * @package osk
 */

/** service-style-two **/
.service-style-two {
  position: relative;
}

.service-style-two .service-block-two {
  float: left;
  width: 100%;
}

.service-block-two .inner-box {
  position: relative;
  display: block;
  overflow: hidden; /* Contain absolutely positioned children */
}

.service-block-two .inner-box .content-box {
  position: relative;
  display: block;
  width: 50%;
  padding: 110px 65px 100px 65px;
  background: #d9effd;
  z-index: 2; /* keep text above any overlapping image */
  text-align: left; /* Default left alignment for all content */
}

.service-block-two .inner-box .content-box.pull-left {
  float: left;
}

.service-block-two .inner-box .image-column {
  width: 50%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Desktop: Absolute positioning for image column on right */
.service-block-two .inner-box .image-column.p_absolute {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}

.service-block-two .inner-box .image-column .bg-layer {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.service-block-two .inner-box .image-column .image-box {
  position: relative;
  display: none;
}

.service-block-two .inner-box .image-column .image-box img {
  width: 100%;
}

.service-block-two .inner-box .content-box .icon-box {
  position: absolute;
  right: 80px;
  bottom: 72px;
}

.service-block-two .inner-box .content-box h2 {
  position: relative;
  display: block;
  font-size: 56px;
  line-height: 56px;
  font-weight: 300;
  font-family: "Denton Test Regular", serif;
  margin-bottom: 18px;
  font-style: normal;
  text-align: left; /* Left align on desktop */
  color: #0b1970; /* Ensure dark color for visibility */
}

.service-block-two .inner-box .content-box h2 a {
  display: inline-block;
  color: #fff;
}

.service-block-two .inner-box .content-box h2 a:hover {
  text-decoration: underline;
}

.service-block-two .inner-box .content-box p {
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #0D1126;
  margin-bottom: 32px;
  text-align: left; /* Left align on desktop */
}

.service-block-two .inner-box .content-box .link a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 26px;
  font-family: var(--jost);
  color: #fff;
  font-weight: 700;
  padding-right: 83px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.service-block-two .inner-box .content-box .link a:before {
  position: absolute;
  content: '';
  background: #fff;
  width: 68px;
  height: 1px;
  top: 13px;
  right: 0px;
}

.service-block-two .inner-box .content-box .decore {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 60px;
  right: -24px;
  z-index: 555;
  background: #d7eefc;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 0% 100%, 0% 0%);
}

/* Button Box Styles */
.service-block-two .inner-box .content-box .btn-box {
  position: relative;
  display: block;
  margin-bottom: 0;
}

.service-block-two .inner-box .content-box .btn-box.btx-box-11 {
  /* Align primary CTA to the left on desktop - override responsive.css */
  text-align: left !important;
}

/* Rating Box Styles */
.rating-box {
  margin-bottom: 15px;
}

.rating-box.rating-column {
  position: relative;
  display: block;
}

.rating-box.mt_25 {
  margin-top: 25px;
}

.rating-box.news-btn-d-none-m {
  display: block;
}

/* Rating List Styles */
.rating-list {
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rating-list.inline-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.rating-list.clearfix {
  clear: both;
}

.rating-list li {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  font-size: 14px;
  line-height: 20px;
  color: #0D1126;
  font-weight: 400;
}

.rating-list li:last-child {
  margin-right: 0;
}

.rating-list li img {
  /* margin-right: 8px; */
  display: inline-block;
  vertical-align: middle;
}

/* Desktop Styles - Ensure proper layout */
@media only screen and (min-width: 992px) {
  .service-block-two .inner-box {
    min-height: 500px; /* Ensure height for absolute positioning */
  }
  
  .service-block-two .inner-box .image-column.p_absolute {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
  }
  
  .service-block-two .inner-box .content-box {
    width: 50% !important;
    float: left;
  }
  
  .service-block-two .inner-box .content-box .btn-box.btx-box-11 {
    text-align: left !important; /* Force left alignment on desktop */
  }
  
  .service-block-two .inner-box .content-box h2 {
    text-align: left !important;
  }
  
  .service-block-two .inner-box .content-box p {
    text-align: left !important;
  }
}

/* Responsive Styles */
@media only screen and (max-width: 1200px) {
  .service-block-two .inner-box .content-box {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Small tablets (7") - 601px to 768px */
@media (min-width: 601px) and (max-width: 768px) {
  .service-block-two .inner-box .image-column {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  .service-block-two .inner-box .image-column.p_absolute {
    position: relative !important;
    top: auto !important;
    right: auto !important;
  }

  .service-block-two .inner-box .image-column .bg-layer {
    display: none;
  }

  .service-block-two .inner-box .image-column .image-box {
    display: block;
  }

  .service-block-two .inner-box .content-box {
    position: relative !important;
    display: block;
    width: 100% !important;
    float: none !important;
    padding: 110px 35px 100px 35px;
    background: #d9effd;
  }

  .service-block-two .inner-box .content-box h2 {
    font-size: 53px !important;
    line-height: 60px;
    font-weight: 300;
    text-align: center !important;
    font-family: "Denton Test Regular", serif;
    margin-bottom: 18px;
    font-style: normal;
    color: #0b1970 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .service-block-two .inner-box .content-box p {
    font-size: 21px !important;
    font-weight: 400;
    line-height: 32px !important;
    color: #0D1126 !important;
    text-align: center !important;
    margin-bottom: 32px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .service-block-two .inner-box .content-box .btn-box.btx-box-11 {
    text-align: center !important;
  }

  .rating-box.news-btn-d-none-m {
    display: none;
  }
}

/* iPad landscape (769px–1024px): keep side-by-side layout to match index.html design */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-block-two .inner-box {
    display: flex;
    flex-direction: row;
    min-height: 500px;
  }

  .service-block-two .inner-box .content-box {
    position: relative !important;
    display: block;
    width: 50% !important;
    float: left;
    padding: 80px 40px 80px 40px;
    background: #d9effd;
    text-align: left !important;
  }

  .service-block-two .inner-box .content-box .decore {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 60px;
    right: -24px;
    left: auto;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 0% 100%, 0% 0%);
  }

  .service-block-two .inner-box .image-column {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
  }

  .service-block-two .inner-box .image-column.p_absolute {
    position: absolute !important;
  }

  .service-block-two .inner-box .image-column .bg-layer {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .service-block-two .inner-box .image-column .image-box {
    display: none;
  }

  .service-style-two .service-block-two .inner-box .content-box h2 {
    font-size: 42px !important;
    line-height: 50px !important;
    font-weight: 300;
    text-align: left !important;
    font-family: "Denton Test Regular", serif;
    margin-bottom: 18px;
    color: #0b1970 !important;
  }

  .service-style-two .service-block-two .inner-box .content-box p {
    font-size: 16px !important;
    line-height: 22px !important;
    color: #0D1126 !important;
    text-align: left !important;
    margin-bottom: 24px;
  }

  .service-style-two .service-block-two .inner-box .content-box .btn-box.btx-box-11 {
    text-align: left !important;
  }

  .rating-box.news-btn-d-none-m {
    display: block;
  }
}

/* iPad Air landscape (1025px–1180px): keep image and text in the same row */
@media (min-width: 1025px) and (max-width: 1180px) and (orientation: landscape) {
  .service-block-two .inner-box {
    display: flex;
    flex-direction: row;
    min-height: 500px;
  }

  .service-block-two .inner-box .content-box {
    position: relative !important;
    display: block;
    width: 50% !important;
    float: left;
    padding: 80px 40px 80px 40px;
    background: #d9effd;
    text-align: left !important;
  }

  .service-block-two .inner-box .content-box .decore {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 60px;
    right: -24px;
    left: auto;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%, 0% 100%, 0% 0%);
  }

  .service-block-two .inner-box .image-column {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
  }

  .service-block-two .inner-box .image-column.p_absolute {
    position: absolute !important;
  }

  .service-block-two .inner-box .image-column .bg-layer {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .service-block-two .inner-box .image-column .image-box {
    display: none;
  }

  .service-style-two .service-block-two .inner-box .content-box h2 {
    font-size: 42px !important;
    line-height: 50px !important;
    font-weight: 300;
    text-align: left !important;
    font-family: "Denton Test Regular", serif;
    margin-bottom: 18px;
    color: #0b1970 !important;
  }

  .service-style-two .service-block-two .inner-box .content-box p {
    font-size: 16px !important;
    line-height: 22px !important;
    color: #0D1126 !important;
    text-align: left !important;
    margin-bottom: 24px;
  }

  .service-style-two .service-block-two .inner-box .content-box .btn-box.btx-box-11 {
    text-align: left !important;
  }

  .rating-box.news-btn-d-none-m {
    display: block;
  }
}

/* General tablet/mobile portrait - max-width 991px (fallback for smaller devices) */
@media only screen and (max-width: 991px) and (orientation: portrait) {
  .service-block-two .inner-box .image-column {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  .service-block-two .inner-box .image-column.p_absolute {
    position: relative !important;
    top: auto !important;
    right: auto !important;
  }

  .service-block-two .inner-box .image-column .bg-layer {
    display: none;
  }

  .service-block-two .inner-box .image-column .image-box {
    display: block;
  }

  .service-block-two .inner-box .content-box {
    position: relative !important;
    display: block;
    width: 100% !important;
    float: none !important;
    padding: 35px 35px 35px 35px;
    background: #d9effd;
  }

  .service-block-two .inner-box .content-box .decore {
    position: absolute;
    top: 100%;
    left: 50%;
    display: block;
    transform: translateX(-50%);
    width: 60px;
    height: 28px;
    background: #d7eefc;
    z-index: 555;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    right: auto;
  }

  .service-block-two .inner-box .content-box h2 {
    font-size: 36px !important;
    line-height: 40px;
    font-weight: 300;
    text-align: center !important;
    font-family: "Denton Test Regular", serif;
    margin-bottom: 18px;
    font-style: normal;
    color: #0b1970 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .service-block-two .inner-box .content-box p {
    font-size: 16px !important;
    font-weight: 400;
    line-height: 20px !important;
    color: #0D1126 !important;
    text-align: center !important;
    margin-bottom: 32px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .service-block-two .inner-box .content-box .btn-box.btx-box-11 {
    text-align: center !important;
  }

  .rating-box.news-btn-d-none-m {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .service-style-two .service-block-two {
    width: 100%;
  }

  .service-block-two .inner-box .content-box {
    width: 100%;
  }
}

/* iPad Air 820×1180 (portrait) – keep side-by-side layout */
@media only screen and (min-width: 810px) and (max-width: 830px) and (orientation: portrait) {
  .service-style-two .service-block-two .inner-box {
    display: flex !important;
    flex-direction: row !important;
    min-height: 500px;
  }

  .service-style-two .service-block-two .inner-box .content-box {
    position: relative !important;
    width: 50% !important;
    float: left !important;
    padding: 80px 40px 80px 40px;
    text-align: left !important;
  }

  .service-style-two .service-block-two .inner-box .content-box .decore {
    top: 50%;
    left: auto;
    right: -24px;
    transform: translateY(-50%);
    width: 28px;
    height: 60px;
  }

  .service-style-two .service-block-two .inner-box .image-column {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
  }

  .service-style-two .service-block-two .inner-box .image-column.p_absolute {
    position: absolute !important;
  }

  .service-style-two .service-block-two .inner-box .image-column .bg-layer {
    display: block !important;
  }

  .service-style-two .service-block-two .inner-box .image-column .image-box {
    display: none !important;
  }
}
