/*
Theme Name:   AI Tool Income
Description:  Professional GeneratePress child theme — AI Tool Income niche. Clean, fast, fully responsive.
Author:       Your Name
Template:     generatepress
Version:      4.0.0
Text Domain:  ai-tool-income
*/

/* ─── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --blue: #2563EB;
  --blue-dk: #1D4ED8;
  --blue-lt: #EFF6FF;
  --blue-mid: #BFDBFE;
  --navy: #0F172A;
  --green: #16A34A;
  --green-lt: #F0FDF4;
  --t1: #0F172A;
  --t2: #334155;
  --t3: #64748B;
  --t4: #94A3B8;
  --bd: #E2E8F0;
  --bd2: #CBD5E1;
  --bg: #fff;
  --bg2: #F8FAFC;
  --bg3: #F1F5F9;
  --f: 'Inter', system-ui, sans-serif;
  --fh: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --rs: 4px;
  --rm: 8px;
  --rl: 12px;
  --rx: 16px;
  --rxx: 20px;
  --rfull: 9999px;
  --sh1: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --sh2: 0 4px 12px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .04);
  --sh3: 0 10px 24px rgba(0, 0, 0, .07), 0 4px 8px rgba(0, 0, 0, .04);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --d: 180ms;
  --mw: 1200px;
  --sw: 280px;
}

/* ─── RESET ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--f);
  color: var(--t1);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--d) var(--ease)
}

a:hover {
  color: var(--blue-dk)
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--f);
  line-height: 1
}

p {
  margin-bottom: 1rem;
  color: var(--t2)
}

p:last-child {
  margin-bottom: 0
}

strong {
  font-weight: 600;
  color: var(--t1)
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fh);
  font-weight: 700;
  line-height: 1.2;
  color: var(--t1);
  letter-spacing: -.025em
}

h1 {
  font-size: clamp(1.875rem, 4.5vw, 3rem)
}

h2 {
  font-size: clamp(1.375rem, 3vw, 2rem)
}

h3 {
  font-size: clamp(1.125rem, 2.2vw, 1.5rem)
}

h4 {
  font-size: 1.125rem
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────── */
.ati-wrap {
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px
}

.ati-section {
  padding: 60px 0
}

.ati-section-sm {
  padding: 40px 0
}

.ati-grid-main {
  display: grid;
  grid-template-columns: 1fr var(--sw);
  gap: 40px;
  align-items: start
}

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

.ati-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

/* ─── GP OVERRIDES ───────────────────────────────────────────────────── */
.site-header .inside-header {
  padding: 0
}

.site-content {
  padding: 0
}

.main-navigation {
  display: none !important
}

.grid-container {
  max-width: var(--mw)
}

.separate-containers .inside-article {
  padding: 0
}

.entry-content {
  max-width: none
}

/* ─── HEADER ─────────────────────────────────────────────────────────── */
.site-header,
.ati-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bd);
  box-shadow: var(--sh1)
}

.ati-hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px
}

/* Logo */
.ati-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0
}

.ati-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain
}

.ati-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: var(--rm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.ati-logo-mark svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.ati-logo-text {
  display: flex;
  flex-direction: column
}

.ati-logo-name {
  font-family: var(--fh);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -.03em;
  line-height: 1.1
}

.ati-logo-name span {
  color: var(--blue)
}

.ati-logo-tagline {
  font-size: .6rem;
  font-weight: 500;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 1px
}

/* Nav */
.ati-nav {
  display: flex;
  align-items: center
}

.ati-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px
}

.ati-nav-menu>li {
  position: relative
}

.ati-nav-menu>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--t2);
  border-radius: var(--rm);
  transition: all var(--d) var(--ease)
}

.ati-nav-menu>li>a:hover,
.ati-nav-menu>li.current-menu-item>a {
  color: var(--blue);
  background: var(--blue-lt)
}

.ati-nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 210px;
  background: #fff;
  border-radius: var(--rl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  border: 1px solid var(--bd);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--d) var(--ease);
  z-index: 200
}

.ati-nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0)
}

.ati-nav-menu .sub-menu a {
  display: block;
  padding: 8px 12px;
  font-size: .8125rem;
  color: var(--t2);
  border-radius: var(--rs)
}

.ati-nav-menu .sub-menu a:hover {
  background: var(--bg2);
  color: var(--blue)
}

