/* General Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* Navigation Bar */
nav {
  background-color: #009fdb;
  padding: 12px 20px;
  text-align: center;
}
nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}
nav a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 900px;
  margin: 30px auto;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.header i {
  font-size: 40px;
  color: #007bff;
}
.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  line-height: 1.2;
}
.header-title span {
  display: block;
  color: #003366;
  font-size: 32px;
}

/* Headings */
h2, h1 {
  text-align: center;
  color: #003366;
  margin-top: 0;
}

/* Form Layout */
label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
}
input[type="text"], input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
button {
  background-color: #009fdb;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 20px auto 0;
}
button:hover {
  background-color: #007bb8;
}

/* Grid Style Buttons (e.g., on calculators.html) */
.cta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cta-grid a {
  flex: 1 1 220px;
  background: #009fdb;
  color: white;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.2s ease;
}
.cta-grid a:hover {
  background-color: #007bb8;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .cta-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-grid a {
    font-size: 16px;
    padding: 12px 14px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #f1f1f1;
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
}

/* Results Section */
#results, #resultBox {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-size: 16px;
}