/* Blog listing + detail layout for the inkblog theme. */

@font-face {
  font-family: "din-regular";
  src: url("/fonts/din-webfont.woff2") format("woff2"),
       url("/fonts/din-webfont.woff") format("woff"),
       url("fonts/din-webfont.woff2") format("woff2"),
       url("fonts/din-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "din-black";
  src: url("/fonts/din_black-webfont.woff2") format("woff2"),
       url("/fonts/din_black-webfont.woff") format("woff"),
       url("fonts/din_black-webfont.woff2") format("woff2"),
       url("fonts/din_black-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "din-bold";
  src: url("/fonts/din_bold-webfont.woff2") format("woff2"),
       url("/fonts/din_bold-webfont.woff") format("woff"),
       url("fonts/din_bold-webfont.woff2") format("woff2"),
       url("fonts/din_bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "din-medium";
  src: url("/fonts/din_medium-webfont.woff2") format("woff2"),
       url("/fonts/din_medium-webfont.woff") format("woff"),
       url("fonts/din_medium-webfont.woff2") format("woff2"),
       url("fonts/din_medium-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

.width100per {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: "din-regular", sans-serif;
}

.width100per p,
.width100per li,
.width100per a,
.width100per input,
.width100per button,
.width100per .short-dec,
.width100per .post-name,
.width100per .post-name a,
.width100per .blog-list-date,
.width100per .blog-details-wrap .blog-wrap,
.width100per .blog-details-wrap .blog-wrap p,
.width100per .blog-details-wrap .blog-wrap li,
.width100per .blog-details-wrap .blog-wrap a,
.width100per .blog-details-wrap .blog-wrap strong,
.width100per .blog-details-wrap .blog-wrap em,
.width100per .blog-details-wrap .blog-wrap u {
  font-family: "din-regular", sans-serif;
}

.width100per img {
  max-width: 100%;
  height: auto;
}

/* ----- Header ----- */
.width100per header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  padding: 0.85rem 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.width100per header.solid,
.width100per header.solid-nav-open {
  background: #fff;
}

.width100per header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.width100per header .logo-wrap {
  width: 75px;
  flex: 0 0 75px;
  position: relative;
  z-index: 2;
}

.width100per header .logo-wrap img {
  width: 75px;
  height: auto;
  display: block;
}

.width100per header .hamburger {
  display: none;
  width: 25px;
  cursor: pointer;
  z-index: 3;
}

.width100per header .hamburger ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.width100per header .hamburger ul li {
  width: 100%;
  height: 2px;
  background: #222;
  margin-bottom: 5px;
}

.width100per header .hamburger ul li:last-child {
  margin-bottom: 0;
}

.width100per header nav {
  margin-left: auto;
}

.width100per header nav ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.width100per header nav ul li {
  margin: 0 0 0 2.25rem;
  width: auto;
  font-size: inherit;
  text-align: left;
}

.width100per header nav ul li a {
  color: #222;
  text-decoration: none;
  font-size: 1.35rem;
  font-family: "din-regular", sans-serif;
}

.width100per header nav ul li a:hover {
  color: #0B7CC1;
}

/* ----- Page shell ----- */
.width100per .blog-list-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 1.75rem;
  row-gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.25rem 4rem;
  overflow-x: clip;
  overflow-y: visible;
  height: auto !important;
  box-sizing: border-box;
}

.width100per .blog-list-wrap > .heading-block,
.width100per .blog-list-wrap > .heading-wrap {
  grid-column: 1 / -1;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: right;
  color: #222222;
  line-height: 1;
  font-size: 80px;
  font-family: "din-black", sans-serif;
  font-weight: bold;
}

.width100per .blog-list-wrap > .heading-block span,
.width100per .blog-list-wrap > .heading-wrap span {
  display: inline-block;
  background: #0B7CC1;
  width: 25px;
  height: 25px;
  margin-left: 0.35rem;
  vertical-align: 0.12em;
  border-radius: 10px 0 10px 10px;
}

.width100per .blog-list-wrap .heading-wrap.search-result {
  font-size: 2.4rem;
  line-height: 1.15;
  text-align: left;
}

.width100per .blog-left-section,
.width100per .blog-right-section {
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  padding: 0 !important;
  box-sizing: border-box;
}

.width100per .blog-right-section {
  align-self: start;
}

.width100per .blog-list-wrap:has(.blog-latest) .blog-right-section {
  margin-top: 2.8rem;
}

.width100per .blog-section-title,
.width100per .related-heading,
.width100per .more-heading,
.width100per .related-wrap > h2 {
  font-family: "din-black", sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #222;
  margin: 0 0 1rem;
  font-weight: bold;
  float: none;
  width: auto;
}

/* Shared card language from the rest of the site */
.width100per .latest-main,
.width100per .related-blog ul li,
.width100per .blog-list-item-wrap ul li,
.width100per .search-bar,
.width100per .related-right-wrap,
.width100per .more-post,
.width100per .blog-details-wrap .blog-wrap {
  border: 2px solid #E6E6E6;
  border-radius: 2.5rem 0 2.5rem 2.5rem;
  background: #fff;
  box-sizing: border-box;
}

/* ----- Featured card ----- */
.width100per .blog-latest {
  margin-bottom: 2rem;
}

.width100per .blog-latest .latest-main {
  overflow: hidden;
  height: auto !important;
  min-height: 0 !important;
}

.width100per .blog-latest .latest-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 2.35rem 0 0 0;
}

.width100per .blog-latest .latest-copy {
  padding: 1.25rem 1.5rem 0.5rem;
}

.width100per .blog-latest .latest-copy h2 {
  font-family: "din-black", sans-serif;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #222;
  margin: 0 0 0.65rem;
  font-weight: bold;
}

.width100per .blog-latest .latest-copy .short-dec,
.width100per .blog-latest .latest-copy p {
  font-size: 1rem;
  line-height: 1.45;
  color: #222;
  margin: 0;
}

.width100per .blog-latest .list-button {
  padding: 0 1.5rem 1.35rem;
}

/* ----- Latest blogs: 3 cards ----- */
.width100per .related-blog ul,
.width100per .blog-list-item-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.width100per .related-blog ul li,
.width100per .blog-list-item-wrap ul li {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  min-width: 0;
  overflow: hidden;
  height: auto !important;
  margin: 0 0 0 0;
  padding: 0;
}

.width100per .related-blog .latest-img,
.width100per .blog-list-item-wrap .item-img {
  width: 100% !important;
  grid-row: auto !important;
  flex: 0 0 auto;
}

.width100per .related-blog .latest-img img,
.width100per .blog-list-item-wrap .item-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-radius: 2.35rem 0 0 0;
}

.width100per .related-blog .latest-copy,
.width100per .blog-list-item-wrap ul li > h2,
.width100per .blog-list-item-wrap ul li > p,
.width100per .blog-list-date {
  padding-left: 1rem;
  padding-right: 1rem;
}

.width100per .related-blog .latest-copy {
  padding-top: 0.9rem;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.width100per .related-blog .latest-copy h2,
.width100per .related-blog .latest-copy h3,
.width100per .blog-list-item-wrap h2 {
  font-family: "din-black", sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #222;
  margin: 0 0 0.4rem;
  font-weight: bold;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.width100per .related-blog .latest-copy p,
.width100per .related-blog .latest-copy .short-dec,
.width100per .blog-list-item-wrap p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #222;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.width100per .blog-list-date {
  font-size: 0.85rem;
  color: #757575;
  margin-bottom: 0.4rem;
}

.width100per .list-button,
.width100per .listingn-button {
  margin-top: auto;
  padding: 0 1rem 1.1rem;
  width: 100%;
  box-sizing: border-box;
}

.width100per .list-button a,
.width100per .listingn-button a,
.width100per .more-post-button a {
  display: inline-block;
  text-decoration: none;
  color: #222;
  font-family: "din-black", sans-serif;
  font-size: 1.05rem;
}

.width100per .list-button a span,
.width100per .more-post-button a span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 0.35rem;
  vertical-align: 0.05em;
  background: #000;
  border-radius: 6px 0 6px 6px;
}

.width100per .list-button a:hover,
.width100per .listingn-button a:hover,
.width100per .more-post-button a:hover {
  color: #0B7CC1;
}

.width100per .blog-list-section {
  display: block;
  padding: 0;
}

.width100per h1.blog-list-heading,
.width100per .blog-list-heading {
  font-family: "din-black", sans-serif;
  font-size: 80px;
  line-height: 1;
  color: #222;
  font-weight: bold;
  float: none;
  width: auto;
  margin: 0 0 1.5rem;
  text-align: right;
}

/* ----- Pagination ----- */
.width100per .page-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2.25rem 0 0.5rem;
  clear: both;
  text-align: center;
  float: none !important;
}

.width100per .page-navigation ul,
.width100per .page-navigation ul.page-numbers,
.width100per .page-navigation .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: auto;
  float: none;
}

