* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #004080;   /* Deep blue for distinct look */
  color: white;
  padding: 25px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  letter-spacing: 1.5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #cce0ff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover {
  color: white;
  background-color: #0066cc;
}

/* Main */
main {
  padding: 40px 0;
}

.calculator h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #0077cc;
}

form {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #0077cc;
  outline: none;
}

.time-inputs {
  display: flex;
  gap: 10px;
}

.time-inputs input {
  flex: 1;
}

/* Inline inputs for deposits/withdrawals */
.inline-inputs {
  display: flex;
  gap: 10px;
}

.inline-inputs input,
.inline-inputs select {
  flex: 1;
}

/* Behavior options side-by-side */
.behavior-options {
  display: flex;
  gap: 20px;
}

.behavior-options label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Button */
button {
  width: 100%;
  padding: 14px;
  background-color: #0077cc;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #005fa3;
}

/* Result */
.result-box {
  margin-top: 30px;
  background-color: #eaf4ff;
  padding: 20px;
  border-left: 5px solid #0077cc;
  border-radius: 5px;
  font-size: 18px;
}

/* Footer */
footer {
  background-color: #f0f0f0;   /* Light neutral background */
  color: #333;
  text-align: center;
  padding: 18px 20px;
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer a {
  color: #004080;
  text-decoration: none;
  font-weight: 600;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* For smaller screens: stack footer links vertically */
@media (max-width: 500px) {
  footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* Hidden helper class */
.hidden {
  display: none;
}

/* Horizontal group for side-by-side inputs */
.horizontal-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.half-width {
  flex: 1;
  min-width: 150px;
}

/* Updated Layout */
.main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.tool-section {
  flex: 1 1 70%;
  min-width: 0;
}

.ads-sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ad-slot {
  height: 250px;
  background-color: #ccc;
  border-radius: 8px;
  border: 1px solid #aaa;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #555;
}

#result {
  margin-top: 15px;
}

.description {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

.ad-banner-bottom {
  margin-top: 20px;
  height: 90px;
  background-color: #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  font-weight: bold;
  border-radius: 8px;
  border: 1px solid #aaa;
}

/* Responsive */
@media (max-width: 1100px) {
  .main-container {
    flex-direction: column;
  }

  .ads-sidebar {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  .ad-slot {
    height: 150px;
    flex: 1;
  }

  .ad-banner-bottom {
    height: 80px;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .calculator h2 {
    font-size: 20px;
  }

  input,
  button,
  select {
    font-size: 15px;
  }

  .time-inputs,
  .inline-inputs {
    flex-direction: column;
  }

  .behavior-options {
    flex-direction: column;
  }

  .horizontal-group {
    flex-direction: column;
  }
}

/* Top button row above the form */
.button-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.top-button {
  display: inline-block;
  padding: 14px 60px;       /* Bigger padding for rectangular look */
  background-color: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-width: 80px;          /* Ensure minimum width for rectangular shape */
  text-align: center;       /* Center text */
}

.top-button:hover {
  background-color: #e0e0e0;
}

@media (max-width: 600px) {
  .top-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 10px;
  }
  
  .top-button {
    width: 100%;       /* Full width on mobile */
    min-width: unset;  /* Remove fixed min width */
    padding: 14px 0;   /* Keep height, reduce horizontal padding */
    font-size: 16px;   /* Keep font size readable */
  }
}
.seo-text p { margin-top: 12px; }