/* -------------------------------------------------
   SOCIALLY — SPACING REFINEMENTS
-------------------------------------------------- */

/* Reduce large vertical gaps between main sections */
.section-block,
.page-wrap {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Reduce spacing around founder sections */
.founder-strip,
.about-grid {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Reduce space before the blue call-to-action footer */
.cta-band {
  margin-top: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Reduce homepage hero height and top/bottom space */
.hero {
  min-height: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Reduce excessive gap below page introductions */
.page-hero {
  padding-bottom: 2rem;
}

/* Reduce gap below section headings */
.section-heading {
  margin-bottom: 2rem;
}

/* Slightly reduce card padding */
.feature-card,
.service-card {
  padding: 1.65rem;
}

/* Reduce spacing between service cards */
.service-grid,
.feature-grid,
.blog-grid {
  gap: 0.85rem;
}

/* Reduce spacing on article pages */
.article-wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Tablet and mobile spacing */
@media (max-width: 900px) {
  .hero,
  .section-block,
  .page-wrap,
  .founder-strip,
  .about-grid {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .cta-band {
    margin-top: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Improve homepage hero headline balance */
.hero h1 {
  font-size: clamp(3.8rem, 6.2vw, 6.4rem);
  line-height: 0.94;
  max-width: 8.5ch;
}

/* Give the text column a little more room */
.hero {
  grid-template-columns: 1.15fr 0.85fr;
}

/* Keep the founder image balanced */
.founder-hero img {
  width: 100%;
  height: 560px;
}

/* Prevent the founder badge from feeling cramped */
.founder-hero figcaption {
  max-width: 300px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
    max-width: 10ch;
  }

  .founder-hero img {
    height: 470px;
  }
}

.brand img,
.custom-logo {
  height: 58px;
  max-width: 220px;
}

.nav-wrap {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

p {
  font-size: 1.02rem;
  line-height: 1.65;
}

.lead {
  font-size: 1.18rem;
  max-width: 620px;
}

.feature-card,
.service-card,
.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.service-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 70, 115, 0.12);
}

.button,
.primary-nav a {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.primary-nav a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

@media (max-width: 600px) {
  .founder-hero img,
  .founder-strip img,
  .about-grid > img {
    height: 390px;
    border-radius: 90px 90px 24px 24px;
  }

  .founder-hero figcaption {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -2rem;
    margin-left: 1rem;
    transform: rotate(-2deg);
  }
}

.article-image img,
.post-thumbnail img,
.wp-post-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: 28px;
    display: block;
}

@media (max-width: 768px) {
    .article-image img,
    .post-thumbnail img,
    .wp-post-image {
        height: 260px;
    }
}
.author-box{
    margin-top:80px;
    padding:40px;
    background:#f5f8fb;
    border-radius:24px;
}

.author-box h3{
    margin-bottom:15px;
}

.author-box p{
    max-width:700px;
}
.related-posts{
margin-top:80px;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.related-posts img{
border-radius:18px;
}

.related-posts h3{
margin-top:15px;
font-size:1.2rem;
}
.blog-cta{

margin:100px 0;

padding:60px;

background:#0f72bd;

color:white;

border-radius:28px;

text-align:center;

}

.blog-cta h2{

color:white;

margin-bottom:20px;

}

.blog-cta p{

margin-bottom:30px;

}
.single-post article{

font-size:1.2rem;

line-height:1.9;

}

.single-post article p{

margin-bottom:30px;

}

.single-post article h2{

margin-top:70px;

margin-bottom:25px;

}

.single-post article ul{

margin:30px 0;

padding-left:25px;

}
.blog-card h2,
.post-card h2,
.blog-grid article h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
    gap:3rem;
}
.blog-card p{
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.blog-hero h1{
    font-size:clamp(3.5rem,7vw,5.5rem);
    line-height:0.95;
}