:root {
  --white: #ffffff;
  --blog-container: 1600px;
  --blog-single-container: 1170px;
  --section-pt: 50px;
  --section-pb: 50px;
  --post-card-title: 18px;
  --fw-400: 400;
  --tansition-all-5: 0.5s all;
  --primary: #2b3275;
  --secondary: #46c7f1;
  --secondary-08: rgba(70, 199, 241, 0.8);
  --sidebar-width: 340px;
  --gray-300: #f5f3f4;
  --border-color: rgba(228, 217, 255, 0.6);
  --blog-badge-bg: rgb(206 212 225);
  --blog-badge-bg-hover: rgb(206 212 225 /70%);
}

.text-center {
  text-align: center;
}

.blog-section {
  padding-top: var(--section-pt);
  padding-bottom: var(--section-pb);
}

.blog-container {
  width: 100%;
  max-width: var(--blog-container);
  margin-left: auto;
  margin-right: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.hero-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1240px) {
  .hero-posts {
    grid-template-columns: repeat(1, 1fr);
  }
}

.hero-post-col-1,
.hero-post-col-2 {
  flex: 1;
}

.hero-post-col-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .hero-post-col-2 {
    grid-template-columns: repeat(1, 1fr);
  }

}

@media (min-width: 1240px) {
  .hero-post-col-2 .post-thumbnail img {
    height: 100%;
    max-width: none;
    width: 100%;
  }
}

.blog-page-header {
  background-color: var(--gray-300);
}

.post-cat-title {
  margin-bottom: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  gap: 1.5rem;
  margin-bottom: 50px;
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.post-grid:last-child {
  margin-bottom: 0;
}

.post-card {
  position: relative;
  overflow: hidden;
}

.post-card-thumbnail img {
  transition: var(--tansition-all-5);
  transform: scale(1.05);
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.2);
}

.post-card-title {
  font-size: var(--post-card-title);
  font-weight: var(--fw-400);
  color: var(--white);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  :root {
    --post-card-title: 14px
  }

  .post-card-title {
    font-size: var(--post-card-title);
  }
}

.hero-post-col-1 .post-card-title {
  font-size: 28px;
}

@media (max-width: 768px) {
  .hero-post-col-1 .post-card-title {
    font-size: 18px;
  }
}

.hero-post-col-1 .post-card,
.hero-post-col-1 .post-card-thumbnail,
.hero-post-col-1 .post-card-thumbnail a,
.hero-post-col-1 .post-thumbnail {
  height: 100%;
}

.hero-post-col-1 .post-card-thumbnail img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
}

.post-card-title a {
  color: var(--white);
}

.post-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  transition: var(--tansition-all-5);
  min-height: 80px;
}

@media (max-width: 640px) {
  .post-card-content {
    min-height: auto;
  }
}

.post-card-content:hover {
  background-color: var(--secondary-08);
  /* height: auto; */
}

/* .post-card-description{
    margin-bottom: -58px;
} */
.post-card-content:hover .post-card-description {
  margin-bottom: 0;
}

.blog-single-main {
  padding-top: var(--section-pt);
  padding-bottom: var(--section-pt);
}

.blog-single-thumb-wrapper {
  margin-bottom: 20px;
  margin-left: -24px;
  margin-right: -24px;
  margin-top: -24px;
}

.blog-single-thumb-wrapper img {
  width: 100%;
}

.blog-single-wrapper {
  display: flex;
  justify-content: space-between;
  max-width: var(--blog-single-container);
  margin-left: auto;
  margin-right: auto;
}

.blog-sidebar {
  width: var(--sidebar-width);
  margin-left: 24px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {

  .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  }
}

@media (max-width: 1023px) {
  :root {
    --blog-single-container: 768px;
    --sidebar-width: 100%;
  }

  .blog-single-wrapper,
  .blog-cat-single-wrapper {
    flex-direction: column;
    max-width: var(--blog-single-container);
    margin: auto;
  }

  .blog-sidebar {
    width: var(--sidebar-width);
    margin-top: 24px;
    margin-left: 0px;
  }

}

