/*
Theme Name: Spartans Blog
Theme URI: /blog/
Author: Spartans Technolabs
Description: Premium dark WordPress blog theme for Spartans Technolabs SEO content hub.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: spartans-blog
*/

:root {
  --st-bg: #05060b;
  --st-bg-soft: #090a13;
  --st-panel: #11121d;
  --st-panel-soft: #171827;
  --st-line: rgba(255, 255, 255, 0.12);
  --st-line-strong: rgba(255, 255, 255, 0.18);
  --st-text: #f7f7fb;
  --st-muted: #b8bdcb;
  --st-muted-2: #858b9d;
  --st-pink: #f05b91;
  --st-orange: #ff6b3d;
  --st-blue: #5f7cff;
  --st-cyan: #50d5ff;
  --st-radius: 18px;
  --st-radius-lg: 26px;
  --st-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(240, 91, 145, 0.12), transparent 32rem),
    radial-gradient(circle at top right, rgba(95, 124, 255, 0.1), transparent 34rem),
    var(--st-bg);
  color: var(--st-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.st-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.st-blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--st-line);
  background: rgba(5, 6, 11, 0.88);
  backdrop-filter: blur(18px);
}

.st-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  gap: 22px;
}

.st-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.st-brand img {
  width: 205px;
  max-width: 42vw;
  height: auto;
}

.st-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--st-muted);
  font-size: 14px;
  font-weight: 800;
}

.st-menu > a,
.st-menu-item-has-children > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.st-menu a:hover,
.st-post-card h2 a:hover,
.st-entry a,
.st-footer-links a:hover {
  color: #fff;
}

.st-menu-item-has-children {
  position: relative;
}

.st-menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.st-sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 20;
  display: grid;
  width: 330px;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--st-line);
  border-radius: 18px;
  background: rgba(7, 8, 15, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.st-menu-item-has-children:hover .st-sub-menu,
.st-menu-item-has-children:focus-within .st-sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.st-sub-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  color: #fff;
}

.st-sub-menu a:hover {
  background: linear-gradient(299deg, rgba(227, 106, 160, 0.28) -4.19%, rgba(241, 77, 63, 0.2) 142.5%);
}

.st-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.st-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.st-header-search {
  width: min(240px, 22vw);
}

.st-header-search input,
.search-form input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: 0;
}

.search-form {
  display: grid;
  gap: 12px;
}

.search-form input[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-pink), var(--st-orange));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.st-cta,
.st-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-pink), var(--st-orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(240, 91, 145, 0.26);
}

.st-button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.st-button-ghost {
  border: 1px solid var(--st-line-strong);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.st-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--st-line);
  background:
    radial-gradient(circle at 14% 12%, rgba(240, 91, 145, 0.22), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(95, 124, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #090a13 0%, var(--st-bg) 100%);
}

.st-compact-hero {
  padding: 64px 0 46px;
}

.st-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.st-hero-panel {
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-lg);
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top right, rgba(240, 91, 145, 0.24), transparent 48%);
  box-shadow: var(--st-shadow);
}

.st-hero-panel span {
  color: var(--st-pink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.st-hero-panel strong {
  display: block;
  margin: 12px 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
}

.st-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.st-eyebrow {
  margin: 0 0 14px;
  color: var(--st-pink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.st-hero h1,
.st-single-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.st-hero p,
.st-single-hero p,
.st-hero-panel p {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--st-muted);
  font-size: 18px;
}

.st-section,
.st-main {
  padding: 58px 0 76px;
}

.st-section + .st-main {
  padding-top: 0;
}

.st-section-head {
  margin-bottom: 24px;
}

.st-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.st-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.st-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.st-post-list {
  display: grid;
  gap: 24px;
}

.st-post-card,
.st-sidebar-card,
.st-entry-wrap,
.st-author-box,
.st-related-card {
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--st-shadow);
}

.st-post-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
}

.st-featured-grid .st-post-card {
  grid-template-columns: 1fr;
}

.st-post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--st-panel-soft);
  isolation: isolate;
}

