/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

h1, h2, h3 {
  color: #002244;
}

a {
  text-decoration: none;
  color: #002244;
}

/* ===== HEADER STYLES ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: clamp(1rem, 4vw, 2rem);
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
}

.logo {
  height: auto;
  max-height: 50px;
  width: auto;
  max-width: 160px;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  white-space: nowrap;
}

nav a:hover {
  color: #f4b127;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f4b127;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* ===== CAROUSEL ===== */
.product-carousel {
  padding: clamp(1.5rem, 4vw, 2rem) 0 0 0;
  position: relative;
  text-align: center;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item {
  display: none;
  width: 100%;
  margin-bottom: 0;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  margin: 0 auto;
}

.carousel-item:first-child {
  display: block;
}

.card-content {
  position: static;
  background: rgba(0, 34, 68, 0.85);
  color: white;
  padding: clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  max-width: 100%;
  border-radius: 0 0 12px 12px;
}

.apply-btn {
  display: inline-block;
  margin-top: 18px;
  padding: clamp(10px, 2vw, 14px) clamp(24px, 4vw, 32px);
  background-color: #f4b127;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.apply-btn:hover {
  background-color: #e09e1c;
  transform: translateY(-2px);
}

/* ===== EMI CALCULATOR STYLES ===== */
.emi-calculator {
  background: #f8f9fa;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
}

.emi-calculator h2 {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 2rem;
  font-weight: 600;
  color: #002244;
}

.calculator-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.calculator-inputs,
.calculator-results {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 600px;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #002244;
}

.range-slider {
  width: 100%;
}

.value-display {
  margin-top: 0.4rem;
  font-weight: 600;
  color: #333;
}

select,
button.btn {
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 8px;
}

button.btn {
  background-color: #f4b127;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button.btn:hover {
  background-color: #e09e1c;
}

/* ===== RESULTS ===== */
.result-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  text-align: center;
}

.result-title {
  font-weight: 600;
  color: #002244;
  margin-bottom: 0.4rem;
}

.result-value {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: #f4b127;
  font-weight: 700;
}

.chart-container {
  height: 300px;
}

/* ===== FOOTER ===== */
footer {
  background: #002244;
  color: white;
  text-align: center;
  padding: clamp(1rem, 4vw, 2rem);
}

footer a {
  color: #f4b127;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .logo {
    max-height: 40px;
  }

  .calculator-container {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.8rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .card-content {
    font-size: 1.2rem;
  }
}

/* ===== ZOOM DPI FIX ===== */
@media (min-resolution: 144dpi) {
  header {
    min-height: 70px;
  }

  nav a {
    padding: 0.25rem 0;
  }
}