.ati-hdr-actions {
  display: flex;
  align-items: center;
  gap: 6px
}

.ati-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--rm);
  background: var(--bg2);
  color: var(--t3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
  transition: all var(--d) var(--ease);
  cursor: pointer
}

.ati-icon-btn:hover {
  background: var(--bg3);
  color: var(--t1)
}

.ati-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round
}

.ati-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--rm);
  background: var(--bg2);
  border: 1px solid var(--bd);
  cursor: pointer
}

.ati-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--t2);
  border-radius: 2px;
  transition: all var(--d) var(--ease)
}

.ati-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px)
}

.ati-hamburger.open span:nth-child(2) {
  opacity: 0
}

.ati-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px)
}

.ati-search-ov {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .93);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--d) var(--ease)
}

.ati-search-ov.show {
  opacity: 1;
  visibility: visible
}

.ati-search-ov form {
  width: 100%;
  max-width: 600px;
  position: relative
}

.ati-search-ov input[type="search"] {
  width: 100%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--rl);
  padding: 16px 52px 16px 20px;
  font-size: 1.125rem;
  color: #fff;
  outline: none;
  transition: border-color var(--d) var(--ease);
  font-family: var(--f)
}

.ati-search-ov input:focus {
  border-color: var(--blue)
}

.ati-search-ov input::placeholder {
  color: rgba(255, 255, 255, .4)
}

.ati-search-ov-hint {
  font-size: .75rem;
  color: rgba(255, 255, 255, .3);
  margin-top: 10px;
  text-align: center
}

.ati-search-ov-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--rm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  color: rgba(255, 255, 255, .5);
  transition: all var(--d) var(--ease)
}

.ati-search-ov-close:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff
}

.ati-search-ov-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round
}

.ati-breadcrumb-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
  padding: 10px 0
}

.ati-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  flex-wrap: wrap
}

.ati-breadcrumb a {
  color: var(--t3);
  font-weight: 500
}

.ati-breadcrumb a:hover {
  color: var(--blue)
}

.ati-breadcrumb-sep {
  color: var(--bd2)
}

.ati-breadcrumb-cur {
  color: var(--t1);
  font-weight: 500
}

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.ati-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--rm);
  transition: all var(--d) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1.4;
  font-family: var(--f);
  cursor: pointer
}

.ati-btn-pri {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.ati-btn-pri:hover {
  background: var(--blue-dk);
  color: #fff;
  border-color: var(--blue-dk)
}

.ati-btn-sec {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue-mid)
}

.ati-btn-sec:hover {
  background: var(--blue-lt);
  border-color: var(--blue)
}

.ati-btn-lg {
  padding: 14px 28px;
  font-size: 1rem
}

.ati-btn-sm {
  padding: 7px 14px;
  font-size: .8125rem
}

/* ─── BADGES & TAGS ──────────────────────────────────────────────────── */
.ati-badge,
.ati-card-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 4px;
  background: var(--bg2);
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid var(--bd2);
  backdrop-filter: blur(4px);
  box-shadow: var(--sh1)
}

.ati-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: auto;
  height: auto;
  max-width: 140px
}

/* Tags — flex wrap, proper gap */
.ati-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--bd);
  margin-top: 24px
}

.ati-post-tags-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t3);
  flex-shrink: 0;
  white-space: nowrap
}

.ati-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  font-size: .75rem;
  color: var(--t3);
  background: var(--bg3);
  border-radius: var(--rfull);
  border: 1px solid var(--bd);
  transition: all var(--d) var(--ease);
  text-decoration: none;
  white-space: nowrap
}

.ati-tag:hover {
  background: var(--blue-lt);
  color: var(--blue);
  border-color: var(--blue-mid)
}

/* Ad spaces */
.ati-ad {
  width: 100%;
  text-align: center;
  margin: 22px 0
}

.ati-ad-label {
  font-size: .6rem;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
  display: block
}

.ati-ad-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px dashed var(--bd)
}

.ati-ad-728 {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 0 auto
}

.ati-ad-article {
  min-height: 250px;
  max-width: 600px;
  margin: 0 auto
}

.ati-ad-sidebar {
  min-height: 250px;
  width: 100%
}

/* ─── HERO ───────────────────────────────────────────────────────────── */
.ati-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
  padding: 60px 0 68px
}

.ati-hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center
}

.ati-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 14px
}

.ati-hero-kicker-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: kpulse 2s infinite
}

