/* =========================================================
   THINKPAC BLOG STYLESHEET — v1.2
   Paste into Appearance > Customize > Additional CSS,
   replacing the previous version.

   v1.2  adds the trust / certification bar (.tp-trust-*)
   v1.1  adds .tp-grid-image-left (image on the left, desktop only)
   v1.0  original PIDA award blog styles
   ========================================================= */
/* =========================================================
   THINKPAC PIDA AWARD BLOG — RESPONSIVE VERSION
   ========================================================= */

.tp-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Poppins", Arial, sans-serif;
  color: #343444;
  line-height: 1.7;
  font-size: 16px;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Keep all images inside their containers */
.tp-wrapper img {
  max-width: 100%;
}

/* =========================================================
   SECTION CONTAINERS
   ========================================================= */

.tp-section-white {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 22px;
  margin: 34px 0;
  border: 1px solid #dceee9;
  box-shadow: 0 10px 28px rgba(16, 101, 82, 0.08);
}

.tp-section-green {
  width: 100%;
  box-sizing: border-box;
  background: #0f6553;
  color: #ffffff;
  border-radius: 22px;
  padding: 36px 30px;
  margin: 34px 0;
  box-shadow: 0 12px 30px rgba(15, 101, 83, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tp-pad-hero {
  padding: 30px;
}

.tp-pad-std {
  padding: 36px 30px;
}

.tp-pad-center {
  padding: 40px 30px;
  text-align: center;
}

.tp-content-pad {
  padding: 0 10px;
}

/* =========================================================
   RESPONSIVE HERO IMAGE
   ========================================================= */

.tp-hero-wrap {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(16, 101, 82, 0.14);
  background: #f1fbf8;
}

.tp-hero-img {
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tp-hero-img-cover {
  height: clamp(260px, 52vw, 650px);
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   CONTENT GRID
   ========================================================= */

.tp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .tp-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }
}

.tp-grid > * {
  min-width: 0;
}

/*
  Image on the left, text on the right.
  Add to the grid container: class="tp-grid tp-grid-image-left"

  The markup order stays text-then-image, so screen readers and
  phones still read the copy first. Only the desktop columns swap,
  and the text keeps the wider 1.6fr share.
*/
@media (min-width: 768px) {
  .tp-grid-image-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }

  .tp-grid-image-left > *:first-child {
    order: 2;
  }
}

.tp-grid-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 101, 82, 0.12);
}

/* =========================================================
   TRUST / CERTIFICATION BAR
   ========================================================= */

.tp-trust-section {
  text-align: center;
}

.tp-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.tp-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  flex: 0 1 auto;
  min-height: 96px;
  padding: 18px 22px;
  background: #fafcfb;
  border: 1px solid #dceee9;
  border-radius: 16px;
  text-align: center;
}

a.tp-trust-item {
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

a.tp-trust-item:hover {
  border-color: #288f7a;
  box-shadow: 0 8px 22px rgba(16, 101, 82, 0.08);
  transform: translateY(-1px);
}

a.tp-trust-item:focus-visible {
  outline: 3px solid rgba(40, 143, 122, 0.3);
  outline-offset: 3px;
}

.tp-trust-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 190px;
  object-fit: contain;
}

