/* ========== Header – large desktops ========== */
@media (min-width: 1400px) {
  .main-nav {
    gap: 12px;
  }

  .main-nav .nav-link {
    padding: 8px 14px;
  }
}

/* ========== Header – below xl ========== */
@media (max-width: 1199.98px) {
  .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .main-nav .nav-link {
    padding: 8px 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .btn-global {
    padding: 12px 20px;
    font-size: 12px;
  }

  .logo-img {
    height: 44px;
  }
}

/* ========== Header – below lg (mobile / tablet) ========== */
@media (max-width: 991.98px) {
  .site-header .navbar {
    padding: 14px 0;
  }

  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-collapse {
    margin-top: 16px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--borders);
  }

  .main-nav {
    gap: 0;
    width: 100%;
    margin-bottom: 16px;
  }

  .main-nav .nav-item {
    width: 100%;
  }

  .main-nav .nav-link {
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--borders);
  }

  .main-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .btn-global {
    width: 100%;
  }
}

/* ========== Contact page – below lg ========== */
@media (max-width: 991.98px) {
  .page-hero {
    padding: 56px 0 48px;
  }

  .contact-section {
    padding: 72px 0;
  }

  .contact-form-wrap {
    padding: 32px 28px 36px;
  }
}

/* ========== Small phones ========== */
@media (max-width: 575.98px) {
  .logo-img {
    height: 36px;
  }
}

