/*
Theme Name: Performance Coach
Version: 1.0.0
*/

:root {
  --accent-primary: #03b49a;
  --accent-secondary: #009983;
  --text-dark: #3f3e43;
  --text-muted: #6c6b71;
  --surface-light: #ffffff;
  --surface-soft: #f4f7f7;
  --surface-deep: #2d2c31;
  --border-soft: #d7dddf;
  --shadow-soft: 0 12px 32px rgba(63, 62, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--surface-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: var(--surface-light);
  color: var(--text-dark);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--accent-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.site-logo {
  width: 170px;
  height: auto;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--surface-light);
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text-dark);
}

.site-nav {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  padding: 0 1rem 1rem;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border-soft);
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.96rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--accent-secondary);
}

.site-nav.is-open {
  display: block;
}

.hero {
  position: relative;
  background: center / cover no-repeat url("assets/images/banner-home-new.jpg");
  min-height: clamp(330px, 50vw, 600px);
  display: grid;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(63, 62, 67, 0.52), rgba(63, 62, 67, 0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  color: var(--surface-light);
  font-size: clamp(1.6rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--accent-primary);
  font-weight: 600;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  color: var(--surface-light);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 680px;
  margin: 1rem 0 1.5rem;
  color: var(--surface-light);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.contact-hero {
  min-height: clamp(320px, 44vw, 520px);
  background-image: url("assets/images/banner-home-new.jpg");
}

.quote-block {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: var(--surface-light);
  text-align: center;
}

.quote-block p {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-dark);
}

.quote-block p::before,
.quote-block p::after {
  content: "\201C";
  color: var(--accent-primary);
  font-size: 1.45em;
  font-weight: 400;
  vertical-align: -0.14em;
}

.about-section {
  padding: clamp(2.2rem, 5.2vw, 5rem) 0;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--accent-primary);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.about-image-wrap {
  display: grid;
  place-items: center;
}

.about-image {
  width: min(270px, 75vw);
}

.about-copy p {
  margin-top: 0;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-primary);
  color: var(--surface-light);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-secondary);
  transform: translateY(-1px);
}

.testimonials,
.news {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
  background: var(--surface-soft);
}

.news {
  background: var(--surface-light);
}

.section-header-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-align: left;
}

.section-header-split h2::after {
  margin-left: 0;
}

.text-link {
  color: var(--accent-secondary);
  font-weight: 600;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-light);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.04rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.news-card {
  padding: 0;
  overflow: hidden;
}

.news-image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1rem;
}

.news-content .meta {
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  color: var(--accent-secondary);
}

.carousel-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}

.carousel-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  background: var(--surface-light);
  color: var(--text-dark);
  cursor: pointer;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  border-color: var(--accent-primary);
  color: var(--accent-secondary);
}

.quick-links {
  padding: 2.2rem 0;
  background: center / cover no-repeat url("assets/images/mini-nav-bg-new.jpg");
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quick-link {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface-light);
}

.quick-link img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.quick-link span {
  font-weight: 600;
}

.contact-overview {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  background: var(--surface-soft);
}

.contact-overview-grid {
  display: grid;
  gap: 1rem;
}

.contact-overview-card {
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-light);
  box-shadow: var(--shadow-soft);
}

.contact-overview-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.04rem;
}

.contact-overview-card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.contact-overview-note {
  margin-bottom: 0;
}

.appointment {
  display: grid;
}

.appointment-media {
  min-height: 300px;
  background: center / cover no-repeat url("assets/images/make-an-appointment-1.jpg");
}

.appointment-content {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--surface-light);
}

.appointment-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.appointment .appointment-form {
  display: grid;
  gap: 0.6rem;
}

.appointment .appointment-form > p {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.appointment .appointment-form p br {
  display: none;
}

.appointment .appointment-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.appointment .appointment-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.appointment .appointment-form input,
.appointment .appointment-form textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font: inherit;
  color: var(--text-dark);
}

