/* ========================================
   TWO-COLUMN TEXT BLOCK
   Heading with two equal columns of text
   Customizable background via color picker
   ======================================== */

.two-column-text-block {
  /* Background set inline via ACF color picker */
  padding-bottom: var(--space-96);
}

/* Section Heading (Centered) - Now H1 for SEO */
.two-column-heading {
  font-family: var(--font-headings);
  font-size: var(--fs-h2);
  font-weight: var(--weight-bold);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-40);
  letter-spacing: -0.02em;
}

/* Two Column Wrapper */
.two-column-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-80);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Individual Text Columns */
.text-column {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--weight-normal);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

.text-column p {
  margin-bottom: var(--space-16);
}

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

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.two-column-heading {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.column-left {
  animation: fadeInUp 0.6s ease 0.3s both;
}

.column-right {
  animation: fadeInUp 0.6s ease 0.4s both;
}

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
  .two-column-wrapper {
    gap: 60px;
  }
}

/* Tablet Large (1024px - 1199px) */
@media (max-width: 1199px) {
  .two-column-text-block {
    padding: var(--space-60) 0;
  }
  
  .two-column-heading {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-36);
  }
  
  .two-column-wrapper {
    gap: var(--space-50);
  }
  
  .text-column {
    font-size: var(--fs-body-sm);
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .two-column-text-block {
    padding: var(--space-50) 0;
  }
  
  .two-column-heading {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-32);
  }
  
  .two-column-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  
  .text-column {
    font-size: var(--fs-body-sm);
    text-align: center;
  }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) {
  .two-column-text-block {
/*     padding: var(--space-40) 0; */
	  padding: 0px 16px !important;
	  .container{
		  padding-inline:0 !important;
	  }
  }
  
  .two-column-heading {
    font-size: var(--fs-lg);
    line-height: 1.25;
    margin-bottom: var(--space-28);
  }
  
  .two-column-wrapper {
    gap: var(--space-24);
  }
  
  .text-column {
    font-size: var(--fs-sm);
  }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
  .two-column-text-block {
    padding: 32px 0;
  }
  
  .two-column-heading {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .two-column-wrapper {
    gap: 20px;
  }
  
  .text-column {
    font-size: 13px;
  }
}

/* ----------------------------------------
   Accessibility
   ---------------------------------------- */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .two-column-heading,
  .column-left,
  .column-right {
    animation: none;
  }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
  .two-column-text-block {
    padding: 20px 0;
    background: white !important;
  }
  
  .two-column-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ----------------------------------------
   Gutenberg Editor Styles
   ---------------------------------------- */
.block-editor-block-list__block[data-type="acf/two-column-text"] {
  margin: 20px 0;
}