/* Two Column Feature Block Frontend Styles */

.two-col-feature-section {
  background-color: var(--color-green-900, #373A19);
  padding: 5rem 0; /* 80px */
  overflow: visible; /* Allow content overflow */
  position: relative;
}

/* Container Styles */
.two-col-feature-section .content-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px */
  padding: 0 5rem; /* 0 80px - Desktop Figma spec */
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Heading Section */
.two-col-feature-section .heading-section {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

/* Main Heading Styles - Desktop */
.two-col-feature-section .main-heading {
  color: var(--color-yellow-200, #FBEB8F) !important;
  font-family: var(--font-heading, "Sora") !important;
  font-size: 4.5rem !important; /* 72px - Desktop Figma spec */
  font-weight: 800 !important;
  line-height: 0.8888888888888888em !important; /* Exact Figma line-height */
  text-transform: uppercase !important;
  margin: 0 !important;
  font-kerning: none;
  font-variant-numeric: lining-nums proportional-nums;
  /* Allow overflow for long text */
  position: relative;
  z-index: 20;
  /* Natural line breaks without word breaking */
  overflow-wrap: normal;
  word-wrap: normal;
  hyphens: none; /* Disable hyphenation */
  max-width: 760px;
  width: 100%;
}

/* Content Layout - Desktop First */
.two-col-feature-section .content-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px; /* 28px - Figma spec */
  position: relative;
  overflow: visible;
}

/* Image Container - Desktop */
.two-col-feature-section .image-container {
  flex: 1; /* Changed from fixed width to 50% */
  aspect-ratio: 730 / 570;
  width: 100%;
  max-height: 570px; /* Keep height from Figma spec */
  position: relative;
  z-index: 1; /* Below text */
}

.two-col-feature-section .feature-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Text Content */
.two-col-feature-section .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* 28px */
  min-width: 300px;
  position: relative;
  z-index: 10; /* Above image */
  overflow: visible;
}

/* Copy Section */
.two-col-feature-section .copy-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem; /* 24px */
  max-width: 525px;
}

/* Subheading Styles - allow overflow for longer text */
.two-col-feature-section .subheading {
  color: var(--color-yellow-200, #FBEB8F) !important;
  font-family: var(--font-subheading, "Apolline Std") !important;
  font-size: 1.25rem !important; /* 20px - Figma spec */
  font-weight: 700 !important;
  line-height: 1.2em !important;
  letter-spacing: 0.02em !important; /* 2% - Figma spec */
  text-transform: capitalize !important; /* TITLE case from Figma */
  margin: 0 !important;
  /* Allow some overflow if needed */
  position: relative;
  z-index: 15;
  margin-left: -50px; /* Allow extension into image area */
}

/* Description Styles */
.two-col-feature-section .description {
  color: var(--color-yellow-200, #FBEB8F) !important;
  font-family: var(--font-body, "Azo Sans") !important;
  font-size: 1rem !important; /* 16px - Figma spec */
  font-weight: 400 !important;
  line-height: 1.5em !important;
  margin: 0 !important;
}

/* CTA Section */
.two-col-feature-section .cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* 16px */
}

/* Button Styles - Desktop (Large) */
.two-col-feature-section .cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem; /* 12px */
  padding: 1.5rem; /* 24px - Large button Figma spec */
  border: 1px solid var(--color-green-400, #D4D2C4);
  background-color: var(--color-yellow-200, #FBEB8F);
  color: var(--color-green-950);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.two-col-feature-section .cta-button:hover {
  background-color: var(--color-brown-900) !important;
  color: var(--color-yellow-200, #FBEB8F) !important ;
}

.two-col-feature-section .cta-button:focus {
  outline: 2px solid var(--color-blue-focus, #4F85FD);
  outline-offset: 2px;
}

/* Button Text */
.two-col-feature-section .button-text {
  font-family: var(--font-body, "Azo Sans") !important;
  font-size: 0.875rem !important; /* 14px - Figma spec */
  font-weight: 500 !important;
  line-height: 1.15em !important; /* Exact Figma line-height */
  letter-spacing: 0.05714285799435207em !important; /* 5.714285799435207% - Figma spec */
  text-transform: uppercase !important;
  text-align: center;
}

/* Button Icon */
.two-col-feature-section .button-icon {
  width: 1.5rem; /* 24px */
  height: 1.5rem; /* 24px */
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.two-col-feature-section .cta-button:hover .button-icon {
  transform: translateX(0.25rem);
}

/* Desktop-specific overflow adjustments */
@media (min-width: 1024px) {
  .two-col-feature-section .main-heading {
    margin-right: -100px; /* Allow extension beyond container */
    padding-right: 20px;
  }
}

/* Responsive Design - Medium Desktop (1200px and smaller) */
@media (max-width: 1200px) {
  /* Remove fixed width adjustments since we're using flex */
  .two-col-feature-section .image-container {
    height: 450px; /* Adjusted height for medium screens */
  }
  
  .two-col-feature-section .content-container {
    padding: 0 3rem; /* Reduce padding */
  }
  
  .two-col-feature-section .main-heading {
    font-size: 3.5rem !important; /* Slightly smaller for medium desktop */
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .two-col-feature-section .content-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .two-col-feature-section .image-container {
    width: 100%; /* Full width on smaller screens */
    max-width: 600px; /* Max width to prevent too large */
    height: 400px;
  }
  
  .two-col-feature-section .text-content {
    width: 100%;
    max-width: 600px;
  }
  
  .two-col-feature-section .main-heading {
    font-size: 3rem !important;
    text-align: center;
  }
}

/* Mobile Styles - Exact Figma Mobile Specifications */
@media (max-width: 768px) {
  /* Mobile Content Container */
  .two-col-feature-section .content-container {
    padding: 0 1.75rem; /* 0 28px - Exact Figma mobile spec */
  }
  
  /* Mobile Heading */
  .two-col-feature-section .main-heading {
    font-size: 3rem !important; /* 48px - Exact Figma mobile spec */
    line-height: 0.9166666666666666em !important; /* Exact Figma mobile line-height */
    text-align: left;
    margin-right: 0;
    padding-right: 0;
  }
  
  /* Mobile Layout */
  .two-col-feature-section .content-layout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.75rem 0 0; /* 28px top padding - Figma spec */
  }
  
  /* Mobile Image */
  .two-col-feature-section .image-container {
    width: 100%; /* Full width on mobile */
    max-width: 405px; /* Figma mobile spec as max */
    height: 317px; /* Exact Figma mobile spec */
  }
  
  /* Mobile Text Content */
  .two-col-feature-section .text-content {
    width: 100%;
  }
  
  /* Mobile Copy Section - Left aligned for mobile */
  .two-col-feature-section .copy-section {
    align-items: flex-start; /* Left aligned in mobile per Figma */
  }
  
  /* Mobile Buttons (Medium size) */
  .two-col-feature-section .cta-button {
    padding: 1rem; /* 16px - Medium button Figma spec */
    gap: 0.5rem; /* 8px - Medium button gap */
  }
  
  /* Reset overflow behaviors */
  .two-col-feature-section .subheading {
    margin-left: 0;
    padding-left: 0;
  }
}

/* Very small mobile screens */
@media (max-width: 480px) {
  .two-col-feature-section .content-container {
    padding: 0 1rem;
  }
  
  .two-col-feature-section .main-heading {
    font-size: 2.5rem !important;
  }
  
  .two-col-feature-section .image-container {
    width: 300px;
    height: 235px;
  }
}

/* Animation Classes */
.two-col-feature-section.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.two-col-feature-section .button-animate-in {
  animation: slideInLeft 0.6s ease-out forwards;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}