@keyframes kpulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(.7)
  }
}

.ati-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.035em
}

.ati-hero-h1 span {
  color: var(--blue)
}

.ati-hero-sub {
  font-size: 1rem;
  color: var(--t3);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px
}

.ati-hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px
}

.ati-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--bd)
}

.ati-hero-stat-n {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1
}

.ati-hero-stat-l {
  font-size: .6875rem;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 2px
}

.ati-hero-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--bd);
  flex-shrink: 0
}

.ati-hero-card {
  background: #fff;
  border-radius: var(--rx);
  border: 1px solid var(--bd);
  padding: 18px;
  box-shadow: var(--sh2)
}

.ati-hero-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd)
}

.ati-hero-card-ttl {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t3)
}

.ati-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--green)
}

.ati-live-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: kpulse 2s infinite
}

.ati-earn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg2);
  border-radius: var(--rm);
  margin-bottom: 5px;
  border: 1px solid var(--bd)
}

.ati-earn-item:last-child {
  margin-bottom: 0
}

.ati-earn-left {
  display: flex;
  align-items: center;
  gap: 8px
}

.ati-earn-icon {
  width: 28px;
  height: 28px;
  background: var(--blue-lt);
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.ati-earn-name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--t1)
}

.ati-earn-cat {
  font-size: .6875rem;
  color: var(--t4)
}

.ati-earn-amt {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--green)
}

/* ─── CATEGORY PILLS ─────────────────────────────────────────────────── */
.ati-cats-bar {
  background: #fff;
  border-bottom: 1px solid var(--bd);
  overflow-x: auto;
  scrollbar-width: none
}

.ati-cats-bar::-webkit-scrollbar {
  display: none
}

.ati-cats-bar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  white-space: nowrap;
  max-width: var(--mw);
  margin: 0 auto
}

.ati-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--t3);
  background: var(--bg2);
  border-radius: var(--rfull);
  border: 1px solid var(--bd);
  transition: all var(--d) var(--ease);
  text-decoration: none
}

.ati-cat-pill:hover,
.ati-cat-pill.active {
  background: var(--blue-lt);
  color: var(--blue);
  border-color: var(--blue-mid)
}

/* ─── SECTION HEADER ─────────────────────────────────────────────────── */
.ati-cat-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bd);
  position: relative
}

.ati-cat-hdr::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--blue)
}

.ati-cat-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--t1)
}

.ati-view-all {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 14px;
  border-radius: var(--rm);
  border: 1px solid var(--blue-mid);
  transition: all var(--d) var(--ease);
  text-decoration: none
}

.ati-view-all:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

/* ─── POST CARDS ─────────────────────────────────────────────────────── */
.ati-card {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--rx);
  overflow: hidden;
  transition: all var(--d) var(--ease);
  display: flex;
  flex-direction: column;
}

.ati-card:hover {
  border-color: var(--bd2);
  box-shadow: var(--sh2);
  transform: translateY(-2px)
}

.ati-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg3)
}

.ati-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
  display: block
}

.ati-card:hover .ati-card-img img {
  transform: scale(1.04)
}

.ati-card-img a {
 
}

/* Fallback */
.ati-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.ati-nt-1 {
  background: #EFF6FF
}

.ati-nt-2 {
  background: #F0FDF4
}

.ati-nt-3 {
  background: #FFFBEB
}

.ati-nt-4 {
  background: #FDF2F8
}

.ati-nt-5 {
  background: #F0F9FF
}

.ati-nt-6 {
  background: #F7F7F7
}

.ati-no-thumb svg {
  width: 32px;
  height: 32px;
  stroke: var(--t4);
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round
}

/* Card body */
.ati-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.ati-card-date-line {
  font-size: .73rem;
  color: var(--t4);
  margin-bottom: 7px;
  display: block
}

.ati-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1.35;
  margin-bottom: 8px
}

.ati-card-title a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none
}

.ati-card-title a:hover {
  color: var(--blue)
}

.ati-card-exc {
  font-size: .8125rem;
  color: var(--t3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1
}

/* Card footer — author name + read link, NO avatars, NO read-time */
.ati-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--bg3);
  margin-top: auto
}

.ati-card-auth-name {
  font-size: .75rem;
  font-weight: 500;
  color: var(--t3)
}

/* Read link — inline flex, arrow beside text */
.ati-card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap var(--d) var(--ease);
  white-space: nowrap
}

