/* Modern Split Hero Design */
.hero-block-container {
  display: flex;
  width: 100%;
  min-height: 500px; /* Reduced from 600px for better fit on average screens */
  padding: 0; /* Flush edges */
  margin-bottom: 0;
  overflow: hidden; /* Ensure clean edges */
}

/* Left Image Side */
.hero-block-image-container {
  flex: 0.9;
  width: 40%;
  position: relative;
  min-height: 400px; /* Minimum height for mobile stacking */
}

.hero-block-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Full bleed image */
  display: block; /* Remove default inline gap */
  border-radius: 0; /* Clean edges */
  box-shadow: none;
}

/* Right Content Side */
.hero-block-content {
  flex: 1;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 3rem; /* Generous breathing room */
  gap: 1.5rem;
}

/* Typography */
.hero-heading {
  font-family: "Montserrat", sans-serif; /* Ensure brand font */
  font-size: 2rem; /* Reduced from 3rem */
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: #e04c08;
  margin: 0;
}

.hero-text {
  font-size: 1.15rem; /* Increased from 1rem */
  line-height: 1.6;
  color: #4a4a4a;
  max-width: 90%; /* prevent text from hitting edge too hard */
}

/* Toggle Content Section */
.hero-toggle-wrapper {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    flex-direction: row; /* Side-by-side layout */
    gap: 3rem; /* Space between nav and content */
    align-items: flex-start;
}

.hero-toggle-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 0 0 40%; /* Navigation takes 40% width */
    margin-bottom: 0;
}

.hero-toggle-nav-item {
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem; /* Slightly reduced to balance with larger content */
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.hero-toggle-nav-item:before {
    content: '';
    display: inline-block;
    width: 25px; /* Slightly longer dash */
    height: 3px; /* Slightly thinner */
    background-color: #ccc;
    margin-right: 20px;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.hero-toggle-nav-item:hover {
    color: #e15307;
}

.hero-toggle-nav-item.active {
    color: #e15307; /* Brand Orange */
}

.hero-toggle-nav-item.active:before {
    background-color: #e15307;
    width: 45px;
}

.hero-toggle-display {
    position: relative;
    min-height: 100px;
    margin-top: 0; /* Align with top of nav */
    flex: 1; /* Content takes remaining space */
    padding-top: 0.5rem; /* Optical alignment with nav text */
    display: grid; /* Use grid to stack items */
    grid-template-columns: 1fr; /* Single column */
    transition: transform 0.3s ease;
}

.hero-toggle-content-item {
    grid-area: 1 / 1; /* Stack all items in the same cell */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity 0.4s ease, transform 0.4s ease; /* Smooth fade and slide */
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    max-width: 95%;
}

.hero-toggle-content-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slide into place */
}

/* Editor Preview */
.hero-toggle-preview-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #e15307;
}

/* Responsive Stacking */
@media (max-width: 960px) {
  .hero-block-container {
    flex-direction: column;
    min-height: auto;
  }

  .hero-block-image-container,
  .hero-block-content {
    width: 100%;
    flex: auto;
  }

  .hero-block-image-container {
    height: 300px; /* Fixed height for image on mobile */
  }

  .hero-block-content {
    padding: 3rem 1.5rem;
    align-items: flex-start; /* Reset to left align for standard text flow */
    text-align: left;
  }
  
  .hero-heading {
    font-size: 1.75rem;
  }
  
  /* Stack toggle section on mobile */
  .hero-toggle-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-toggle-nav {
    flex: auto;
    width: 100%;
    gap: 10px;
  }
  
  .hero-toggle-display {
    width: 100%;
    margin-top: 1rem;
  }
}
