/* =========================
   Front Page Style
   ========================= */

:root {
  --isg-bg: #ffffff;
  --isg-bg-2: #f7f9fc;
  --isg-card: #ffffff;
  --isg-text: #0f1529;
  --isg-sub: #566073;
  --isg-accent: #479ff7;
  --isg-accent-2: #1a75ef;
  --ink: #334155;
  --muted: #64748b;
  --bg: #f8fbff;
  --card: #f8fafc;
  --edge: #e2e8f0;
  --line: #e9edf6;
  --isg-border: rgba(15, 21, 41, .08);
  --isg-shadow-soft: 0 10px 30px rgba(15, 21, 41, .08);
  --isg-shadow-strong: 0 20px 50px rgba(15, 21, 41, .12);
}

html,
body {
  margin: 0;
  padding: 0
}

body.isg-body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--isg-text);
  background:
    radial-gradient(900px 380px at -10% 0, rgba(70, 83, 207, .06), transparent 60%),
    radial-gradient(900px 380px at 110% -10%, rgba(47, 125, 255, .05), transparent 60%),
    var(--isg-bg);
}

/* ---------- HERO (split) ---------- */
.isg-hero {
  position: relative;
  padding: 64px 0;
}

.isg-hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center
}

.isg-badge {
  display: inline-block;
  padding: 0px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(70 83 207 / 5%), rgba(47, 125, 255, .12));
  color: #1975ef;
  font-weight: 500;
  border: 1px solid rgb(108 125 184 / 8%);
  font-size: 12px;
  margin-bottom: 16px;
}

.isg-hero-title {
  font-size: 3rem;
  line-height: 1.06;
  margin: 0
}

.isg-hero-sub {
  color: var(--isg-sub);
  margin: 12px 0 22px
}

.isg-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.isg-hero-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #6b7390;
  display: grid;
  gap: 6px
}

.isg-hero-bullets li::before {
  content: "✓";
  color: #16a34a;
  margin-right: 8px
}

.isg-hero-video {
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e7eaf6;
  box-shadow: 0 10px 10px rgb(150 160 193 / 5%);
  filter: saturate(1.03) contrast(1.02) brightness(1.02);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* ---------- Cards polish for other sections ---------- */
.search-container,
.isg-step,
.isg-blog-item,
.isg-feature-media video {
  border-radius: 16px;
  border: 1px solid var(--isg-border);
  box-shadow: var(--isg-shadow-soft)
}

.isg-step:hover,
.isg-blog-item:hover {
  transform: translateY(-3px);
  transition: transform .16s ease
}

.isg-feature.alt {
  background: white;
  border-top: 1px solid var(--isg-border);
  border-bottom: 1px solid var(--isg-border)
}

/* Inputs polish */
.search-text {
  border: 1px solid #e3e8f2;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s
}

.search-text:focus {
  border-color: #c8cff6;
  box-shadow: 0 0 0 4px rgba(47, 125, 255, .16)
}

.search-container.isg-focus {
  box-shadow: 0 10px 28px rgba(47, 125, 255, .16)
}

.search-wrapper .isg-sec-title {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .isg-hero-inner {
    grid-template-columns: 1fr
  }
}

/* Utilities */
.isg-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px
}

.isg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  padding: 16px 24px;
  border: 1px solid var(--isg-border);
  transition: all .2s ease;
  box-shadow: 0 1px 0 rgba(15, 21, 41, .02);
}

.isg-btn:hover {
  transform: translateY(-1px)
}

.isg-btn-primary {
  background: var(--isg-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(70, 83, 207, .20);
  letter-spacing: normal;
}

.isg-btn-ghost {
  background: #fff;
  color: var(--isg-text)
}

.isg-btn-secondary {
  background: #eef2ff;
  color: #1b2346;
  border-color: #dfe5ff
}

.isg-sec-title {
  font-size: 2rem;
  margin: 0 0 18px;
  text-wrap-style: balance;
}

/* Header */
.isg-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--isg-border)
}

.isg-site-header .isg-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.isg-logo {
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  color: var(--isg-text)
}

.isg-hero-media {
  position: relative;
  overflow: hidden;
  max-height: 70vh;
  border-bottom: 1px solid var(--isg-border)
}

.isg-hero-content {
  position: relative;
  margin-top: -120px
}

.isg-hero-title {
  font-size: 3rem;
  margin: 0
}

.isg-hero-sub {
  color: var(--isg-sub);
  margin: 10px 0 22px
}

/* Add-on */
.isg-addon {
  padding: 56px 0;
  background: var(--isg-bg)
}

.isg-addon-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap
}

.isg-addon-img {
  max-width: 520px;
  width: 100%;
}

.isg-addon-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 280px
}

.isg-docs-icon {
  height: 40px;
  width: auto
}

/* ===== Widget ===== */
.search-container__credentials .author,
.search-container__credentials .copyright {
  color: #ffffffc9;
}

/* put this anywhere (even before the other rule) */
.isg-body .search-container {
  background-image: url('/wp-content/themes/imagesuggest/assets/img/dashboard_bg.jpg');
}

/* ===== Google Docs Add-On (pro layout) ===== */
.isg-addon--pro {
  padding: 72px 0;
  background: var(--isg-bg-2);
  border-top: 1px solid var(--isg-border);
  border-bottom: 1px solid var(--isg-border)
}

.isg-addon-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center
}

/* Left shot card */

.isg-addon-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px
}

/* Right copy */
.isg-addon-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px
}

.isg-docs-icon-lg {
  width: 64px;
  height: auto
}

