/* Kind Ledger LLC - Power Pages Custom CSS Replacement */

.sectionBlockLayout {
  display: flex;
  flex-wrap: wrap;
  min-height: auto;
  width: 100%;
}

.container {
  padding: 0px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.columnBlockLayout {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  margin: 0px 0;
}

/* Responsive images with accessible border radius */
img {
  width: 100%;
  height: auto;
  max-width: 640px;
  border-radius: 12px;
  display: flex;
}

/* Section headings and text colors using theme variables */
h1, h2, h3, h4, h5 {
  color: var(--portalThemeColor5, #333);
  font-weight: 600;
  margin-bottom: 16px;
}

h1, h2 {
  text-align: left;
}

h3 {
  text-align: center;
}

p {
  text-align: center;
  color: #222;
  font-size: 16px;
  margin-bottom: 12px;
}

/* Button styling for accessibility and theme */
.button1 {
  border-radius: 6px;
  background-color: var(--portalThemeColor1, #007bff);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
}
.button1:focus {
  box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}
.button1:hover {
  background-color: var(--portalThemeColor5, #0056b3);
}

/* Accessibility: Ensure sufficient color contrast for text on backgrounds */
[data-component-theme="portalThemeColor1"],
[data-component-theme="portalThemeColor3"] {
  background-color: var(--portalThemeColor1, #f5f5f5);
  color: var(--portalThemeColor5, #222);
}

/* Responsive columns for Bootstrap v3.3.6 grid */
@media (max-width: 991px) {
  .col-lg-6, .col-lg-4, .col-lg-12 {
    min-width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 767px) {
  .container {
    flex-direction: column;
    padding: 0 8px;
  }
  .columnBlockLayout {
    margin: 8px 0;
    padding: 0;
  }
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Utility classes for spacing */
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.pt-8 { padding-top: 8px !important; }
.pb-8 { padding-bottom: 8px !important; }

/* Hide outline for mouse users, show for keyboard users */
.button1:not(:focus-visible) {
  outline: none;
}

/* Ensure all interactive elements are focusable and visible */
:focus {
  outline: 2px solid var(--portalThemeColor5, #0056b3);
  outline-offset: 2px;
}
