/*Blog Page CSS*/

/* shadow */
body .blog_grid div.w-grid-item-h {
  filter: drop-shadow(0px 4px 57px rgba(0, 0, 0, 0.16));
  background-color: #ffffff;
}

/* Article style */
body .blog_grid article.post {
  padding: 15px !important;
}

/* Blog Post Title style*/
body .blog_grid .w-grid-list .w-grid-item-h h2.post_title {
  height: auto;
  color: #ffffff;
  text-align: left;
  line-height: 37.8px !important;
  background-color: #0a1a33 !important;
  position: relative;
  overflow: hidden;
  padding: 30px 120px 60px 30px;
  z-index: 2;
  text-shadow: 2px 2px 10px #0a1a33;
  font-family: Mulish;
}

/* Insert image after title - style */
body .blog_grid .w-grid-list .w-grid-item-h h2.post_title:after {
  content: url("/wp-content/uploads/2023/09/BN-small-logo-1.png");
  position: absolute;
  /* transform: scale(0.5); */
  top: -27px;
  right: -41px;
  z-index: 1;
}

/*Blog Post title Link style*/
body .blog_grid .w-grid-list .w-grid-item-h h2.post_title a {
  font-size: 24px;
  font-weight: 800;
  position: relative;
  z-index: 2;
  line-height: 0px;
}
/*Title link hover*/
body .blog_grid .w-grid-list .w-grid-item-h h2.post_title a:hover {
  color: var(--color1);
}

/*Blog post Date Style */
body .blog_grid .blog_time {
  font-size: 20px;
  font-weight: 500;
  line-height: 31.5px;
  color: #0a1a33;
  font-style: italic;
  text-align: center;
  padding-top: 37px;
  padding-bottom: 14px;
  width: 100%;
  font-family: "Poppins";
}

/* Blog post content style */
body .blog_grid .w-grid-item-h .blog_content {
  /*max-height: 131px;  */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
  text-align: center;
  position: static;
  padding: 0px 50px;
  font-family: "Poppins";
}

/*Blog Post Content Paragraph Style*/
body .blog_grid .w-grid-item-h .blog_content p {
  display: block;
}

/* Button Wrapper style*/
body .blog_grid div.button_wrapper {
  justify-content: center;
}

/* Blog Button Style*/
body .blog_grid .post_button {
  margin-top: 12px;
  margin-bottom: 30px;
  padding: 20px 40px 16px 40px;
  position: static;
  text-align: center;
  background: #0a1a33;
  align-items: center;
  border: 0 !important;
  color: #ffffff !important;
  display: inline-flex;
  border-radius: 0;
}

/* Title row style */
body .mml_hero9.v2 {
  background: #0a1a33;
}

