<?php if (!defined('ABSPATH')) exit; ?>

/* Archive / category listing mobile responsiveness */

body.resources-template-page .blog-archive-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (min-width: 992px) {
  body.resources-template-page .blog-archive-layout > .blog-archive-content-col {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  body.resources-template-page .blog-archive-layout > .blog-archive-sidebar-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 1199px) {
  body.resources-template-page .get-demo-section .get-demo-banner {
    margin-left: -40px;
  }
}

@media (max-width: 991px) {
  body.resources-template-page .hero-section.blog-section::before {
    height: 900px;
    margin-top: -80px;
    background-position: 50% 0;
    background-size: cover;
  }

  body.resources-template-page .hero-section.blog-section {
    padding-bottom: 48px;
  }

  body.resources-template-page .hero-section-content {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  body.resources-template-page .hero-section-content .hero-text {
    text-align: center;
    margin-bottom: 24px;
  }

  body.resources-template-page .hero-section-content .hero-text h1 {
    font-size: 32px !important;
    line-height: 1.2;
    margin-bottom: 16px !important;
  }

  body.resources-template-page .hero-section-content .fs-24 {
    font-size: 18px !important;
    line-height: 28px;
  }

  body.resources-template-page .hero-section-content .mb-60 {
    margin-bottom: 20px !important;
  }

  body.resources-template-page .about-hero-banner {
    max-width: 420px;
    margin: 0 auto;
  }

  body.resources-template-page .blog-listing.mb-120 {
    margin-bottom: 64px;
  }

  body.resources-template-page #blogcatcontent {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.resources-template-page #blogcatcontent .fs-32 {
    font-size: 26px !important;
    line-height: 1.2;
  }

  body.resources-template-page .showing-results {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 0;
  }

  body.resources-template-page .blog-categories-select {
    margin-bottom: 20px;
  }

  body.resources-template-page .blog-categories-select .bootstrap-select,
  body.resources-template-page .blog-categories-select .dropdown-toggle {
    width: 100% !important;
  }

  body.resources-template-page .archive-mobile-tools {
    margin-bottom: 24px;
  }

  body.resources-template-page .archive-mobile-tools .form-control {
    border: 1px solid #808080;
    padding-right: 3rem;
  }

  body.resources-template-page .archive-mobile-tools .search-icon {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translate(-5%, -50%);
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.resources-template-page .archive-mobile-follow ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  body.resources-template-page .archive-mobile-follow ul li a {
    display: inline-flex;
    width: 32px;
  }

  body.resources-template-page .blog-card .card-body > .h4 {
    font-size: 20px !important;
    line-height: 1.35;
  }

  body.resources-template-page .blog-card .card-body p {
    font-size: 15px;
    line-height: 1.5;
  }

  body.resources-template-page .get-demo-section {
    padding: 48px 0;
    text-align: center;
  }

  body.resources-template-page .get-demo-section .padding-left {
    padding-left: 15px;
    padding-right: 15px;
  }

  body.resources-template-page .get-demo-section .get-demo-banner {
    margin-left: 0;
    height: 320px;
    max-width: 100%;
  }

  body.resources-template-page .get-demo-section::after {
    height: 520px;
    bottom: -120px;
  }

  body.resources-template-page .newsletter-section {
    padding: 24px 0 40px;
  }

  body.resources-template-page .newsletter-section .newsletter-content {
    padding: 0 20px 24px !important;
    text-align: center;
  }

  body.resources-template-page .newsletter-section .newsletter-content h2 {
    font-size: 24px !important;
    line-height: 1.3;
  }

  body.resources-template-page .newsletter-section .newsletter-content .fs-24 {
    font-size: 18px !important;
  }

  body.resources-template-page .newsletter-section .book-demo-input {
    max-width: 100%;
    margin: 0 auto;
  }

  body.resources-template-page .resources-insights-section {
    padding-bottom: 40px;
  }

  body.resources-template-page .resources-insights-section h3.mb-50 {
    margin-bottom: 28px !important;
    font-size: 26px !important;
  }

  body.resources-template-page .resources-insights-section .podcast-box .podcast-content {
    padding: 24px 20px 16px;
  }

  body.resources-template-page .resources-insights-section .blog-box {
    margin-bottom: 16px;
  }

  body.resources-template-page nav.pagination.custom-pagination {
    margin-top: 8px;
    padding: 0 8px;
  }

  body.resources-template-page nav.pagination.custom-pagination .nav-links {
    justify-content: space-between;
    gap: 8px;
  }

  body.resources-template-page nav.pagination.custom-pagination .page-numbers:not(.next):not(.prev) {
    min-width: 34px;
    min-height: 34px;
    margin: 0 4px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  body.resources-template-page .hero-section.blog-section::before {
    height: 720px;
    background-size: 120% auto;
  }

  body.resources-template-page .hero-section-content .hero-text h1 {
    font-size: 28px !important;
  }

  body.resources-template-page .hero-section-content .fs-24 {
    font-size: 16px !important;
    line-height: 24px;
  }

  body.resources-template-page .about-hero-banner {
    max-width: 300px;
  }

  body.resources-template-page .blog-card .card-header img {
    max-height: 220px;
    object-fit: cover;
    width: 100%;
  }

  body.resources-template-page .get-demo-section .get-demo-banner {
    height: 260px;
  }

  body.resources-template-page .get-demo-section h2.h1 {
    font-size: 28px !important;
  }

  body.resources-template-page .get-demo-section h3.h2 {
    font-size: 18px !important;
    line-height: 1.4;
  }

  body.resources-template-page .resources-insights-section .podcast-social-links ul li a {
    font-size: 14px;
  }

  body.resources-template-page .custom-pagination a.prev.page-numbers::before,
  body.resources-template-page .custom-pagination a.next.page-numbers::after {
    margin-left: 8px;
    margin-right: 8px;
  }
}

@media (max-width: 575px) {
  body.resources-template-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.resources-template-page .blog-listing.mb-120 {
    margin-bottom: 48px;
  }

  body.resources-template-page #blogcatcontent .fs-32 {
    font-size: 22px !important;
  }

  body.resources-template-page .blog-card .card-body {
    padding: 16px !important;
  }

  body.resources-template-page .blog-card .author img {
    width: 36px;
    height: 36px;
  }

  body.resources-template-page .get-demo-section .get-demo-banner {
    height: 220px;
  }
}

/* Featured + All Posts archive layout */
body.resources-template-page .blog-archive-layout > .blog-archive-content-col,
body.resources-template-page .blog-archive-layout > .blog-archive-sidebar-col {
  min-width: 0;
}

body.resources-template-page .archive-featured-hero-link,
body.resources-template-page .archive-featured-hero-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Kill inherited underlines from wrapping <a> on post cards */
body.resources-template-page a.blog-card-link,
body.resources-template-page a.blog-card-link:hover,
body.resources-template-page a.blog-card-link:focus,
body.resources-template-page a.blog-card-link:visited,
body.new_blog_design a.blog-card-link,
body.new_blog_design a.blog-card-link:hover,
body.new_blog_design a.blog-card-link:focus,
body.new_blog_design a.blog-card-link:visited,
body.resource-single a.blog-card-link,
body.resource-single a.blog-card-link:hover,
body.single-post a.blog-card-link,
body.single-post a.blog-card-link:hover {
  text-decoration: none !important;
  color: inherit;
  border: 0;
  box-shadow: none;
}

body.resources-template-page a.blog-card-link *,
body.resources-template-page a.blog-card-link:hover *,
body.new_blog_design a.blog-card-link *,
body.new_blog_design a.blog-card-link:hover *,
body.resource-single a.blog-card-link *,
body.resource-single a.blog-card-link:hover *,
body.single-post a.blog-card-link *,
body.single-post a.blog-card-link:hover * {
  text-decoration: none !important;
}

body.resources-template-page a.blog-card-link .read-time,
body.resources-template-page a.blog-card-link .h4,
body.resources-template-page a.blog-card-link .h3,
body.resources-template-page a.blog-card-link .h6,
body.resources-template-page a.blog-card-link p,
body.new_blog_design a.blog-card-link .read-time,
body.new_blog_design a.blog-card-link .h4,
body.new_blog_design a.blog-card-link .h3,
body.new_blog_design a.blog-card-link .h6,
body.new_blog_design a.blog-card-link p {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

body.resources-template-page .archive-featured-hero {
  overflow: hidden;
  border: 0;
  background: #fff;
}

body.resources-template-page .archive-featured-hero-media {
  min-height: 240px;
  background: #f6f6f6;
}

body.resources-template-page .archive-featured-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

body.resources-template-page .customer-result {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

body.resources-template-page .archive-mobile-follow ul,
body.resources-template-page .blog-categories .follow-us ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.resources-template-page .archive-mobile-follow ul li,
body.resources-template-page .blog-categories .follow-us ul li {
  display: inline-flex !important;
  width: auto !important;
  float: none !important;
}

@media (max-width: 767px) {
  body.resources-template-page .archive-featured-hero-media img {
    min-height: 200px;
  }

  body.resources-template-page .archive-featured-block .fs-32,
  body.resources-template-page .archive-all-posts-block .fs-32 {
    font-size: 24px !important;
  }

  body.resources-template-page nav.pagination.custom-pagination .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
}

