/* Fix for hero section: ensure header is not sized by content only */
header {
  background: #0071c5;
  width: 100%;
  padding: 3rem 0 2rem 0;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  color: #fff;
}

header h1,
header p {
  color: #fff;
}

header .container {
  max-width: 700px;
}
header img {
  max-width: 200px;
  height: auto;
}

/* RTL support for text alignment */
html[dir="rtl"] .text-center {
  text-align: right;
}
html[dir="rtl"] .text-end {
  text-align: left;
}
html[dir="rtl"] .text-start {
  text-align: right;
}

/* RTL: align all content to the right */
html[dir="rtl"] body {
  text-align: right;
}

/* Remove Bootstrap grid overrides for the newsletter form */

/* Newsletter form simplified flexbox layout */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch; /* changed from center to stretch */
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 0;
}

/* Make input and button the same height */
.newsletter-form .form-control[type="email"],
.newsletter-form .btn {
  height: 2.5rem;
  min-height: 2.5rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

/* RTL: move the newsletter form to the right and reverse order */
html[dir="rtl"] .newsletter-form {
  flex-direction: row-reverse;
  justify-content: flex-end;
  direction: rtl;
}

/* RTL: align input text to the right */
html[dir="rtl"] .newsletter-form .form-control {
  text-align: right;
}

/* Set a reasonable max width for the email input */
.newsletter-form .form-control[type="email"] {
  max-width: 20rem;
}

