
.newsletter-status{
    margin-top:10px;
    font-size:13px;
    color:#fff;
}

.newsletter-form{
    position:relative;
}

.newsletter-status{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    width:100%;
}


/* ==========================================================
   SHARE MARKET GYAN — HOME ARTICLE SECTIONS
   Dynamic Editor's Pick + Latest Articles
   ========================================================== */

.smg-editor-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(20, 184, 166, 0.08), transparent 28%),
    #f8fafc;
}

.smg-pick-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.smg-carousel-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
}

.smg-carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.smg-pick-card {
  position: relative;
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smg-pick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
}

.smg-pick-image,
.smg-latest-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.smg-pick-image {
  aspect-ratio: 16 / 9;
}

.smg-pick-image img,
.smg-latest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.smg-pick-card:hover .smg-pick-image img,
.smg-latest-card:hover .smg-latest-image img {
  transform: scale(1.045);
}

.smg-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 55%);
  pointer-events: none;
}

.smg-image-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.smg-pick-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.94);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smg-pick-content {
  padding: 23px 24px 25px;
}

.smg-home-category {
  display: inline-block;
  margin-bottom: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smg-pick-title,
.smg-latest-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--heading);
  line-height: 1.35;
}

.smg-pick-title {
  font-size: 20px;
}

.smg-pick-title a,
.smg-latest-title a {
  transition: color 0.25s ease;
}

.smg-pick-title a:hover,
.smg-latest-title a:hover {
  color: var(--primary);
}

.smg-pick-description {
  display: -webkit-box;
  margin: 12px 0 17px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.smg-home-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.smg-home-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.smg-home-meta i {
  color: var(--primary);
}

.smg-carousel-arrow {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
  z-index: 2;
}

.smg-carousel-arrow:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.smg-carousel-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.smg-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
}

.smg-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.smg-carousel-dot.is-active {
  width: 25px;
  border-radius: 999px;
  background: var(--primary);
}

.smg-latest-section {
  background: #fff;
}

.smg-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.smg-latest-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.055);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.smg-latest-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 76, 129, 0.18);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.smg-latest-image {
  aspect-ratio: 16 / 9;
}

.smg-latest-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 23px 23px;
}

.smg-latest-title {
  font-size: 20px;
}

.smg-latest-description {
  display: -webkit-box;
  margin: 11px 0 17px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.smg-latest-content .smg-home-meta {
  margin-top: auto;
  padding-top: 4px;
}

.smg-latest-footer {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.smg-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.smg-view-all:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.smg-home-loading {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.smg-home-empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  color: var(--text);
}

@media (max-width: 1100px) {
  .smg-pick-card {
    flex-basis: calc((100% - 22px) / 2);
  }

  .smg-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .smg-pick-carousel {
    gap: 8px;
  }

  .smg-carousel-viewport {
    border-radius: 20px;
  }

  .smg-carousel-track {
    gap: 0;
  }

  .smg-pick-card {
    flex-basis: 100%;
    border-radius: 20px;
  }

  .smg-carousel-arrow {
    position: absolute;
    top: 32%;
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    z-index: 3;
  }

  .smg-carousel-prev {
    left: 10px;
  }

  .smg-carousel-next {
    right: 10px;
  }

  .smg-pick-content {
    padding: 20px;
  }

  .smg-pick-title {
    font-size: 19px;
  }

  .smg-pick-description {
    -webkit-line-clamp: 4;
  }

  .smg-latest-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .smg-latest-title {
    font-size: 19px;
  }

  .smg-latest-description {
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 480px) {
  .smg-pick-image {
    aspect-ratio: 4 / 3;
  }

  .smg-pick-content {
    padding: 18px;
  }

  .smg-pick-description {
    font-size: 13px;
  }

  .smg-home-meta {
    flex-wrap: wrap;
  }

  .smg-latest-image {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smg-carousel-track,
  .smg-pick-card,
  .smg-latest-card,
  .smg-pick-image img,
  .smg-latest-image img {
    transition: none;
  }
}

