/*
 * /internet-advertising/<channel>/ — base of the section library (Figma "Ads_*" frames).
 * Hero, section shell, grids, sticky aside and typography. Section styles live in
 * css/pages/internet-advertising/sections/<type>.css next to include/internet-advertising-sections/<type>.php.
 */

/* ---------- Hero ---------- */

.ads-hero {
  padding: 80px 0 120px;
  background: var(--background-dark);
  color: var(--txt-white);
}

.ads-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 80px;
  color: var(--txt-gray);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.ads-hero__crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.ads-hero__crumbs a:hover {
  color: var(--txt-white);
}

.ads-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 880px) minmax(320px, 573px);
  gap: 40px;
  justify-content: space-between;
  align-items: end;
}

.ads-hero h1 {
  margin: 0 0 20px;
  color: var(--txt-white);
  font-size: 80px;
  font-weight: 400;
  line-height: 1.2;
}

.ads-hero__text p {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.ads-hero__text p:last-child {
  margin-bottom: 0;
}

/* Stat card: markup from seo_landing_render_hero_slider() (include/seo-hero-slider.php) */
.ads-hero .audit-hero-slider {
  width: min(100%, 573px);
  height: 372px;
  overflow: hidden;
  justify-self: end;
}

.ads-hero .audit-hero-slider__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ads-hero .audit-hero-slider__track {
  display: flex;
  height: 100%;
  gap: 33px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.ads-hero .audit-hero-slider__card {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 40px;
  background: var(--outher-dark-gray);
}

.ads-hero .audit-hero-slider__number {
  display: grid;
  gap: 8px;
}

.ads-hero .audit-hero-slider__number strong {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
}

.ads-hero .audit-hero-slider__number span {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.ads-hero .audit-hero-slider__icon {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.ads-hero .audit-hero-slider__pagination {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ads-hero .audit-hero-slider__pagination button {
  display: block;
  width: 16px;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--txt-gray);
  cursor: pointer;
  transition: width 0.2s, background-color 0.2s;
}

.ads-hero .audit-hero-slider__pagination button.is-active {
  width: 32px;
  background: var(--txt-white);
}

/* ---------- Section shell ---------- */

.ads-sec {
  padding: 80px 0 120px;
  background: var(--background-white);
  color: var(--txt-black);
}

.ads-sec--light {
  background: var(--background-light);
}

.ads-sec--dark {
  background: var(--background-dark);
  color: var(--txt-white);
}

.ads-sec > .wrap_container {
  padding-top: 30px;
  border-top: 1px solid var(--outher-light-gray);
}

.ads-sec--dark > .wrap_container {
  border-top-color: var(--outher-dark-gray);
}

.ads-sec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.ads-sec h2,
.ads-sec .ads-sec__title {
  max-width: 1187px;
  margin: 0;
  color: inherit;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- Grids ---------- */

.ads-grid {
  display: grid;
  gap: 40px;
}

.ads-grid--aside {
  grid-template-columns: minmax(0, 573fr) minmax(0, 1187fr);
}

.ads-grid--half {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ads-aside {
  min-width: 0;
}

.ads-aside--column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ads-aside__main {
  flex: 1 1 auto;
}

.ads-body {
  min-width: 0;
}

@media screen and (min-width: 1025px) {
  .ads-sticky {
    position: sticky;
    top: 40px;
    align-self: start;
  }
}

/* ---------- Typography ---------- */

.ads-text p,
.ads-sec .ads-text p {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.ads-text p:last-child {
  margin-bottom: 0;
}

.ads-text--muted p,
.ads-sec .ads-muted {
  color: var(--txt-gray);
}

.ads-sec .ads-h3 {
  margin: 0;
  color: inherit;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.ads-sec .ads-small {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.ads-sec .ads-muted {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.ads-sec .ads-small.ads-muted {
  font-size: 16px;
  line-height: 1.6;
}

.ads-note p {
  margin: 0 0 10px;
  color: var(--txt-gray);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.ads-note p:last-child {
  margin-bottom: 0;
}

.ads-intro,
.ads-after {
  max-width: 1187px;
}

.ads-intro {
  margin-bottom: 80px;
}

.ads-after {
  margin-top: 80px;
}

.ads-after + .ads-after {
  margin-top: 20px;
}

.ads-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.ads-list:first-child {
  margin-top: 0;
}

.ads-list:last-child {
  margin-bottom: 0;
}

.ads-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--outher-light-gray);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.ads-sec--dark .ads-list li {
  border-top-color: var(--outher-dark-gray);
}

.ads-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-normal);
}

/* Lined list: H3 + grey text, divider above every item */
.ads-lines {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.ads-lines:first-child {
  margin-top: 0;
}

.ads-lines__item {
  display: grid;
  gap: 8px;
  padding: 30px 0;
  border-top: 1px solid var(--outher-light-gray);
}

.ads-lines__item:last-child {
  padding-bottom: 0;
}

.ads-sec--dark .ads-lines__item {
  border-top-color: var(--outher-dark-gray);
}

/* Slider arrows next to H2 */
.ads-slider-nav {
  display: flex;
  flex-shrink: 0;
  gap: 60px;
  align-items: center;
}

.ads-slider-nav button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ads-slider-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.ads-slider-nav img {
  display: block;
  width: 32px;
  height: 32px;
}

.ads-sec--dark .ads-slider-nav img {
  filter: invert(1);
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 1240px) {
  .ads-hero h1 {
    font-size: 64px;
  }

  .ads-grid--aside {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

@media screen and (max-width: 1024px) {
  .ads-hero__grid,
  .ads-grid--aside,
  .ads-grid--half {
    grid-template-columns: minmax(0, 1fr);
  }

  .ads-hero .audit-hero-slider {
    width: 100%;
    justify-self: stretch;
  }

  .ads-sec h2,
  .ads-sec .ads-sec__title {
    font-size: 40px;
  }

  .ads-aside:empty {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .ads-hero {
    padding: 40px 0 80px;
  }

  .ads-hero__crumbs {
    margin-bottom: 120px;
  }

  .ads-hero h1 {
    margin-bottom: 24px;
    font-size: 48px;
  }

  .ads-hero__text p {
    font-size: 18px;
  }

  .ads-hero .audit-hero-slider {
    height: 203px;
  }

  .ads-hero .audit-hero-slider__card {
    padding: 24px;
  }

  .ads-hero .audit-hero-slider__number strong {
    font-size: 32px;
  }

  .ads-hero .audit-hero-slider__icon {
    width: 40px;
    height: 40px;
  }

  .ads-hero .audit-hero-slider__pagination {
    right: 24px;
    bottom: 24px;
  }

  .ads-sec {
    padding: 60px 0;
  }

  .ads-sec__head {
    margin-bottom: 40px;
  }

  .ads-sec h2,
  .ads-sec .ads-sec__title {
    font-size: 32px;
  }

  .ads-grid {
    gap: 24px;
  }

  .ads-text p,
  .ads-sec .ads-text p,
  .ads-sec .ads-muted,
  .ads-list li {
    font-size: 18px;
  }

  .ads-sec .ads-h3 {
    font-size: 24px;
  }

  .ads-intro {
    margin-bottom: 40px;
  }

  .ads-after {
    margin-top: 40px;
  }

  .ads-slider-nav {
    display: none;
  }
}
