/* =========================================================
   BASE STYLES
========================================================= */

.tkfp { 
  padding: clamp(28px, 4vw, 56px) 0; 
}

.tkfp__wrap { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

.tkfp__title { 
  margin: 0 0 16px 0; 
  font-size: clamp(28px, 5vw, 42px); 
  line-height: 1.1; 
  font-weight: 800; 
  color: #0b2a3f; 
}

.tkfp__sub { 
  margin: 0; 
  opacity: 0.85; 
  font-size: 16px; 
  line-height: 1.5; 
}

.tkfp__figure { 
  margin: 22px 0 26px; 
}

.tkfp__image { 
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: 16px; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.10); 
}

.tkfp__rail {
  height: 2px;
  margin: 18px 0 22px;
  opacity: 0.35;
  background: linear-gradient(90deg, #0b2a3f, #f2c100, #0b2a3f);
  border-radius: 2px;
}

/* =========================================================
   HERO HEADER
========================================================= */

.tkfp__heroHeader {
  padding: 0 0 clamp(36px, 5vw, 72px);
  background: #ffffff;
}

.tkfp__heroHeaderInner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.tkfp__heroKicker {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid rgba(124, 52, 129, 0.35);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: #7c3481;
  background: rgba(124, 52, 129, 0.06);
  margin-bottom: 18px;
}

.tkfp__heroTitle {
  margin: 18px auto 14px;
  max-width: 22ch;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 800;
}

.tkfp__heroLead {
  margin: 0 auto;
  max-width: 82ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

/* =========================================================
   ZIGZAG WORKFLOW LAYOUT
========================================================= */

.tkfp__grid-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.tkfp__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  position: relative;
  align-items: stretch; /* Changed from 'start' to 'stretch' */
  grid-auto-rows: 1fr; /* Makes rows equal height */
}

/* =========================================================
   CARD POSITIONING
========================================================= */

/* Odd cards: Left column */
.tkfp__card:nth-child(odd) {
  grid-column: 1;
  height: 100%; /* Stretch to fill grid cell */
}

/* Even cards: Right column */
.tkfp__card:nth-child(even) {
  grid-column: 2;
  height: 100%; /* Stretch to fill grid cell */
}

/* Final card - larger than others */
.tkfp__card--final {
  min-height: 280px;
}

/* =========================================================
   CARD STYLING
========================================================= */

.tkfp__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff !important;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0px 43.1633px 61.6618px rgba(0, 0, 0, 0.07);
  width: 100%;
  min-height: 200px;
  max-height: fit-content;
  transition: all 0.3s ease;
  overflow: hidden;
}
.tkfp__card:hover {
  border-color: #008957 !important;
  box-shadow: 0 12px 34px rgba(0, 137, 87, 0.25) !important;
}

/* Replace the background image ::before with stage number */
.tkfp__card::before {
  display: none; /* Remove old background image */
}

.tkfp__stage-number-bg {
  position: absolute;
  bottom: -19%;
  left: 63%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  color: #000;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.tkfp__header {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
  padding: 16px 16px 14px;
  background: transparent;
  display: grid;
  gap: 6px;
}

.tkfp__top { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.tkfp__num {
  display: inline-flex;
  width: 44px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(124, 52, 129, 0.15);
  color: #7c3481;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tkfp__icon { 
  width: 26px; 
  height: 26px; 
  opacity: 0.95; 
}

.tkfp__icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tkfp__h { 
  font-weight: 800; 
  font-size: 16px; 
  line-height: 1.2;
  color: #0f172a;
}

.tkfp__k { 
  font-size: 13px; 
  line-height: 1.35;
  color: #666;
}

.tkfp__panel {
  position: relative;
  z-index: 2;
  padding: 0 16px 16px;
}

/* =========================================================
   WYSIWYG CONTENT STYLING
========================================================= */

.tkfp__content {
  color: #444;
  line-height: 1.6;
}

.tkfp__content p {
  margin: 0 0 12px;
  color: #444;
}

.tkfp__content p:last-child {
  margin-bottom: 0;
}

.tkfp__content ul,
.tkfp__content ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.tkfp__content li {
  margin: 6px 0;
  color: #444;
}

.tkfp__content strong {
  font-weight: 700;
  color: #0f172a;
}

.tkfp__content em {
  font-style: italic;
}

.tkfp__content a {
  color: #f2c100;
  text-decoration: underline;
}

.tkfp__content a:hover {
  color: #d4a800;
}

.tkfp__content h4,
.tkfp__content h5,
.tkfp__content h6 {
  margin: 12px 0 6px;
  font-weight: 700;
  color: #0f172a;
}

/* =========================================================
   COMPARISON SECTION
========================================================= */

.tkfp__comparison {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.tkfp__comparison-heading {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 40px;
}

.tkfp__comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.tkfp__comparison-col {
  padding: 32px 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0px 43.1633px 61.6618px rgba(0, 0, 0, 0.07);
}

.tkfp__comparison-col--custom {
  border-color: #008957;
  background: rgba(0, 137, 87, 0.02);
}

.tkfp__comparison-col--offshelf {
  border-color: #999;
  background: rgba(0, 0, 0, 0.02);
}

.tkfp__comparison-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  line-height: 1.3;
}

.tkfp__comparison-content {
  color: #444;
  line-height: 1.6;
}

.tkfp__comparison-content ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.tkfp__comparison-content li {
  margin: 12px 0;
  padding-left: 24px;
  position: relative;
}

.tkfp__comparison-col--custom li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #008957;
  font-weight: 700;
}

.tkfp__comparison-col--offshelf li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #999;
  font-weight: 700;
}

@media (max-width: 768px) {
  .tkfp__comparison-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   CLOSING SECTION
========================================================= */

.tkfp__closing {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(124, 52, 129, 0.03) 0%, rgba(0, 137, 87, 0.03) 100%);
  border-radius: 16px;
}

.tkfp__closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tkfp__closing-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

.tkfp__closing-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  color: #7c3481;
  margin: 0 0 24px;
}

.tkfp__closing-content {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
  margin: 0 0 32px;
}

.tkfp__closing-content p {
  margin: 0 0 16px;
}

.tkfp__closing-content p:last-child {
  margin-bottom: 0;
}

.tkfp__closing-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.tkfp__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

.tkfp__cta--primary {
  background: #7c3481;
  color: #fff;
  border: 2px solid #7c3481;
}

.tkfp__cta--primary:hover {
  background: #5f2763;
  color: #fff;
  border-color: #5f2763;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 52, 129, 0.3);
  text-decoration: none;
}

.tkfp__cta--secondary {
  background: transparent;
  color: #7c3481;
  border: 2px solid #7c3481;
}

.tkfp__cta--secondary:hover {
  background: rgba(124, 52, 129, 0.1);
  transform: translateY(-2px);
}

.tkfp__closing-footer {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.6);
  margin: 0;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .tkfp__closing {
    margin: 60px auto 0;
    padding: 40px 20px;
  }
  
  .tkfp__closing-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .tkfp__cta {
    width: 100%;
    max-width: 300px;
  }
}

/* =========================================================
   RESPONSIVE: MOBILE
========================================================= */

@media (max-width: 768px) {
  .tkfp__arrows {
    display: none;
  }
  
  .tkfp__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .tkfp__card:nth-child(odd),
  .tkfp__card:nth-child(even) {
    grid-column: 1;
  }
  
  /* Simple down arrows between cards on mobile */
  .tkfp__card:not(:last-child)::after {
    content: '↓';
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    font-size: 24px;
    color: #f2c100;
    opacity: 0.6;
    background: none !important;
    filter: none !important;
    z-index: 10;
  }
}