.blog-cat-single-wrapper .post-grid {
  flex: 1;
  height: max-content;
}

.blog-single-wrapper #primary {
  height: max-content;
}

.blog-sidebar div:not(:last-child) {
  margin-bottom: 24px;
}

.blog-sidebar .widget-title {
  margin-bottom: 20px;
}

.blog-sidebar .wpforms-field-row.wpforms-field-medium,
.blog-sidebar .wpforms-field-email input {
  max-width: 100% !important;
}

.blog-sidebar .wpforms-form input {
  border-color: var(--border-color) !important;
}

.blog-sidebar .wpforms-form button[type=submit] {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  padding: 10px 15px !important;
}

.blog-white-card {
  background-color: var(--white);
  box-shadow: 0 5px 16px rgb(0 0 0 / 10%);
  padding: 24px;
}

.blog-sidebar .blog-white-card ul li {
  position: relative;
  padding-left: 20px;
}

.blog-sidebar .blog-white-card ul li .post-date {
  display: block;
  color: #b5b5b5;
  font-size: 14px;
}

.blog-sidebar .blog-white-card ul li::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-left: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  top: 8px;
  transform: rotate(-140deg);
  left: 0;
}

.blog-sidebar .blog-white-card ul li:not(:last-child) {
  display: block;
  margin-bottom: 10px;
  /* border-bottom: 1px solid #dee2e6; */
  padding-bottom: 10px;
}

.blog-sidebar .blog-white-card ul li a {
  transition: 0.5s all;
}

.blog-sidebar .blog-white-card ul li a:hover {
  color: var(--secondary);
}

.blog-page-header .archive-description {
  max-width: 768px;
  margin: auto;
}

.blog-cat-single-wrapper {
  display: flex;
  justify-content: space-between;
}

.blog-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.view-all-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  transition: 0.5s all;
}

.single-blog-head {
  margin-bottom: 30px;
}

.single-blog-head .blog-updated * {
  color: #b5b5b5;
}

.single-blog-head h1 {
  margin-bottom: 0;
}

.view-all-link:hover {
  color: var(--secondary);
}

.blog-search-wrapper {
  background-color: #f2e9ff;
  background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 250px;
  padding: 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-page {
  min-height: 51vh;
}

.no-results.not-found .blog-container {
  max-width: 768px;
}

.rank-math-breadcrumb {
  max-width: var(--blog-single-container);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;

}

.rank-math-breadcrumb a {
  transition: 0.3s color ease-in-out;
}

.rank-math-breadcrumb a:hover {
  color: var(--secondary);
}

.blog-home-search {
  max-width: 768px;
  margin: auto;
}

.search-input {
  width: 100%;
  height: 45px;
  outline: 0;
  border: 1px solid var(--border-color);
  padding: 10px 100px 10px 10px;
}

.search-wrapper {
  position: relative;
}

.search-wrapper .search-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 25px;
  height: 100%;
  border: 0;
  background-color: var(--primary);
  color: #fff;
  font-weight: 500;
}

.search-input:focus {
  border-color: var(--primary);
}

.wpforms-recaptcha-container,
.wpforms-submit-container {
  flex-direction: column;
}

.blog-badge-wrapper {
  text-align: center;
  margin-top: 24px;
}

.blog-badge {
  font-size: 14px;
  padding: 5px 12px;
  background-color: var(--secondary-08);
  display: inline-flex;
  border-radius: 9999px;
  background-color: var(--blog-badge-bg);
  margin-right: 14px;
  margin-bottom: 14px;
  transition: var(--tansition-all-5);
  font-weight: 500;
}

.blog-badge:hover {
  background-color: var(--blog-badge-bg-hover);
}

@media (max-width: 640px) {
  .blog-badge-wrapper::-webkit-scrollbar {
    display: none;
  }

  .blog-badge-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
  }

  .blog-badge {
    font-size: 12px;
    flex-shrink: 0;
  }
}

.wpforms-widget .wpforms-container .wpforms-head-container {display:none !important}