/* ===== HOMEPAGE SECTIONS LAYOUT OPTIMIZATION ===== */
/* Dedicated CSS for optimizing Project and Salamandrina sections layout */
/* This ensures proper 2/3 text + 1/3 image distribution */

/* CRITICAL: Override Tailwind Grid Classes with !important */
.grid.lg\\:grid-cols-3 {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 3rem !important;
  align-items: start !important;
}

.grid.lg\\:grid-cols-3 .lg\\:col-span-2 {
  grid-column: 1 / 2 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.grid.lg\\:grid-cols-3 > div:last-child {
  grid-column: 2 / 3 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Mobile Override */
@media (max-width: 1023px) {
  .grid.lg\\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .grid.lg\\:grid-cols-3 .lg\\:col-span-2,
  .grid.lg\\:grid-cols-3 > div:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* Project Section Layout Optimization */
.project-section-container {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .project-section-container {
    grid-template-columns: 2fr 1fr !important; /* 2/3 text + 1/3 image */
    gap: 3rem !important;
  }
}

.project-text-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

.project-image-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

/* Salamandrina Section Layout Optimization */
.salamandrina-section-container {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .salamandrina-section-container {
    grid-template-columns: 2fr 1fr !important; /* 2/3 text + 1/3 image */
    gap: 3rem !important;
  }
}

.salamandrina-text-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

.salamandrina-image-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

/* Enhanced text content styling */
.project-content-enhanced {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75; /* leading-relaxed */
  color: #6b7280; /* text-gray-600 */
}

.project-content-enhanced p {
  margin-bottom: 1.5rem;
}

.project-content-enhanced h1,
.project-content-enhanced h2,
.project-content-enhanced h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.project-content-enhanced h1 {
  font-size: 2rem;
}

.project-content-enhanced h2 {
  font-size: 1.5rem;
}

.project-content-enhanced h3 {
  font-size: 1.25rem;
}

.project-content-enhanced ul,
.project-content-enhanced ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.project-content-enhanced li {
  margin-bottom: 0.5rem;
}

.project-content-enhanced a {
  color: #059669; /* forest-600 */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.project-content-enhanced a:hover {
  color: #047857; /* forest-700 */
}

/* Salamandrina content styling */
.salamandrina-content-enhanced {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.75; /* leading-relaxed */
  color: #6b7280; /* text-gray-600 */
}

.salamandrina-content-enhanced p {
  margin-bottom: 1.5rem;
}

.salamandrina-content-enhanced h1,
.salamandrina-content-enhanced h2,
.salamandrina-content-enhanced h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.salamandrina-content-enhanced h1 {
  font-size: 2rem;
}

.salamandrina-content-enhanced h2 {
  font-size: 1.5rem;
}

.salamandrina-content-enhanced h3 {
  font-size: 1.25rem;
}

.salamandrina-content-enhanced ul,
.salamandrina-content-enhanced ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.salamandrina-content-enhanced li {
  margin-bottom: 0.5rem;
}

.salamandrina-content-enhanced a {
  color: #059669; /* forest-600 */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.salamandrina-content-enhanced a:hover {
  color: #047857; /* forest-700 */
}

/* Image optimization */
.section-image-optimized {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.section-image-optimized:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .project-section-container,
  .salamandrina-section-container {
    gap: 1.5rem;
  }

  .project-text-content,
  .salamandrina-text-content {
    margin-bottom: 1rem;
  }
}

/* Override any conflicting Tailwind classes */
.homepage-section-override {
  display: grid !important;
}

@media (min-width: 1024px) {
  .homepage-section-override {
    grid-template-columns: 2fr 1fr !important;
    gap: 3rem !important;
  }
}

/* Ensure proper spacing for dynamic content */
.dynamic-content-spacing {
  margin-bottom: 2rem;
}

.dynamic-content-spacing:last-child {
  margin-bottom: 0;
}

/* Button styling for consistency */
.section-cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #374151;
  background-color: white;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: 2rem;
}

.section-cta-button:hover {
  background-color: #f9fafb;
  color: #374151;
  text-decoration: none;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Featured badge styling */
.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Card styling for salamandrina image container */
.salamandrina-image-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Card styling for project image container (same as salamandrina) */
.project-image-card {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}


.salamandrina-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  margin-top: 1rem;
}
