﻿/* Siti.by Blog — px sizes matched to site (Onest/Ubuntu, 16px root) */

.blog-index,
.blog-post {
  display: block;
  width: 100%;
  padding: 0 0 64px;
  box-sizing: border-box;
  background: #f1f3f5;
  font-family: Onest, Ubuntu, Arial, sans-serif;
}

.blog-wrap {
  display: block !important;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px 0;
  box-sizing: border-box;
}

.blog-index .container,
.blog-post .container {
  display: block !important;
  width: 100%;
  max-width: 1200px;
  justify-content: initial;
  align-items: initial;
  padding: 0 15px;
  box-sizing: border-box;
}

.blog-index__header {
  margin: 0 0 28px;
  max-width: 760px;
}

.blog-index__title {
  margin: 0 0 12px;
  font-family: Onest, Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #0d2c60;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .blog-index__title {
    font-size: 24px;
  }
}

.blog-index__intro {
  font-size: 16px;
  line-height: 1.45;
  color: #555;
  max-width: 680px;
}

.blog-index__intro p {
  margin: 0;
}

/* Cards grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.blog-card:hover {
  box-shadow: 0 6px 18px rgba(13, 44, 96, 0.1);
  transform: translateY(-2px);
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f4f8;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}

.blog-card__title {
  font-family: Onest, Ubuntu, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #0d2c60;
  overflow-wrap: anywhere;
}

.blog-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #555;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: #6b7280;
  margin-top: auto;
  padding-top: 4px;
}

.blog-card__more {
  font-size: 14px;
  font-weight: 700;
  color: #2057A8;
}

/* CTA */
.blog-cta-slot {
  grid-column: 1 / -1;
  margin: 8px 0;
}

.blog-cta {
  background: linear-gradient(135deg, #0d2c60 0%, #2057A8 100%);
  color: #fff;
  padding: 28px 24px;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
}

.blog-content .blog-cta {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.blog-equip + .blog-cta,
.blog-related + .blog-cta,
.blog-sources + .blog-cta,
.blog-faq + .blog-cta {
  margin-top: 40px;
}

.blog-cta__inner {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .blog-cta__inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 32px;
  }
}

.blog-cta__title,
.blog-content .blog-cta .blog-cta__title,
.blog-content .blog-cta h2 {
  margin: 0 0 10px;
  font-family: Onest, Ubuntu, sans-serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .blog-cta__title,
  .blog-content .blog-cta .blog-cta__title,
  .blog-content .blog-cta h2 {
    font-size: 20px;
  }
}

.blog-cta__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.blog-cta__form .form-group {
  margin-bottom: 12px;
}

.blog-cta__form input,
.blog-cta__form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-size: 15px;
  padding: 10px 0;
  font-family: Onest, Ubuntu, sans-serif;
}

.blog-cta__form input::placeholder,
.blog-cta__form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.blog-cta__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #52cc73 28.37%, #169037 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: Onest, Ubuntu, sans-serif;
  border-radius: 4px;
}

.blog-cta__message {
  display: none;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}

.blog-cta__policy {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.blog-cta__policy a {
  color: #fff;
  text-decoration: underline;
}

/* Pagination */
.blog-pagination {
  margin-top: 28px;
}

.blog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d9e0ef;
  background: #fff;
  color: #0d2c60;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
}

.blog-pagination__item.is-active .blog-pagination__link {
  background: #2057A8;
  border-color: #2057A8;
  color: #fff;
}

/* Article */
.blog-post__header {
  margin-bottom: 20px;
}

.blog-post__title {
  margin: 0 0 12px;
  font-family: Onest, Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #0d2c60;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .blog-post__title {
    font-size: 24px;
  }
}

.blog-post__lead {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  max-width: 720px;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: #6b7280;
}

.blog-post__hero {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.blog-post__hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.blog-takeaways {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #fff;
  border-left: 4px solid #2057A8;
  border-radius: 0 8px 8px 0;
}

.blog-takeaways__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: #0d2c60;
}

