html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
/* ---------- RESET / BASE ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

/* ---------- STICKY HEADER ---------- */
.activity-header {
  /*position: sticky;*/
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 26px;
  /*padding-left: 14px;
  padding-right: 15px;*/
  padding: 0px 18px;
  background: #eceefc;
  border-bottom: 1px solid #e3e7ef;
  justify-content: space-between;
  position: sticky;
  /*newly added from here
  height: 90px;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;*/
}

.activity-header.scrolled {
  background: #cbd4fc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  /*padding-right: 20px;*/
  padding: 10px 5px;
  white-space: nowrap;
}

.brand img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: contain;
  justify-content: center;
  box-shadow:
    0 0 8px rgba(59, 130, 246, 0.6),
    0 0 16px rgba(59, 130, 246, 0.4),
    0 0 24px rgba(59, 130, 246, 0.2);

  /*new changes here*/
  position: static;

  display: flex;
  align-items: center;
}
.brand span {
  font-weight: 600;
  font-size: clamp(16px, 4vw, 20px);
  white-space: nowrap;
}

/* HOME ICON */

.home-btn {
  position: absolute;
  right: 73px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  text-decoration: none;
}

.home-icon {
  width: 33px;
  height: 33px;
  fill: #2c3e50;
}
.home-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

/* HAMBURGER */
.menu-toggle {
  width: 35px;
  height: 23px; /* Increased height for better spacing */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2001;
}

.menu-toggle span {
  width: 100%;
  height: 3.4px;
  background: #2c3e50;
  border-radius: 3px;
}

.menu-toggle span:nth-child(2) {
  width: 80%;
  align-self: flex-end;
}

/* Animate to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 2000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  padding-top: 30px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 5px;
  box-shadow: -4px 0 15px rgba(160, 147, 231, 0.5);
  transition: right 0.4s ease;
  z-index: 2002;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: scroll;
}

.side-menu.active {
  right: 0;
}

.side-menu h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
  font-size: 30px;
  border-left: #5e37ca solid 4px;
  border-right: #5e37ca solid 4px;
}

.side-menu a {
  text-decoration: none;
  color: #333;
  margin-bottom: 18px;
  border-bottom: #331b74 solid 1px;
  font-size: 16px;
  transition: 0.2s ease;
  padding-left: 5px;
}

.side-menu a:hover {
  color: #2c3e50;
  transform: translateX(5px);
  background-color: #dce7f1;
  border-radius: 20px;
}

.side-menu a.active {
  font-weight: 700;
  transform: translateX(5px);
  color: #2857bc;
  border-bottom: 1.5px solid #2f6df6;
}

/* Activity navigation 
      .activity-nav {
        display: flex;
        gap: 11px;
        padding: 8px 10px 10px;
        overflow-x: auto;
        white-space: nowrap;

        scrollbar-width: none;
      }

      .activity-nav::-webkit-scrollbar {
        display: none;
      }
      .activity-nav a {
        text-decoration: none;
        font-size: 0.9rem;
        color: #333;
        padding-bottom: 4px;
        position: relative;
      }
      .activity-nav a.active {
        font-weight: 600;
        border-bottom: 2px solid #2f6df6;
        color: #2f6df6;
      } */

/* ---------- MAIN CONTENT ---------- */

@media (min-width: 1024px) {
  .batch-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 768px) {
  .activity-header {
    display: flex;
    align-items: center;
    padding-left: 24px;
    padding-right: 50px;
  }

  .brand {
    padding: 15px 0;
  }

  .brand > *:not(:first-child) {
    margin-left: 24px;
  }

  .brand span {
    font-size: 1.4rem;
  }

  .home-btn {
    font-size: 19px;
    width: 32px;
    height: 32px;
  }

  /*.activity-nav {
          margin-left: auto;
          padding: 0;
        }

        .activity-nav a {
          font-size: 1rem;
          padding-left: 5px;
        }*/

  .brand {
    gap: 25px;
  }
  .brand img {
    width: 45px;
    height: 45px;
  }
}

/* Mobile-only: differentiate activity nav */
@media (max-width: 600px) {
  .activity-header {
    display: flex;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
  }

  .activity-header .brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .brand {
    padding-left: 20px;
  }
  .activity-header .brand span {
    display: none !important;
  }

  .activity-header .brand img {
    width: 28px;
    height: 28px;
  }

  .activity-header .activity-nav {
    flex: 1;
    margin-left: 10px;
    background-color: #d3e1fc;
    padding: 8px 10px 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .side-menu a {
    font-size: 18px;
  }
}

/* WhatsApp floating button */
.contact-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 65px;
  height: 65px;

  background-color: #25d366; /* WhatsApp green */
  color: #ffffff;

  border-radius: 50%;
  font-size: 26px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0px 20px rgba(0, 0, 0, 0.25);
  z-index: 2000;
}

.contact-whatsapp-float svg {
  width: 26px;
  height: 26px;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(44, 104, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 37, 58, 0);
  }
}

.contact-whatsapp-float {
  animation: whatsappPulse 1.4s ease-in-out infinite;
}

/*============= smart contact popup===========*/
.contact-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 99999;
}

.contact-popup.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 350px;
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  position: relative;
  animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-content h3 {
  margin-bottom: 10px;
}

.popup-content p {
  font-size: 14px;
  margin-bottom: 20px;
}

.popup-buttons {
  display: flex;
  gap: 10px;
}

.popup-buttons a {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.call-btn {
  background: #2f6fd6;
  color: white;
}

.wa-btn {
  background: #25d366;
  color: white;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}


/*Batch schedul pdf*/
.schedule-section {
  margin-top: 30px;
}

.schedule-section h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  position: relative;
  font-family: "Ink Free", serif;
  color: #3b82f6;
}

.schedule-section h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: #000000;
  margin-top: 6px;
  border-radius: 2px;
}

.pdf-viewer {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.download-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #7968de;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.download-btn:hover {
  background: #6f242c;
}