#section-2 {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100%;
}

.sec2-con {
  padding: 15px;
}

/* Mobile-only elements styles */
.mobile-enquire-con,
.mobile-hero-list {
  display: none; /* Hide by default (desktop) */
}

.sec2-text-con {
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sec2-text-con h1 {
  padding: 10px;
  text-align: center;
  font-size: 50px;
  font-weight: 500;
  line-height: 60px;
}

.sec2-text-con p {
  padding: 10px;
  text-align: center;
  width: 60%;
  font-size: medium;
}

.sec2-text-con button {
  padding: 15px;
  width: 15%;
  border-radius: 8px;
  font-size: larger;
  font-style: italic;
  background-color: #bfae60;
  color: rgb(255, 255, 255);
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

.sec2-img-con {
  padding: 15px;
  align-items: center;
  justify-content: center;
}

.sec2-img-con img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
}

.table-heading {
  padding: 10px;
  text-align: center;
  font-size: 50px;
  font-weight: 500;
  line-height: 60px;
}

/* Price table styling placed below the section-2 image */
.sec2-price-table {
  width: 100%;
  max-width: 1200px; /* keep aligned with page content */
  margin: 24px auto 0;
  padding: 18px;
  box-sizing: border-box;
}

/* makes table horizontally scrollable on narrow viewports */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* base table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-family: inherit;
}

/* header */
.price-table thead th {
  text-align: left;
  padding: 14px 18px;
  background: #bfae60; /* accent */
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

/* rows */
.price-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: white;
}

.price-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  color: #222;
  font-size: 0.95rem;
}

/* call-to-action in table */
.table-cta {
  display: inline-block;
  padding: 8px 12px;
  background: #bfae60;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition:
    0.15s ease,
    transform 0.08s ease;
}

.table-cta:hover {
  background: rgb(100, 70, 30);
  transform: translateY(-1px);
}

/* alternate row shading for readability */
.price-table tbody tr:nth-child(odd) {
  background: #fff;
}
.price-table tbody tr:nth-child(even) {
  background: rgba(237, 226, 212, 0.14);
}

@media (max-width: 1200px) {
  #section-2 {
    padding: 12px;
  }

  .sec2-con {
    padding: 12px;
  }

  .sec2-text-con h1 {
    font-size: 42px;
    line-height: 50px;
    padding: 8px;
  }

  .sec2-text-con p {
    width: 70%; /* Slightly wider on smaller screens */
    font-size: 1rem;
  }

  .sec2-text-con button {
    width: 18%; /* Slightly wider button */
    padding: 12px;
    font-size: 1.1rem;
  }

  .table-heading {
    font-size: 42px;
    line-height: 50px;
  }

  .sec2-price-table {
    margin: 20px auto 0;
    padding: 15px;
  }

  .price-table {
    min-width: 580px; /* Reduced minimum width */
  }
}

/* Tablet - 900px and below */
@media (max-width: 900px) {
  #section-2 {
    flex-direction: column; /* Stack elements vertically */
    padding: 10px;
  }

  .sec2-con {
    padding: 10px;
    width: 100%;
  }

  .sec2-text-con {
    order: 1; /* Text content first */
    margin-bottom: 20px;
  }

  .sec2-text-con h1 {
    font-size: 36px;
    line-height: 42px;
    padding: 6px;
  }

  .sec2-text-con p {
    width: 85%; /* Wider text on tablets */
    font-size: 0.95rem;
    padding: 8px;
  }

  .sec2-text-con button {
    width: 25%; /* Wider button for touch */
    padding: 12px;
    font-size: 1rem;
    margin-top: 15px;
  }

  .sec2-img-con {
    order: 2; /* Image second */
    padding: 10px;
    width: 100%;
  }

  .sec2-img-con img {
    max-width: 500px; /* Limit image size on tablets */
    margin: 0 auto;
  }

  .table-heading {
    font-size: 36px;
    line-height: 42px;
    padding: 8px;
  }

  .sec2-price-table {
    order: 3; /* Price table last */
    margin: 15px auto 0;
    padding: 12px;
  }

  .price-table {
    min-width: 520px;
  }

  .price-table thead th {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .price-table tbody td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .table-cta {
    padding: 7px 10px;
    font-size: 0.85rem;
  }
}

