/* Budget 101 Block Styles */

/* Budget 101 Container - Full Width */
.container .entry-content .wp-block-hac-budget-101,
.container .entry-content .budget-101,
.entry-content .wp-block-hac-budget-101,
.entry-content .budget-101,
.wp-block-hac-budget-101.budget-101,
.budget-101 {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
  width: 100vw !important;
  margin-top: 2rem;
  margin-bottom: -60px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Inner Wrapper - Contains the flex layout */
.budget-101-wrapper {
  display: flex;
  gap: 0;
  min-height: 400px;
  max-width: none;
  margin: 0;
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Layout */
.budget-101-left {
  flex: 0 0 66.666%;
  max-width: 800px;
  background-color: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 100%, 0 100%);
}

/* Content Container - Constrains the text content */
.budget-101-content {
  padding: 6rem 5.25rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 730px;
  margin-left: auto;
}

.budget-101-right {
  flex: 1;
  background-image: url('../../images/budget-101.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-left: -80px;
  margin-right: 0;
  min-width: 400px;
}

/* Title */
.budget-101-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

/* Description */
.wp-block-hac-budget-101 .budget-101-content p,
.budget-101-content p {
  font-size: 1.2rem;
  color: #ffffff !important;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 500px;
}

/* Button */
.budget-101-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--color-light-green);
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-light-green);
  border-radius: var(--border-radius-small);
  transition: all 0.2s ease;
  align-self: flex-start;
}

.budget-101-button:hover {
  background-color: #cee633;
  color: var(--color-navy);
  border-color: #cee633;
}

.budget-101-button::after {
  content: '';
  width: 22px;
  height: 22px;
  background-image: url('../../images/arrow-right.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.budget-101-button:hover::after {
  transform: translateX(3px);
}

/* Mobile */
@media (max-width: 1080px) {
  .wp-block-hac-budget-101.budget-101,
  .budget-101 {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }
  
  .budget-101-wrapper {
    flex-direction: column;
    min-height: auto;
    max-width: 100%;
  }
  
  .budget-101-left,
  .budget-101-right {
    flex: none;
    width: 100%;
  }
  
  .budget-101-content {
    padding: 2rem 1.5rem;
  }
  
  .budget-101-right {
    min-height: 300px;
  }
  
  .budget-101-left {
    clip-path: none;
  }
  
  .budget-101-right {
    margin-left: 0;
  }
  
  .budget-101-content h2 {
    font-size: 2rem;
  }
  
  .wp-block-hac-budget-101 .budget-101-content p,
  .budget-101-content p {
    font-size: 1.2rem;
    line-height: 1.6;
  }
}

@media (max-width: 768px) {
  .budget-101-content h2 {
    font-size: 1.75rem;
  }
  
  .budget-101-content {
    padding: 2rem;
  }
  
  .wp-block-hac-budget-101 .budget-101-content p,
  .budget-101-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff !important;
  }
}