.ati-card-read-link:hover {
  gap: 8px;
  color: var(--blue-dk)
}

.ati-card-read-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: block
}

/* Hide ALL broken avatar images everywhere in cards */
.ati-card img.avatar,
.ati-card-foot img,
.ati-card-auth img,
.ati-card-meta,
.ati-meta-item,
img.avatar {
  display: none !important
}



/* ─── SIDEBAR ────────────────────────────────────────────────────────── */
.ati-sidebar {
  position: sticky;
  top: 68px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.ati-widget {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--rx);
  padding: 18px;
  overflow: hidden
}

.ati-widget-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--t1);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 14px;
  position: relative
}

.ati-widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--blue)
}



/* Trending — title only, no date */
.ati-trend-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg3)
}

.ati-trend-item:last-child {
  border-bottom: none;
  padding-bottom: 0
}

.ati-trend-img {
  width: 60px;
  height: 48px;
  border-radius: var(--rm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3)
}

.ati-trend-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ati-trend-content {
  flex: 1;
  min-width: 0
}

.ati-trend-title {
  font-size: .79rem;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.ati-trend-title a {
  color: inherit;
  text-decoration: none
}

.ati-trend-title a:hover {
  color: var(--blue)
}



/* Category list */
.ati-cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg3)
}

.ati-cat-list-item:last-child {
  border-bottom: none
}

.ati-cat-list-link {
  font-size: .8125rem;
  color: var(--t2);
  font-weight: 500;
  text-decoration: none
}

.ati-cat-list-link:hover {
  color: var(--blue)
}

.ati-cat-cnt {
  background: var(--bg3);
  color: var(--t4);
  font-size: .6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--rfull)
}




/* ─── STATS ──────────────────────────────────────────────────────────── */
.ati-stats-sec {
  background: var(--navy);
  padding: 52px 0
}

.ati-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.ati-stat-item {
  text-align: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, .07)
}

.ati-stat-item:last-child {
  border-right: none
}

.ati-stat-num {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--fh);
  letter-spacing: -.03em
}

.ati-stat-lbl {
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
  font-weight: 400
}




/* ─── NEWSLETTER — Centered, clean ──────────────────────────────────── */
.ati-nl-section {
  padding: 60px 0;
  background: var(--bg2);
  border-top: 1px solid var(--bd);
  width: 100%
}

.ati-nl-wrap {
  max-width: 520px;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center
}

.ati-nl-eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
  text-align: center;
  width: 100%
}

.ati-nl-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 10px;
  letter-spacing: -.025em;
  line-height: 1.25;
  text-align: center;
  width: 100%
}

.ati-nl-desc {
  font-size: .9rem;
  color: var(--t3);
  margin-bottom: 22px;
  line-height: 1.7;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto
}

.ati-nl-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-content: center
}

.ati-nl-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--bd2);
  border-radius: var(--rm);
  padding: 11px 16px;
  font-size: .875rem;
  color: var(--t1);
  background: #fff;
  outline: none;
  transition: border-color var(--d) var(--ease);
  font-family: var(--f)
}

.ati-nl-input:focus {
  border-color: var(--blue)
}

.ati-nl-input::placeholder {
  color: var(--t4)
}

.ati-nl-note {
  font-size: .6875rem;
  color: var(--t4);
  margin-top: 12px;
  display: block;
  text-align: center;
  width: 100%
}




/* ─── FOOTER — White professional ───────────────────────────────────── */
.ati-footer {
  background: #fff;
  border-top: 1px solid var(--bd)
}

.ati-footer-top {
  padding: 52px 0;
  border-bottom: 1px solid var(--bd)
}

.ati-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px
}

.ati-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none
}

.ati-footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain
}

.ati-footer-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--blue);
  border-radius: var(--rm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.ati-footer-logo-mark svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.ati-footer-logo-name {
  font-family: var(--fh);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.02em
}

.ati-footer-desc {
  font-size: .8125rem;
  color: var(--t3);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 270px
}

.ati-footer-social {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.ati-soc-btn {
  width: 32px;
  height: 32px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: var(--rm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  transition: all var(--d) var(--ease);
  text-decoration: none
}

.ati-soc-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff
}

.ati-soc-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* Footer columns */
.ati-footer-col-title {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t1);
  margin-bottom: 14px;
  display: block
}

.ati-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0
}