/* ========== Hero – below xl ========== */
@media (max-width: 1199.98px) {
  .hero-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ========== Hero – below lg ========== */
@media (max-width: 991.98px) {
  .hero-swiper {
    height: auto;
    min-height: 478px;
    max-height: none;
  }

  .hero-slide {
    min-height: 520px;
    padding: 80px 0 90px;
  }

  .hero-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-overlay,
  .hero-overlay--dark {
    background: linear-gradient(
      180deg,
      rgba(10, 14, 20, 0.55) 0%,
      rgba(10, 14, 20, 0.45) 55%,
      rgba(10, 14, 20, 0.35) 100%
    );
  }
}

/* ========== Hero – small phones ========== */
@media (max-width: 575.98px) {
  .hero-slide {
    min-height: 480px;
    padding: 64px 0 80px;
  }

  .hero-title {
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
  }

  .hero-actions .btn-global {
    width: 100%;
    justify-content: center;
  }

  .hero-pagination {
    bottom: 18px !important;
  }
}

/* ========== Opportunity ========== */
@media (max-width: 1199.98px) {
  .opportunity-section > .container-fluid {
    padding-right: 24px;
  }
}

@media (max-width: 991.98px) {
  .opportunity-section {
    padding: 72px 0;
  }

  .opportunity-section > .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .opportunity-media {
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
  }

  .opportunity-image {
    border-radius: 18px;
    min-height: 320px;
  }

  .opportunity-image img {
    min-height: 320px;
  }

  .opportunity-content {
    max-width: 100%;
    padding-left: 0;
  }

  .opportunity-lead {
    font-size: 17px !important;
  }
}

@media (max-width: 575.98px) {
  .opportunity-section {
    padding: 56px 0;
  }

  .main-title {
    margin-bottom: 18px;
  }

  .main-title .top-label {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .opportunity-image {
    border-radius: 14px;
    min-height: 240px;
  }

  .opportunity-image img {
    min-height: 240px;
  }

  .opportunity-content p {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .opportunity-lead {
    font-size: 16px !important;
  }
}

/* ========== About ========== */
@media (max-width: 1199.98px) {
  .about-section > .container-fluid {
    padding-left: 24px;
  }
}

@media (max-width: 991.98px) {
  .about-section {
    padding: 72px 0;
  }

  .about-section > .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-media {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
  }

  .about-image {
    border-radius: 18px;
    min-height: 320px;
  }

  .about-image img {
    min-height: 320px;
  }

  .about-content {
    max-width: 100%;
    margin-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .about-section {
    padding: 56px 0;
  }

  .about-image {
    border-radius: 14px;
    min-height: 240px;
  }

  .about-image img {
    min-height: 240px;
  }

  .about-content p {
    font-size: 15px;
  }
}

/* ========== What We Do ========== */
@media (max-width: 991.98px) {
  .what-we-do-section {
    padding: 72px 0;
  }

  .section-intro {
    margin-bottom: 36px;
    font-size: 16px;
  }
}

@media (max-width: 767.98px) {
  .work-card {
    flex-direction: column;
    gap: 16px;
    padding: 14px;
    border-radius: 16px;
  }

  .work-card-image {
    flex: none;
    max-width: none;
    width: 100%;
    height: 200px;
  }

  .work-card-image img {
    min-height: 200px;
  }

  .work-card-body {
    padding: 0 4px 6px;
  }

  .work-card-title {
    font-size: 22px;
  }
}

@media (max-width: 575.98px) {
  .what-we-do-section {
    padding: 56px 0;
  }

  .section-intro {
    margin-bottom: 28px;
    font-size: 15px;
  }
}

/* ========== Advisory ========== */
@media (max-width: 991.98px) {
  .advisory-section {
    padding: 72px 0;
  }

  .advisory-tabs {
    margin-bottom: 32px;
  }

  .advisory-tab {
    padding: 10px 16px;
    font-size: 10px;
  }

  .advisory-swiper .swiper-slide {
    width: 220px;
  }
}

@media (max-width: 575.98px) {
  .advisory-section {
    padding: 56px 0;
  }

  .advisory-tabs {
    width: 100%;
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .advisory-tab {
    width: 100%;
    border-radius: 12px;
    font-size: 11px;
    padding: 12px 16px;
  }

  .advisory-swiper .swiper-slide {
    width: 190px;
  }

  .advisor-photo {
    border-radius: 14px;
  }

  .advisor-name {
    font-size: 18px;
  }

  .advisor-role {
    font-size: 14px;
  }

  .advisor-org {
    font-size: 13px;
  }

  .advisor-badge {
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 9px;
  }
}

/* ========== Resources ========== */
@media (max-width: 991.98px) {
  .resources-section {
    padding: 72px 0;
  }

  .resources-page-section {
    padding-top: 96px;
  }

  .resources-tabs {
    margin-bottom: 32px;
  }

  .resources-tab {
    padding: 10px 16px;
    font-size: 10px;
  }

  .resources-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .resources-view-more {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .resources-section {
    padding: 56px 0;
  }

  .resources-tabs {
    width: 100%;
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .resources-tab {
    width: 100%;
    border-radius: 12px;
    font-size: 11px;
    padding: 12px 16px;
  }

  .media-card-body {
    padding: 20px 18px 18px;
  }

  .media-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .video-card-play-icon {
    width: 52px;
    height: 52px;
  }

  .video-modal {
    padding: 16px;
  }

  .video-modal-close {
    top: -44px;
  }

  .page-hero {
    padding: 48px 0 40px;
  }

  .page-hero--compact {
    padding: 40px 0 28px;
  }

  .page-hero-lead {
    font-size: 15px;
  }

  .flipbook-section {
    padding: 0 0 48px;
  }

  .flipbook-frame {
    height: min(70vh, 720px);
    min-height: 420px;
  }

  .contact-section {
    padding: 64px 0;
  }

  .contact-form-wrap {
    padding: 28px 20px 32px;
  }

  .contact-details {
    gap: 22px;
    margin-bottom: 32px;
  }

  .contact-detail-icon {
    width: 42px;
    height: 42px;
  }

  .site-footer {
    padding: 48px 0 40px;
  }

  .footer-main {
    flex-direction: column;
    gap: 32px;
  }

  .footer-left {
    max-width: none;
  }

  .footer-right {
    width: 100%;
    align-items: flex-start;
  }

  .footer-social {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
  }

  .footer-legal {
    text-align: left;
  }
}

/* ========== Approach page ========== */
@media (max-width: 991.98px) {
  .approach-circle-section {
    padding: 24px 0 72px;
  }

  .approach-circle-section .impact-diagram {
    width: min(640px, 100%);
  }

  .partner-work-section {
    padding: 72px 0;
  }

  .partner-work-section .main-title {
    margin-bottom: 40px;
  }

  .partner-card-icon {
    width: 72px;
    height: 72px;
    left: 16px;
  }

  .partner-card-header {
    padding: 20px 16px 16px 108px; /* icon (16+72) + gap */
  }

  .partner-card-header h3 {
    font-size: 22px;
  }

  .partner-card-body {
    min-height: 220px;
  }
}

@media (max-width: 767.98px) {
  .impact-step .divider {
    width: 28px;
    margin: 6px auto;
  }


  .partner-work-grid .col-md-4 + .col-md-4 {
    margin-top: 12px;
  }

  .partner-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .partner-card-icon {
    width: 70px;
    height: 70px;
    left: 16px;
  }

  .partner-card-header {
    padding: 20px 16px 16px 106px; /* icon (16+70) + gap */
  }

  .partner-card-header h3 {
    font-size: 24px;
  }
}

@media (max-width: 575.98px) {
  .approach-circle-section {
    padding: 16px 0 56px;
  }

  .impact-step .divider {
    width: 22px;
    margin: 4px auto;
  }

  .partner-work-section {
    padding: 56px 0;
  }

  .partner-card-icon {
    width: 64px;
    height: 64px;
    left: 14px;
  }

  .partner-card-header {
    padding: 20px 16px 16px 98px; /* icon (14+64) + gap */
  }

  .partner-card-header h3 {
    font-size: 22px;
  }

  .partner-card-body {
    padding: 20px 18px 24px;
    min-height: 220px;
  }

  .partner-card-body p {
    font-size: 14px;
  }
}

/* ========== Opportunity Page ========== */
@media (max-width: 991.98px) {
  .opp-gov-section,
  .opp-circles-section,
  .opp-sso-section {
    padding: 72px 0;
  }

  .opp-gov-layout {
    display: block;
  }

  .opp-gov-card-col {
    max-width: 100%;
  }

  .opp-gov-quote {
    font-size: 26px !important;
  }

  .opp-gov-card .partner-card-body {
    min-height: 200px;
  }

  .opp-timeline {
    padding-left: 0;
    margin-top: 40px;
  }

  .opp-timeline-item {
    padding-left: 34px;
  }

  .opp-timeline-bridge {
    display: none;
  }

  .opp-timeline-closing {
    padding-left: 34px;
    font-size: 20px;
  }

  .opp-timeline-content h3 {
    font-size: 21px;
  }

  .opp-circle--small {
    width: 120px;
    height: 120px;
  }

  .opp-circle--large {
    width: 210px;
    height: 210px;
  }

  .opp-circle strong {
    font-size: 28px;
  }

  .opp-circle--large strong {
    font-size: 36px;
  }

  .opp-quote-band {
    padding: 56px 0;
  }

  .opp-sso-caption {
    font-size: 16px;
    padding: 0 12px;
  }
}

@media (max-width: 767.98px) {
  .opp-infograph {
    min-height: 280px;
    margin-top: 12px;
    gap: 34px;
  }

  .opp-infograph--nonprofit .opp-circle--large {
    padding: 14px 16px;
  }

  .opp-infograph--nonprofit .opp-circle--large > strong {
    font-size: 26px;
  }

  .opp-circle-benefit {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 9px;
    max-width: 12em;
  }

  .opp-circle--nonprofit-lg .opp-circle-benefit strong {
    font-size: 13px;
  }

  .opp-circle--small {
    width: 110px;
    height: 110px;
  }

  .opp-circle--large {
    width: 180px;
    height: 180px;
  }

  .opp-infograph--philanthropy .opp-circle--large {
    width: 160px;
    height: 160px;
  }

  .opp-circle-sub {
    font-size: 11px;
  }

  .opp-circles-copy .main-title h2 {
    font-size: 26px;
  }

  .opp-pullquote {
    font-size: 18px !important;
  }

  .opp-sso-diagram {
    width: min(360px, 100%);
    margin-bottom: 28px;
  }

  .opp-sso-hub {
    box-shadow: 0 0 0 6px rgba(169, 51, 21, 0.12);
  }

  .opp-sso-node {
    box-shadow: 0 0 0 4px rgba(230, 188, 102, 0.25);
  }
}

@media (max-width: 575.98px) {
  .opp-gov-section,
  .opp-circles-section,
  .opp-sso-section {
    padding: 56px 0;
  }

  .opp-gov-quote {
    font-size: 22px !important;
  }

  .opp-gov-card .partner-card-body {
    min-height: 180px;
  }

  .opp-timeline-item {
    padding-bottom: 28px;
  }

  .opp-timeline-content p {
    font-size: 15px;
  }

  .opp-timeline-closing {
    font-size: 17px;
  }

  .opp-circle--small {
    width: 96px;
    height: 96px;
  }

  .opp-circle--large {
    width: 170px;
    height: 170px;
  }

  .opp-infograph--philanthropy .opp-circle--large {
    width: 160px;
    height: 160px;
  }

  .opp-circle strong {
    font-size: 22px;
  }

  .opp-circle--large strong {
    font-size: 28px;
  }

  .opp-infograph--nonprofit .opp-circle--large > strong {
    font-size: 22px;
  }

  .opp-circle-benefit {
    font-size: 8px;
    margin-top: 5px;
    padding-top: 5px;
  }

  .opp-circle--nonprofit-lg .opp-circle-benefit strong {
    font-size: 12px;
  }

  .opp-circle--philanthropy-sm strong,
  .opp-circle--philanthropy-lg strong {
    font-size: 22px;
  }

  .opp-circle--philanthropy-lg strong {
    font-size: 28px;
  }

  .opp-quote-band {
    padding: 48px 16px;
  }

  .opp-quote-band-text {
    font-size: 18px;
  }
  .impact-center-text strong{
    
  }
  .impact-step p{
    line-height: 1;
  }

  .impact-diagram.is-inview .impact-center{
    left: 37.5cqw;
    top: 42cqw;
    width: 25cqw;
    height: 25cqw;
  }

  .impact-center::before{
    inset: -1cqw
  }

  .opp-sso-node{
    font-size: 9px !important;
  }

  .home-impact-diagram .impact-step-1 {
    left: 25.5cqw;
    top: 23.5cqw;
  }
  .home-impact-diagram .impact-step-2 {
    left: 74.5cqw;
    top: 23.5cqw;
}
.impact-diagram--interactive .impact-center {
  left: 38cqw;
  top: 46cqw;
  width: 24cqw;
  height: 24cqw;
}
.impact-diagram--interactive .impact-step-explore{
  font-size: 8px;
}

  .impact-diagram--interactive .impact-center-text span {
    font-size: 6px
}

  .impact-diagram--interactive .impact-center-text strong {
    font-size: max(1.4cqw, 10px);
    line-height: 1.2;
}

  .impact-diagram--interactive .impact-center {
    left: 38cqw;
    top: 45cqw;
    width: 24cqw;
    height: 24cqw;
  }
  .home-impact-diagram .impact-center-text strong{
    font-size: 10px;
    line-height: 10px;
  }
  .impact-center-text span{
    font-size: 8px;
  }
}

/* ========== What We Do Page — Ecosystem Venn ========== */
@media (max-width: 991.98px) {
  .venn-diagram {
    width: min(520px, 100%);
  }
}

@media (max-width: 575.98px) {
  /* Nodes are placed as a share of the diagram width, so the labels need to
     stay proportional too — a fixed floor would push them past the arcs. */
  .venn-node-label {
    font-size: clamp(9px, 2.6cqw, 17px);
    letter-spacing: 0.04em;
  }

  .venn-core-label {
    font-size: clamp(6.5px, 1.9cqw, 12px);
    letter-spacing: 0.02em;
  }
}

/* ========== What We Do Page — Ecosystem Actor Blocks ========== */
@media (max-width: 767.98px) {
  .wwd-actor-section {
    padding: 64px 0;
  }

  .wwd-actor-statement {
    font-size: 19px;
  }

  .wwd-stat-figure {
    font-size: 26px;
  }

  .wwd-step-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* End of the first row, so its arrow would point at nothing. */
  .wwd-step-card:nth-child(2) .wwd-step-arrow {
    display: none;
  }

  .wwd-case-grid {
    gap: 28px 28px;
  }

  .wwd-case-title {
    font-size: 17px;
  }
}

@media (max-width: 575.98px) {
  .wwd-actor-section {
    padding: 56px 0;
  }

  .wwd-actor-lead {
    font-size: 17px;
  }

  .wwd-actor-statement {
    font-size: 18px;
  }

  .wwd-actor-link {
    margin-bottom: 30px;
  }

  /* Single column, so the staggered grid placement has to be unwound. */
  .wwd-stat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wwd-stat-card:nth-child(1),
  .wwd-stat-card:nth-child(2),
  .wwd-stat-card:nth-child(3) {
    grid-area: auto;
    align-self: stretch;
  }

  .wwd-stat-figure {
    font-size: 24px;
  }

  .wwd-actor-closing {
    margin-top: 30px;
  }

  .wwd-step-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* Stacked, so the horizontal arrows no longer describe the flow. */
  .wwd-step-arrow {
    display: none;
  }

  .wwd-step-title {
    min-height: 0;
  }

  .wwd-case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 32px;
  }

  .wwd-case-card:nth-child(1),
  .wwd-case-card:nth-child(2),
  .wwd-case-card:nth-child(3) {
    grid-area: auto;
    align-self: stretch;
  }
}