/* Title row before -style*/
body:not(.home).single-post .mml_hero9:before {
  background: url(https://www.bndrainageltd.com/wp-content/uploads/2023/09/BN-big-logo.png) 102% -85px/37% no-repeat #0a1a33;
}

/* Responsive */

@media (max-width: 1300px) {
  body:not(.home).single-post .mml_hero9:before {
    background: url(https://www.bndrainageltd.com/wp-content/uploads/2023/09/BN-big-logo.png) 102% -88px/41% no-repeat #0a1a33;
  }
  body .blog_grid .w-grid-list .w-grid-item-h h2.post_title {
    padding: 20px 100px 40px 29px;
  }
}

@media (max-width: 1200px) {
  body:not(.home).single-post .mml_hero9:before {
    background: url(https://www.bndrainageltd.com/wp-content/uploads/2023/09/BN-big-logo.png) 103% 5px/44% no-repeat #0a1a33;
  }
  body .blog_grid .w-grid-list .w-grid-item-h h2.post_title:after {
    top: -54px;
    transform: scale(0.8);
    right: -56px;
  }
  body .blog_grid .w-grid-list .w-grid-item-h h2.post_title {
    padding: 20px 20px 40px 29px;
  }
}

@media (max-width: 767px) {
  body:not(.home).single-post .mml_hero9:before {
    content: url(/wp-content/uploads/2023/09/BN-big-logo.png);
    position: absolute;
    top: -3px;
    left: 105px;
    transform: scale(0.24);
  }
  body .blog_grid .w-grid-list .w-grid-item-h h2.post_title:after {
    top: -65px;
    right: -64px;
    transform: scale(0.7);
  }
  body .blog_grid .w-grid-list .w-grid-item-h h2.post_title {
    padding: 20px;
  }

  body .blog_grid .w-grid-item-h .blog_content {
    padding: 0px 30px;
  }
  body .blog_section .g-cols.via_flex.type_default > div > .vc_column-inner {
    padding: 0px;
  }
  body .blog_grid article.w-grid-item {
    margin-bottom: 0 !important;
  }
  body .mml_hero9 {
    padding: 24px !important;
  }
}

@media (max-width: 400px) {
  body:not(.home).single-post .mml_hero9:before {
    left: 93px;
  }

  body .mml_hero9 p,
  .mml_hero9 h1 {
    padding-left: 10px;
  }
}

@media (max-width: 375px) {
  body:not(.home).single-post .mml_hero9:before {
    left: 85px;
  }
}
/*Blog PAge CSS End*/

/*POSTs CUSTOM CSS*/

.single-post a.w-sharing-item {
  font-size: 20px;
}

body.single-post .g-cols.via_flex.type_default > div > .vc_column-inner {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

body.single-post section.l-section.blog-h1row {
  background: url(/wp-content/uploads/2023/09/BN-big-logo.png) 101% 44%/28% #0a1a33 no-repeat;
  padding: 123px 0;
}
body.single-post .l-main .blog-h1row h1.post_title {
  text-transform: none;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  font-family: "Poppins";
  color: #fff;
  text-align: left;
  padding-right: 250px;
  text-shadow: 2px 2px 10px #0a1a33;
}

@media (max-width: 1300px) {
  body.single-post .l-main .blog-h1row h1.post_title {
    padding-right: 315px;
  }
  body.single-post section.l-section.blog-h1row {
    background: url(/wp-content/uploads/2023/09/BN-big-logo.png) 102% 44%/33% #0a1a33 no-repeat;
  }
}

@media (max-width: 1200px) {
  body.single-post .l-main .blog-h1row h1.post_title {
    padding-right: 315px;
  }
  body.single-post section.l-section.blog-h1row {
    background: url(/wp-content/uploads/2023/09/BN-big-logo.png) 100% 42%/31.5% #0a1a33 no-repeat;
    padding: 90px 0;
  }
}

@media (max-width: 768px) {
  body.single-post .l-main .blog-h1row h1.post_title {
    padding-right: 200px;
  }
  body.single-post section.l-section.blog-h1row {
    background: url(/wp-content/uploads/2023/09/BN-big-logo.png) 100% 44%/31.5% #0a1a33 no-repeat;
    padding: 50px 0;
  }
}
@media (max-width: 767px) {
  body.single-post section.l-section.blog-h1row {
    background: url(/wp-content/uploads/2023/09/BN-big-logo.png) 116% 100%/67% #0a1a33 no-repeat;
    padding: 22px 0;
  }
  body.single-post .l-main .blog-h1row h1.post_title {
    padding-right: 0;
  }
}

@media (max-width: 400px) {
  body.single-post section.l-section.blog-h1row {
    background: url(/wp-content/uploads/2023/09/BN-big-logo.png) 100% 100%/66% #0a1a33 no-repeat;
    padding: 10px 0;
  }
}
/*POST CUSTOM CSS END*/

/*********************** Blog Posts Sidebar *******************************/
:root {
  --sidebar-primary: #0a1a33;
  --sidebar-secondary: #a27b48;
}

/*sidebar sticky fix*/
.single-post * {
  overflow: visible !important;
}

/*sticky*/
.single-post .sidebar {
  position: sticky;
  top: 250px;
  align-self: flex-start;
  padding-bottom: 200px;
  padding-top: 8px;
}

body.single-post .sidebar .g-cols.via_flex.type_default > div > .vc_column-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sidebar .sidebar_hello_title,
.sidebar .sidebar_posts h2,
.sidebar .sidebar_search_row h2 {
  font: var(--the7-widget-title-font);
  font-size: 24px !important;
  line-height: 30px;
  font-weight: 600;
  color: #3b3d40;
  margin-bottom: 15px;
  margin-top: 0;
}

.sidebar .sidebar_posts_row .sidebar_posts h2 {
  color: #fff;
}

.sidebar .vc_column_container > .vc_column-inner {
  padding-right: 0;
  padding-left: 0;
}

.sidebar p a {
  color: #3b3d40 !important;
  font-weight: 400 !important;
}

.sidebar span {
  color: #3d3d3d;
}

.sidebar p a i,
.sidebar p i {
  color: var(--sidebar-primary);
  position: absolute;
  left: -24px;
  margin-top: 5px;
  width: 16px;
}

.sidebar a:hover {
  color: var(--sidebar-secondary) !important;
}

.sidebar a {
  font-size: 16px;
  line-height: 24px;
}

.sidebar .subtitle + p {
  margin-bottom: 15px;
}

.sidebar .vc_row {
  margin: 0;
}

/************************ Sidebar hello ****************************/
.sidebar .sidebar_hello_row span:hover {
  color: var(--sidebar-secondary) !important;
}

.sidebar_hello_row p {
  margin-bottom: 5px;
  position: relative;
  margin-left: 25px;
  color: #3b3d40;
}

body .sidebar .sidebar_hello_row {
  padding: 10px;
  border: 1px solid #000;
  padding-bottom: 60px;
}

/************* Sidebar Image separator *******************/

.sidebar .separator_row {
  padding: 0;
}

.sidebar .sidebar_separator_section {
  padding: 0;
  z-index: 99;
}

.sidebar .sidebar_separator_section .g-cols.via_flex.type_default > div > .vc_column-inner {
  padding: 0;
}

.sidebar .sidebar_separator_section .g-cols.via_flex.type_default {
  margin: 0;
}

.image_holder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle_holder {
  aspect-ratio: 1 / 1;
  width: 80px;
  background: #fff;
  border-radius: 80%;
  border: 3px solid var(--sidebar-secondary);
  position: absolute;
  top: -33px;
  text-align: center;
  overflow: hidden;
  padding: 5px;
}

.sidebar_separator {
  display: flex;
  justify-content: center;
  background: var(--sidebar-secondary);
  position: absolute;
  top: -15px;
  width: 100%;
  height: 30px;
  z-index: 99;
}

/******************* Sidebar posts ***************/

.sidebar .sidebar_posts_row ul {
  list-style: none;
  margin-left: 0;
}

.sidebar .sidebar_posts_row {
  background: var(--sidebar-primary);
  padding: 10px;
  margin-bottom: 20px;
  padding-top: 60px;
  border: 1px solid #000;
}

.sidebar_posts_row a {
  color: #fff !important;
  text-transform: capitalize;
  font-weight: 700;
}

.sidebar .sidebar_posts_row ul li:not(:last-child):after {
  content: "";
  display: block;
  border-bottom: 1px solid #000;
  margin: 15px 0;
}

.l-section.sidebar_posts_row ul li:before {
  display: none !important;
}

.sidebar .sidebar_posts_row li {
  padding-left: 0;
}

.sidebar_posts_row .widget.widget_recent_entries {
  padding-bottom: 10px;
}

.sidebar .sidebar_posts_row a:hover {
  color: var(--sidebar-secondary) !important;
}

.sidebar_posts_row span.post-date {
  color: #fff;
  display: block;
}

/********************** Sidebar search ********************/

.sidebar .sidebar_search_row {
  padding: 0;
  padding-bottom: 30px;
}

.sidebar_search_row input#the7-search {
  /*background: #9BCB52;*/
  border: 1px solid #3d3d3d;
}

.sidebar_search_row input#the7-search::placeholder {
  color: #000 !important;
}

.sidebar_search_row svg {
  fill: #3d3d3d !important;
}

.sidebar input.search-field {
  margin-bottom: 15px;
}

.sidebar .sidebar_search_row input.search-submit {
  background: var(--sidebar-primary);
}

.sidebar .sidebar_search_row input.search-submit:hover {
  background: var(--sidebar-secondary);
}

/********************** Sidebar menu *************/
.sidebar_menu_row a {
  color: #3d3d3d !important;
}

.sidebar_menu_row a:hover {
  color: var(--sidebar-secondary) !important;
}

.sidebar .sidebar_menu_row ul li {
  padding: 0;
  margin: 0;
  border: none !important;
  display: list-item;
  position: relative;
}

.sidebar .sidebar_menu_row ul li::before {
  content: "•";
  position: absolute;
  left: -25px;
  font-size: 2.8em;
}

.sidebar_menu_row ul {
  list-style: none;
  margin-left: 20px;
  color: var(--sidebar-primary);
}

.sidebar ul#menu-sidebar-menu a {
  border: none !important;
  padding: 0;
  margin: 10px 0;
  font-weight: 400 !important;
}

.widget.widget_nav_menu {
  margin-left: 5px;
}

.sidebar_menu_row ul li::marker {
  font-size: 16px;
}

.sidebar .sidebar_menu_row {
  padding: 0;
}

.sidebar_menu_title {
  font: var(--the7-widget-title-font);
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  color: #3d3d3d;
  margin-bottom: 15px;
}

/********** Sidebar end *********/

/************* Blog template quote block ***************/

.quote-block {
  text-align: center;
  padding: 10px 0;
  margin: 15px 0;
  position: relative;
  line-height: 0.2;
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: 48px;
  left: 0px;
  bottom: 0px;
  font-size: 95px;
  color: var(--sidebar-primary);
}
.quote-block::after {
  content: "\201D";
  position: absolute;
  right: 0px;
  bottom: 0px;
  font-size: 95px;
  color: var(--sidebar-primary);
}
.quote-block p {
  text-transform: uppercase;
  font-size: 22px;
  line-height: 26px;
  margin: 0px 40px;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 10px 0;
  font-weight: bold;
  color: var(--sidebar-primary);
}

/*********** Blog Template cta block ****************/

.cta_block {
  background: var(--sidebar-primary);
  padding: 15px;
  margin: 20px 0;
  border-radius: 15px;
}

.cta_block .intro_text h3 {
  color: #fff;
}

.intro_text {
  text-align: center;
  margin-bottom: 20px;
}

.intro_text p {
  font-size: 22px;
  line-height: 26px;
  font-weight: bold;
  color: #333333;
  padding-bottom: 10px;
}

.cta_block button.ff-btn.ff-btn-submit.ff-btn-md.wpf_has_custom_css {
  margin-bottom: 0;
}

.cta_block button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_style.wpf_has_custom_css:hover {
  /* color: #ED1B24 !important;*/
}
.cta_block button.ff-btn.ff-btn-submit.ff-btn-md.ff_btn_style.wpf_has_custom_css {
  color: var(--color2) !important;
  border: none;
  background: var(--color1);
}

.cta_block .ff-el-group.ff-text-center.ff_submit_btn_wrapper {
  margin: 0;
}

.cta_block .ff_submit_btn_wrapper_custom {
  margin-bottom: 0 !important;
}

.cta_block .ff-t-container[data-name="ff_cn_id_4"] {
  display: block;
}

/********* Blog template sticky button **************/

.social_links.sticky_button {
  position: fixed;
  right: 0;
  bottom: calc(30%);
  display: flex;
  z-index: 99;
  padding: 5px;
  opacity: 0;
  transition: opacity 1s;
}

.share_icons {
  display: flex;
  flex-direction: column;
}

.share_icons svg.bi.bi-facebook,
.share_icons .instagram svg,
.share_icons .linkedin svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.share_icons a.facebook,
.share_icons a.instagram,
.share_icons a.linkedin {
  padding: 20px;
  height: 65px;
  margin-bottom: 5px;
  display: block;
}

.share_icons a.facebook:hover,
.share_icons a.instagram:hover,
.share_icons a.linkedin:hover {
  opacity: 0.8;
}

.share_icons a.facebook {
  background: #4c69c7;
}

.share_icons a.instagram {
  background: #f46f65;
}
.share_icons a.linkedin {
  background: #0a66c2;
}

/*************** Sidebar Responsive ****************/
@media (max-width: 1400px) {
  .single-post .sidebar {
    top: 200px;
  }
}

@media (max-width: 1000px) {
  .single-post .vc_col-sm-8.wpb_column.vc_column_container {
    padding-bottom: 50px;
    width: 100%;
  }
  .single-post .vc_col-sm-4.wpb_column.vc_column_container.sidebar {
    width: 100%;
    padding-top: 0;
  }

  .share_icons a.facebook,
  .share_icons a.tiktok,
  .share_icons a.instagram,
  .share_icons a.linkedin {
    padding: 15px;
    height: 50px;
  }
  .sidebar .share_icons svg {
    width: 15px !important;
    height: 15px !important;
  }
  .social_links.sticky_button {
    bottom: calc(30%);
  }

  .single-post .sidebar {
    padding-bottom: 30px;
  }
  .single-post .cta_block .ff-column-container:last-child .ff-t-column-2 .ff_submit_btn_wrapper {
    float: none;
  }
}

/* search results page */
.search h2.post_title {
  line-height: normal;
}

.search #us_grid_1 .w-grid-list {
  margin: 0;
}

.search .w-grid > .pagination {
  margin-top: 2rem;
  text-align: center;
  margin-bottom: 20px;
}

.single-post .w-post-elm.post_content .g-cols.vc_row,
.single-post .w-post-elm.post_content .g-cols.vc_row .vc_col-sm-12 {
  display: inline;
}

.single-post .w-post-elm.post_content .g-cols.vc_row .vc_column-inner {
  display: block;
  padding-right: 0 !important;
}

.single-post .post_content .l-section {
  padding-right: 0;
}

@media (max-width: 768px) {
  .single-post .w-post-elm.post_content .g-cols.vc_row .vc_column-inner {
    padding-right: 1.5rem !important;
  }

  .single-post .post_content .l-section {
    padding-right: 2.5rem;
  }
}

@media (max-width: 600px) {
  .single-post .post_content .l-section {
    padding-right: 1.5rem;
  }
}

.single-post .w-post-elm.post_image {
  margin-top: 8px;
}