.isg-subcopy {
  color: var(--isg-sub);
  margin: 8px 0 16px;
  max-width: 46ch
}

.isg-checklist {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: #49526a
}

.isg-checklist li {
  position: relative;
  padding-left: 26px
}

.isg-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 700
}

/* CTA link with arrow */
.isg-linkarrow {
  font-weight: 700;
  color: var(--isg-accent-2);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center
}

.isg-linkarrow span {
  transition: transform .16s ease
}

.isg-linkarrow:hover span {
  transform: translateX(3px)
}

@media (max-width: 1024px) {
  .isg-addon-grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .isg-docs-badge {
    left: 18px;
    bottom: -16px;
    width: 112px
  }
}

/* Widget */
.isg-widget {
  padding: 70px 0;
}

.search-container {
  position: relative;
  border: 1px solid var(--isg-border);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--isg-shadow-soft)
}

.search-containertitle {
  font-weight: 700;
  margin-bottom: 12px
}

.search-containertext {
  display: grid;
  gap: 12px;
  width: 50%;
}

.search-text {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e3e8f2;
  background: #fff;
  color: var(--isg-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease
}

.search-text:focus {
  border-color: #c8cff6;
  box-shadow: 0 0 0 4px rgba(70, 83, 207, .15)
}

.search-text.keywords {
  min-height: auto
}

.text-submit {
  cursor: pointer
}

.search-container__credentials {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 10px;
  color: #6b7390;
  font-size: .85rem
}

/* Steps */
.isg-steps {
  padding: 70px 0;
  background: var(--isg-bg)
}

.isg-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.isg-steps .isg-sec-title {
  text-align: center;
}

.isg-step {
  display: flex;
  text-align: center;
  gap: 8px;
  padding: 2rem;
  border: 1px solid var(--border, #e7e7e7);
  border-radius: 16px;
  background: #fff;
  flex-direction: column;
  align-items: center;
}

.isg-step h3 {
  font-size: 1.2em;
}

.isg-step p {
  color: var(--muted);
  text-wrap: balance;
  margin-bottom: 0;
}

.isg-step-ic {
  width: 44px;
  height: 44px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: rgba(71, 159, 247, .08);
  color: var(--ai-1);
  font-size: 20px;
  border: 1px solid rgba(71, 159, 247, .25);
  margin-bottom: 10px;
}

/* Feature */
.isg-feature {
  padding: 70px 0;
  background: var(--isg-bg)
}

.isg-feature.alt {
  background: var(--isg-bg-2);
  border-top: 1px solid var(--isg-border);
  border-bottom: 1px solid var(--isg-border)
}

.isg-feature-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center
}

.isg-feature-media video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--isg-border);
  box-shadow: var(--isg-shadow-soft);
  background: #fff
}

.isg-feature-copy h2 {
  margin: 0 0 10px
}

.isg-feature-copy p {
  color: var(--isg-sub)
}

/* Blog */
.isg-blog {
  padding: 70px 0;
  background: var(--isg-bg)
}

.isg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.isg-blog-item {
  background: #fff;
  border: 1px solid var(--isg-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--isg-shadow-soft)
}

.isg-blog-thumb img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto
}

.isg-blog-title {
  font-size: 1.2rem;
  margin: 12px 0 0;
  line-height: normal;
}

.isg-blog-meta {
  font-size: 12px;
  color: var(--isg-sub);
}

.wp-post-image {
  box-shadow: 0 3px 12px -1px rgb(220 225 255 / 7%), 0 22px 27px -20px rgb(7 10 25 / 15%);
}

.isg-blog-actions {
  margin-top: 1rem;
}

.isg-blog-more {
  text-align: center;
  margin-top: 24px
}

/* =========================
   Similar articles
   ========================= */
.is-similar {
  max-width: 1040px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
}

.is-similar h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.is-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.is-sim-card {
  background: #fff;
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(2, 6, 23, .05);
}

.is-sim-card img {
  width: 100%;
  display: block;
}

.is-sim-card__body {
  padding: 1rem;
}

.is-sim-card__badge {
  font-size: .9rem;
  background: #eaf3fe;
  color: var(--isg-accent);
  padding: .2rem .6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: .5rem;
}

.is-sim-card__badge a {
  color: var(--isg-accent);
  text-decoration: none;
}

.is-sim-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8rem;
  margin: .25rem 0;
}

.is-sim-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.is-sim-card__title a:hover {
  color: var(--isg-accent-2);
}

.is-sim-card__meta {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 0 !important;
}

/* Focus styles (from JS) */
.search-container.isg-focus {
  box-shadow: 0 10px 28px rgba(47, 125, 255, .16)
}

/* Reveal animation hook */
.isg-in {
  animation: isgFade .5s ease forwards
}

@keyframes isgFade {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* Responsive */
@media (max-width: 900px) {
  .isg-hero-content {
    margin-top: -70px
  }

  .isg-hero-actions .isg-btn {
    width: 100%;
  }

  .isg-feature-wrap {
    grid-template-columns: 1fr
  }

  .isg-blog-grid,
  .isg-steps-grid {
    grid-template-columns: 1fr
  }

  .isg-steps {
    padding: 40px 0 40px;
  }

  .isg-feature {
    padding: 20px 0 60px;
  }

  .isg-sec-title {
    text-align: left;
    margin: 0 0 18px;
    line-height: normal;
  }

  .search-containertext {
    width: 100%;
  }

  .isg-cta .isg-btn{
    width: 100%;
  }
}