/**
 * Allocations Section Styles
 * Three-column layout showing funding allocations with colored headers
 */

/* Section Container */
.allocations-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-sky-blue);
  position: relative;
}

/* Section Title */
.allocations-title {
  font-family: var(--font-interstate);
  font-weight: 800;
  font-size: var(--font-size-h2);
  color: var(--color-blue);
  text-align: left;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

/* Grid Layout - 3 Columns - NO GAPS */
.allocations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0;
  margin-bottom: 0;
}

/* Individual Allocation Item */
.allocation-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  background-color: transparent;
}

/* Colored Header Box */
.allocation-header {
  padding: var(--spacing-md);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Header Color Variants */
.allocation-header-green {
  background-color: var(--color-light-green);
}

.allocation-header-copper {
  background-color: var(--color-copper);
}

.allocation-header-light-blue {
  background-color: var(--color-light-blue);
}

/* Allocation Title */
.allocation-title {
  font-family: var(--font-interstate);
  font-weight: 800;
  font-size: var(--font-size-h4);
  color: #fff;
  margin: 0 0 var(--spacing-xs) 0;
  line-height: 1.2;
}

/* Allocation Copy (WYSIWYG content) */
.allocation-copy {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.allocation-copy p {
  margin: 0 0 0.25rem 0;
  color: #fff;
  font-weight: 400;
}

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

.allocation-copy strong,
.allocation-copy b {
  font-weight: 700;
  color: #fff;
}

/* Image Container - NO GAPS, FIXED HEIGHT */
.allocation-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
}

.allocation-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Gold Line Separator - FULL WIDTH NO GAPS */
.allocations-gold-line {
  width: 0;
  height: 15px;
  background-color: var(--color-gold);
  margin: 0;
  padding: 0;
  transition: width 1.2s ease-in-out;
}

/* Animation triggered when section is in viewport */
.allocations-section.in-viewport .allocations-gold-line {
  width: 100%;
  transition-delay: 0.3s;
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .allocations-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .allocation-header {
    min-height: auto;
    padding: var(--spacing-md);
  }
  
  .allocation-image {
    height: 300px;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .allocations-section {
    padding: var(--spacing-lg) 0;
  }
  
  .allocations-title {
    font-size: var(--font-size-h3);
    text-align: center;
    margin-bottom: var(--spacing-md);
  }
  
  .allocations-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .allocation-header {
    min-height: auto;
    padding: var(--spacing-md);
  }
  
  .allocation-title {
    font-size: var(--font-size-h5);
    text-align: center;
  }
  
  .allocation-copy {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .allocation-image {
    height: 200px;
  }
  
  .allocations-gold-line {
    height: 10px;
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .allocation-header {
    padding: var(--spacing-lg);
    min-height: 200px;
  }
  
  .allocation-image {
    height: 280px;
  }
}