.tp-trust-text {
  color: #0f6553;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.tp-trust-caption {
  color: #343444;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tp-trust-note {
  margin: 20px 0 0;
  color: #343444;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.tp-eyebrow {
  margin: 0 0 10px;
  color: #288f7a;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tp-h1 {
  margin: 0 0 18px;
  color: #0f6553;
  font-size: clamp(29px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.tp-h2 {
  margin: 0 0 18px;
  color: #288f7a;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
}

.tp-h2-sm {
  margin: 0 0 18px;
  color: #288f7a;
  font-size: clamp(23px, 3.5vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
}

.tp-h2-lg {
  margin: 0 0 18px;
  color: #288f7a;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
}

.tp-h2-white {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: break-word;
}

.tp-h3 {
  margin: 0 0 12px;
  color: #0f6553;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: break-word;
}

.tp-p {
  margin: 0 0 18px;
  font-size: 16px;
}

.tp-p-lg {
  margin: 0 0 24px;
  font-size: 16px;
}

.tp-p-nomargin {
  margin: 0;
  font-size: 16px;
}

.tp-p-white {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 16px;
}

.tp-p-center {
  margin: 0 auto 18px;
  max-width: 800px;
  font-size: 16px;
}

.tp-p-center-lg {
  margin: 0 auto 32px;
  max-width: 800px;
  font-size: 16px;
}

/* =========================================================
   TEXT LINKS
   ========================================================= */

.tp-text-link {
  color: #0f6553;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition:
    color 0.2s ease,
    text-decoration-thickness 0.2s ease;
}

.tp-text-link:hover {
  color: #288f7a;
  text-decoration-thickness: 2px;
}

.tp-text-link:focus-visible {
  outline: 3px solid rgba(40, 143, 122, 0.3);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================
   CALLOUT BOXES
   ========================================================= */

.tp-takeaways-box {
  box-sizing: border-box;
  background: #fafcfb;
  border: 2px dashed #288f7a;
  border-radius: 16px;
  padding: 22px;
  margin: 0 0 18px;
}

.tp-quote-box {
  box-sizing: border-box;
  background: #f1fbf8;
  border-left: 6px solid #288f7a;
  border-radius: 16px;
  padding: 26px;
  margin: 32px 0;
}

.tp-quote-text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f6553;
  font-style: italic;
  line-height: 1.6;
}

.tp-quote-attribution {
  margin: 14px 0 0;
  color: #0f6553;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
}

/* =========================================================
   LISTS
   ========================================================= */

.tp-list {
  margin: 0;
  padding-left: 20px;
  color: #343444;
  font-size: 16px;
}

.tp-list li {
  margin-bottom: 8px;
}

.tp-list li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.tp-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tp-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tp-btn-green,
.tp-btn-white,
.tp-btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.tp-btn-green {
  background: #0f6553;
  color: #ffffff;
}

.tp-btn-green:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.tp-btn-white {
  background: #ffffff;
  color: #0f6553;
}

.tp-btn-white:hover {
  background: #f1fbf8;
  transform: translateY(-1px);
}

.tp-btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.tp-btn-outline-white:hover {
  background: #ffffff;
  color: #0f6553;
  transform: translateY(-1px);
}

.tp-btn-green:focus-visible,
.tp-btn-white:focus-visible,
.tp-btn-outline-white:focus-visible {
  outline: 3px solid rgba(40, 143, 122, 0.35);
  outline-offset: 3px;
}

/* =========================================================
   AEO FAQ ACCORDION
   ========================================================= */

.tp-faq-section {
  scroll-margin-top: 100px;
}

.tp-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-accordion-item {
  background: #fafcfb;
  border: 1px solid #dceee9;
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tp-accordion-item:hover,
.tp-accordion-item[open] {
  border-color: #288f7a;
  box-shadow: 0 8px 22px rgba(16, 101, 82, 0.08);
}

.tp-accordion-title {
  position: relative;
  padding: 20px 56px 20px 22px;
  color: #0f6553;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  overflow-wrap: break-word;
}

.tp-accordion-title::-webkit-details-marker {
  display: none;
}

.tp-accordion-title::marker {
  content: "";
}

.tp-accordion-title::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1fbf8;
  border-radius: 50%;
  color: #0f6553;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.tp-accordion-item[open] .tp-accordion-title::after {
  content: "\u2212";
  background: #0f6553;
  color: #ffffff;
}

.tp-accordion-content {
  padding: 0 22px 20px;
  color: #343444;
}

.tp-accordion-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.tp-accordion-title:focus-visible {
  outline: 3px solid rgba(40, 143, 122, 0.3);
  outline-offset: -3px;
  border-radius: 14px;
}

/* =========================================================
   TABLET ADJUSTMENTS
   ========================================================= */

@media (max-width: 1024px) {
  .tp-section-white,
  .tp-section-green {
    margin: 28px 0;
  }

  .tp-pad-hero {
    padding: 26px;
  }

  .tp-pad-std,
  .tp-pad-center,
  .tp-section-green {
    padding: 32px 26px;
  }

  .tp-hero-wrap {
    margin-bottom: 26px;
  }

  .tp-hero-img {
    max-height: 520px;
  }
}

/* =========================================================
   MOBILE ADJUSTMENTS
   ========================================================= */

@media (max-width: 767px) {
  .tp-wrapper {
    font-size: 16px;
    line-height: 1.65;
  }

  .tp-section-white,
  .tp-section-green {
    margin: 22px 0;
    border-radius: 16px;
  }

  .tp-pad-hero,
  .tp-pad-std,
  .tp-pad-center,
  .tp-section-green {
    padding: 22px 16px;
  }

  .tp-content-pad {
    padding: 0;
  }

  .tp-hero-wrap {
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .tp-hero-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .tp-hero-img-cover {
    height: clamp(220px, 68vw, 340px);
    object-fit: cover;
  }

  .tp-grid {
    gap: 22px;
  }

  .tp-grid-img {
    border-radius: 16px;
  }

  .tp-trust-bar {
    gap: 10px;
  }

  .tp-trust-item {
    flex: 1 1 138px;
    min-height: auto;
    padding: 14px 12px;
    gap: 8px;
    border-radius: 14px;
  }

  .tp-trust-logo {
    height: 40px;
    max-width: 130px;
  }

  .tp-trust-text {
    font-size: 15px;
  }

  .tp-trust-caption {
    font-size: 12px;
  }

  .tp-h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .tp-h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .tp-h2-sm {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .tp-h2-lg,
  .tp-h2-white {
    font-size: clamp(25px, 7vw, 31px);
  }

  .tp-takeaways-box {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .tp-quote-box {
    padding: 20px 16px;
    margin: 24px 0;
    border-left-width: 5px;
    border-radius: 14px;
  }

  .tp-list {
    padding-left: 18px;
  }

  .tp-accordion {
    gap: 12px;
  }

  .tp-accordion-item {
    border-radius: 14px;
  }

  .tp-accordion-title {
    padding: 18px 52px 18px 16px;
    font-size: 16px;
  }

  .tp-accordion-title::after {
    right: 14px;
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .tp-accordion-content {
    padding: 0 16px 18px;
  }

  .tp-btn-wrap,
  .tp-btn-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .tp-btn-green,
  .tp-btn-white,
  .tp-btn-outline-white {
    width: 100%;
    padding: 13px 18px;
  }
}

/* =========================================================
   SMALL MOBILE ADJUSTMENTS
   ========================================================= */

@media (max-width: 420px) {
  .tp-pad-hero,
  .tp-pad-std,
  .tp-pad-center,
  .tp-section-green {
    padding: 20px 14px;
  }

  .tp-h1 {
    font-size: 27px;
  }

  .tp-h2 {
    font-size: 24px;
  }

  .tp-h2-sm {
    font-size: 22px;
  }

  .tp-eyebrow {
    font-size: 12px;
  }
}

/* =========================================================
   FOUNDER INTRO
   ========================================================= */

.tp-founder-intro{
    display:grid;
    grid-template-columns:240px 1fr;
    gap:30px;
    align-items:start;
    margin:24px 0 32px;
}

.tp-founder-image img{
    width:100%;
    display:block;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(15,101,83,.12);
}

.tp-founder-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.tp-founder-text p:last-child{
    margin-bottom:0;
}

/* Tablet */

@media (max-width:900px){

.tp-founder-intro{
    grid-template-columns:180px 1fr;
    gap:20px;
}

}

/* Mobile */

@media (max-width:767px){

.tp-founder-intro{
    grid-template-columns:1fr;
    text-align:center;
}

.tp-founder-image{
    max-width:240px;
    margin:0 auto;
}

.tp-founder-text{
    text-align:left;
}

}
/* =========================================================
   FOUNDER LAYOUT
   ========================================================= */

.tp-founder-layout{
    display:grid;
    grid-template-columns:680px 1fr;
    gap:34px;
    align-items:start;
    margin:24px 0 0;
}

.tp-founder-image img{
    width:100%;
    display:block;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(15,101,83,.15);
}

.tp-founder-content{
    min-width:0;
}

.tp-founder-content .tp-quote-box:last-child{
    margin-bottom:0;
}

/* Hide the mobile image on desktop */
.tp-founder-image-mobile{
    display:none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px){

.tp-founder-layout{
    grid-template-columns:180px 1fr;
    gap:24px;
}

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:767px){

/* Show image before the heading */
.tp-founder-image-mobile{
    display:block;
    max-width:260px;
    margin:0 auto 20px;
}

.tp-founder-image-mobile img{
    width:100%;
    display:block;
    border-radius:18px;
    box-shadow:0 10px 28px rgba(15,101,83,.15);
}

/* Hide desktop image */
.tp-founder-image{
    display:none;
}

/* Single column for content */
.tp-founder-layout{
    display:block;
}

.tp-founder-content{
    margin-top:20px;
}

}
