.dr1hero4 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow: hidden;
}

/* Background Image */
.dr1hero4 .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: floatBg 20s ease-in-out infinite;
  transition: transform 10s ease;
}

/* Hover zoom effect */
.dr1hero4:hover .hero-bg {
  transform: scale(1.05);
}

/* Dark overlay for readability */
.dr1hero4 .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Hero content */
.dr1hero4 .hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out forwards;
}

.dr1hero4 .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.dr1hero4 .hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Button Stack */
.dr1hero4 .hero-buttons-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Buttons Common Styles */
.dr1hero4 .btn-secondary,
.dr1hero4 .btn-arattai {
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  transition: 0.3s;
  text-align: center;
  white-space: nowrap;
  max-width: 250px; /* ✅ prevent over-wide buttons */
}

/* WhatsApp Button */
.dr1hero4 .btn-secondary {
  border: 2px solid #25d366;
  color: #25d366;
  background: transparent;
}
.dr1hero4 .btn-secondary i {
  font-size: 20px;
}
.dr1hero4 .btn-secondary:hover {
  background: #25d366;
  color: white;
}

/* Arattai Button */
.dr1hero4 .btn-arattai {
  border: 2px solid #f0c000;
  color: #f0c000;
  background: transparent;
}
.dr1hero4 .btn-arattai .btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}
.dr1hero4 .btn-arattai:hover {
  background: #f0c000;
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatBg {
  0%,100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dr1hero4 .hero-content h1 { font-size: 2.2rem; }
  .dr1hero4 .hero-content p { font-size: 1rem; }
  .dr1hero4 .hero-buttons-vertical { align-items: center; }
  .dr1hero4 .btn-arattai .btn-icon { width: 20px; height: 20px; }
  .dr1hero4 .btn-secondary i,
  .dr1hero4 .btn-arattai i { font-size: 18px; }
  .dr1hero4 .btn-secondary,
  .dr1hero4 .btn-arattai {
    max-width: 220px; /* ✅ keeps compact on tablets */
  }
}

@media (max-width: 450px) {
  .dr1hero4 .btn-secondary,
  .dr1hero4 .btn-arattai {
    padding: 9px 20px;
    font-size: 0.9rem;
    max-width: 200px; /* ✅ balanced size on small screens */
  }
}

@media (max-width: 380px) {
  .dr1hero4 .hero-buttons-vertical a {
    width: auto; /* ✅ no full width */
  }
}