#section-2-con {
  display: flex;
  flex-direction: column;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.section-2-headings {
  display: inline-block;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.section-2-headings h3 {
  font-size: x-large;
  color: #642E11 !important;
}

.rera-num {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  font-size: large;
}

/* Mobile: replace large h3 with hero-card list + Enquire button (keeps AOS animation) */
.mobile-hero-list {
  display: none;
}

.mobile-enquire-con {
  display: none;
}

.mobile-hero-list .hero-card__list {
  align-items: center;
}

.mobile-hero-list .hero-card__list li {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 600;
  background-color: #ffffff4d !important;
  padding: 10px;
  text-align: center;
  color: #642E11 !important;
  border-radius: 8px;
  animation: rp-blink 1.6s ease-in-out infinite;
  width: min(320px, 92%);
  box-sizing: border-box;
}

.project-cards-con {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
  align-items: stretch;
  justify-content: center;
}

.project-card-con {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 150px;
  padding: 20px;
  background-color: #ffffff4d !important;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card-con:nth-child(7) {
  width: 520px;
  /* don’t constrain it */
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: transparent !important;
}

.project-card img {
  height: 50px;
  align-items: center;
  margin-bottom: 20px;
  background-color: transparent !important;

}

.project-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: #642E11 !important;
  background-color: transparent !important;
  line-height: 1.2;
  margin-bottom: 10px;

}

.project-card p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  margin-top: 1rem;
  background-color: transparent !important;
  text-align: center;
}

@keyframes rp-blink {

  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.15;
    transform: translateY(-2px);
  }
}

/* ...existing code... */
/* Responsive tweaks for section-2 */
@media (max-width: 1200px) {
  #section-2-con {
    padding: 8px;
  }

  .section-2-headings h3 {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .mobile-hero-list {
    display: block;
    margin-top: 10px;
  }

  .mobile-enquire-con {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  .mobile-enquire-btn {
    width: min(320px, 92%);
    padding: 10px 18px;
    color: #642E11 !important;
  }

  .project-cards-con {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
  }

  .project-card-con {
    padding: 12px;
  }

  .project-card-con:nth-child(7) {
    width: 100%;
  }

  .project-card img {
    height: 48px;
    margin-bottom: 16px;
  }

  .project-card h4 {
    font-size: 20px;
  }
}

/* <=900px: small-tablet / large-phone tweaks (only what's different) */
@media (max-width: 900px) {
  #section-2-con {
    padding: 8px 12px;
  }

  .mobile-hero-list .hero-card__list li {
    color: #04293A;
    background: #ffffff !important;
  }

  .project-card h4 {
    font-size: 18px;
  }

  .project-cards-con {
    gap: 14px;
  }
}

/* <=520px: phone portrait (merge previous 600/420 rules into this single phone breakpoint) */
@media (max-width: 520px) {
  #section-2-con {
    flex-direction: column;
    padding: 8px;
    align-items: stretch;
  }

  .mobile-hero-list {
    align-items: center;
  }

  /* slightly smaller list items for small phones */
  .mobile-hero-list .hero-card__list li {
    font-size: 15px;
    padding: 10px;
    margin: 6px 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.30) !important;
    background-color: #ffffff4d !important;
    width: min(320px, 92%) !important;
    box-sizing: border-box;
  }

  .mobile-enquire-con {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }

  .mobile-enquire-btn {
    width: min(320px, 92%);
    padding: 10px 18px;
  }

  .project-cards-con {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    box-sizing: border-box;
  }

  .project-card-con {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    width: calc(50% - 12px);
    box-sizing: border-box;
    padding: 10px;
    /* reduce padding so cards fit better */
  }

  .project-card-con:nth-child(7) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .project-card img {
    height: 40px;
    margin-bottom: 12px;
  }

  .project-card h4 {
    font-size: 16px;
    text-align: center;
  }

  .project-card p {
    font-size: 13px;
    text-align: center;
  }

  .rera-num {
    padding: 10px;
    font-size: 1rem;
  }
}

/* <=375px: very small phones — only override what's needed */
@media (max-width: 375px) {
  .mobile-hero-list .hero-card__list li {
    font-size: 14px;
    padding: 8px;
    width: 100%;
  }

  .mobile-enquire-btn {
    width: min(300px, 92%);
    padding: 9px 16px;
  }

  .project-card img {
    height: 36px;
  }

  .project-card h4 {
    font-size: 15px;
  }

  .project-card p {
    font-size: 12px;
  }

  .project-card-con {
    padding: 10px;
  }
}