/* Styles for src/pages/aws-well-architected-framework.njk.
   Moved out of the template; the waf-<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;
    }

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

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

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

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

.waf-div-3 {
  flex: 1;
}

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

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

.waf-div-4 {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.waf-img-1 {
  width: 60%;
  max-width: 300px;
}

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

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

.waf-div-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
}

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

.waf-h3-1 {
  color: var(--color-subheading);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}

.waf-p-2 {
  font-size: 16px;
  line-height: 1.8;
}

.waf-div-7 {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}

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

.waf-img-2 {
  width: 100%;
  border-radius: 8px;
}

.waf-h3-3 {
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  font-weight: 800;
}

.waf-div-8 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px;
}

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

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

.waf-p-3 {
  font-size: 15px;
  line-height: 1.7;
}

.waf-div-10 {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-top: 50px;
  border-left: 4px solid var(--color-accent);
}

.waf-h4-2 {
  color: var(--color-heading);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}

.waf-p-4 {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
}

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

.waf-p-5 {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.waf-div-11 {
  text-align: center;
}

.waf-a-1 {
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
}

.waf-div-12 {
  max-width: 900px;
  margin: 0 auto;
}

.waf-div-13 {
  background: var(--color-bg-light);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.waf-h3-4 {
  color: var(--color-subheading);
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
}

.waf-div-14 {
  background: var(--color-bg-light);
  padding: 30px;
  border-radius: 8px;
}

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