/* Contemporary Psychology Clinic blog */

body.cpc-blog-page {
  background: #fff;
}

.cpc-blog-page .navbar-brand.cpc-wordmark {
  color: #404040;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  text-decoration: none;
  white-space: nowrap;
}

.cpc-blog-page .navbar-brand.cpc-wordmark:hover,
.cpc-blog-page .navbar-brand.cpc-wordmark:focus {
  color: #404040;
  text-decoration: none;
}

.blog-introduction {
  margin: 0 auto;
  max-width: 920px;
  padding: 0 20px 42px;
  text-align: center;
}

.blog-header .banner-image {
  background-position: center 55%;
}

.blog-header .image-gradient {
  background-image: linear-gradient(rgba(47, 55, 31, .16), rgba(47, 55, 31, .16));
  opacity: 1;
}

.blog-introduction h2 {
  color: #c31d79;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 20px;
}

.blog-introduction p {
  color: #c31d79;
  font-size: 21px;
  line-height: 32px;
  margin: 0 auto;
  max-width: 760px;
}

/* Match the navigation interaction used throughout the CPC site. */
.cpc-blog-page .navbar #menu-main-menu .menu-item a:hover,
.cpc-blog-page .navbar #menu-main-menu .menu-item a:focus,
.cpc-blog-page .navbar #menu-main-menu .menu-item a:active {
  color: #113ecd;
}

@media screen and (min-width: 768px) {
  .cpc-blog-page .navbar #menu-main-menu .menu-item.active a:hover,
  .cpc-blog-page .navbar #menu-main-menu .menu-item.active a:focus,
  .cpc-blog-page .navbar #menu-main-menu .menu-item.active a:active {
    border-color: #113ecd;
  }
}

.blog-grid {
  display: grid;
  gap: 54px 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1640px;
  padding: 18px 36px 96px;
}

.blog-card {
  min-width: 0;
}

.blog-card-content {
  color: #c31d79;
}

.blog-card-link {
  color: #c31d79;
  display: block;
  height: 100%;
  text-decoration: none;
}

.blog-card-link:hover,
.blog-card-link:focus,
.blog-card-link:active {
  color: #113ecd;
  outline: none;
  text-decoration: none;
}

.blog-card-image-wrap {
  background: #efefef;
  display: block;
  overflow: hidden;
  position: relative;
}