.width100per .page-navigation li {
  margin: 0;
  float: none;
  width: auto;
}

.width100per .page-navigation a,
.width100per .page-navigation span {
  display: inline-block;
  min-width: 2.4rem;
  padding: 0.4rem 0.8rem;
  text-align: center;
  text-decoration: none;
  color: #222;
  font-family: "din-bold", sans-serif;
  border-radius: 0.8rem 0 0.8rem 0.8rem;
}

.width100per .page-navigation .current {
  background: #000;
  color: #fff;
}

.width100per .page-navigation a:hover {
  background: #0B7CC1;
  color: #fff;
}

/* ----- Sidebar cards ----- */
.width100per .search-bar {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  box-sizing: border-box;
}

.width100per .search-bar form {
  width: 100%;
  margin: 0;
}

.width100per .search-bar input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 2px solid #222;
  padding: 0.5rem 0;
  font-size: 1.05rem;
  font-family: "din-regular", sans-serif;
  background: transparent;
  outline: none;
  box-shadow: none;
}

.width100per .related-right-wrap,
.width100per .more-post {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.15rem 1.25rem;
}

.width100per .blog-related-one ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.width100per .blog-related-one img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
  border-radius: 1rem 0 1rem 1rem;
}

.width100per .more-post .post-name {
  margin-bottom: 0.6rem;
}

