
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
  min-height: 100vh;
  padding-bottom: 60px; /* Prevents content from being hidden behind fixed footer */
  box-sizing: border-box;
  overflow-x: hidden; /* Prevents horizontal scrolling */
  word-wrap: break-word; /* Ensures long words break to next line */
}

* {
  box-sizing: border-box; /* Ensures padding doesn't add to width */
}

nav {
  background: #2255a4;
  padding: 12px 20px;
  text-align: center;
  width: 100%;
}

nav a {
  color: #fff;
  margin: 0 20px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  word-wrap: break-word;
}

header {
  background: #e4ecfa;
  padding: 30px 20px;
  text-align: center;
  width: 100%;
}

header h1 {
  margin: 0 0 10px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

header p {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

section {
  padding: 20px;
  max-width: 1400px; /* Increased from 800px to accommodate wider content */
  margin: 0 auto;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

section p, section div, section span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

footer {
  background: #2255a4;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

.btn {
  display: inline-block;
  background: #2255a4;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  word-wrap: break-word;
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.product-card {
  background: #fff;
  border: 1px solid #dde7f6;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(34,85,164,0.06);
  padding: 22px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-card h3, .product-card p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

form input, form textarea {
  width: 100%;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #bbbbbb;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

form textarea {
  min-height: 120px;
  resize: vertical; /* Allows users to resize textarea vertically */
  overflow-y: auto; /* Adds scrollbar when content exceeds height */
  white-space: pre-wrap; /* Preserves line breaks and wraps text */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"] {
  overflow: visible;
  text-overflow: ellipsis;
}

/* Additional text content styling */
p, div, span, li, td, th {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Ensure long URLs or text strings break properly */
a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section {
    padding: 15px;
    max-width: 100%;
  }
  
  nav a {
    margin: 0 10px;
    font-size: 14px;
  }
  
  .products {
    gap: 15px;
  }
  
  .product-card {
    max-width: 100%;
  }
}

/* Ensure content doesn't overflow container */
.content-wrapper {
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Text area and input field improvements */
input:focus, textarea:focus {
  outline: 2px solid #2255a4;
  outline-offset: 2px;
}

/* Prevent text from being cut off */
blockquote {
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 20px 0;
  padding: 0 20px;
}
