/* CSS Document */

.cv-journal {
  --cv-dark: #1c2529;
  --cv-sage: #8bae9c;
  --cv-gold: #c5a46d;
  --cv-cream: #faf8f3;
  font-family: "DM Sans", sans-serif;
  color: var(--cv-dark);
}

.cv-journal h1,
.cv-journal h2,
.cv-journal h3 {
  font-family: "Playfair Display", serif;
}

.cv-journal-hero {
  padding: 105px 20px;
  background: linear-gradient(135deg, #1c2529, #34463e);
  color: #fff;
}

.cv-journal-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 20px 0;
}

.cv-journal-hero h1 em {
  color: #c5a46d;
}

.cv-journal-hero p {
  max-width: 650px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e3e9e5;
}

.cv-journal-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cv-gold);
}

.cv-journal-content {
  background: var(--cv-cream);
  padding: 85px 0 110px;
}

.cv-journal-intro {
  max-width: 720px;
  margin: 0 auto 35px;
}

.cv-journal-intro h2,
.cv-journal-section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 15px 0;
}

.cv-journal-intro p {
  color: #66716d;
  line-height: 1.8;
}

.cv-journal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 55px;
}

#journalCategoryButtons {
  display: contents;
}

.cv-journal-filter {
  border: 1px solid #d9e2da;
  background: white;
  color: var(--cv-dark);
  border-radius: 30px;
  padding: 10px 19px;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

.cv-journal-filter:hover,
.cv-journal-filter.active {
  background: var(--cv-dark);
  border-color: var(--cv-dark);
  color: white;
}

.cv-journal-featured {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 45px rgba(28, 37, 41, 0.07);
  margin-bottom: 85px;
}

.cv-journal-featured-image {
  display: block;
  height: 100%;
  min-height: 350px;
  background: #dce9df;
}

.cv-journal-featured-image img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  -o-object-fit: cover;
  object-fit: cover;
}

.cv-journal-featured-body {
  padding: clamp(30px, 5vw, 65px);
}

.cv-journal-featured-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 15px 0 20px;
}

.cv-journal-featured-body p {
  color: #68716d;
  line-height: 1.8;
  margin-bottom: 25px;
}

.cv-journal-section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.cv-journal-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 30px rgba(28, 37, 41, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cv-journal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(28, 37, 41, 0.1);
}

.cv-journal-card-image {
  display: block;
  height: 235px;
  background: #e0e9e0;
  overflow: hidden;
}

.cv-journal-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cv-journal-card:hover img {
  transform: scale(1.04);
}

.cv-journal-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 235px;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #55705e;
}

.cv-journal-card-body {
  padding: 28px;
}

.cv-journal-card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #87948b;
}

.cv-journal-card h3 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 12px 0 15px;
}

.cv-journal-card h3 a {
  color: var(--cv-dark);
  text-decoration: none;
}

.cv-journal-card-body p {
  color: #6d7771;
  line-height: 1.7;
  font-size: 0.92rem;
}

.cv-journal-read {
  display: inline-block;
  color: #577d66;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
}

.cv-journal-read:hover {
  color: var(--cv-dark);
}

.cv-journal-message {
  text-align: center;
  padding: 20px;
  color: #65736b;
}

.cv-journal-bottom {
  background: #dceef5;
  padding: 85px 20px;
}

.cv-journal-bottom h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 18px 0;
}

.cv-journal-bottom p {
  margin-bottom: 30px;
}

.cv-journal-button {
  display: inline-block;
  background: var(--cv-dark);
  color: white;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
}

.cv-journal-button:hover {
  background: #34483d;
  color: white;
}

.cv-journal-button-outline {
  background: transparent;
  color: var(--cv-dark);
  border: 1px solid var(--cv-dark);
}

.cv-journal-button-outline:hover {
  color: white;
}

@media (max-width: 767px) {
  .cv-journal-hero {
    padding: 75px 15px;
  }

  .cv-journal-content {
    padding: 60px 0 80px;
  }

  .cv-journal-featured-image,
  .cv-journal-featured-image img {
    min-height: 260px;
  }
}

/* =========================================
   CECELYV JOURNAL - ARTICLE IMAGE SIZING
   ========================================= */

/* Center images and limit their size */
.cv-post-article-content img {
  display: block;
  width: auto;
  max-width: min(100%, 500px);
  height: auto;
  margin: 20px auto;
  border-radius: 6px;
}

/* WordPress image blocks */
.cv-post-article-content .wp-block-image {
  max-width: 100%;
  margin: 25px auto;
  text-align: center;
}

.cv-post-article-content .wp-block-image img {
  max-width: min(100%, 500px);
  height: auto;
}

/* Prevent WordPress inline dimensions from stretching figures */
.cv-post-article-content figure {
  max-width: 100%;
  margin: 25px auto;
}

/* WordPress galleries */
.cv-post-article-content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px auto;
}

.cv-post-article-content .wp-block-gallery figure {
  flex: 0 1 240px;
  max-width: 240px;
  margin: 0;
}

.cv-post-article-content .wp-block-gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Captions */
.cv-post-article-content figcaption {
  font-size: 13px;
  color: #758078;
  text-align: center;
  margin-top: 8px;
}

/* Keep images responsive on mobile */
@media (max-width: 575px) {
  .cv-post-article-content img,
  .cv-post-article-content .wp-block-image img {
    max-width: 100%;
  }

  .cv-post-article-content .wp-block-gallery figure {
    flex-basis: 100%;
    max-width: 100%;
  }
}