.ati-footer-links li a,
.ati-footer-links a {
  font-size: .8125rem;
  color: var(--t3);
  text-decoration: none;
  transition: color var(--d) var(--ease);
  display: block
}

.ati-footer-links li a:hover,
.ati-footer-links a:hover {
  color: var(--blue)
}

/* Bottom bar — ONLY copyright, center */
.ati-footer-bottom {
  background: var(--bg2);
  border-top: 1px solid var(--bd);
  padding: 14px 0
}

.ati-footer-copy {
  font-size: .8125rem;
  color: var(--t4);
  text-align: center;
  width: 100%;
  display: block;
  margin: 0
}

/* ─── BACK TO TOP — kept but style fixed, remove blue square look ────── */
#ati-back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all var(--d) var(--ease);
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .4)
}

#ati-back-top.show {
  opacity: 1;
  visibility: visible
}

#ati-back-top:hover {
  background: var(--blue-dk);
  transform: translateY(-2px)
}

#ati-back-top svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ─── SINGLE POST ────────────────────────────────────────────────────── */
/* Post title — first, large */
.ati-post-title {
  font-size: clamp(1.625rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--t1);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.03em;
  font-family: var(--fh)
}

/* Author byline — inline row */
.ati-post-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bd)
}

.ati-post-byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0
}

.ati-post-byline-avatar img,
.ati-byline-avatar-img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block !important
}

.ati-post-byline-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.ati-post-byline-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--t1)
}

.ati-post-byline-sep {
  color: var(--bd2);
  font-size: .875rem
}

.ati-post-byline-date {
  font-size: .8125rem;
  color: var(--t3)
}

.ati-post-byline-cat {
  font-size: .8125rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500
}

.ati-post-byline-cat:hover {
  text-decoration: underline
}

/* HIDE updated/last-updated badge completely */
.ati-updated-badge,
[class*="ati-update"],
[class*="updated-badge"] {
  display: none !important
}

/* Featured image */
.ati-post-thumb {
  margin-bottom: 28px;
  border-radius: var(--rx);
  overflow: hidden;
  aspect-ratio: 16/9
}

.ati-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* Content */
.ati-post-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--t2)
}

.ati-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 1rem;
  color: var(--t1)
}

.ati-post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 .75rem;
  color: var(--t1)
}

.ati-post-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 .625rem;
  color: var(--t1)
}

.ati-post-content p {
  margin-bottom: 1.5rem
}

.ati-post-content ul,
.ati-post-content ol {
  margin: 1.25rem 0 1.25rem 1.5rem
}

.ati-post-content ul {
  list-style: disc
}

.ati-post-content ol {
  list-style: decimal
}

.ati-post-content li {
  margin-bottom: .5rem;
  color: var(--t2)
}

.ati-post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px
}

.ati-post-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  background: var(--blue-lt);
  border-radius: 0 var(--rm) var(--rm) 0;
  margin: 1.75rem 0
}

.ati-post-content blockquote p {
  margin: 0;
  font-style: italic
}

.ati-post-content code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: var(--rs);
  font-family: ui-monospace, monospace;
  font-size: .875em;
  color: var(--blue-dk);
  border: 1px solid var(--bd)
}

.ati-post-content pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 1.25rem;
  border-radius: var(--rl);
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: .875em
}

.ati-post-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit
}

.ati-post-content img {
  border-radius: var(--rl);
  margin: 1.5rem 0
}

.ati-post-content table {
  margin: 1.5rem 0;
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  overflow: hidden;
  width: 100%
}

.ati-post-content th {
  background: var(--t1);
  color: #fff;
  padding: 10px 14px;
  font-size: .8125rem;
  font-weight: 600;
  text-align: left
}

.ati-post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bd);
  font-size: .8125rem;
  color: var(--t2)
}

.ati-post-content tr:nth-child(even) td {
  background: var(--bg2)
}

.ati-post-content tr:last-child td {
  border-bottom: none
}

/* ─── TOC — Collapsible, compact ────────────────────────────────────── */
.ati-toc {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  margin: 22px 0;
  overflow: hidden
}

.ati-toc-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: chartreuse;
  border: none;
  cursor: pointer;
  font-family: var(--f);
  transition: background var(--d) var(--ease);
  flex-direction: row !important;
  text-align: left
}

.ati-toc-toggle:hover {
  background: none;
}

