/* ===================== TCET NCC - index.css =====================
   This stylesheet contains all custom CSS for index.html.
   Each section is clearly commented for easy navigation and maintenance.
================================================================= */

/* ===================== 1. General Styles ===================== */
/* Sets base font, removes default margin/padding, and applies global font. */
html,
body {
  margin: 0px;
  padding: 0px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  text-align: justify;
}

.outer-wrapper {
  width: 100%;
  padding: 0 10px;
  margin: auto;
}

/* ===================== 2. Navbar Styles Updated ===================== */
/* Custom gradient navbar with hover effects and dropdown styling. */
.custom-navbar {
  /* margin-left: 390px; */
  padding: 20px;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* <-- Fix here */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 80px;
  text-decoration: none;
  color: #fff;
}

.navbrand {
  font-family: "Black Ops One", system-ui !important;
  font-weight: 400 !important;
}

.me-4 {
  margin-right: 4.5rem !important;
}

.custom-navbar .brand img {
  height: 40px;
  width: auto;
  display: block;
}

.custom-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  /* Allow wrapping */
  overflow-x: auto;
  /* Allow horizontal scroll if needed */
  max-width: 100vw;
}

.custom-navbar .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1.0rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: block;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  background: #d63911;
  color: #fff;
}

/* Hamburger menu for mobile */
.custom-navbar .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .custom-navbar .nav-toggle {
    display: block;
  }

  .custom-navbar .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #1a1a2e;
    width: 100%;
    display: none;
    /* Hidden by default */
  }

  .custom-navbar .nav-links.active {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .custom-navbar .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .custom-navbar .brand {
    font-size: 1.5rem;
  }

  .custom-navbar .nav-link {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ===================== 3. Slider Image Section ===================== */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl Specificity:(0, 1, 0) {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 97%;
  /* padding-right: calc(var(--bs-gutter-x) * .5); */
  /* padding-left: calc(var(--bs-gutter-x) * .5); */
  margin-right: 15px;
  margin-left: 15px;
}

/* ===================== 3. Header Section ===================== */
/* Styles for the logo and tab box in the header. */
.headcontainer {
  width: 100%;
  margin: 0 auto;
  padding: 5px;
}

.tab-box {
  padding: 2px;
  text-align: center;
}

.header-logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===================== 4. Official Profile Section ===================== */
/* Card hover effect for profile cards. */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* ===================== 5. Redesigned Social Handles Section ===================== */
/* Modern floating cards and glowing animated icons for social links. */
.social-card.attract-effect {
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 1.5rem;
  transition: transform 0.25s cubic-bezier(.4, 2, .3, 1), box-shadow 0.25s;
  animation: floatCard 3.5s ease-in-out infinite alternate;
  border: 2.5px solid transparent;
}

.social-card.attract-effect:hover {
  transform: translateY(-10px) scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.22), 0 0 0 4px #ffd60055;
  border-color: #ffd600;
  z-index: 2;
}

@keyframes floatCard {
  0% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }

  100% {
    transform: translateY(0) rotate(-1deg);
  }
}

/* Animated glowing border for icons */
.attract-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 #ffd600, 0 0 24px 0 #ffd60055;
  transition: box-shadow 0.3s, transform 0.3s;
  animation: glowPulse 2.2s infinite alternate;
}

.attract-icon i {
  transition: color 0.3s, transform 0.3s;
}

.social-card.attract-effect:hover .attract-icon i {
  transform: scale(1.18) rotate(-8deg);
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 0 #ffd600, 0 0 24px 0 #ffd60055;
  }

  50% {
    box-shadow: 0 0 0 8px #ffd60044, 0 0 32px 8px #ffd60099;
  }

  100% {
    box-shadow: 0 0 0 0 #ffd600, 0 0 24px 0 #ffd60055;
  }
}

/* Platform-specific icon glows */
.youtube-glow {
  box-shadow: 0 0 0 0 #ff0000, 0 0 24px 0 #ff000055;
  animation: youtubeGlow 2.2s infinite alternate;
}

.insta-glow {
  box-shadow: 0 0 0 0 #e1306c, 0 0 24px 0 #e1306c55;
  animation: instaGlow 2.2s infinite alternate;
}

.twitter-glow {
  box-shadow: 0 0 0 0 #111, 0 0 24px 0 #11133355;
  animation: twitterGlow 2.2s infinite alternate;
}

.linkedin-glow {
  box-shadow: 0 0 0 0 #0077B5, 0 0 24px 0 #0077B555;
  animation: linkedinGlow 2.2s infinite alternate;
}