.blog-card-image-wrap::after {
  background-image: linear-gradient(#7c34ff, #113ecd);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity ease-in-out .2s;
}

/* Keep keyboard selection and the brief pressed effect on all devices. */
.blog-card-link:focus-visible .blog-card-image-wrap::after,
.blog-card-link:active .blog-card-image-wrap::after {
  opacity: .5;
}

/* Touch browsers can retain :hover after a tap. Only mouse-like pointers
   should apply this tint on hover. */
@media (hover: hover) and (pointer: fine) {
  .blog-card-link:hover .blog-card-image-wrap::after {
    opacity: .5;
  }
}

.blog-card-image {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.blog-card-link:hover .blog-card-image,
.blog-card-link:focus .blog-card-image {
  transform: none;
}

.blog-card-date {
  color: #777;
  display: block;
  font-family: "Inconsolata", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: 16px;
  text-transform: uppercase;
}

.blog-card-title {
  color: inherit;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 21px;
  line-height: 25px;
  margin: 8px 0 0;
  transition: color .2s ease;
}

.blog-card-read {
  color: #555;
  display: inline-block;
  font-family: "Inconsolata", monospace;
  font-size: 17px;
  font-weight: 700;
  margin-top: 12px;
}

.blog-card-link:hover .blog-card-read,
.blog-card-link:focus .blog-card-read {
  color: #113ecd;
  text-decoration: underline;
}

/* Individual blog article pages */
.blog-article-main {
  background: #fff;
  padding: 0 0 90px;
}

.blog-article-hero {
  background-color: #ddd;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: min(61vw, 690px);
  min-height: 500px;
  position: relative;
}

.blog-article-hero::after {
  background: linear-gradient(rgba(34, 28, 28, .18), rgba(34, 28, 28, .08) 58%, rgba(34, 28, 28, .2));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.blog-article-breadcrumb {
  color: #fff;
  font-family: "Inconsolata", monospace;
  font-size: 17px;
  font-weight: 700;
  left: 9.5%;
  letter-spacing: .01em;
  position: absolute;
  right: 9.5%;
  top: 28px;
  z-index: 2;
}

.blog-article-breadcrumb a,
.blog-article-breadcrumb span {
  color: #fff;
}

.blog-article-breadcrumb a:hover,
.blog-article-breadcrumb a:focus {
  color: #fff;
  text-decoration: underline;
}

.blog-article-panel {
  background: #fff;
  margin: -150px auto 0;
  max-width: 1340px;
  min-height: 240px;
  padding: 64px 112px 80px;
  position: relative;
  width: calc(100% - 22%);
  z-index: 3;
}

.blog-article-title {
  color: #c31d79;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 52px;
  line-height: 1.14;
  margin: 0 0 28px;
  max-width: 1080px;
}

.blog-article-meta {
  color: #777;
  font-family: "Inconsolata", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  margin: 0 0 58px;
  text-transform: uppercase;
}

.blog-article-meta .blog-article-author {
  color: #777;
  text-transform: none;
}

.blog-article-content {
  color: #c31d79;
  font-size: 20px;
  line-height: 1.65;
  max-width: 920px;
}

.blog-article-content p {
  margin: 0 0 26px;
}

.blog-article-content h2 {
  color: #c31d79;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 30px;
  line-height: 1.25;
  margin: 48px 0 18px;
  text-align: left;
}

.blog-article-content h3 {
  color: #c31d79;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 23px;
  line-height: 1.3;
  margin: 34px 0 14px;
}

.blog-article-content blockquote {
  border-left: 4px solid #c31d79;
  color: #c31d79;
  font-size: 22px;
  font-style: italic;
  margin: 34px 0;
  padding: 4px 0 4px 28px;
}

.blog-article-content a {
  color: #113ecd;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.blog-article-content .blog-tags {
  font-family: "Inconsolata", monospace;
  font-size: 17px;
  font-weight: 700;
  margin-top: 42px;
}

.blog-back-link {
  border-top: 1px solid #ddd;
  color: #c31d79;
  display: inline-block;
  font-family: "Inconsolata", monospace;
  font-size: 18px;
  font-weight: 700;
  margin-top: 34px;
  padding-top: 22px;
}

.blog-back-link:hover,
.blog-back-link:focus {
  color: #113ecd;
}

/* Full post overlay. The :target approach works without JavaScript. */
.blog-post-overlay {
  align-items: flex-start;
  background: rgba(28, 28, 31, .74);
  display: none;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 32px;
  position: fixed;
  z-index: 1200;
}

.blog-post-overlay:target {
  display: flex;
}

.blog-post {
  background: #fff;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .28);
  margin: auto;
  max-width: 930px;
  position: relative;
  width: 100%;
}

.blog-post-close {
  align-items: center;
  background: #fff;
  border: 2px solid #c31d79;
  border-radius: 50%;
  color: #c31d79;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 28px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  text-decoration: none;
  top: 18px;
  transition: background .2s ease, color .2s ease;
  width: 48px;
  z-index: 2;
}

.blog-post-close:hover,
.blog-post-close:focus {
  background: #c31d79;
  color: #fff;
  outline: none;
  text-decoration: none;
}

.blog-post-hero {
  display: block;
  max-height: 560px;
  object-fit: cover;
  width: 100%;
}

.blog-post-body {
  color: #414042;
  font-size: 18px;
  line-height: 1.72;
  padding: 48px 68px 62px;
}

.blog-post-body time {
  color: #777;
  display: block;
  font-family: "Inconsolata", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.blog-post-body h2 {
  color: #c31d79;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 42px;
  line-height: 1.14;
  margin: 0 0 30px;
  text-align: left;
}

.blog-post-body h3 {
  color: #c31d79;
  font-family: "OL Century Gothic Bold", CenturyGothic, AppleGothic, sans-serif;
  font-size: 25px;
  line-height: 1.25;
  margin: 34px 0 12px;
}

.blog-post-body p {
  margin: 0 0 22px;
}

.blog-post-body blockquote {
  border-left: 4px solid #c31d79;
  color: #555;
  font-size: 20px;
  font-style: italic;
  margin: 30px 0;
  padding: 4px 0 4px 25px;
}

.blog-post-body .reflective-questions {
  color: #555;
  font-size: 20px;
  font-style: italic;
  margin: 28px 0;
}

.blog-post-body a {
  overflow-wrap: anywhere;
}

.blog-post-back {
  border-top: 1px solid #ddd;
  display: inline-block;
  font-family: "Inconsolata", monospace;
  font-size: 18px;
  font-weight: 700;
  margin-top: 18px;
  padding-top: 22px;
}

@media screen and (max-width: 1199px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 899px) {
  .blog-grid {
    gap: 42px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 24px;
    padding-right: 24px;
  }

  .blog-card-title {
    font-size: 21px;
    line-height: 25px;
  }

  .blog-article-panel {
    padding: 52px 65px 68px;
    width: calc(100% - 12%);
  }

  .blog-article-title {
    font-size: 43px;
  }
}

@media screen and (max-width: 767px) {
  .cpc-blog-page .navbar-brand.cpc-wordmark {
    font-size: 19px;
    white-space: normal;
  }

  .blog-introduction {
    padding: 0 22px 30px;
  }

  .blog-introduction h2 {
    font-size: 24px;
    line-height: 28px;
  }

  .blog-introduction p {
    font-size: 18px;
    line-height: 28px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    padding: 12px 22px 70px;
  }

  .blog-card-title {
    font-size: 18px;
    line-height: 22px;
  }

  .blog-article-main {
    padding-bottom: 55px;
  }

  .blog-article-hero {
    height: 72vw;
    min-height: 390px;
  }

  .blog-article-breadcrumb {
    font-size: 15px;
    left: 22px;
    right: 22px;
    top: 22px;
  }

  .blog-article-panel {
    margin-top: -72px;
    padding: 34px 24px 50px;
    width: calc(100% - 30px);
  }

  .blog-article-title {
    font-size: 31px;
    line-height: 1.18;
    margin-bottom: 20px;
  }

  .blog-article-meta {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 38px;
  }

  .blog-article-content {
    font-size: 18px;
    line-height: 1.62;
  }

  .blog-article-content p {
    margin-bottom: 23px;
  }

  .blog-article-content h2 {
    font-size: 25px;
    margin-top: 38px;
  }

  .blog-article-content h3 {
    font-size: 21px;
  }

  .blog-article-content blockquote {
    font-size: 19px;
    padding-left: 20px;
  }

  .blog-post-overlay {
    padding: 0;
  }

  .blog-post {
    margin: 0;
    min-height: 100vh;
  }

  .blog-post-close {
    height: 44px;
    right: 12px;
    top: 12px;
    width: 44px;
  }

  .blog-post-hero {
    max-height: 360px;
  }

  .blog-post-body {
    font-size: 17px;
    line-height: 1.68;
    padding: 34px 24px 48px;
  }

  .blog-post-body h2 {
    font-size: 32px;
  }

  .blog-post-body h3 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card-image,
  .blog-card-image-wrap::after,
  .blog-card-title,
  .blog-post-close {
    transition: none;
  }
}

@media print {
  .blog-introduction,
  .blog-grid,
  .footer,
  header {
    display: none !important;
  }

  .blog-post-overlay,
  .blog-post-overlay:target {
    background: #fff;
    display: none;
    inset: auto;
    overflow: visible;
    padding: 0;
    position: static;
  }

  .blog-post-overlay:target {
    display: block;
  }

  .blog-post {
    box-shadow: none;
    max-width: none;
  }

  .blog-post-close,
  .blog-post-back {
    display: none;
  }

  .blog-post-body {
    color: #000;
    padding: 24px 0;
  }

  .blog-article-main {
    padding: 0;
  }

  .blog-article-hero,
  .blog-back-link {
    display: none !important;
  }

  .blog-article-panel {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
  }

  .blog-article-title,
  .blog-article-content,
  .blog-article-content h2,
  .blog-article-content h3,
  .blog-article-content blockquote {
    color: #000;
  }
}
