

/* Vecais */

/* ===== BLOG STANDARD GRID ===== */

.m-blog {
  padding: 50px 0;
  background: #fff;
}

.m-blog__landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 35px;
}

.c-blog-article-tile {
  background: #fff;
  border: 1px solid #e5e5e5;
  height: 100%;
}

.c-blog-article-tile a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #111;
  text-decoration: none;
}

.c-blog-article-tile__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  overflow: hidden;
}

.c-blog-article-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* overlay nost */
.c-blog-article-tile__overlay-text {
  display: none !important;
}

.c-blog-article-tile__content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c-blog-article-tile__tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #305bb1;
  margin-bottom: 10px;
}

.c-blog-article-tile__title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 12px;
  color: #111;
}

.c-blog-article-tile__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 18px;
}

.c-blog-article-tile__reading-time,
.c-blog-article-tile__publication-date {
  font-size: 13px;
  color: #777;
}

.c-blog-article-tile__publication-date {
  margin-top: auto;
  padding-top: 14px;
}

/* 4 raksti rindā uz platākiem ekrāniem */
@media (min-width: 1200px) {
  .m-blog__landing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* planšete */
@media (max-width: 1000px) {
  .m-blog__landing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* telefons */
@media (max-width: 600px) {
  .m-blog__landing-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== BLOG CARDS EQUAL HEIGHT ===== */

.m-blog__landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.c-blog-article-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.c-blog-article-tile a {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.c-blog-article-tile__visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.c-blog-article-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-blog-article-tile__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.c-blog-article-tile__title {
  min-height: 82px; /* vienāds virsrakstu bloks */
}

.c-blog-article-tile__excerpt {
  min-height: 70px; /* vienāds teksts */
}

.c-blog-article-tile__publication-date {
  margin-top: auto;
}


/* ===== BLOG FILTER BUTTONS ===== */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 40px;
}

.blog-filter {
  appearance: none;
  border: 1px solid #d9d9d9;
  background: #f3f3f3;
  color: #111;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 0;
}

.blog-filter:hover {
  background: #e9e9e9;
  border-color: #bdbdbd;
}

.blog-filter.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* mobile */
@media (max-width: 640px) {
  .blog-filters {
    gap: 10px;
  }

  .blog-filter {
    padding: 11px 16px;
    font-size: 13px;
  }
}





.m-blog-article__hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.m-blog-article__hero-media {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 520px;
}

.m-blog-article__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


.m-blog-article__hero {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
}

.m-blog-article__hero-media {
    position: relative !important;
    width: 100%;
    height: auto !important;
    min-height: unset !important;
}

.m-blog-article__hero-image {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center;
    display: block;
}

.m-blog-article__hero-overlay,
.m-blog-article__hero-inner {
    position: absolute;
}


.m-blog-article__header {
    padding: 60px 0 32px;
    background: #fff;
}

.m-blog-article__image-wrap {
    margin-bottom: 40px;
}

.m-blog-article__main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.m-blog-article__hero-title {
    color: #111;
}

.m-blog-article__hero-category {
    color: #305bb1;
}


/* ===== SINGLE BLOG ARTICLE ===== */

.m-blog-article {
    background: #fff;
}

.m-blog-article__header {
    padding: 56px 0 28px;
}

.m-blog-article__category {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #305bb1;
    margin-bottom: 12px;
}

.m-blog-article__title {
    max-width: 920px;
    margin: 0;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 900;
    color: #111;
}

.m-blog-article__image-section {
    margin-bottom: 44px;
}

.m-blog-article__main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.m-blog-article__body-wrap {
    padding-bottom: 60px;
}

.m-blog-article__body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: #111;
}

.m-blog-article__body p {
    margin-bottom: 22px;
}

.m-blog-article__related-wrap {
    padding: 60px 0;
    background: #f7f7f7;
}

.m-blog-article__related-title {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 900;
    color: #111;
}

.m-blog-article__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.c-related-article {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.c-related-article__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #111;
    text-decoration: none;
}

.c-related-article__image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
}

.c-related-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c-related-article__content {
    padding: 18px;
}

.c-related-article__tag {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #305bb1;
    margin-bottom: 10px;
}

.c-related-article__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #111;
}

.c-related-article__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 1000px) {
    .m-blog-article__title {
        font-size: 36px;
    }

    .m-blog-article__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .m-blog-article__header {
        padding: 36px 0 22px;
    }

    .m-blog-article__title {
        font-size: 30px;
    }

    .m-blog-article__body {
        font-size: 16px;
    }

    .m-blog-article__related-grid {
        grid-template-columns: 1fr;
    }
}

.m-blog-article__image-section .bbl-container,
.m-blog-article__body {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.m-blog-article__main-image {
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}


/* ===== FIX SINGLE BLOG IMAGE CENTERING ===== */

.m-blog-article__image-section {
    width: 100%;
    margin: 0 auto 44px auto !important;
}

.m-blog-article__image-section .bbl-container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.m-blog-article__main-image {
    width: 100% !important;
    max-width: 860px !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
}


.m-blog-article__image-section {
    width: 100%;
    margin: 0 0 44px 0;
}

.m-blog-article__image-container {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.m-blog-article__main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}