@keyframes youtubeGlow {
  0% {
    box-shadow: 0 0 0 0 #ff0000, 0 0 24px 0 #ff000055;
  }

  50% {
    box-shadow: 0 0 0 8px #ff000044, 0 0 32px 8px #ff000099;
  }

  100% {
    box-shadow: 0 0 0 0 #ff0000, 0 0 24px 0 #ff000055;
  }
}

@keyframes instaGlow {
  0% {
    box-shadow: 0 0 0 0 #e1306c, 0 0 24px 0 #e1306c55;
  }

  50% {
    box-shadow: 0 0 0 8px #e1306c44, 0 0 32px 8px #e1306c99;
  }

  100% {
    box-shadow: 0 0 0 0 #e1306c, 0 0 24px 0 #e1306c55;
  }
}

@keyframes twitterGlow {
  0% {
    box-shadow: 0 0 0 0 #111, 0 0 24px 0 #11133355;
  }

  50% {
    box-shadow: 0 0 0 8px #11133344, 0 0 32px 8px #11133399;
  }

  100% {
    box-shadow: 0 0 0 0 #111, 0 0 24px 0 #11133355;
  }
}

@keyframes linkedinGlow {
  0% {
    box-shadow: 0 0 0 0 #0077B5, 0 0 24px 0 #0077B555;
  }

  50% {
    box-shadow: 0 0 0 8px #0077B544, 0 0 32px 8px #0077B599;
  }

  100% {
    box-shadow: 0 0 0 0 #0077B5, 0 0 24px 0 #0077B555;
  }
}

/* Button hover and gradient effects for social section */
.attract-btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px 0 #ffd60033;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
  border-radius: 2rem;
  border: none;
}