.width100per .more-post .post-name a {
  display: block;
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.width100per .more-post .post-name a:hover {
  color: #0B7CC1;
}

.width100per .more-post-button {
  margin-top: 0.75rem;
}

/* ----- Blog detail ----- */
.width100per .blog-details-wrap {
  width: 100%;
}

.width100per .blog-list-wrap .blog-wrap,
.width100per .blog-details-wrap .blog-wrap {
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  position: relative;
  padding: 1.5rem 1.6rem 1.75rem;
  overflow: hidden;
}

.width100per .blog-details-wrap .blog-wrap > h1 {
  font-family: "din-black", sans-serif;
  font-size: 2.1rem;
  line-height: 1.2;
  color: #222;
  margin: 0 0 1rem;
  font-weight: bold;
}

.width100per .blog-main-img {
  margin-bottom: 1rem;
}

.width100per .blog-main-img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 2rem 0 2rem 2rem;
}

.width100per .blog-date-name {
  font-size: 0.95rem;
  color: #222;
  margin: 0.5rem 0 1.15rem;
  font-family: "din-bold", sans-serif;
}

.width100per .blog-details-wrap .blog-wrap p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #222;
  margin: 0 0 1rem;
}

.width100per .blog-details-wrap .blog-wrap h2,
.width100per .blog-details-wrap .blog-wrap h3 {
  font-family: "din-black", sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #222;
  margin: 1.4rem 0 0.7rem;
  font-weight: bold;
}

.width100per .blog-details-wrap .blog-wrap ul,
.width100per .blog-details-wrap .blog-wrap ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.width100per .blog-details-wrap .blog-wrap li {
  margin: 0 0 0.4rem;
  line-height: 1.55;
}

.width100per .blog-details-wrap .blog-wrap img {
  max-width: 100%;
  height: auto;
}

.width100per .blog-details-wrap .blog-wrap a {
  color: #0B7CC1;
}

.width100per .prev-next-button-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 0.25rem;
}

.width100per .share-button {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  border-radius: 1.1rem 0 1.1rem 1.1rem;
  padding: 0.45rem 0.9rem;
}

.width100per .share-button span,
.width100per .share-button a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.width100per .button-prev-next {
  display: flex;
  gap: 0.75rem;
}

.width100per .button-prev-next a {
  display: inline-block;
  background: #000;
  color: #fff !important;
  text-decoration: none;
  padding: 0.55rem 1.35rem;
  border-radius: 1rem 0 1rem 1rem;
  font-family: "din-black", sans-serif;
}

.width100per .button-prev-next a:hover {
  background: #0B7CC1;
}

.width100per .related-wrap {
  clear: both;
  margin-top: 2rem;
}

.width100per .related-wrap > h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ----- Footer ----- */
.width100per footer {
  background: #222;
  color: #fff;
  padding: 2.5rem 0 0;
  clear: both;
}

.width100per footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.width100per footer .footer-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.width100per footer .footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.width100per footer .footer-logo .white-logo img,
.width100per footer .white-logo img {
  width: 90px;
  height: auto;
  display: block;
}

.width100per footer .logo-details .name {
  font-family: "din-bold", sans-serif;
}

.width100per footer address {
  font-size: 0.9rem;
  margin: 0;
  font-style: normal;
}

.width100per footer .social-icon ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.width100per footer .social-icon ul li {
  width: 30px;
  height: 30px;
}

.width100per footer .social-icon ul li a {
  display: flex;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.width100per footer .social-icon svg {
  width: 70%;
  height: auto;
}

.width100per footer .footer-nav {
  margin: 1rem 0 0;
}

.width100per footer .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.width100per footer .footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  margin-right: 0.5rem;
}

.width100per footer .site-map {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  padding: 1.25rem 0;
  font-family: "din-medium", sans-serif;
}