.ati-toc-toggle-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: inherit
}

.ati-toc-arrow {
  width: 20px;
  height: 20px;
  border-radius: var(--rs);
  background: var(--bg3);
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--d) var(--ease)
}

.ati-toc-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--d) var(--ease);
  display: block
}

.ati-toc[data-open="true"] .ati-toc-arrow {
  background: var(--blue-lt)
}

.ati-toc[data-open="true"] .ati-toc-arrow svg {
  transform: rotate(180deg);
  stroke: var(--blue)
}

.ati-toc-body {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid var(--bd)
}

.ati-toc[data-open="true"] .ati-toc-body {
  display: block
}

.ati-toc-body ol {
  counter-reset: toc;
  padding: 0;
  margin: 0
}

.ati-toc-body li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg3)
}

.ati-toc-body li:last-child {
  border-bottom: none
}

.ati-toc-body li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: .625rem;
  font-weight: 600;
  color: var(--blue);
  min-width: 16px;
  flex-shrink: 0
}

.ati-toc-body a {
  font-size: .8125rem;
  color: var(--t2);
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--d) var(--ease)
}

.ati-toc-body a:hover,
.ati-toc-active {
  color: var(--blue) !important;
  font-weight: 500
}

/* ─── SHARE BUTTONS — Each separate, proper width ───────────────────── */
.ati-share {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  margin: 22px 0
}

.ati-share-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--t3);
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
  padding-top: 8px
}

.ati-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.ati-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--rm);
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--f);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--bd);
  color: var(--t2);
  background: #fff;
  text-decoration: none;
  transition: all var(--d) var(--ease);
  line-height: 1;
}

.ati-share-btn svg {
  flex-shrink: 0;
  display: block
}

.ati-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh1)
}

.ati-share-twitter:hover {
  background: #000;
  color: #fff;
  border-color: #000
}

.ati-share-facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2
}

.ati-share-whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366
}

.ati-share-telegram:hover {
  background: #2AABEE;
  color: #fff;
  border-color: #2AABEE
}

.ati-share-copy:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

/* ─── AUTHOR BOX — Circle image, professional color ─────────────────── */
.ati-author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--blue-lt);
  border: 1px solid var(--blue-mid);
  border-radius: var(--rx);
  margin: 28px 0
}

.ati-author-box-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-mid);
  border: 2px solid var(--blue-mid)
}

.ati-author-box-img,
.ati-author-box-avatar img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block !important
}

.ati-author-box-info {
  flex: 1;
  min-width: 0
}

.ati-author-box-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 2px;
  font-family: var(--fh);
  display: block
}

.ati-author-box-role {
  font-size: .625rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
  display: block
}

.ati-author-box-bio {
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.7;
  margin: 0
}

/* ─── RELATED ARTICLES ───────────────────────────────────────────────── */
.ati-related {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--bd)
}

.ati-related-title {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t3);
  margin-bottom: 16px;
  display: block
}

/* Remove any arrow/chevron after related */
.ati-related::after,
.ati-related-grid::after,
.ati-related .ati-grid-3::after {
  display: none !important
}

/* ─── POST NAV — REMOVED (per request) ──────────────────────────────── */
.ati-post-nav {
  display: none !important
}

/* ─── COMMENTS ───────────────────────────────────────────────────────── */
.ati-comments-wrap {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--bd)
}

/* ─── PAGINATION ─────────────────────────────────────────────────────── */
.ati-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 36px 0
}

.ati-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--rm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--t2);
  background: #fff;
  border: 1px solid var(--bd);
  transition: all var(--d) var(--ease);
  text-decoration: none
}

.ati-pg-btn:hover,
.ati-pg-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

/* ─── READING PROGRESS ───────────────────────────────────────────────── */
.ati-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  z-index: 999;
  transition: width .1s linear
}

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */
.ati-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease)
}

.ati-revealed {
  opacity: 1;
  transform: none
}

.ati-delay-1 {
  transition-delay: .08s
}

.ati-delay-2 {
  transition-delay: .16s
}

.ati-delay-3 {
  transition-delay: .24s
}

/* ─── DARK MODE ──────────────────────────────────────────────────────── */
body.ati-dark {
  --t1: #F1F5F9;
  --t2: #CBD5E1;
  --t3: #64748B;
  --t4: #475569;
  --bd: #1E293B;
  --bd2: #334155;
  --bg: #0B1120;
  --bg2: #0F172A;
  --bg3: #1E293B;
  --blue-lt: rgba(37, 99, 235, .12);
  --blue-mid: rgba(37, 99, 235, .3);
}

