:root {
  --atm-ink: #15151b;
  --atm-muted: #6f7078;
  --atm-line: #e7e7ec;
  --atm-purple: #4a3f97;
  --atm-purple-dark: #2e2867;
}

.atm-blog-page,
.atm-single-page {
  background: #fff;
  color: var(--atm-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.atm-blog-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(7, 7, 11, .86), rgba(7, 7, 11, .72)),
    url("https://atdratemedia.com/blogs/wp-content/uploads/2026/07/blogs-atdrate.jpg");
  background-position: center;
  background-size: cover;
}

.atm-blog-hero::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0, rgba(0, 0, 0, .2) 70%);
  content: "";
}

.atm-blog-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  text-align: center;
}

.atm-blog-hero h1 {
  max-width: 1040px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.06;
}

.atm-blog-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.atm-blog-search {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 12px;
}

.atm-blog-search form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.atm-blog-search input {
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--atm-line);
  border-radius: 0;
  background: #fff;
  color: var(--atm-ink);
  font: inherit;
  outline: none;
}

.atm-blog-search input:focus {
  border-color: var(--atm-purple);
  box-shadow: 0 0 0 3px rgba(74, 63, 151, .12);
}

.atm-blog-search button {
  min-width: 110px;
  border: 0;
  border-radius: 0;
  background: var(--atm-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.atm-blog-layout,
.atm-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 58px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.atm-blog-layout {
  padding: 42px 0 90px;
}

.atm-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 28px;
  align-content: start;
}

.atm-post-card {
  display: block !important;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.atm-post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edeef3;
}

.atm-post-card__image img,
.atm-post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.atm-post-card__placeholder {
  background: linear-gradient(135deg, var(--atm-purple), #121320);
}

.atm-post-card:hover .atm-post-card__image img {
  transform: scale(1.025);
}

.atm-post-card__body {
  padding: 18px 0 0;
}

.atm-post-card__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: #8a8b91;
  font-size: 12px;
}

.atm-post-card h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.atm-post-card h2 a {
  color: var(--atm-ink);
  text-decoration: none;
}

.atm-post-card h2 a:hover,
.atm-read-more:hover,
.atm-category-sidebar a:hover {
  color: var(--atm-purple);
}

.atm-post-card p {
  margin: 0 0 15px;
  color: var(--atm-muted);
  font-size: 14px;
  line-height: 1.65;
}

.atm-read-more {
  color: var(--atm-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
}

.atm-category-sidebar h2 {
  margin: 0 0 20px;
  color: var(--atm-ink) !important;
  font-size: 24px;
  letter-spacing: -.02em;
}

.atm-category-sidebar__sticky {
  position: sticky;
  top: 24px;
}

.atm-category-sidebar ul {
  display: block !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.atm-category-sidebar li {
  margin: 0;
  border-bottom: 1px solid #f0f0f3;
}

.atm-category-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: #45464c;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.atm-category-sidebar small {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 99px;
  background: #f3f1fb;
  color: var(--atm-purple);
  font-size: 11px;
  font-weight: 700;
}

.atm-pagination {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.atm-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.atm-pagination .page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--atm-line);
  border-radius: 99px;
  color: var(--atm-ink);
  text-decoration: none;
}

.atm-pagination .current,
.atm-pagination a:hover {
  border-color: var(--atm-ink);
  background: var(--atm-ink);
  color: #fff;
}

.atm-no-posts {
  grid-column: 1 / -1;
  padding: 60px 0;
}

.atm-single-hero {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 60px 20px;
  background: #08090c;
  color: #fff;
  text-align: center;
}

.atm-single-hero__inner {
  width: min(980px, 100%);
}

.atm-single-hero__categories {
  margin-bottom: 20px;
  color: #d6d2ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atm-single-hero__categories a {
  color: inherit;
  text-decoration: none;
}

.atm-single-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.atm-single-hero__meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
}

.atm-single-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
  padding: 64px 0 96px;
}

.atm-single-article {
  display: block !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.atm-single-featured {
  margin: 0 0 38px;
  overflow: hidden;
  border-radius: 2px;
}

.atm-single-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.atm-single-content {
  color: #34343a;
  font-size: 17px;
  line-height: 1.8;
}

.atm-single-content > :first-child {
  margin-top: 0;
}

.atm-single-content p,
.atm-single-content ul,
.atm-single-content ol {
  margin: 0 0 22px;
}

.atm-single-content h2,
.atm-single-content h3 {
  color: var(--atm-ink) !important;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.atm-single-content h2 {
  margin: 46px 0 16px;
  font-size: clamp(27px, 3vw, 36px);
}

.atm-single-content h3 {
  margin: 32px 0 12px;
  font-size: 23px;
}

.atm-single-content ul,
.atm-single-content ol {
  padding-left: 24px;
}

.atm-single-content li {
  margin-bottom: 8px;
}

.atm-single-content a {
  color: var(--atm-purple);
}

.atm-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--atm-line);
}

.atm-single-tags a {
  padding: 7px 12px;
  border: 1px solid var(--atm-line);
  border-radius: 99px;
  color: #55565d;
  font-size: 12px;
  text-decoration: none;
}

.atm-related-posts {
  margin-top: 64px;
}

.atm-related-posts > h2 {
  margin: 0 0 20px;
  color: var(--atm-ink) !important;
  font-size: 28px;
}

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

.atm-related-card {
  color: var(--atm-ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.atm-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .atm-blog-layout,
  .atm-single-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
  }

  .atm-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .atm-blog-hero {
    min-height: 290px;
  }

  .atm-blog-hero h1,
  .atm-single-hero h1 {
    font-size: 36px;
  }

  .atm-blog-search,
  .atm-blog-layout,
  .atm-single-layout {
    width: min(100% - 28px, 1180px);
  }

  .atm-blog-search form {
    grid-template-columns: 1fr;
  }

  .atm-blog-search button {
    height: 50px;
  }

  .atm-blog-layout,
  .atm-single-layout {
    grid-template-columns: 1fr;
  }

  .atm-category-sidebar {
    padding-top: 20px;
    border-top: 1px solid var(--atm-line);
  }

  .atm-category-sidebar__sticky {
    position: static;
  }

  .atm-single-hero {
    min-height: 280px;
    padding: 54px 16px;
  }

  .atm-single-layout {
    padding-top: 34px;
  }

  .atm-single-content {
    font-size: 16px;
  }

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