.attract-btn.btn-gradient-pink {
  background: linear-gradient(90deg, #e1306c 60%, #ffd600 100%);
  color: #fff;
}

.attract-btn.btn-gradient-pink:hover {
  background: linear-gradient(90deg, #ffd600 60%, #e1306c 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #e1306c55;
  transform: scale(1.05);
}

.attract-btn.btn-danger:hover {
  background: linear-gradient(90deg, #ffd600 60%, #ff0000 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #ff000055;
  transform: scale(1.05);
}

.attract-btn.btn-dark:hover {
  background: linear-gradient(90deg, #ffd600 60%, #111 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #11133355;
  transform: scale(1.05);
}

.attract-btn.btn-primary:hover {
  background: linear-gradient(90deg, #ffd600 60%, #0077B5 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 #0077B555;
  transform: scale(1.05);
}

/* ===================== 6. Carousel & Testimonials Section ===================== */
/* Carousel fade/slide-in animation and testimonial card styling. */
.carousel .carousel-item {
  opacity: 0;
  transform: translateX(80px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.carousel .carousel-item.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.carousel .card {
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.7s, transform 0.7s;
  min-height: 370px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 6px 32px rgba(29, 78, 137, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.carousel-item.active .card {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.carousel .card:hover {
  box-shadow: 0 12px 48px rgba(29, 78, 137, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(6px) scale(1.03);
}

.testimonial-img-lg {
  width: 180px !important;
  height: 180px !important;
}

.testimonial-img {
  width: 180px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #ff0000;
  box-shadow: 0 4px 16px rgba(29, 78, 137, 0.15);
  transition: transform 0.3s;
}

.testimonial-img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(29, 78, 137, 0.25);
}

.testimonial-text {
  color: #1d4e89;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: justify;
  font-family: 'Poppins', Arial, sans-serif;
  letter-spacing: 0.01em;
}

#testimonials .carousel-inner {
  padding-bottom: 2rem;
}

#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
  filter: drop-shadow(0 2px 8px #1d4e89cc);
}

#testimonials .fw-bold {
  color: #1d4e89;
}

/* ===================== 7. Section Image Slideshow ===================== */
/* Gallery section with responsive carousel images. */
.gallery-section {
  justify-content: center;
  background-color: #ffffff;
  width: 100%;
  margin: auto;
  padding: 20px 0;
  align-items: center;
}

.gallery-section h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #800000;
  text-transform: uppercase;
}

.gallery-section .intro-text {
  text-align: center;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.carousel-item img {
  width: 100%;
  height: 350px;
  max-height: 600px;
  max-width: 500px;
  /* object-fit: cover; */
  border-radius: 10px;
}

/* Image resizing */
.w-100 {
  width: 100% !important;
  margin: auto;
}

.carousel-column {
  margin-bottom: 20px;
}

.carousel-column h5 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #004080;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 200px;
  }
}

/* ===================== 8. Modern Card Design for Features & Objectives ===================== */
/* Stylish cards for features/objectives with hover and quote styling. */
.features-objectives-card {
  background: linear-gradient(135deg, #f8fafc 60%, #e3e6ee 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1px solid #e0e0e0;
}

.features-objectives-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  transform: translateY(-4px) scale(1.02);
}

.features-objectives-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #b30000;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.features-list,
.objectives-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.features-list li,
.objectives-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s, background 0.2s;
}

.features-list li:hover,
.objectives-list li:hover {
  background: #f8e6e6;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
}

.features-list i,
.objectives-list i {
  font-size: 1.7rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.features-list strong,
.objectives-list strong {
  color: #800000;
  font-weight: 600;
}

.features-objectives-card p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.2rem;
}

.features-objectives-quote {
  background: #f8fafc;
  border-left: 4px solid #b30000;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #555;
  border-radius: 8px;
  margin-top: 2rem;
}

/* ===================== 9. About Us Section ===================== */
/* Responsive about section with text and image slider. */
.about-wrapper {
  width: 100%;
  margin: 30px auto;
  padding: 30px;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-text {
  flex: 2;
  text-align: justify;
}

.about-text h1 {
  font-size: 45px;
  font-weight: 700;
  color: #b30000;
  margin-bottom: 20px;
}

.about-text p,
.about-text li {
  font-size: 20px;
  color: #333;
  line-height: 1.7;
}

.about-text ul {
  padding-left: 20px;
}

.image-slider {
  flex: 1;
  position: relative;
  height: 650px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
  border: 0px solid #e0e0e0;
  background: linear-gradient(135deg, #f8fafc 60%, #e3e6ee 100%);
}

.image-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 2px 0px rgba(44, 62, 80, 0.10);
}

.image-slider img.active {
  opacity: 1;
  z-index: 1;
  animation: fadeIn 1.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
  }

  .image-slider {
    height: 400px;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    max-width: 900px;
    object-fit: cover;
    border-radius: 10px;
  }
}

@media (max-width: 900px) {
  .custom-navbar .nav-links {
    position: fixed;
    top: 60px;
    right: -100vw;
    background: #1a1a2e;
    flex-direction: column;
    width: 220px;
    height: 100vh;
    align-items: flex-start;
    padding: 2rem 1.2rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(.4, 2, .6, 1);
  }

  .custom-navbar .nav-links.open {
    right: 0;
  }

  .custom-navbar .nav-toggle {
    display: block;
  }
}

@media (min-width:1600px) {
  .carousel-item img {
    width: 100%;
    height: 350px;
    max-height: 900px;
    max-width: 600px;
    object-fit: cover;
    border-radius: 10px;
  }

  .gallery-section {
    justify-content: center;
    background-color: #ffffff;
    width: 75%;
    margin: auto;
    padding: 20px 0;
    align-items: center;
  }


}

/* Footer Section */
.footer-section {
  background: linear-gradient(90deg, #800000 0%, #1a1a2e 100%);
  color: #fff;
  text-align: left;
  font-family: 'Poppins', Arial, sans-serif;
  padding: 2.5rem 0 1.2rem 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 16px rgba(128, 0, 0, 0.08);
}

/* ==================================== */


/*==========================Preloader=========================== */

:root {
  --accent-1: #ff2129;
  /* saffron */
  --accent-2: #280071;
  /* white */
  --accent-3: #5085b6;
  /* green */
  --bg: #0b1220;
  /* deep navy backdrop */
  --text: #e8eef6;
  --muted: #a9b4c3;
  --ring: #2a3a57;
}

/* Preloader container */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, var(--accent-1) 0 33.33%, var(--accent-2) 33.33% 66.66%, var(--accent-3) 66.66% 100%) top/100% 6px no-repeat,
    var(--bg);
  transition: opacity .5s ease, visibility .5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Card */
.loader-card {
  width: min(96vw, 560px);
  border-radius: 20px;
  background: linear-gradient(180deg, #3c61b8 0%, #15284d 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .05);
  padding: 28px 24px 22px;
  text-align: center;
  color: var(--text);
}

/* Crest circle with subtle pulse */
.crest {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(60% 60% at 50% 45%, #3e63bb 0%, #131c31 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04), 0 8px 20px rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}


@keyframes ring {
  to {
    transform: rotate(1turn);
  }
}

/* Simple NCC placeholder mark (replace with your logo <img>) */
.crest svg {
  width: 54px;
  height: 54px;
  opacity: .9;
}

h1 {
  font: 600 20px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  margin: 6px 0 6px;
  letter-spacing: .2px;
}

.sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Progress bar */
.progress {
  height: 10px;
  border-radius: 999px;
  background: #0d1a30;
  outline: 1px solid var(--ring);
  overflow: hidden;
  position: relative;
}

.bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  transform-origin: left center;
}

/* Marching stripes sheen */
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(60deg,
      rgba(255, 255, 255, .12) 0 10px,
      transparent 10px 20px);
  mix-blend-mode: overlay;
  animation: move 1.2s linear infinite;
}

@keyframes move {
  to {
    background-position: 200% 0;
  }
}

/* Helper row */
.meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .crest::after,
  .bar::after {
    animation: none;
  }

  #preloader {
    transition: none;
  }
}

/* =========================End================================== */

/*================== Scroll to Top Button ================*/
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 34px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(90deg, #8b0000, #1a1a2e);
  /* tri-color gradient */
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 1000;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

@media screen and (min-device-width: 365px) and (max-device-width: 768px) {
  #scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 50px;
    width: 75px;
    height: 75px;
  }
}

  /* =========================End================================== */








  /* Overlay background */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .popup-overlay.show {
    visibility: visible;
    opacity: 1;
  }

  /* Popup card */
  .popup {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-family: Arial, sans-serif;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      transform: scale(0.9);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  /* Close button */
  .popup .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
  }

  .popup .close-btn:hover {
    color: #d62828;
  }

  .popup p {
    text-align: center;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto 20px auto;
  }


  .popup h3 {
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 10px;
    color: #800000;
    text-transform: uppercase;
  }

  .popup h4 {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: #000000;
  }

  .popup h5 {
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    color: #004080;
    text-transform: uppercase;
  }

  /* Benefits list */
  .popup ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px 0;
    text-align: left;
  }

  .popup ul li {
    margin: 8px 0;
    font-size: 15px;
  }

  /* Deadline */
  .deadline {
    font-weight: 700 !important;
    color: #d62828;
    font-size: 18px;
    margin-bottom: 15px;
  }

  /* CTA button */
  .popup button {
    padding: 14px 30px;
    font-size: 18px;
    background: #1a3d7c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .popup a {
    text-decoration: none;
    color: white;
  }

  .popup a:hover {
    color: #ffd700
  }

  .popup button:hover {
    background: #274f9e;
  }

  @media screen and (min-device-width: 365px) and (max-device-width: 768px) {
    .popup {
      background: #fff;
      border-radius: 16px;
      max-width: 850px;
      width: 100%;
      padding: 15px;
      height: 900px;
      position: relative;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
      text-align: center;
      font-family: Arial, sans-serif;
      animation: fadeIn 0.3s ease;
    }

    .popup h3 {
      font-size: 36px;
    }

    .popup h5 {
      font-size: 32px;
    }

    .popup p {
      font-size: 28px;

    }

    .popup h4 {
      font-size: 32px;
    }

    .popup ul li {
      font-size: 26px;
    }

    .popup button {
      padding: 21px 90px;
      font-size: 28px;
    }

    .popup .close-btn {
      position: absolute;
      top: -5px;
      right: 13px;
      font-size: 50px;

    }


  }

  .float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 95px;
    right: 29px;
    background-color: #1AA330;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 1px 1px 2px #1aa330;
    z-index: 99;
    cursor: pointer;
    /* center icon and allow ring effect to show */
    display: grid;
    place-items: center;
    overflow: visible;
    /* pseudo-element needs a containing block */
    position: fixed;
  }

  @media screen and (min-device-width: 365px) and (max-device-width: 768px) {
    .float {
      position: fixed;
      width: 100px;
      height: 100px;
      bottom: 115px;
    right: 40px;
    }
  }

  @media screen and (min-device-width: 365px) and (max-device-width: 768px) {
    .my-float {
      width: 65px;
      height: 65px;
    }
  }


  /* Soft expanding glow (pulse ring) */
  .float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(26, 163, 48, 0.55);
    animation: wa-pulse 1.8s ease-out infinite;
    pointer-events: none;
  }

  /* Icon */
  .my-float {
    width: 65px;
    height: 65px;
    margin: 0;
    will-change: transform, opacity;
    transform-origin: center;
    animation: wa-beat 1.8s ease-in-out infinite;
  }

  /* Keyframes */
  @keyframes wa-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(26, 163, 48, 0.55);
    }

    70% {
      box-shadow: 0 0 0 16px rgba(26, 163, 48, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(26, 163, 48, 0);
    }
  }

  @keyframes wa-beat {

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

    45% {
      transform: scale(1.12);
      opacity: 0.92;
    }
  }

  /* Optional: pause on hover so it’s less distracting */
  .float:hover .my-float,
  .float:focus .my-float,
  .float:hover::after,
  .float:focus::after {
    animation-play-state: paused;
  }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {

    .float::after,
    .my-float {
      animation: none;
    }
  }