/*
Theme Name: California Sunrooms Blog Child
Theme URI: https://californiasunrooms.com/
Description: Focused blog templates and styles for California Sunrooms.
Author: California Sunrooms
Template: socius-theme-advantage
Version: 1.0.1
Text Domain: california-sunrooms-blog-child
*/

.cs-blog-experience {
  background: #f8fafb;
}

.cs-blog-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 48px 20px 76px;
}

.cs-blog-breadcrumbs {
  margin: 0 0 28px;
  color: #5d7080;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cs-blog-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-blog-breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #9ca9b3;
}

.cs-blog-breadcrumbs a {
  color: #073350;
  text-decoration: none;
}

.cs-blog-breadcrumbs a:hover,
.cs-blog-breadcrumbs a:focus {
  color: #0095c7;
  text-decoration: underline;
}

.cs-blog-layout {
  display: grid;
  gap: 38px;
  align-items: start;
}

.cs-blog-article {
  min-width: 0;
  padding: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(7, 51, 80, 0.09);
}

.cs-blog-kicker,
.cs-blog-card__category {
  display: block;
  margin-bottom: 12px;
  color: #0095c7;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-blog-article__title,
.cs-blog-archive__title {
  margin: 0;
  color: #073350;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
}

.cs-blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 28px;
  color: #64727c;
  font-size: 0.9rem;
}

.cs-blog-featured-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 34px;
}

.cs-blog-featured-image--empty {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #073350, #007fa8);
}

.cs-blog-article__content {
  color: #4a5a65;
  font-size: 1.0625rem;
  line-height: 1.85;
}

.cs-blog-article__content > :first-child {
  margin-top: 0;
}

.cs-blog-article__content h2,
.cs-blog-article__content h3,
.cs-blog-article__content h4 {
  margin-top: 1.8em;
  color: #073350;
}

.cs-blog-sidebar {
  min-width: 0;
}

.cs-blog-lead-panel {
  position: relative;
  overflow: hidden;
  padding: 32px 26px;
  background: #073350;
  color: #fff;
  box-shadow: 0 16px 42px rgba(7, 51, 80, 0.18);
}

.cs-blog-lead-panel::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0, 149, 199, 0.23), transparent 55%);
  content: "";
  pointer-events: none;
}

.cs-blog-lead-panel > * {
  position: relative;
}

.cs-blog-lead-panel__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #8ed1e8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs-blog-lead-panel h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.12;
}

.cs-blog-lead-panel__copy {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.65;
}

.cs-blog-lead-panel .cf7ct-slot {
  margin: 0;
}

.cs-blog-lead-panel .cf7ct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cs-blog-lead-panel .cf7ct-field:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.cs-blog-lead-panel .wpcf7-form-control-wrap {
  display: block;
}

.cs-blog-lead-panel .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  background: #fff;
  color: #173a5e;
  font: inherit;
}

.cs-blog-lead-panel .wpcf7-form-control::placeholder {
  color: #64727c;
  opacity: 1;
}

.cs-blog-lead-panel .wpcf7-submit {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #74bc1f;
  border-radius: 0;
  background: #74bc1f;
  color: #fff;
  cursor: pointer;
}

.cs-blog-lead-panel .wpcf7-submit:hover,
.cs-blog-lead-panel .wpcf7-submit:focus {
  border-color: #91d747;
  background: #91d747;
}

.cs-blog-lead-panel .wpcf7-not-valid-tip,
.cs-blog-lead-panel .wpcf7-response-output {
  color: #fff;
}

.cs-blog-lead-panel .wpcf7-response-output {
  margin: 16px 0 0;
  border-color: #8ed1e8;
}

/* CF7 inserts a paragraph around the two header name fields. Keep that
   generated wrapper in the intended two-column grid at tablet widths. */
.stickyform .cf7ct-slot-sticky-form .cf7ct-field:first-child > p {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.stickyform .cf7ct-slot-sticky-form .cf7ct-field:first-child > p > br {
  display: none;
}

.cs-blog-archive {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 8px 0 30px;
  text-align: center;
}

.cs-blog-archive__intro {
  max-width: 660px;
  margin: 18px auto 0;
  color: #60717c;
  font-size: 1.08rem;
  line-height: 1.7;
}

.cs-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.cs-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 51, 80, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cs-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(7, 51, 80, 0.15);
}

.cs-blog-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #073350;
}

.cs-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.cs-blog-card:hover .cs-blog-card__media img {
  transform: scale(1.035);
}

.cs-blog-card__media--empty {
  background: linear-gradient(135deg, #073350, #0095c7);
}

.cs-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.cs-blog-card__title {
  margin: 0 0 14px;
  color: #073350;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.28;
}

.cs-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.cs-blog-card__title a:hover,
.cs-blog-card__title a:focus {
  color: #0095c7;
  text-decoration: underline;
}

.cs-blog-card__excerpt {
  margin: 0 0 22px;
  color: #60717c;
  font-size: 0.95rem;
  line-height: 1.65;
}

.cs-blog-card__link {
  margin-top: auto;
  color: #073350;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.cs-blog-card__link::after {
  margin-left: 8px;
  color: #74bc1f;
  content: "→";
}

.cs-blog-card__link:hover,
.cs-blog-card__link:focus {
  color: #0095c7;
  text-decoration: underline;
}

.cs-blog-pagination {
  margin-top: 44px;
  text-align: center;
}

.cs-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin: 3px;
  padding: 8px;
  border: 1px solid rgba(7, 51, 80, 0.22);
  color: #073350;
  font-weight: 700;
  text-decoration: none;
}

.cs-blog-pagination .current,
.cs-blog-pagination a:hover,
.cs-blog-pagination a:focus {
  border-color: #073350;
  background: #073350;
  color: #fff;
}

.cs-blog-experience a:focus-visible,
.cs-blog-experience input:focus-visible,
.cs-blog-experience select:focus-visible {
  outline: 3px solid #74bc1f !important;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .cs-blog-shell {
    padding: 68px 34px 92px;
  }

  .cs-blog-article {
    padding: 46px;
  }

  .cs-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .cs-blog-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 48px;
  }

  .cs-blog-sidebar {
    position: sticky;
    top: 132px;
  }

  .cs-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .cs-blog-shell {
    padding: 34px 15px 58px;
  }

  .cs-blog-article {
    padding: 24px 20px;
  }

  .cs-blog-lead-panel {
    padding: 28px 20px;
  }

  .cs-blog-lead-panel .cf7ct-grid {
    grid-template-columns: 1fr;
  }

  .cs-blog-lead-panel .cf7ct-field {
    grid-column: auto;
  }
}