.st-post-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 6, 11, 0.04) 0%, rgba(5, 6, 11, 0.18) 42%, rgba(5, 6, 11, 0.75) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 32%);
  pointer-events: none;
}

.st-post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(225deg, rgba(0, 0, 0, 0.14), transparent 42%);
  pointer-events: none;
}

.st-post-thumb img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.st-gradient-thumb {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(240, 91, 145, 0.9), rgba(95, 124, 255, 0.86));
}

.st-gradient-thumb span {
  position: relative;
  z-index: 3;
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.st-thumb-seo,
.st-thumb-local-seo,
.st-thumb-ai-marketing {
  background: linear-gradient(135deg, rgba(80, 213, 255, 0.82), rgba(95, 124, 255, 0.88));
}

.st-thumb-website-development,
.st-thumb-ecommerce {
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.86), rgba(240, 91, 145, 0.86));
}

.st-thumb-meta-ads,
.st-thumb-branding {
  background: linear-gradient(135deg, rgba(240, 91, 145, 0.9), rgba(126, 87, 255, 0.86));
}

.st-thumb-google-ads,
.st-thumb-performance-marketing {
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.92), rgba(95, 124, 255, 0.9));
}

.st-thumb-lead-generation,
.st-thumb-ahmedabad-business-marketing,
.st-thumb-conversion-optimization {
  background: linear-gradient(135deg, rgba(95, 124, 255, 0.9), rgba(80, 213, 255, 0.88));
}

.st-post-content {
  padding: 28px;
}

.st-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 800;
}

.st-meta a {
  color: var(--st-muted);
}

.st-post-card h2 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
}

.st-post-card p {
  margin: 0 0 22px;
  color: var(--st-muted);
}

.st-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.st-sidebar-card {
  padding: 24px;
}

.st-sidebar-cta {
  background:
    radial-gradient(circle at top right, rgba(240, 91, 145, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.st-sidebar-card h2,
.st-sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.st-sidebar-card p {
  color: var(--st-muted);
}

.st-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-link-list li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--st-muted);
}

.st-link-list li a:hover {
  color: #fff;
}

.st-single-hero {
  padding: 66px 0 48px;
  border-bottom: 1px solid var(--st-line);
  background:
    radial-gradient(circle at 88% 10%, rgba(240, 91, 145, 0.2), transparent 34%),
    linear-gradient(180deg, #090a13 0%, var(--st-bg) 100%);
}

.st-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--st-muted-2);
  font-size: 13px;
  font-weight: 800;
}

.st-breadcrumbs a:hover {
  color: #fff;
}

.st-featured-image {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 24px;
  box-shadow: var(--st-shadow);
  background: var(--st-panel-soft);
  aspect-ratio: 16 / 9;
}

.st-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.st-single-placeholder {
  min-height: 360px;
}

.st-entry-wrap {
  padding: clamp(24px, 4vw, 46px);
}

.st-entry {
  color: #e9ebf5;
  font-size: 18px;
}

.st-entry > *:first-child {
  margin-top: 0;
}

.st-entry h2 {
  margin-top: 42px;
  color: #fff;
  font-size: 32px;
  line-height: 1.22;
}