/* Mobile Large - 520px and below */
@media (max-width: 520px) {
  #section-2 {
    padding: 8px;
  }

  .sec2-con {
    padding: 8px;
  }

  .mobile-enquire-con,
  .mobile-hero-list {
    display: block !important;
  }

  .mobile-enquire-con {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-enquire-btn {
    background: #bfae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .mobile-enquire-btn:hover {
    background: rgb(100, 70, 30);
  }

  .mobile-hero-list {
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-hero-list .hero-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .mobile-hero-list .hero-card__list li {
    animation: smoothGlow 2s ease-in-out infinite;
    width: 100%;
    text-align: center;
    background: #bfae60;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(126, 90, 37, 0.3);
  }

  .sec2-text-con h1 {
    font-size: 28px;
    line-height: 34px;
    padding: 5px;
  }

  .sec2-text-con p {
    width: 95%; /* Almost full width on mobile */
    font-size: 0.9rem;
    padding: 6px;
  }

  .sec2-text-con button {
    width: 40%; /* Wider button for mobile touch */
    padding: 10px;
    font-size: 0.9rem;
    margin-top: 12px;
  }

  .sec2-img-con {
    padding: 8px;
  }

  .sec2-img-con img {
    max-width: 100%;
    border-radius: 6px;
  }

  .table-heading {
    font-size: 28px;
    line-height: 34px;
    padding: 6px;
  }

  .sec2-price-table {
    margin: 12px auto 0;
    padding: 8px;
  }

  /* Mobile-first table styling */
  .table-responsive {
    border-radius: 8px;
  }

  .price-table {
    min-width: 100%; /* Full width on mobile */
  }

  /* Stack table data on mobile */
  .price-table thead {
    display: none; /* Hide headers on mobile */
  }

  .price-table tbody tr {
    display: block;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: none;
  }

  .price-table tbody td {
    display: block;
    text-align: right;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .price-table tbody td:last-child {
    border-bottom: none;
  }

  /* Add labels for mobile table */
  .price-table tbody td:not(:last-child):before {
    content: attr(data-label) ": ";
    float: left;
    font-weight: 600;
    color: rgb(126, 90, 37);
  }

  .table-cta {
    display: block;
    text-align: center;
    margin-top: 5px;
    padding: 8px 12px;
  }
}

/* Mobile Small - 375px and below */
@media (max-width: 375px) {
  #section-2 {
    padding: 6px;
  }

  .sec2-con {
    padding: 6px;
  }

  .mobile-enquire-con,
  .mobile-hero-list {
    display: block;
  }

  .mobile-enquire-con {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-enquire-btn {
    background: #bfae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .mobile-enquire-btn:hover {
    background: rgb(100, 70, 30);
  }

  .mobile-hero-list {
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-hero-list .hero-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-hero-list .hero-card__list li {
    animation: smoothGlow 2s ease-in-out infinite;
    width: 100%;
    text-align: center;
    background: #bfae60;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(126, 90, 37, 0.3);
  }
  .sec2-text-con h1 {
    font-size: 24px;
    line-height: 28px;
    padding: 4px;
  }

  .sec2-text-con p {
    width: 98%;
    font-size: 0.85rem;
    padding: 4px;
  }

  .sec2-text-con button {
    width: 50%; /* Even wider on small screens */
    padding: 8px;
    font-size: 0.85rem;
    margin-top: 10px;
    border-radius: 6px;
  }

  .sec2-img-con {
    padding: 6px;
  }

  .table-heading {
    font-size: 24px;
    line-height: 28px;
    padding: 4px;
  }

  .sec2-price-table {
    margin: 10px auto 0;
    padding: 6px;
  }

  .price-table tbody td {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .price-table tbody td::before {
    font-size: 0.8rem;
  }

  .table-cta {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* Smooth glow and pulse animation for hero-card__list items */
@keyframes smoothGlow {
  0% {
    opacity: 0.8;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(126, 90, 37, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(126, 90, 37, 0.6);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(126, 90, 37, 0.3);
  }
}

/* Individual delays for staggered animation effect */
.mobile-hero-list .hero-card__list li:nth-child(1) {
  animation-delay: 0s;
}

.mobile-hero-list .hero-card__list li:nth-child(2) {
  animation-delay: 0.8s;
}

.mobile-hero-list .hero-card__list li:nth-child(3) {
  animation-delay: 1.6s;
}

.mobile-hero-list .hero-card__list li:nth-child(4) {
  animation-delay: 2.4s;
}

/* ===================== EMI Calculator ===================== */
.emi-calculator {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.emi-calc-heading {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  color: rgb(47, 56, 75);
  margin: 0 0 6px;
  line-height: 1.2;
}

.emi-calc-sub {
  text-align: center;
  color: rgb(126, 90, 37);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.emi-unit-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.emi-unit-tab {
  padding: 8px 22px;
  border: 1.5px solid #bfae60;
  background: transparent;
  color: rgb(47, 56, 75);
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.emi-unit-tab.active,
.emi-unit-tab:hover {
  background: #bfae60;
  color: #fff;
}

.emi-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.emi-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.emi-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emi-field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.emi-field-header label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgb(47, 56, 75);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.emi-field-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(126, 90, 37);
  text-align: right;
}

.emi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, #bfae60 50%, rgba(47, 56, 75, 0.12) 50%);
}

.emi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #bfae60;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 6px rgba(126, 90, 37, 0.4);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.emi-range::-webkit-slider-thumb:hover {
  background: rgb(126, 90, 37);
  transform: scale(1.18);
}

.emi-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #bfae60;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(126, 90, 37, 0.4);
  cursor: pointer;
}

.emi-range::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(47, 56, 75, 0.12);
}

.emi-results-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.emi-monthly-box {
  background: rgb(47, 56, 75);
  border-radius: 10px;
  padding: 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emi-monthly-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(237, 226, 212, 0.7);
}

.emi-monthly-val {
  font-size: 2.2rem;
  font-weight: 700;
  color: #bfae60;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.emi-breakdown {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.emi-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  font-size: 0.9rem;
  color: rgb(47, 56, 75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.emi-breakdown-row:last-child {
  border-bottom: none;
}

.emi-breakdown-row span:last-child {
  font-weight: 700;
}

.emi-breakdown-total {
  background: rgba(237, 226, 212, 0.35) !important;
}

.emi-breakdown-total span {
  color: rgb(126, 90, 37) !important;
  font-weight: 700 !important;
}

.emi-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emi-bar-track {
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  background: rgba(47, 56, 75, 0.08);
}

.emi-bar-fill {
  height: 100%;
  transition: width 0.35s ease;
}

.emi-bar-principal { background: #bfae60; }
.emi-bar-interest  { background: rgba(126, 90, 37, 0.55); }

.emi-bar-legend {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: rgb(47, 56, 75);
}

.emi-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.emi-dot-principal { background: #bfae60; }
.emi-dot-interest  { background: rgba(126, 90, 37, 0.55); }

.emi-enquire-cta {
  display: block;
  text-align: center;
}

@media (max-width: 1200px) {
  .emi-calculator {
    padding: 24px;
    margin-top: 24px;
  }
  .emi-calc-heading { font-size: 30px; }
  .emi-body { gap: 28px; }
  .emi-monthly-val { font-size: 2rem; }
}

@media (max-width: 900px) {
  .emi-calculator {
    padding: 20px;
    margin-top: 20px;
  }
  .emi-calc-heading { font-size: 26px; }
  .emi-body { gap: 22px; }
  .emi-inputs-col { gap: 18px; }
  .emi-monthly-val { font-size: 1.8rem; }
  .emi-monthly-box { padding: 18px 20px; }
}

@media (max-width: 520px) {
  .emi-calculator {
    padding: 16px;
    margin-top: 16px;
    border-radius: 8px;
  }
  .emi-calc-heading { font-size: 22px; }
  .emi-calc-sub { font-size: 0.88rem; margin-bottom: 16px; }
  .emi-unit-tabs { gap: 8px; margin-bottom: 20px; }
  .emi-unit-tab { padding: 7px 16px; font-size: 0.85rem; }
  .emi-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .emi-inputs-col { gap: 16px; }
  .emi-monthly-val { font-size: 1.9rem; }
  .emi-monthly-box { padding: 18px; }
  .emi-breakdown-row { padding: 10px 12px; font-size: 0.85rem; }
  .emi-bar-legend { font-size: 0.78rem; }
}

@media (max-width: 375px) {
  .emi-calculator { padding: 12px; }
  .emi-calc-heading { font-size: 20px; }
  .emi-unit-tab { padding: 6px 14px; font-size: 0.8rem; }
  .emi-inputs-col { gap: 14px; }
  .emi-monthly-val { font-size: 1.7rem; }
  .emi-monthly-box { padding: 14px 16px; }
  .emi-field-header label { font-size: 0.75rem; }
  .emi-field-val { font-size: 0.88rem; }
  .emi-breakdown-row { padding: 8px 10px; font-size: 0.82rem; }
}
