/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.5;
}
h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

/* Layout */
.main-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  gap: 20px;
}

/* Calculator Section */
.calculator-container {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Input Styling */
.input-group {
  margin-bottom: 25px;
}
.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.input-row {
  display: flex;
  gap: 10px;
}
.input-group input,
.input-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex: 1;
  font-size: 16px;
  transition: all 0.3s ease;
}
input:focus, select:focus {
  outline: 2px solid #007bff;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  flex: 1;
  transition: all 0.3s ease;
}
button:hover {
  background: #0056b3;
  transform: scale(1.02);
}
.reset-btn {
  background-color: #6c757d;
}
.reset-btn:hover {
  background-color: #495057;
}

/* Results */
.results {
  margin-top: 25px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  background: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.results.show {
  opacity: 1;
  transform: translateY(0);
}
.results p {
  margin: 10px 0;
  font-size: 16px;
  font-weight: 500;
}
.results p span {
  color: #007bff;
  font-weight: bold;
}

/* Chart */
#loanChart {
  margin-top: 30px;
  max-height: 300px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.chart-note {
  text-align: center;
  color: #888;
  margin-top: 10px;
}

/* Ad Space */
.ad-space {
  width: 200px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f2f2f2;
  padding: 15px;
  border-radius: 8px;
}

.ad-block {
  background: #ffffff;
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}
.ad-block img {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .main-wrapper {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  gap: 20px;
  align-items: flex-start; /* <-- added */
}

.ad-space {
  width: 200px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f2f2f2;
  padding: 15px;
  border-radius: 8px;
  align-self: flex-start; /* <-- added to prevent sidebar stretching */
  height: auto;           /* <-- added */
}

  .ad-block {
    flex: 1;
  }
}
/* Container helper for header/footer content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Header */
.site-header {
  background-color: #f0f4f8; /* light subtle blue-ish */
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .site-title {
  font-weight: 700;
  font-size: 20px;
  color: #007bff;
  text-decoration: none;
}

.site-header .site-title:hover {
  text-decoration: underline;
}

.nav-links a {
  color: #444;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

/* Footer */
.site-footer {
  background-color: #222;
  color: #ddd;
  padding: 25px 0;
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    margin-top: 10px;
  }
  .nav-links a {
    margin-left: 0;
    margin-right: 20px;
  }
}
.seo-content {
  margin-top: 40px;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  color: #333;
  line-height: 1.7;
}

.seo-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #007bff;
  font-weight: 700;
  text-align: center;
}

.seo-content h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #222;
}

.seo-content p {
  margin-bottom: 15px;
  font-size: 16px;
}

.seo-content ul,
.seo-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
  font-size: 16px;
}

.seo-content ul li,
.seo-content ol li {
  margin-bottom: 8px;
}
.left-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 40px; /* spacing between calculator and SEO content */
}
.language-switcher {
  display: inline-block;
  margin-left: 20px;
}

.language-switcher select {
  padding: 4px 8px;
  font-size: 1rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  white-space: nowrap; 
  border: 0;
}
