:root {
  --ls-bg: #f8fafc;
  --ls-card: #ffffff;
  --ls-muted: #475569;
  --ls-primary: #2563eb;
  --ls-accent: #60a5fa;
  --ls-glow: rgba(96, 165, 250, 0.25);
  --ls-radius: 16px;
  --ls-shadow-1: 0 6px 18px rgba(15, 23, 42, 0.06);
  --ls-shadow-2: 0 20px 50px rgba(15, 23, 42, 0.08);
  --ls-border: rgba(15, 23, 42, 0.06);
  --ls-transition: 300ms cubic-bezier(0.2, 0.9, 0.2, 1);
  --ls-max-width: 1300px;
  font-synthesis: none;
}

/* Section base */
.ls-section {
  background: var(--ls-bg);
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
  color: var(--ls-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
}

/* this css for correction of p tag in main heading */
.partner-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #374151;
  font-size: 1.1rem;
  line-height: 1.7;
}
/* end */
/* decorative blobs */
.ls-decor-bg {
  position: absolute;
  inset: -10% -5% auto auto;
  width: 80%;
  height: 120%;
  pointer-events: none;
  filter: blur(40px) saturate(120%);
  opacity: 0.95;
  z-index: 0;
}
.ls-blob {
  width: 60%;
  height: auto;
  position: absolute;
  transform: translate(-8%, -10%);
  opacity: 0.85;
}
.ls-blob-2 {
  right: -10%;
  top: 10%;
  transform: translate(10%, -20%) scale(0.9);
  opacity: 0.6;
}

.ls-container {
  max-width: var(--ls-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Header */
.ls-header {
  text-align: center;
  margin-bottom: 42px;
}
.ls-title {
  display: inline-block;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  position: relative;
}
.ls-glitch {
  --gt: none;
  cursor: default;
}
.ls-underline {
  width: 84px;
  height: 6px;
  background: linear-gradient(90deg, var(--ls-accent), var(--ls-primary));
  margin: 0.85rem auto;
  border-radius: 6px;
  box-shadow: 0 6px 18px var(--ls-glow);
}
.ls-intro {
  max-width: 880px;
  margin: 0 auto;
  color: #374151;
  font-size: 15px;
  line-height: 1.6;
}

/* Grid */
.ls-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

/* CARD */
.ls-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.65)
  );
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  overflow: hidden;
  box-shadow: var(--ls-shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform var(--ls-transition), box-shadow var(--ls-transition),
    border-color var(--ls-transition);
  transform-origin: center center;
  position: relative;
  min-height: 420px;
  will-change: transform;
  cursor: pointer;
}

/* Tilt subtle perspective wrapper */
.ls-card:focus {
  outline: none;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
  transform: translateY(-8px) scale(1.01);
}

.ls-card:hover {
  transform: translateY(-14px) translateZ(0) scale(1.01);
  box-shadow: var(--ls-shadow-2);
  border-color: rgba(37, 99, 235, 0.18);
}

/* Image area */
.ls-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.06),
    rgba(96, 165, 250, 0.02)
  );
}
.ls-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 600ms;
  transform-origin: center center;
  filter: saturate(0.95) contrast(1.02);
  display: block;
}
.ls-card:hover .ls-img-wrap img {
  transform: scale(1.08) translateY(-6px);
  filter: saturate(1.05) contrast(1.06);
}

.ls-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(15, 23, 42, 0.02) 100%
  );
  pointer-events: none;
}

/* Content */
.ls-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0f172a;
  flex: 1 1 auto;
}

.ls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ls-tag {
  display: inline-block;
  background: rgba(96, 165, 250, 0.12);
  color: #0369a1;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.ls-date {
  font-size: 12px;
  color: var(--ls-muted);
}

.ls-heading {
  font-size: 1.125rem;
  color: #0f172a;
  margin: 6px 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 56px;
}

.ls-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  flex: 1 0 auto;
}

.ls-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

/* Button */
.ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.12),
    rgba(37, 99, 235, 0.06)
  );
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--ls-primary);
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.ls-btn .ls-arrow {
  transition: transform 220ms ease;
}

.ls-card:hover .ls-btn {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  color: #0b1220;
}
.ls-card:hover .ls-btn .ls-arrow {
  transform: translateX(6px);
}

/* Decorative badge in top-right of card */
.ls-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.9));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  display: none; /* optional, enable if you want it visible */
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .ls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .ls-grid {
    grid-template-columns: 1fr;
  }
  .ls-card {
    min-height: 380px;
  }
  .ls-title {
    font-size: 1.6rem;
  }
  .ls-decor-bg {
    display: none;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .ls-card,
  .ls-img-wrap img,
  .ls-btn,
  .ls-blob {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
