.packages {
  padding: 96px 0;
  background: #eef3ff;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.package-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 18, 32, 0.12);
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.1);
  border-radius: 12px;
  padding: 26px 26px 22px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.7, 0.3, 1), border-color 180ms ease;
}

.package-card:hover {
  border-color: rgba(0, 68, 255, 0.22);
  box-shadow: 0 18px 44px rgba(11, 18, 32, 0.14);
}

.package-card:hover {
  border-color: rgba(0, 68, 255, 0.22);
  box-shadow: 0 18px 44px rgba(11, 18, 32, 0.14);
}

.package-card--featured {
  border-color: rgba(0, 68, 255, 0.28);
  box-shadow: 0 22px 56px rgba(11, 18, 32, 0.16);
}

.package-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 68, 255, 0.25);
  background: rgba(0, 68, 255, 0.06);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.1);
}

.pkg-ico {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.package-card:hover .package-icon {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.14);
}

.package-title {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.package-subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.72);
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
  min-height: 210px;
}

.package-list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: rgba(11, 18, 32, 0.78);
}

.package-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 68, 255, 0.1);
  border: 1px solid rgba(0, 68, 255, 0.22);
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.package-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}
.package-price {
  margin: 0;
  font-weight: 800;
  color: rgba(11, 18, 32, 0.92);
  font-size: 18px;
}

.package-cta {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.package-card .btn:not(.package-cta) {
  padding: 10px 18px;
  font-size: 14px;
}

.package-cta.btn {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.addons {
  background: #eef3ff;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
  padding: 72px 0;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 24px;
}

.addon-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  padding: 26px 26px 24px;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.7, 0.3, 1), border-color 180ms ease;
}

.addon-card:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 28px 60px rgba(11, 18, 32, 0.12);
}

.addon-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 68, 255, 0.25);
  background: rgba(0, 68, 255, 0.06);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.1);
  margin-bottom: 14px;
}

.addon-ico {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.addon-title {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.addon-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(11, 18, 32, 0.72);
}

.addon-points {
  margin: 0;
  padding-left: 18px;
  color: rgba(11, 18, 32, 0.78);
}

.addon-points li {
  margin: 8px 0;
}

.addons-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.templates {
  padding: 72px 0;
  background: #eef3ff;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
}

.template-meta {
  margin: 14px 0 22px;
  font-size: 14px;
  color: rgba(11, 18, 32, 0.72);
}

.template-meta strong {
  color: rgba(11, 18, 32, 0.92);
}

.meta-sep {
  padding: 0 10px;
  color: rgba(11, 18, 32, 0.35);
}

.templates-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}



/* ===== SERVICES-ONLY CAROUSEL (NO COLLISIONS) ===== */

.svc-templates {
  padding: 72px 0;
  background: #eef3ff;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
}

.svc-carousel {
  margin-top: 26px;
}

.svc-carousel-viewport {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(120, 160, 255, 0.5),
    0 0 22px 8px rgba(120, 160, 255, 0.35);
}

.svc-carousel-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform;
}

.svc-slide {
  min-width: 100%;
  padding: 34px;
}

.svc-slide-grid {
  display: grid;
  /* 'minmax' ensures the text column NEVER gets smaller than 320px */
  /* '1fr' lets the image column take up all the remaining "big" space */
  grid-template-columns: minmax(320px, 0.8fr) 1.2fr; 
  gap: 0; 
  align-items: stretch;
  background: #fff; /* Solid white looks cleaner when edges touch */
  overflow: hidden;
}

.svc-slide-copy {
  padding: 40px; /* Adjust this to give text internal breathing room */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-slide-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.svc-slide-text {
  margin: 0 0 16px;
  color: rgba(11, 18, 32, 0.72);
  font-size: 18px;
  line-height: 1.65;
  max-width: 55ch;
}

.svc-slide-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.svc-slide-tags li {
  font-size: 14px;
  color: rgba(11, 18, 32, 0.72);
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(246, 247, 251, 0.75);
  padding: 8px 12px;
  border-radius: 999px;
}

.svc-slide-meta {
  margin: 14px 0 22px;
  font-size: 14px;
  color: rgba(11, 18, 32, 0.72);
}

.svc-slide-meta strong {
  color: rgba(11, 18, 32, 0.92);
}

.svc-meta-sep {
  padding: 0 10px;
  color: rgba(11, 18, 32, 0.35);
}

.svc-slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.svc-slide-media {
  padding: 0;
  margin: 0;
  display: flex;
}

.svc-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps it full with no white gaps */
  object-position: top;
}

/* Controls */
.svc-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.svc-nav {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 18, 32, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(11, 18, 32, 0.75);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.svc-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.svc-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.22);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.svc-dot.is-active {
  background: rgba(0, 68, 255, 0.95);
  border-color: rgba(0, 68, 255, 0.95);
}




.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.template-card {
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid rgba(11, 18, 32, 0.05);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 20px;
  margin: 0 0 10px;
}

.card-text {
  font-size: 15px;
  color: rgba(11, 18, 32, 0.7);
  line-height: 1.5;
  margin-bottom: 15px;
}

.card-tags {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card-tags li {
  font-size: 12px;
  background: #f0f4ff;
  color: #0044ff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

.card-price {
  margin-top: auto;
  font-size: 15px;
  padding-bottom: 15px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions .btn {
  padding: 10px 5px;
  font-size: 13px;
  text-align: center;
}

/* Mobile Fix */
@media (max-width: 992px) {
  .template-grid {
    grid-template-columns: 1fr; /* Stacks cards on smaller screens */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}




/* Mobile */
@media (max-width: 980px) {
  .svc-slide { padding: 18px; }
  .svc-slide-grid { grid-template-columns: 1fr; }
  .svc-slide-title { font-size: 28px; }
  .svc-slide-media { padding: 16px; }
  .svc-slide-media img { max-height: 320px; }
}


/*do not crop images */
.templates-carousel .slide-media img {
  height: auto !important;
  object-fit: contain !important;
}



/*! MOBILE */
@media (max-width: 980px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .package-card {
    min-height: unset;
  }
}
