/* ==========================================================================
   WebKeyIndia — SEO Portfolio (.wkseo, seo-portfolio-desktop.php)  2026-09-17d: admin industries, 2 cards each
   Same brand system as css/wk-home.css / css/wk-offer.css. The variables are
   declared on .wkseo itself so nothing here depends on another section's scope.
   ========================================================================== */
.wkseo {
  --s-ink:     #0E0F12;
  --s-text:    #2A2D36;
  --s-muted:   #6B7080;
  --s-line:    #E6E9F0;
  --s-orange:  #FF7A1A;
  --s-crimson: #E11D2A;
  --s-green:   #15803D;
  --s-grad:    linear-gradient(90deg, #FF7A1A 0%, #F0471E 55%, #E11D2A 100%);
  --s-font:    "Poppins","Segoe UI",Roboto,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  position: relative; overflow: hidden;
  margin: 0; padding: 80px 0;
  font-family: var(--s-font);
  background:
    radial-gradient(640px 300px at 100% 0%, rgba(255,122,26,.08), transparent 62%),
    radial-gradient(600px 300px at 0% 100%, rgba(225,29,42,.05), transparent 62%),
    linear-gradient(180deg, #F3F5FA 0%, #F8F9FC 100%);
}
.wkseo *, .wkseo *::before, .wkseo *::after { box-sizing: border-box; }

/* the old section's wrappers in index.php: #SeoDesktop was hidden on phones and
   #SeoMobile held a separate copy. One responsive section now serves both. */
#SeoDesktop { display: block !important; }

.wkseo .wk-sec__head { max-width: 820px; margin-bottom: 30px; }
.wkseo .wk-sec__title {
  margin: 14px 0 10px !important; padding: 0 !important;
  font-family: var(--s-font) !important; font-size: 36px !important; font-weight: 700 !important;
  line-height: 1.2 !important; letter-spacing: -.3px; text-align: center; color: var(--s-ink) !important;
}
.wkseo .wk-sec__sub { color: var(--s-muted); }

.wkseo-sum {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 20px 0 0; padding: 0; list-style: none;
}
.wkseo-sum li {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--s-line); color: var(--s-muted); font-size: 13.5px;
  box-shadow: 0 8px 20px -16px rgba(14,15,18,.4);
}
.wkseo-sum b {
  font-size: 17px; font-weight: 800; letter-spacing: -.3px;
  background: var(--s-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #E8590C;
}


/* ---------- Google "G" (inline SVG) ---------- */
.wkseo-g { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; }
.wkseo-sum--g .wkseo-g { margin: 0 -1px 0 1px; }
.wkseo-gword { font-weight: 600; color: var(--s-text); }

/* ---------- industry filters ---------- */
.wkseo-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 0 0 28px; padding: 0;
}
.wkseo-filter {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; margin: 0; padding: 0 8px 0 7px;
  border: 1.5px solid var(--s-line); border-radius: 999px; background: #fff; cursor: pointer;
  font-family: var(--s-font); font-size: 14px; font-weight: 600; color: var(--s-text); white-space: nowrap;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wkseo-filter__ic {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: #F2F4F8; color: #6B7080; font-size: 15px;
}
.wkseo-filter__ic { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #E6E9F0; }
.wkseo-filter__ic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.wkseo-filter__n {
  min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px;
  background: #F2F4F8; color: var(--s-muted); font-size: 12px; font-weight: 700;
}
@media (hover: hover) { .wkseo-filter:hover { border-color: rgba(255,122,26,.55); transform: translateY(-2px); } }
.wkseo-filter[aria-selected="true"] {
  border-color: transparent; color: #fff; background: var(--s-grad);
  box-shadow: 0 14px 28px -14px rgba(225,29,42,.7);
}
.wkseo-filter[aria-selected="true"] .wkseo-filter__ic { background: rgba(255,255,255,.95); color: #E8590C; }
.wkseo-filter[aria-selected="true"] .wkseo-filter__n { background: rgba(255,255,255,.22); color: #fff; }
.wkseo-filter:focus-visible { outline: 3px solid rgba(255,122,26,.55); outline-offset: 3px; }

.wkseo-panel[hidden] { display: none; }
.wkseo-panel.is-in { animation: wkseoIn .38s ease both; }

/* ---------- two client cards (Admin → SEO Portfolio, lowest sort order first) ---------- */
.wkseo-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch;
  max-width: 1120px; margin: 0 auto;
}
.wkseo-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 560px; }

.wkseo-card {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 22px; background: #fff; border: 1px solid var(--s-line); overflow: hidden;
  box-shadow: 0 1px 2px rgba(14,15,18,.04), 0 26px 54px -36px rgba(14,15,18,.4);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
@media (hover: hover) { .wkseo-card:hover { border-color: rgba(255,122,26,.35); box-shadow: 0 32px 64px -36px rgba(225,29,42,.38); transform: translateY(-3px); } }

.wkseo-card__head {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #FFF7F1 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--s-line);
}
.wkseo-card__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--s-grad); }

.wkseo-logo {
  grid-column: 1; grid-row: 1;
  position: relative; width: 120px; height: 64px; flex: none; display: grid; place-items: center;
  padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--s-line);
}
.wkseo-logo img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; display: block; }
.wkseo-logo em { display: none; }
.wkseo-logo.is-fallback { background: var(--s-grad); border-color: transparent; }
.wkseo-logo.is-fallback em { display: block; font-style: normal; font-size: 20px; font-weight: 800; letter-spacing: .5px; color: #fff; }

.wkseo-card__id { grid-column: 2; grid-row: 1; min-width: 0; }
.wkseo-ind {
  display: inline-block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: #D9480F;
}
.wkseo .wkseo-card__id h3 {
  margin: 0 !important; padding: 0 !important;
  font-family: var(--s-font) !important; font-size: 18px !important; font-weight: 700 !important;
  line-height: 1.3 !important; color: var(--s-ink) !important; text-align: left;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere;
}
.wkseo-domain, .wkseo-promoted { display: block; margin-top: 3px; font-size: 12.5px; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkseo a.wkseo-domain { color: var(--s-muted); text-decoration: none; }
.wkseo a.wkseo-domain:hover { color: #D9480F; }
.wkseo-domain i { color: #A3A8B5; margin-right: 3px; }
.wkseo-promoted { font-size: 11.5px; letter-spacing: .3px; color: #9AA0AE; }

.wkseo-badge {
  grid-column: 3; grid-row: 1; justify-self: end;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 14px;
  background: #fff; border: 1px solid #DDEFE3; color: var(--s-green); line-height: 1.1;
  box-shadow: 0 8px 18px -14px rgba(21,128,61,.6);
}
.wkseo-badge .wkseo-g { width: 22px; height: 22px; }
.wkseo-badge b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.wkseo-badge small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: #3F7F55; }

/* keyword rows: keyword · ranking · Google · copy on one line */
.wkseo-kws { margin: 0; padding: 8px 14px; list-style: none; }
.wkseo-kw {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px;
  min-height: 50px; padding: 6px 6px 6px 8px; border-radius: 10px;
}
.wkseo-kw + .wkseo-kw { border-top: 1px dashed #EDF0F5; }
@media (hover: hover) { .wkseo-kw:hover { background: #FAFBFD; } }
.wkseo-kw.is-extra { display: none; }
.wkseo-card.is-open .wkseo-kw.is-extra { display: grid; animation: wkseoIn .3s ease both; }
@keyframes wkseoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wkseo-kw__t { font-size: 14.5px; line-height: 1.4; color: var(--s-text); overflow-wrap: anywhere; }
.wkseo-kw__rank {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: #EAF7EF; color: var(--s-green); font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.wkseo-kw__rank i { font-size: 10px; }
.wkseo-kw__g, .wkseo-kw__copy {
  width: 36px; height: 36px; display: grid; place-items: center; margin: 0; padding: 0;
  border: 1px solid var(--s-line); border-radius: 10px; background: #fff; color: #6B7080;
  font-size: 14px; cursor: pointer; text-decoration: none !important;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wkseo-kw__g .wkseo-g { width: 18px; height: 18px; }
.wkseo-kw__g:hover { border-color: #C9D7F5; box-shadow: 0 8px 16px -10px rgba(66,133,244,.7); transform: translateY(-1px); }
.wkseo-kw__copy:hover { color: #D9480F; border-color: rgba(255,122,26,.5); }
.wkseo-kw__copy.is-done { color: #fff; background: var(--s-green); border-color: transparent; }
.wkseo-kw__g:focus-visible, .wkseo-kw__copy:focus-visible { outline: 3px solid rgba(255,122,26,.5); outline-offset: 2px; }

.wkseo-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding: 14px 22px 18px; border-top: 1px solid var(--s-line);
}
.wkseo-more {
  display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 2px; border: 0; background: none;
  font-family: var(--s-font); font-size: 13.5px; font-weight: 600; color: #D9480F; cursor: pointer;
}
.wkseo-more i { transition: transform .25s ease; }
.wkseo-card.is-open .wkseo-more i { transform: rotate(180deg); }
.wkseo-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--s-ink); color: #fff !important; font-size: 13.5px; font-weight: 600; text-decoration: none !important;
  white-space: nowrap; transition: background .2s ease, transform .2s ease;
}
.wkseo-cta:hover { background: #D9480F; transform: translateY(-1px); }
.wkseo-cta i { transition: transform .2s ease; }
.wkseo-cta:hover i { transform: translateX(3px); }

.wkseo-foot { margin-top: 34px; text-align: center; }
.wkseo-rest { margin: 20px 0 0 !important; text-align: center; font-size: 14px; color: var(--s-muted); }
.wkseo-rest .wkseo-g { margin: 0 2px; }
.wkseo-all {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: 999px;
  border: 0; background: var(--s-grad); color: #fff !important;
  font-size: 15px; font-weight: 600; text-decoration: none !important;
  box-shadow: 0 16px 32px -14px rgba(225,29,42,.6);
  transition: transform .2s, box-shadow .2s;
}
.wkseo-all:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(225,29,42,.65); }
.wkseo-all i { transition: transform .2s ease; }
.wkseo-all:hover i { transform: translateX(4px); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  /* narrower cards: keyword over its ranking, buttons beside */
  .wkseo-card__head { grid-template-columns: auto minmax(0, 1fr); gap: 14px 12px; padding: 20px 18px 16px; }
  .wkseo-badge { grid-column: 2; }
  .wkseo-card__id { grid-column: 1 / -1; grid-row: 2; }
  .wkseo-kws { padding: 6px 12px; }
  .wkseo-kw { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 8px; min-height: 0; padding: 8px 4px 8px 6px; }
  .wkseo-kw__t { grid-column: 1; grid-row: 1; font-size: 14px; }
  .wkseo-kw__rank { grid-column: 1; grid-row: 2; justify-self: start; padding: 3px 9px; }
  .wkseo-kw__g { grid-column: 2; grid-row: 1 / span 2; }
  .wkseo-kw__copy { grid-column: 3; grid-row: 1 / span 2; }
  .wkseo-card__foot { padding: 12px 18px 16px; }
}
@media (max-width: 991px) {
  .wkseo { padding: 60px 0; }
  .wkseo .wk-sec__title { font-size: 30px !important; }
  .wkseo-grid { gap: 18px; }
  .wkseo-card:not(.is-open) .wkseo-kw:nth-child(n+4) { display: none; }
  .wkseo-filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 0 -20px 22px; padding: 4px 20px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .wkseo-filters::-webkit-scrollbar { display: none; }
  .wkseo-filter { flex: none; scroll-snap-align: center; }
}
@media (max-width: 767px) {
  .wkseo-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 16px; }
}
@media (max-width: 575px) {
  .wkseo { padding: 46px 0; }
  .wkseo .wk-sec__title { font-size: 25px !important; }
  .wkseo .wk-sec__head { margin-bottom: 22px; }
  .wkseo-sum { gap: 6px; margin-top: 14px; }
  .wkseo-sum li { padding: 6px 11px; font-size: 12px; }
  .wkseo-sum b { font-size: 15px; }
  .wkseo-card { border-radius: 18px; }
  .wkseo-card__head { gap: 12px 10px; padding: 16px 14px 12px; }
  .wkseo-logo { width: 92px; height: 50px; padding: 6px 8px; }
  .wkseo-logo img { max-height: 38px; }
  .wkseo-badge { padding: 5px 9px 5px 7px; }
  .wkseo-badge b { font-size: 20px; }
  .wkseo-badge .wkseo-g { width: 18px; height: 18px; }
  .wkseo .wkseo-card__id h3 { font-size: 16px !important; }
  .wkseo-promoted { display: none; }
  .wkseo-kws { padding: 4px 8px; }
  .wkseo-kw__copy { display: none; }
  .wkseo-kw__t { font-size: 13.5px; }
  .wkseo-card__foot { gap: 6px; padding: 8px 14px 14px; }
  .wkseo-cta { width: 100%; justify-content: center; }
  .wkseo-more { width: 100%; justify-content: center; padding: 4px; }
  .wkseo-foot { margin-top: 24px; }
  .wkseo-rest { font-size: 13px; margin-top: 14px !important; }
  .wkseo-filters { margin: 0 -16px 18px; padding: 4px 16px 10px; }
  .wkseo-filter { height: 42px; font-size: 13px; }
  .wkseo-filter__ic { width: 28px; height: 28px; }
  .wkseo-all { height: 48px; padding: 0 24px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .wkseo-panel.is-in, .wkseo-card.is-open .wkseo-kw.is-extra { animation: none; }
  .wkseo-filter { transition: none; }
  .wkseo-card, .wkseo-more i, .wkseo-cta, .wkseo-cta i, .wkseo-all, .wkseo-all i { transition: none; }
}