.appointment .appointment-form input:focus,
.appointment .appointment-form textarea:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.hours {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer {
  background: var(--surface-deep);
  color: var(--surface-light);
}

.footer-grid {
  padding: 2rem 0;
  display: grid;
  gap: 1.7rem;
}

.footer-logo {
  width: 200px;
  margin-bottom: 1rem;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent-primary);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.contact-list a {
  color: var(--surface-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom-inner {
  padding: 0.85rem 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent-primary);
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }

  .contact-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .appointment {
    grid-template-columns: 1fr 1fr;
  }

  .appointment .appointment-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 0.8rem;
    row-gap: 0.6rem;
  }

  .appointment .appointment-form .full-width,
  .appointment .appointment-form > p:nth-last-child(2),
  .appointment .appointment-form > p:last-child,
  .appointment .appointment-form p:has(textarea),
  .appointment .appointment-form p:has(.wpcf7-submit),
  .appointment .appointment-form .btn {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About Page Styles */

.about-hero {
  position: relative;
  background: center / cover no-repeat url("assets/images/banner-home-new.jpg");
  min-height: clamp(300px, 45vw, 500px);
  display: grid;
  align-items: center;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(63, 62, 67, 0.6), rgba(63, 62, 67, 0.25));
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.about-hero h1 {
  margin: 0;
  color: var(--surface-light);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.about-hero-subtitle {
  margin: 1rem 0 0;
  color: var(--surface-light);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  opacity: 0.95;
}

/* Founder Section */

.founder-section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  background: var(--surface-light);
}

.founder-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.founder-image-wrap {
  display: grid;
  place-items: center;
}

.founder-image {
  width: min(300px, 80vw);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.founder-content h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  color: var(--text-dark);
}

.founder-role {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.founder-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.founder-content p:last-of-type {
  margin-bottom: 1.5rem;
}

.founder-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-primary);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--accent-primary);
  color: var(--surface-light);
  transform: translateY(-2px);
}

/* Psychology Section */

.psychology-section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  background: var(--surface-soft);
}

.psychology-section h2 {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.psychology-section h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--accent-primary);
}

.psychology-grid {
  display: grid;
  gap: 1.8rem;
  align-items: start;
}

.psychology-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface-light);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.psychology-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.psychology-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.psychology-card p:last-child {
  margin-bottom: 0;
}

/* CTA Section */

.about-cta {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  text-align: center;
}

.cta-content {
  color: var(--surface-light);
}

.cta-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.2;
}

.cta-content p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--surface-light);
  color: var(--accent-primary);
  font-weight: 700;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}

/* Contact Info Section */

.about-contact {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  background: var(--surface-light);
}

.about-contact h2 {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.about-contact h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--accent-primary);
}

.contact-methods {
  display: grid;
  gap: 1.8rem;
  align-items: stretch;
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 2px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-soft);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
}

.contact-card a {
  color: var(--accent-primary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--accent-secondary);
}

/* Responsive Updates */

