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

.sec2-con {
  padding: 15px;
}

.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: rgb(126, 90, 37);
  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: rgb(126, 90, 37); /* 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: rgb(126, 90, 37);
  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;
  }

  .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::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;
  }

  .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;
  }
}

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

/* Show only on mobile devices (up to 768px) */
@media (max-width: 768px) {
  .mobile-enquire-con,
  .mobile-hero-list {
    display: block;
  }

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

  .mobile-enquire-btn {
    background: rgb(126, 90, 37);
    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%;
  }
}

/* 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);
  }
}

.mobile-hero-list .hero-card__list li {
  animation: smoothGlow 2s ease-in-out infinite;
  width: 100%;
  text-align: center;
  background: rgb(126, 90, 37);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  box-sizing: border-box;
  margin: 8px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  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;
}