.blog-takeaways__body {
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.blog-takeaways__body ul {
  margin: 0;
  padding-left: 18px;
}

.blog-toc {
  background: #fff;
  border: 1px solid #e6ebf5;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 8px;
}

.blog-toc__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0d2c60;
  font-size: 15px;
}

.blog-toc__list {
  margin: 0;
  padding-left: 18px;
}

.blog-toc__link {
  color: #2057A8;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.blog-toc__link:hover {
  text-decoration: underline;
}

.blog-content {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  max-width: 760px;
}

.blog-content h2,
.blog-content h3 {
  scroll-margin-top: 100px;
}

.blog-content h2 {
  margin: 28px 0 10px;
  font-size: 22px;
  color: #0d2c60;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.blog-content h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  color: #0d2c60;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.blog-content p {
  margin: 0 0 12px;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.blog-content td,
.blog-content th {
  border: 1px solid #d9e0ef;
  padding: 8px 10px;
  text-align: left;
}

.blog-content blockquote,
.blog-callout {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f7f9fc;
  border-left: 4px solid #2057A8;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
}

.blog-callout--important {
  border-left-color: #c0392b;
  background: #fff5f5;
}

.blog-callout--example {
  border-left-color: #1e8449;
  background: #f3fbf6;
}

.blog-callout--note {
  border-left-color: #d68910;
  background: #fffaf0;
}

.blog-callout__label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0d2c60;
  font-size: 14px;
}

.blog-section-title {
  font-size: 22px;
  color: #0d2c60;
  font-weight: 700;
  margin: 36px 0 16px;
  font-family: Onest, Ubuntu, sans-serif;
}

.blog-faq {
  margin: 36px 0 0;
  max-width: 800px;
}

.blog-faq__list {
  margin: 0;
  background: #fff;
  border: 1px solid #e6ebf5;
  border-radius: 8px;
  overflow: hidden;
}

.blog-faq__item + .blog-faq__item {
  border-top: 1px solid #e6ebf5;
}

.blog-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.blog-faq__trigger:hover {
  background: #f7f9fc;
}

.blog-faq__q {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #0d2c60;
  font-family: Onest, Ubuntu, sans-serif;
}

.blog-faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #2057A8;
}

.blog-faq__icon::before,
.blog-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.blog-faq__icon::before {
  width: 14px;
  height: 2px;
}

.blog-faq__icon::after {
  width: 2px;
  height: 14px;
  transition: transform .2s ease, opacity .2s ease;
}

.blog-faq__item.is-open .blog-faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.blog-faq__a {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.blog-faq__a[hidden] {
  display: none !important;
}

.blog-faq__a p {
  margin: 0 0 8px;
}

.blog-faq__a p:last-child {
  margin-bottom: 0;
}

.blog-sources,
.blog-equip,
.blog-related {
  margin: 36px 0 0;
}

.blog-sources__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.blog-sources__link {
  color: #2057A8;
  overflow-wrap: anywhere;
}

.blog-related__list,
.blog-equip__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .blog-related__list,
  .blog-equip__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-related__list,
  .blog-equip__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-related__card,
.blog-equip__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 1px solid #e6ebf5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow .2s ease, transform .2s ease;
}

.blog-related__card:hover,
.blog-equip__card:hover {
  box-shadow: 0 6px 18px rgba(13, 44, 96, 0.1);
  transform: translateY(-2px);
}

.blog-related__img,
.blog-equip__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f2f4f8;
  line-height: 0;
}

.blog-related__img img,
.blog-equip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-related__body,
.blog-equip__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}

.blog-related__title,
.blog-equip__title {
  display: block;
  font-family: Onest, Ubuntu, sans-serif;
  font-weight: 700;
  color: #0d2c60;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.blog-related__intro,
.blog-equip__desc {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  overflow-wrap: anywhere;
}

.blog-equip__more {
  margin-top: auto;
  padding-top: 4px;
  color: #2057A8;
  font-size: 13px;
  font-weight: 700;
}

.blog-index .breadcrumbs,
.blog-post .breadcrumbs {
  background: #fff;
}