@media (min-width: 720px) {
  .founder-grid {
    grid-template-columns: 300px 1fr;
    gap: 3rem;
  }

  .psychology-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-methods {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }

  .contact-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .appointment {
    grid-template-columns: 1fr 1fr;
  }

  .appointment .appointment-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 0.8rem;
    row-gap: 0.6rem;
  }

  .appointment .appointment-form .full-width,
  .appointment .appointment-form > p:nth-last-child(2),
  .appointment .appointment-form > p:last-child,
  .appointment .appointment-form p:has(textarea),
  .appointment .appointment-form p:has(.wpcf7-submit),
  .appointment .appointment-form .btn {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    margin-left: auto;
  }

  .site-nav ul {
    display: flex;
    gap: 0.2rem;
    align-items: center;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
  }

  .carousel.is-carousel {
    overflow: hidden;
  }

  .carousel.is-carousel .carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    will-change: transform;
  }

  .carousel.is-carousel .carousel-track > * {
    flex: 0 0 calc((100% - 2rem) / 3);
  }

  .carousel.is-carousel[data-carousel="news"] .carousel-track > * {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

/* Success Stories Page */

.success-stories-page .success-stories-hero {
  min-height: clamp(320px, 44vw, 520px);
}

.success-stories-page .success-stories-intro {
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  background: var(--surface-light);
}

.success-stories-page .success-stories-breadcrumb {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.success-stories-page .success-stories-breadcrumb a {
  color: var(--accent-secondary);
  font-weight: 600;
}

.success-stories-page .success-stories-intro-copy {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
}

.success-stories-page .success-stories-list {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  background: var(--surface-soft);
}

.success-stories-page .success-stories-grid {
  display: grid;
  gap: 1rem;
}

.success-stories-page .success-story-card {
  display: grid;
  gap: 0.6rem;
}

.success-stories-page .success-story-role {
  margin: 0;
  color: var(--accent-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.success-stories-page .success-stories-cta {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  background: var(--surface-light);
  text-align: center;
}

.success-stories-page .success-stories-cta h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}

.success-stories-page .success-stories-cta p {
  max-width: 760px;
  margin: 0 auto 1.3rem;
  color: var(--text-muted);
}

/* Services Page Styles */

.services-page .services-hero {
  min-height: clamp(320px, 44vw, 520px);
  background: center / cover no-repeat url("assets/images/banner-home-new.jpg");
}

.services-page .services-hero .hero-content {
  max-width: 760px;
}

.services-page .services-section {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.services-page .services-intro {
  background: var(--surface-light);
}

.services-page .services-main {
  background: var(--surface-soft);
}

.services-page .services-content {
  max-width: 860px;
}

.services-page .services-content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.services-page .services-content p:last-of-type {
  margin-bottom: 0;
}

.services-page .services-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-dark);
}

.services-page .services-cta {
  margin-top: 1.5rem;
}

.services-page .services-contact {
  background: var(--surface-light);
}

.services-page .services-contact .contact-overview-grid {
  grid-template-columns: 1fr;
}

.services-page .services-contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.services-page .services-contact-card p {
  margin: 0;
}

/* Hide blog-related sections */

/* Hide Blog link in header navigation */
.site-nav a[href*="/blog/"] {
  display: none;
}

/* Hide News and Articles section from homepage */
.news {
  display: none;
}

@media (min-width: 720px) {
  .success-stories-page .success-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-page .services-contact .contact-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .success-stories-page .success-stories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-page .services-content {
    max-width: 900px;
  }
}

/* Blog Page Styles */

.blog-header {
  position: relative;
  background: center / cover no-repeat url("assets/images/banner-home-new.jpg");
  min-height: clamp(280px, 40vw, 480px);
  display: grid;
  align-items: center;
}

.blog-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(63, 62, 67, 0.55), rgba(63, 62, 67, 0.2));
}

.blog-header .page-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--surface-light);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.blog-list {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: var(--surface-light);
}

.blog-post-item {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border-soft);
}

.blog-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.blog-post-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.blog-post-title a {
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.blog-post-title a:hover,
.blog-post-title a:focus-visible {
  color: var(--accent-primary);
}

.blog-post-excerpt {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.read-more-link {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.read-more-link:hover,
.read-more-link:focus-visible {
  color: var(--accent-secondary);
  transform: translateX(4px);
}

.blog-pagination {
  margin-top: 2rem;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination .page-numbers li {
  display: inline;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers a:focus-visible {
  border-color: var(--accent-primary);
  background: var(--surface-soft);
  color: var(--accent-primary);
}

.blog-pagination .page-numbers .current {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--surface-light);
  font-weight: 600;
}

.no-posts-found {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
}

.recent-blogs {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: var(--surface-soft);
}

.recent-blogs h3 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  line-height: 1.2;
  color: var(--text-dark);
}

.recent-blogs-list {
  display: grid;
  gap: 1rem;
}

.recent-blog-item {
  padding: 1rem;
  background: var(--surface-light);
  border-left: 4px solid var(--accent-primary);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.recent-blog-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateX(4px);
}

.recent-blog-item a {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.recent-blog-item a:hover,
.recent-blog-item a:focus-visible {
  color: var(--accent-primary);
}

@media (min-width: 720px) {
  .blog-list {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
  }

  .recent-blogs {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
  }

  .recent-blogs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .recent-blogs-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
