/*
Theme Name: Reboot Child
Template: reboot
*/

* {
    zoom: unset !important;
}

/* Скрыть ссылку "Skip to content" */
.skip-link.screen-reader-text {
    display: none !important;
}

a.skip-link {
    display: none !important;
  }


/* ───── контейнер ───── */
.read-also-block{
  margin:64px 0 32px;
  padding:0;
}

/* заголовок (не H-tag, поэтому стилизуем отдельно) */
.read-also-heading{
  font-size:22px;
  font-weight:700;
  margin:0 0 24px;
}

/* ───── сетка ───── */
.read-also-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
}

/* ───── карточка ───── */
.read-item{display:flex;flex-direction:column}
.read-item img{
  width:100%;height:140px;object-fit:cover;
  border-radius:8px;transition:.25s
}
.read-item h3{
  margin:12px 0 0;font-size:16px;line-height:1.4;
  color:#333;transition:.25s
}
.read-item a{text-decoration:none}
.read-item a:hover img{transform:scale(1.05)}
.read-item a:hover h3{color:#006eff}

/* ───── мобильная адаптация ───── */
@media(max-width:600px){
  .read-also-grid{gap:16px}
  .read-item img{height:120px}
  .read-item h3{font-size:14px}
}

/* сетка 4×2 – делаем, если пост-карты не строятся сами */
.read-also .post-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:48px 32px;          /* вертикаль | горизонталь */
}

/* Адаптив */
@media(max-width:768px){
  .read-also .post-cards{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:32px 20px}
}

/* Основной контейнер */
.b-r--before_site_content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  padding: 0 !important;
}

html body .b-r img,
html body .b-r--before_site_content img,
html body .b-r--before_site_content > a img,
html body .affdays-banner img {
    width: 100% !important;
    max-width: none !important; /* сброс ограничения */
    height: auto !important;
    display: block !important;
    aspect-ratio: auto !important;
}
.expert-block-verified {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.expert-verified-image {
  flex: 0 0 80px;
  margin-right: 20px;
}

.expert-verified-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.expert-verified-content {
  flex: 1;
  min-width: 200px;
}

.expert-verified-title {
  font-weight: 600;
  color: #2e7d32; /* Зелёный цвет, как у заголовка */
  margin-bottom: 6px;
}

.expert-verified-content a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
}

.expert-verified-content a:hover {
  text-decoration: underline;
}

/* ===== Sidebar text top list (AffDays) ===== */

.sidebar-text-top .st-block{
  margin: 0 0 16px;
}

.sidebar-text-top .st-title{
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
}

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

/* Buttons with centered text */
.sidebar-text-top .st-list a{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 10px 12px;
  min-height: 42px;

  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);

  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}

/* Hover */
.sidebar-text-top .st-list a:hover{
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* HOME: force header + cards to sit with no reserved row */
body.home .section-block.section-posts{
  display: grid !important;
  grid-template-rows: auto auto !important; /* header row + cards row */
  row-gap: 0 !important;
}

body.home .section-block.section-posts > .section-block__header{
  margin: 0 !important;
  padding: 0 !important;
}

body.home .section-block.section-posts > .post-cards{
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Home: controlled spacing under section-html headers */
body.home .section-block.section-html > .section-block__header{
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
}

body.home .section-block.section-html > .section-block__header > h2.section-block__title{
  margin-bottom: 0 !important;
}

/* Spanish HTML sitemap */
.affdays-es-sitemap {
    max-width: 100%;
}

/* Section headings */
.affdays-es-sitemap h2 {
    margin-top: 30px;
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.25;
}

/* Main lists */
.affdays-es-sitemap ul {
    list-style-position: outside;
    margin: 0 0 22px 20px;
    padding-left: 14px;
}

/* Nested lists */
.affdays-es-sitemap ul ul {
    margin-top: 7px;
    margin-bottom: 0;
    padding-left: 18px;
}

/* List items */
.affdays-es-sitemap li {
    margin: 0 0 5px 0;
    padding-left: 0;
    line-height: 1.35;
}

/* Category rows */
.affdays-es-sitemap .category-title {
    font-weight: 700;
}

/* Links */
.affdays-es-sitemap a {
    text-decoration: underline;
}

/* Reduce gap before the category block */
.affdays-es-sitemap h2 + ul {
    margin-top: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .affdays-es-sitemap h2 {
        margin-top: 26px;
        margin-bottom: 12px;
        font-size: 24px;
    }

    .affdays-es-sitemap ul {
        margin-left: 18px;
        padding-left: 12px;
    }

    .affdays-es-sitemap ul ul {
        padding-left: 16px;
    }

    .affdays-es-sitemap li {
        margin-bottom: 7px;
    }
}

html[lang^="en"] #block-170 {
  display: none !important;
}

html[lang^="es"] #block-108 {
  display: none !important;
}