/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  bottom: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #1465AF;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
}

.logo img {
  width: 50px;
  height: auto;
}

.nav-links a {
  position: relative;
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -24px;
  width: 0%;
  height: 3px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  background: #eef1f4;
  padding: 120px 60px 40px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  margin-left: 50px;
}

.hero-text {
  max-width: 600px;
  margin-top: -40px;
  margin-right: 20px;
}

.small-text {
  font-size: 30px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero h1 {
  font-size: 55px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero h1 span {
  font-weight: bold;
  color: #1465AF;
}

.btn {
  margin-top: 30px;
  padding: 12px 30px;
  background: #5b615d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.hero-image {
  margin-left: auto;
}

.hero-image img {
  width: 450px;
  max-width: 100%;
  height: auto;
  margin-top: 0%;
  padding-top: 0%;
}

/* ===== SERVICE BUTTONS ===== */
.service-btn-section {
  background-color: rgba(223, 221, 221, 0.8);
  padding: 20px 0;
}

.service-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
}

.service-btn-wrapper {
  display: flex;
  justify-content: center;
}

.service-btn {
  width: 100%;
  max-width: 220px;
  height: 220px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
  color: #1465AF;
  font-weight: bold;
  font-size: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-btn img {
  width: 120px;
  height: 120px;
  opacity: 0.9;
}

.service-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.2);
}

/* ===== POPUP OVERLAY ===== */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(128, 128, 128, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
  overflow: hidden;
}

body.noscroll {
  overflow: hidden;
}

.popup:target {
  opacity: 1;
  pointer-events: auto;
}

/* ===== POPUP BOX ===== */
.popup-box {
  background: rgba(245, 245, 245, 0.95);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  padding: 25px 30px 20px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* ===== TABS ===== */
.popup-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #ddd;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: #0077ff;
}

.tab-btn.active {
  color: #0077ff;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: #0077ff;
  border-radius: 2px;
}

/* ===== CONTENT AREA ===== */
.popup-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tab-content {
  display: none;
  flex: 1;
  min-height: 0;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Description scroll area */
.popup-content-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: 10px;
  margin-bottom: 15px;
}

/* ===== SNEAK PEEK GALLERY ===== */
.sneak-gallery {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sneak-slides {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 0;
  text-align: center;
}

.sneak-img {
  display: none;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  border-radius: 8px;
}

.sneak-img.active {
  display: block;
}

/* Navigation arrows */
.sneak-prev,
.sneak-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 101, 175, 0.7);
  color: white;
  border: none;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.sneak-prev:hover,
.sneak-next:hover {
  background: #1465AF;
}

.sneak-prev { left: 10px; }
.sneak-next { right: 10px; }

/* Dots */
.sneak-dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 15px;
}

.sneak-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.sneak-dot.active {
  background: #1465AF;
}

/* ===== CLOSE BUTTON ===== */
.popup-close-btn {
  align-self: flex-end;
  padding: 10px 22px;
  background: #1465AF;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.3s;
  flex-shrink: 0;
  margin-top: auto;
}

.popup-close-btn:hover {
  background: #0f4e88;
}

/* ===== POPUP BACKGROUND CLOSE ===== */
.popup-bg-close {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: 80px 60px;
  text-align: center;
}

