/* Styles for src/pages/federal-modernization-framework/federal-modernization-platform.njk.
   Moved out of the template; the fmp-<tag>-<n> classes replace former
   inline style attributes. Give them meaningful names when you next edit them. */

@layer site {
  @media (max-width: 980px) {
    .content-section {
      flex-direction: column !important;
    }

    .compliance-grid {
      grid-template-columns: 1fr !important;
    }
  }
}

/* Former inline styles: unlayered so they keep priority over the site
   stylesheets, as inline styles did. */
.fmp-section-1 {
  padding: 60px 20px;
  background-color: var(--color-white);
}

.fmp-div-1 {
  max-width: 1200px;
  margin: 0 auto;
}

.fmp-div-2 {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.fmp-div-3 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fmp-img-1 {
  width: 50%;
  border-radius: 8px;
}

.fmp-div-4 {
  flex: 1;
}

.fmp-h2-1 {
  color: var(--color-heading);
  margin-bottom: 30px;
  font-size: 42px;
  font-weight: 800;
}

.fmp-p-1 {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.fmp-img-2 {
  width: 70%;
  max-width: 400px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
}

.fmp-h3-1 {
  color: var(--color-subheading);
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 800;
}

.fmp-h2-2 {
  color: var(--color-heading);
  margin-bottom: 30px;
  font-size: 36px;
  font-weight: 800;
}

.fmp-section-2 {
  padding: 60px 20px;
  background-color: var(--color-bg-light);
}

.fmp-h2-3 {
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 50px;
  font-size: 42px;
  font-weight: 800;
}

.fmp-p-2 {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.fmp-div-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.fmp-div-6 {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fmp-h4-1 {
  color: var(--color-subheading);
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
}

.fmp-p-3 {
  font-size: 14px;
  line-height: 1.6;
}

.fmp-div-7 {
  text-align: center;
}

.fmp-img-3 {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Was an h4: keep the h4 line height */
.fmp-h4-1 {
  line-height: 30px;
}

/* Phones: smaller headings so long words like MODERNIZATION fit */
@media (max-width: 767px) {
  .fmp-h2-1,
  .fmp-h2-3 {
    font-size: 30px;
  }

  .fmp-h2-2 {
    font-size: 24px;
  }
}