.st-entry h3 {
  margin-top: 30px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.st-entry p,
.st-entry li {
  color: #d7d9e5;
}

.st-entry a {
  border-bottom: 1px solid rgba(240, 91, 145, 0.45);
}

.st-entry ul,
.st-entry ol {
  padding-left: 22px;
}

.st-entry blockquote,
.st-answer-box,
.st-toc {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--st-line);
  border-left: 4px solid var(--st-pink);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.st-answer-box {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.st-toc {
  border-left-color: var(--st-blue);
}

.st-toc h2 {
  margin-top: 0;
}

.st-toc a {
  color: #fff;
}

.st-entry table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}

.st-entry th,
.st-entry td {
  padding: 14px;
  border: 1px solid var(--st-line);
}

.st-entry th {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
}

.st-inline-cta {
  margin: 42px 0;
  padding: 30px;
  border: 1px solid rgba(240, 91, 145, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(240, 91, 145, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.055);
}

.st-inline-cta h2 {
  margin-top: 0;
}

.st-faq {
  margin: 14px 0;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.st-faq summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #fff;
  font-weight: 900;
}

.st-faq p {
  margin: 0;
  padding: 0 18px 18px;
}

.st-author-box {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  padding: 24px;
}

.st-author-box .st-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 91, 145, 0.9), rgba(255, 107, 61, 0.94));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.st-author-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.st-author-box p {
  margin: 0;
  color: var(--st-muted);
}

.st-related {
  margin-top: 42px;
}

.st-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.st-related-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.st-related-card span {
  color: var(--st-pink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.st-related-card strong {
  color: #fff;
  line-height: 1.3;
}

.st-footer-cta {
  padding: 62px 0;
  border-top: 1px solid var(--st-line);
  background:
    radial-gradient(circle at 12% 20%, rgba(240, 91, 145, 0.18), transparent 32%),
    #080913;
}

.st-footer-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.st-footer-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
}

.st-footer-cta p {
  max-width: 720px;
  color: var(--st-muted);
}

.st-footer {
  padding: 48px 0 30px;
  border-top: 1px solid var(--st-line);
  color: var(--st-muted);
  background: #030409;
}

.st-footer-top {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--st-line);
}

.st-footer-brand img {
  width: 220px;
  max-width: 100%;
}

.st-footer-top p {
  max-width: 680px;
  margin: 0;
  color: var(--st-muted);
}

.st-footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--st-pink), var(--st-orange));
  color: #fff;
  font-weight: 900;
}

.st-footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 32px 0;
}

.st-footer-columns h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.st-footer-columns a {
  display: block;
  margin: 9px 0;
  color: var(--st-muted);
  font-weight: 700;
}

.st-footer-columns a:hover {
  color: #fff;
}

.st-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.st-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--st-line);
}

.navigation.pagination {
  margin-top: 34px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  color: var(--st-muted);
}

.page-numbers.current {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
  .st-nav {
    grid-template-columns: auto 1fr auto;
  }

  .st-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .st-grid,
  .st-post-card,
  .st-hero-grid,
  .st-footer-cta-grid,
  .st-footer-top,
  .st-footer-columns {
    grid-template-columns: 1fr;
  }

  .st-menu-toggle {
    display: block;
    justify-self: end;
  }

  .st-menu {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--st-line);
    border-radius: 18px;
    background: rgba(7, 8, 15, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  }

  .st-menu.is-open {
    display: flex;
  }

  .st-menu > a,
  .st-menu-item-has-children > a {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .st-menu > a:hover,
  .st-menu-item-has-children > a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .st-sub-menu {
    position: static;
    display: none;
    width: 100%;
    margin: 4px 0 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .st-menu-item-has-children.is-open .st-sub-menu {
    display: grid;
  }

  .st-sidebar {
    position: static;
  }

  .st-post-thumb {
    aspect-ratio: 16 / 9;
  }

  .st-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .st-container {
    width: min(100% - 32px, 1180px);
  }

  .st-nav {
    grid-template-columns: 1fr auto auto;
    min-height: 74px;
  }

  .st-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .st-hero,
  .st-single-hero {
    padding: 52px 0 40px;
  }

  .st-hero h1,
  .st-single-hero h1 {
    font-size: 38px;
  }

  .st-hero-panel,
  .st-entry-wrap,
  .st-sidebar-card {
    padding: 22px;
  }

  .st-post-content {
    padding: 22px;
  }

  .st-entry {
    font-size: 16px;
  }

  .st-entry h2 {
    font-size: 27px;
  }

  .st-footer-top {
    align-items: start;
  }

  .st-footer-whatsapp {
    width: 100%;
  }
}