@media (min-width: 1601px) {
  .width100per .blog-list-wrap > .heading-block,
  .width100per .blog-list-wrap > .heading-wrap,
  .width100per h1.blog-list-heading,
  .width100per .blog-list-heading {
    font-size: 128px;
  }

  .width100per .blog-list-wrap > .heading-block span,
  .width100per .blog-list-wrap > .heading-wrap span {
    width: 35px;
    height: 35px;
    border-radius: 13px 0 13px 13px;
  }

  .width100per header .container,
  .width100per footer .container,
  .width100per .blog-list-wrap {
    max-width: 1320px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .width100per .blog-list-wrap > .heading-block,
  .width100per .blog-list-wrap > .heading-wrap,
  .width100per h1.blog-list-heading {
    font-size: 4.5rem;
  }
}

@media (max-width: 1024px) {
  .width100per header nav ul li {
    margin-left: 1.25rem;
  }

  .width100per header nav ul li a {
    font-size: 1.2rem;
  }

  .width100per .blog-list-wrap {
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 1.25rem;
  }

  .width100per .blog-latest .latest-img img {
    height: 280px;
  }

  .width100per .related-blog .latest-copy h2,
  .width100per .related-blog .latest-copy h3,
  .width100per .blog-list-item-wrap h2 {
    font-size: 1.02rem;
  }

  .width100per .related-blog .latest-img img,
  .width100per .blog-list-item-wrap .item-img img {
    height: 145px;
  }

  .width100per .blog-details-wrap .blog-wrap > h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 959px) {
  .width100per header .hamburger {
    display: block;
  }

  .width100per header nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    margin: 0;
    padding: 2rem 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .width100per header nav.active {
    transform: translateX(0);
  }

  .width100per header nav ul {
    flex-direction: column;
  }

  .width100per header nav ul li {
    width: 100%;
    margin: 0 0 1rem;
    text-align: center;
    font-size: 2rem;
  }

  .width100per header nav ul li a {
    font-size: 2rem;
    color: #222;
  }

  .width100per .blog-list-wrap {
    grid-template-columns: 1fr;
  }

  .width100per .blog-list-wrap:has(.blog-latest) .blog-right-section {
    margin-top: 0;
  }

  .width100per .related-blog ul,
  .width100per .blog-list-item-wrap ul,
  .width100per .related-wrap .related-blog ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .width100per header {
    padding: 0.5rem 0;
    height: auto;
  }

  .width100per header .logo-wrap,
  .width100per header .logo-wrap img {
    width: 55px;
    flex-basis: 55px;
  }

  .width100per .blog-list-wrap {
    padding: 6rem 1rem 2.5rem;
  }

  .width100per .blog-list-wrap > .heading-block,
  .width100per .blog-list-wrap > .heading-wrap,
  .width100per h1.blog-list-heading {
    font-size: 3rem;
    text-align: right;
  }

  .width100per .blog-list-wrap > .heading-block span,
  .width100per .blog-list-wrap > .heading-wrap span {
    width: 18px;
    height: 18px;
    border-radius: 8px 0 8px 8px;
  }

  .width100per .related-blog ul,
  .width100per .blog-list-item-wrap ul,
  .width100per .related-wrap .related-blog ul {
    grid-template-columns: 1fr;
  }

  .width100per .blog-latest .latest-img img {
    height: 200px;
  }

  .width100per .blog-latest .latest-copy h2 {
    font-size: 1.4rem;
  }

  .width100per .related-blog .latest-img img,
  .width100per .blog-list-item-wrap .item-img img {
    height: 190px;
  }

  .width100per .related-wrap > h2 {
    font-size: 1.5rem;
  }

  .width100per .blog-details-wrap .blog-wrap {
    padding: 1.1rem 1rem 1.25rem;
  }

  .width100per .blog-details-wrap .blog-wrap > h1 {
    font-size: 1.55rem;
  }

  .width100per .blog-details-wrap .blog-wrap p {
    font-size: 1rem;
  }

  .width100per .prev-next-button-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .width100per .button-prev-next {
    justify-content: space-between;
  }

  .width100per .page-navigation {
    margin-top: 1.75rem;
  }

  .width100per footer .footer-details {
    flex-direction: column;
    align-items: flex-start;
  }

  .width100per footer .site-map {
    font-size: 0.8rem;
    padding: 1rem;
    line-height: 1.4;
  }
}

@media (max-width: 380px) {
  .width100per .blog-list-wrap > .heading-block,
  .width100per .blog-list-wrap > .heading-wrap {
    font-size: 2.5rem;
  }

  .width100per header nav ul li a {
    font-size: 1.6rem;
  }
}
