.how-to-block {
  margin: 2rem 0;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.how-to-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: #f9f9f9;
  min-height: 180px;
  box-shadow: var(--spinoko-box-shadow);
}
@media (max-width: 768px) {
  .how-to-step {
    flex-direction: column;
  }
}

.step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
}

.step-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.step-content {
  flex: 1;
}

.step-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.step-text {
  margin: 0;
  line-height: 1.6;
}

.step-text {
  margin: 0;
  line-height: 1.6;
}

/* Pros & Cons Block */
.pros-cons-block {
  margin: 2rem 0;
}

.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 768px) {
  .pros-cons-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.pros-section {
  padding: 20px;
  border-radius: 10px;
  border: solid 1px #38b16e;
  background: #f3fff6;
  margin-right: 10px;
}
@media (max-width: 768px) {
  .pros-section {
    margin-right: 0;
  }
}

.cons-section {
  padding: 20px;
  border-radius: 10px;
  border: solid 1px #b11b1b;
  background: #fff6f6;
  margin-left: 10px;
}
@media (max-width: 768px) {
  .cons-section {
    margin-left: 0;
  }
}

.pros-title,
.cons-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.pros-list,
.cons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pro-item,
.con-item {
  margin-bottom: 0.5rem;
}

.pro-content,
.con-content {
  margin: 0;
  line-height: 1.6;
}

.lwptoc_itemWrap {
  column-gap: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.lwptoc_i {
  padding: 0 !important;
}

.lwptoc_header {
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: #3182ce;
  border-radius: 5px;
  color: #fff;
}

.lwptoc_toggle_label {
  color: #fff !important;
}

.lwptoc_itemWrap {
  background-color: #fff;
  border: 1px solid #3182ce;
  padding: 14px 18px;
}

.lwptoc_item a {
  position: relative;
  color: #222 !important;
}

.lwptoc_item a::before {
  content: "";
  position: absolute;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='10' height='10' viewBox='0 0 256 256' xml:space='preserve'%3E%3Cg style='stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;' transform='translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)'%3E%3Cpath d='M 87.85 41.551 L 5.545 1.167 C 2.414 -0.369 -0.979 2.725 0.263 5.984 l 14.342 37.648 c 0.336 0.881 0.336 1.854 0 2.735 L 0.263 84.016 c -1.241 3.259 2.152 6.353 5.282 4.817 L 87.85 48.449 C 90.717 47.043 90.717 42.957 87.85 41.551 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: %233182ce; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  width: 10px;
  height: 10px;
  top: 4px;
}

.lwptoc_item_label {
  margin-left: 20px;
}

.lwptoc_items-visible .lwptoc_itemWrap {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  margin-top: -4px;
}

.wp-block-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.wp-block-table tbody tr:first-child {
  background-color: #2d3748;
  color: #fff;
}

.wp-block-table tr td {
  border: none;
  padding: 8px !important;
  border-right: 1px solid #f9f9f9;
}

.wp-block-table tr td:first-child {
  border-left: 1px solid #f9f9f9;
}

.wp-block-table tr:last-child {
  border-bottom: 1px solid #f9f9f9;
}

@media (max-width: 768px) {
  .footer-menu {
    flex-direction: column !important;
    gap: 10px;
  }
  .footer-certificates__logos {
    flex-wrap: wrap;
  }
}
.site-info {
  font-size: 14px !important;
}

.footer-navigation ul {
  justify-content: space-between !important;
}

.footer-navigation ul li {
  padding: 0 !important;
}

.footer-navigation ul .sub-menu {
  padding-inline-start: 0 !important;
}

.footer-navigation ul .sub-menu li {
  font-weight: normal !important;
}

.footer-navigation ul:has(.sub-menu) li:after {
  display: none !important;
}

.footer-address__label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
}

/* Footer Certificates (child theme) */
.footer-certificates {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 20px 0;
}

.footer-certificates__logos {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-certificates__logos img {
  max-width: 150px;
  height: 50px;
  filter: grayscale(1);
}

/* Footer Information (child theme) */
.site-footer__info {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.site-footer .container {
  padding: 35px 16px 16px 16px;
}

.footer-info__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.footer-site-logo img {
  max-width: 220px;
  height: auto;
  display: block;
}

.footer-description {
  margin-bottom: 10px;
}

.footer-social-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-info__col--right {
  min-width: 200px;
}

.footer-social-icon img {
  width: 24px;
  height: 23px;
  object-fit: contain;
  display: block;
}

.footer-social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 768px) {
  .footer-info__inner {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-info__col--left,
  .footer-info__col--right {
    max-width: 100%;
  }
  .footer-site-logo img {
    max-width: 150px;
  }
}
/* Subheader Styles */
.subheader {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 52px;
  z-index: 5;
}
.subheader .sub-menu {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subheader .sub-menu-navigation {
  width: 100%;
}
.subheader .sub-menu li {
  position: relative;
}
.subheader .sub-menu a {
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}
.subheader .sub-menu a:hover,
.subheader .sub-menu a:focus {
  color: #c53030;
  background-color: #f3f4f6;
}
.subheader .sub-menu .current-menu-item a,
.subheader .sub-menu .current_page_item a {
  color: #c53030;
  font-weight: 600;
}
.subheader .sub-menu .current-menu-item a::after,
.subheader .sub-menu .current_page_item a::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #c53030;
  border-radius: 1px;
}

.subheader-content {
  display: flex;
  padding: 12px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .subheader {
    margin-top: 0;
  }
  .subheader .sub-menu {
    gap: 1rem;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: flex-start; /* Align to start for scrolling */
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar on Firefox */
    -ms-overflow-style: none; /* Hide scrollbar on IE/Edge */
    padding: 0 1rem; /* Add padding for better scrolling experience */
  }
  .subheader .sub-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar on Webkit browsers */
  }
  .subheader .sub-menu a {
    font-size: 13px;
    padding: 6px 10px;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent items from shrinking */
  }
}
.author-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .author-section {
    margin-top: 2rem;
    padding: 0 1rem;
  }
}

.author-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}
.author-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.author-card--fact-check {
  background-color: #f3f3f3 !important;
}
.author-card__content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-direction: column;
}
@media (max-width: 768px) {
  .author-card__content {
    align-items: center;
    text-align: center;
  }
}
.author-card__avatar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.author-card__avatar img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid #f3f4f6;
}
@media (max-width: 640px) {
  .author-card__avatar img {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 768px) {
  .author-card__avatar {
    margin-bottom: 0.5rem;
  }
}
.author-card__details {
  text-align: left;
}
.author-card__info {
  flex-grow: 1;
  color: #222;
}
.author-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .author-card__name {
    font-size: 1.125rem;
  }
}
.author-card__role {
  font-size: 0.875rem;
  font-weight: 500;
}
.author-card__total-posts {
  font-size: 0.875rem;
  color: #4b5563;
}
.author-card__bio {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.author-card__bio p {
  margin-bottom: 0.75rem;
}
.author-card__bio p:last-child {
  margin-bottom: 0;
}
.author-card__bio--italic {
  font-style: italic;
  color: #6b7280;
}
.author-card__social-links {
  display: flex;
  gap: 5px;
  margin: 5px 0;
}
.author-card__social-links a {
  color: #4b5563;
  transition: color 0.2s;
}
.author-card__social-links a svg {
  width: 24px;
  height: 24px;
  fill: rgb(197, 48, 48);
}
.author-card__posts-link {
  margin-top: 1rem;
}
.author-card__posts-link a {
  display: inline-flex;
  align-items: center;
  color: #c53030;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.author-card__posts-link a:hover {
  color: #742a2a;
}
.author-card__posts-link a svg {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
}

.page-template-page-cover .last-updated, .page-template-page-cover .author-card__info {
  color: #eee;
}

.last-updated {
  color: #222;
}

.g-links-block {
  margin: 30px 0;
}
.g-links-block__list {
  grid-gap: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0 !important;
  margin: 0;
}
@media (max-width: 768px) {
  .g-links-block__list {
    grid-template-columns: 1fr;
    grid-gap: 15px;
  }
}
.g-links-block__item {
  margin: 0;
  list-style-type: none;
}
.g-links-block__link {
  background: #fff url(../../assets/images/link-arrow.svg) no-repeat center right 4px;
  background-size: 45px;
  color: #000;
  display: flex;
  border: 1px solid #3182ce;
  font-size: 16px;
  font-weight: 600;
  height: 55px;
  line-height: 1.2;
  padding-left: 10px;
  padding-right: 55px;
  place-items: center;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.g-links-block__link:hover {
  background-color: #edf2f7;
  color: #000;
}

.toc {
  transition: top 0.3s ease;
  z-index: 9;
  margin-top: -25px;
  margin-bottom: 15px;
}
.toc__content {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 1rem;
}
.toc__header {
  cursor: default;
  display: flex;
  align-items: center;
  user-select: none;
  margin-right: 1.5rem;
  white-space: nowrap;
  font-weight: bold;
  margin-bottom: 0;
}
.toc__header::after {
  content: none;
}
.toc__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding-bottom: 0;
  cursor: grab; /* Indicate draggable */
}
.toc__list--active {
  cursor: grabbing;
}
.toc__list::-webkit-scrollbar {
  display: none;
}
.toc__item {
  margin-bottom: 0;
  border-bottom: none;
  margin-right: 0;
  display: flex;
  align-items: center;
}
.toc__item:not(:last-child)::after {
  content: "|";
  color: #e5e7eb;
  margin: 0 0.5rem;
}
.toc__item:last-child {
  margin-right: 0;
  border-bottom: none;
}
.toc__link {
  text-decoration: none;
  color: #374151;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.95em;
  transition: color 0.2s;
  border-bottom: 4px solid transparent; /* Reserve space for border */
  height: 52px;
  box-sizing: border-box;
}
.toc__link--active {
  color: #2563eb;
  padding-left: 0;
  border-bottom: 4px solid;
}
.toc__link:hover {
  color: #374151;
}

/* Admin bar adjustments */
body.admin-bar .site-header {
  top: 32px !important;
}