.services h2 {
  font-size: 40px;
  margin-bottom: 40px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: #f2f2f2;
  padding: 70px;
  width: 250px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0a2540;
  color: white;
  padding: 20px 20px 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.footer-about,
.footer-contact {
  flex: 1 1 300px;
  margin: 10px;
  text-align: left;
}

.footer-about h2 {
  color: #1465AF;
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-about p,
.footer-contact p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-contact strong {
  color: #1465AF;
}

.phone-link,
.email-link,
.social-link {
  color: #fff;
  text-decoration: none;
}

.phone-link:hover,
.email-link:hover,
.social-link:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 14px;
  margin-top: 20px;
  color: #ccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header {
    padding: 20px 30px;
  }

  .hero {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-content {
    gap: 30px;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .services {
    padding: 60px 30px;
  }
}

@media (max-width: 768px) {
  /* Header */
  .header {
    justify-content: space-between;
    padding: 10px 10px;
    flex-wrap: nowrap;
  }

  .logo {
    font-size: 13px;
  }

  .logo img {
    width: 35px;
  }

  .nav-links {
    display: flex;
    gap: 5px;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    padding: 100px 20px 30px;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    order: 1;
    margin: 0;
    max-width: 100%;
    margin-top: 0px;
  }

  .small-text {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-image {
    order: 2;
    margin: 15px auto;
    margin-top: 0px;
  }

  .hero-image img {
    width: 260px;
  }

  .hero-content .btn {
    order: 3;
    margin-top: 15px;
  }

  /* Service buttons */
  .service-btn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px auto;
  }

  .service-btn {
    max-width: 180px;
    height: 180px;
    font-size: 16px;
  }

  .service-btn img {
    width: 80px;
    height: 80px;
  }

  /* Popup */
  .popup-box {
    width: 95%;
    height: 85vh;
    max-height: 90vh;
    padding: 20px 15px 15px;
    border-radius: 15px;
  }

  .popup-box h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .popup-box ul li {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .sneak-prev,
  .sneak-next {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .sneak-dots {
    margin: 8px 0 10px;
  }

  .popup-close-btn {
    padding: 8px 18px;
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 20px;
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-about,
  .footer-contact {
    flex: 1 1 auto;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }

  .footer-about h2 {
    font-size: 18px;
  }

  .footer-about p,
  .footer-contact p {
    font-size: 13px;
    line-height: 1.4;
  }

  .footer-copy {
    flex-basis: 100%;
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .service-btn-grid {
    gap: 15px;
  }

  .service-btn {
    max-width: 150px;
    height: 150px;
    font-size: 14px;
  }

  .service-btn img {
    width: 60px;
    height: 60px;
  }
}

/* Ensure popup-4 is centered like others */
#popup-4 {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* ===== MOBILE SAFETY FIXES ===== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;               /* prevent horizontal scroll */
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .header {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 11px;                  /* smaller if needed */
  }

  .logo {
    font-size: 12px;
  }

  .logo img {
    width: 30px;
  }

  .hero {
    padding: 90px 15px 25px;          /* tighter padding */
  }

  .hero h1 {
    font-size: 28px;
  }

  .service-btn-grid {
    gap: 15px;
    padding: 0 10px;
  }

  .service-btn {
    max-width: 150px;
    height: 150px;
    font-size: 14px;
  }

  .service-btn img {
    width: 65px;
    height: 65px;
  }

  .popup-box {
    width: 92%;
    height: 80vh;                     /* slightly shorter for small screens */
    padding: 15px 10px 10px;
  }

  .popup-close-btn {
    font-size: 13px;
    padding: 8px 15px;
  }
}

/* Restore bullet points in popup descriptions */
.popup-box ul {
  list-style: disc !important;
  margin-left: 20px !important;
  padding-left: 20px !important;
}

.popup-box ul li {
  display: list-item !important;
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.6;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .popup-box ul li {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

.service-btn span {
  display: block;
  max-width: 140px;        /* adjust so the text wraps where you want */
  margin: 0 auto;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}
/* ULTIMATE POPUP CENTERING – works everywhere */
.popup {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

.popup-box {
  position: relative !important;
  margin: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  max-height: 90vh !important;
}

/* Fallback if flex is not supported */
@supports not (display: flex) {
  .popup-box {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}


@media (min-width: 769px) {
  .service-btn span {
    white-space: nowrap;
    font-size: 18px;          /* adjust if needed */
  }
}
/* Ensure service button text fits on one line on desktop */
@media (min-width: 769px) {
  .service-btn span {
    white-space: nowrap;
    font-size: 16px;          /* adjust as needed */
    letter-spacing: 0.5px;
  }

  .service-btn {
    font-size: 16px;          /* keep consistent */
  }
}

/* Better popup height for long content */
.popup-box {
  height: auto;
  max-height: 85vh;
  min-height: 300px;          /* avoid too short popups */
}

.popup-content-scroll {
  max-height: calc(100% - 120px);  /* leave room for tabs and close button */
  overflow-y: auto;
}

/* Center the popup title and subtitle */
.popup-box h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 10px;
}

.popup-content-scroll p {
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
}

/* FINAL HERO MARGIN CONTROL */


/* If you want different values on mobile, use a media query */
@media (max-width: 768px) {
  .hero-text {
    margin-top: 5px !important;
  }
  .hero-image {
    margin-top: 8px !important;   /* 👈 mobile value */
    margin-bottom: 0%;
  }
}



/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;               /* above everything */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

.whatsapp-community-link {
  color: #25D366;              /* WhatsApp green */
  text-decoration: underline;
  font-weight: bold;
}

.whatsapp-community-link:hover {
  color: #128C7E;              /* darker green on hover */
  text-decoration: none;
}

survices activities


/* Cards container – 4 columns desktop, 2 columns mobile */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 equal columns */
  gap: 30px;
  justify-items: center;                   /* center cards within each column */
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual card */
.card {
  background: #f2f2f2;
  padding: 40px 30px;
  width: 100%;                /* fill grid cell */
  max-width: 240px;           /* optional limit */
  border-radius: 10px;
  text-align: center;
  font-size: small;
  margin-bottom: 20px;
}

/* Icon styling with space below */
.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
  object-fit: contain;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);  /* 2 per row */
    gap: 20px;
  }

  .card {
    padding: 25px 15px;       /* tighter padding */
  }

  .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
  }
}

/* GUARANTEED MOBILE LAYOUT – 2 cards per row */
@media (max-width: 768px) {
  .cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    padding: 25px 15px !important;
  }
}

@media (max-width: 768px) {
  .services h2 {
    font-size: 25px;         /* smaller on mobile */
    
  }
}

