.packages-section { padding: 60px 0 200px; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.pkg-card {
  background: linear-gradient(180deg, rgb(38 240 129 / 4%), rgb(136 220 174 / 2%));
  border-radius: 10px;
  padding: 70px 30px;
  box-shadow: 0 10px 24px rgba(5,30,10,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  margin-bottom:30px;
}

.pkg-card.featured {
  background: url('../uploads/images/leaf-bg.webp') center/cover no-repeat;
  color: #ffffff;
  min-height: 610px;
}
.pkg-card.featured .price,
.pkg-card.featured .plan-title,
.pkg-card.featured .features li,
.pkg-card.featured .cta {
  color: #fff;
}

.price {
  font-size: 40px;
  font-weight: 800;
  color: #007a38;
  margin-bottom: 8px;
}

.pkg-card.featured .price { color: #ffffff; }

.plan-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
  margin-top: 40px;
  color: #0b2b1a;
}
.pkg-card.featured .plan-title { color: #ffffff; }

.features-heading {
  font-weight: 700;
  margin: 18px 0 8px;
  position: relative;
}
.features-heading::after {
  content: "";
  height: 2px;
  width: 90%;
  background: rgba(0,0,0,0.15);
  display: block;
  margin-top: 12px;
}
.pkg-card.featured .features-heading::after { background: rgba(255,255,255,0.18); }


.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: #233;
  font-size: 14px;
  line-height: 1.6;
}
.pkg-card.featured .features li { color: rgba(255,255,255,0.95); }

.feature-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
}
.icon-yes { color: #00a64f; }
.icon-no { color: #222; }

.cta {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 26px;
  border-radius: 10px;
  background: #008F4A;
  color: #fff;
  font-weight: 700;
  text-align:center;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.pkg-card.featured .cta {
  background: rgba(255,255,255,0.95);
  color: #008F4A;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.price .currency { font-size: 22px; margin-right: 6px; vertical-align: middle; }

@media (max-width: 992px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-card { min-height: 520px; }
    .section_padding{
        padding: 10px 0px;
    }
    .packages-section {
        padding: 10px 0 90px;
    }
}
@media (max-width: 640px) {
    .packages-grid { grid-template-columns: 1fr; padding: 0 5px; }
    .pkg-card { min-height: auto; padding: 40px 26px; }
    .section_padding{
        padding: 10px 0px;
    }
    .packages-section {
        padding: 10px 0 90px;
    }
}


/* ===== Packages: pop-out + entrance animations (paste at end of package.css) ===== */

/* Animation keyframes */
@keyframes pkg-rise {
  0%   { opacity: 0; transform: translateY(22px) scale(0.995); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.002); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Staggered fade/slide-in for each card */
.packages-grid .pkg-card {
  opacity: 0;                     /* start hidden for animation */
  transform-origin: center top;
  /* apply animation with forwards so final state stays */
  animation: pkg-rise 620ms cubic-bezier(.2,.9,.3,1) forwards;
}

/* Stagger delays (adjust number of nth-child rules if you have more cards) */
.packages-grid .pkg-card:nth-child(1) { animation-delay: 0s; }
.packages-grid .pkg-card:nth-child(2) { animation-delay: 0.08s; }
.packages-grid .pkg-card:nth-child(3) { animation-delay: 0.16s; }
.packages-grid .pkg-card:nth-child(4) { animation-delay: 0.24s; }
.packages-grid .pkg-card:nth-child(5) { animation-delay: 0.32s; }
.packages-grid .pkg-card:nth-child(6) { animation-delay: 0.40s; }

/* Hover micro-interaction for all cards */
.packages-grid .pkg-card {
  transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s ease, z-index .01s;
  will-change: transform, box-shadow;
}
.packages-grid .pkg-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(3,60,28,0.18);
  z-index: 3;
}

/* Featured (pop-out) card visual treatment */
.pkg-card.featured {
  /* slightly lift and scale it so it visually "pops out" */
  transform-origin: center top;
  z-index: 2; /* above normal cards */
  box-shadow: 0 30px 60px rgba(3,60,28,0.25);
  /* Make it a bit bigger on load (we keep animation but also pre-scale a touch) */
  /* NOTE: animation will override transform during entrance; after animation it will settle */
}
@media (min-width: 992px) {
  /* larger pop-out on wide screens */
  .pkg-card.featured {
    transform: translateY(-10px) scale(1.04);
  }
  /* make sure neighboring cards don't hide under featured */
  .packages-grid { align-items: start; }
}

/* If you want the featured to overlap the grid a little, reduce its top margin */
.pkg-card.featured::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18%;
  pointer-events: none;
  /* optional gentle gradient overlay to increase contrast at top */
  background: linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));
}

/* Keep CTA and on-card text crisp when featured scaled */
.pkg-card.featured .cta,
.pkg-card.featured .plan-title,
.pkg-card.featured .price {
  backface-visibility: hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .packages-grid .pkg-card,
  .packages-grid .pkg-card:hover,
  .pkg-card.featured {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Small responsive tweak so featured pop-out doesn't overflow too much on tablet */
@media (max-width: 992px) {
  .pkg-card.featured { transform: none; box-shadow: 0 14px 28px rgba(3,60,28,0.14); }
}