body.ati-dark .site-header,
body.ati-dark .ati-header {
  background: #0B1120
}

body.ati-dark .ati-card,
body.ati-dark .ati-widget,
body.ati-dark .ati-hero-card,
body.ati-dark .ati-share-btn,
body.ati-dark .ati-nl-input,
body.ati-dark .ati-toc {
  background: #0F172A
}

body.ati-dark .ati-hero,
body.ati-dark .ati-cats-bar {
  background: #0B1120
}

body.ati-dark .ati-footer {
  background: #0B1120;
  border-color: #1E293B
}

body.ati-dark .ati-footer-top {
  border-color: #1E293B
}

body.ati-dark .ati-footer-logo-name {
  color: #F1F5F9
}

body.ati-dark .ati-footer-col-title {
  color: #F1F5F9
}

body.ati-dark .ati-footer-desc,
.ati-dark .ati-footer-links li a,
.ati-dark .ati-footer-links a {
  color: #64748B
}

body.ati-dark .ati-footer-links li a:hover,
body.ati-dark .ati-footer-links a:hover {
  color: var(--blue)
}

body.ati-dark .ati-soc-btn {
  background: #1E293B;
  border-color: #334155;
  color: #64748B
}

body.ati-dark .ati-footer-bottom {
  background: #0F172A;
  border-color: #1E293B
}

body.ati-dark .ati-nl-section {
  background: #0F172A;
  border-color: #1E293B
}

body.ati-dark .ati-nl-input {
  border-color: #334155;
  color: var(--t1)
}

body.ati-dark .ati-author-box {
  background: rgba(37, 99, 235, .1);
  border-color: rgba(37, 99, 235, .25)
}

/* ─── ACCESSIBILITY ──────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--rs)
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  z-index: 1000;
  font-size: .875rem
}

.skip-link:focus {
  top: 0
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media(max-width:1100px) {
  :root {
    --sw: 256px
  }

  .ati-grid-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .ati-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px
  }

  .ati-stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .ati-stat-item:nth-child(2) {
    border-right: none
  }

  .ati-stat-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, .06)
  }

  .ati-stat-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-right: none
  }

  .ati-hero-grid {
    gap: 32px
  }
}

@media(max-width:900px) {
  .ati-hero-grid {
    grid-template-columns: 1fr
  }

  .ati-hero-visual {
    display: none
  }

  .ati-grid-main {
    grid-template-columns: 1fr
  }

  .ati-sidebar {
    position: static;
    top: auto
  }

  .ati-hero {
    padding: 48px 0 52px
  }
}

@media(max-width:768px) {
  .ati-wrap {
    padding: 0 16px
  }

  .ati-section {
    padding: 44px 0
  }

  .ati-nav {
    display: none
  }

  .ati-hamburger {
    display: flex
  }

  .ati-footer-grid {
    grid-template-columns: 1fr
  }

  .ati-nl-form {
    flex-direction: column
  }

  .ati-hero-btns {
    flex-direction: column
  }

  .ati-hero-btns .ati-btn {
    width: 100%;
    justify-content: center
  }

  .ati-footer-bottom .ati-footer-copy {
    text-align: center
  }

  .ati-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
  }

  .ati-author-box {
    flex-direction: column;
    gap: 14px
  }

  .ati-grid-3 {
    grid-template-columns: 1fr
  }
}

@media(max-width:600px) {
  .ati-hero-stats {
    gap: 16px
  }

  .ati-cats-bar-inner {
    padding: 10px 16px
  }

  .ati-stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .ati-share-btn span {
    display: none
  }

  .ati-share-btn {
    padding: 9px 10px
  }
}

@media(max-width:400px) {
  .ati-stats-grid {
    grid-template-columns: 1fr
  }

  .ati-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
  }

  .ati-stat-item:last-child {
    border-bottom: none
  }
}

@media print {

  .site-header,
  .ati-footer,
  .ati-sidebar,
  .ati-ad,
  #ati-back-top,
  .ati-nl-section {
    display: none !important
  }

  .ati-grid-main {
    grid-template-columns: 1fr
  }

  body {
    font-size: 12pt;
    color: #000
  }
}