.smallHeroBlock {
  position: relative;
  width: 95%;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 50px;
  height: 540px;
  margin: auto;
  margin-top: 60px;
  margin-bottom: 60px;
  max-width: 1280px;
}

.smallHeroBlock_news {
  position: relative;
  width: 95%;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 50px;
  height: auto;
  margin: auto;
  margin-top: 60px;
  margin-bottom: 60px;
  max-width: 1280px;
}

/* Background Div */
.smallHero-background {
  position: relative; /* Only need absolute here, remove the redundant 'relative' */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-size: cover; /* Ensure the background covers the entire block */
  background-position: center top; /* Center the background image */
  background-repeat: no-repeat;
  z-index: 1; /* Keep it behind the header */
}

.heroMenu {
  text-decoration: none;
  padding-left: 0;
}

.heroMenu li {
  list-style: none;
  margin-bottom: 15px;
  font-family: "Glacial Indifference";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

.heroMenu li a {
  color: var(--Hittarp-svart);
  text-decoration: none;
}

.heroMenu_Header {
  border-bottom: 2px solid var(--Hittarp-red1);
  margin-bottom: 20px;
  font-family: Anton;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.48px;
  pointer-events: none;
  text-transform: uppercase;
}

.heroMenu li a:visited {
  color: var(--Hittarp-svart);
  text-decoration: none;
}

.heroMenu li.current_page_item > a {
  font-weight: 700;
}
.heroMenu li.current_page_item > a:visited {
  font-weight: 700;
}

.menu-item-has-children > a::after {
  position: relative;
  top: -2px;
  padding-left: 5px;
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none"><path d="M1 1L3.66667 4L1 7" stroke="%23FF1500"/><path d="M4.33398 1L7.00065 4L4.33398 7" stroke="%23FF1500"/></svg>');
}
.current_page_item.menu-item-has-children > a::after,
.current_page_parent > a::after {
  position: relative;
  top: -2px;
  padding-left: 5px;
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none"><path d="M7 1L4 3.66667L1 1" stroke="%23FF1500"/><path d="M7 4.33398L4 7.00065L1 4.33398" stroke="%23FF1500"/></svg>');
}

.heroMenu .sub-menu {
  padding-left: 10px;
  display: none;
}
.heroMenu .current_page_parent .sub-menu,
.heroMenu .current_page_item .sub-menu {
  display: unset;
}

.sub-menu li a {
  font-family: "Glacial Indifference";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.28px;
}
.heroMenu .sub-menu li a:hover,
.heroMenu li:hover {
  font-weight: 700;
  transition: all 0.1s ease;
}

.heroMenu .sub-menu li a{
  padding-left: 5px;
}
.heroMenu .sub-menu li a::before {
  padding-right: 5px;
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none"><path d="M1 1L3.66667 4L1 7" stroke="%23FF1500"/><path d="M4.33398 1L7.00065 4L4.33398 7" stroke="%23FF1500"/></svg>');
}

.smallHeroBlock_Block {
  position: relative; /* Ensure the content stays in front */
}

.smallHeroBlock_Column_h1 {
  position: relative;
  width: 95%;
  margin: auto;
  max-width: 1280px;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.smallHeroBlock_Column_h1 h1 {
  text-shadow: 2px 2px 10px rgb(0 0 0 / 50%);
  margin: 0;
  margin-bottom: 20px;
  width: auto;
  color: var(--Hittarp-vit);
  font-family: Anton;
  font-size: 90px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.smallHeroBlock_Column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.smallHeroBlock_Column_left,
.smallHeroBlock_Column_right {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}
.smallHeroBlock_Column_left_image img,
.smallHeroBlock_Column_right_image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.smallHeroBlock_Column_left_image,
.smallHeroBlock_Column_right_image {
  border-radius: 8px;
  overflow: hidden;
}

.smallHeroBlock_Column_right,
.smallHeroBlock_Column_left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.smallHeroBlock_Column_right_text,
.smallHeroBlock_Column_left_text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.smallHeroBlock_column_right_header,
.smallHeroBlock_column_left_header {
  flex-shrink: 0; /* Prevent header from shrinking */
}

.smallHeroBlock_column_right_excerpt,
.smallHeroBlock_column_left_excerpt {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  position: relative;
  gap: 20px;
}

.smallHeroBlock_column_right_excerpt p,
.smallHeroBlock_column_left_excerpt p {
  flex: 1;
  overflow: hidden;
  margin: 10px 0;
}

.smallHeroBlock_column_excerpt_button {
  margin-top: auto; /* Push button to bottom */
  padding-top: 10px;
}

.smallHeroBlock_Column_left_text h3,
.smallHeroBlock_Column_right_text h3 {
  font-family: Anton;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.48px;
  color: var(--Hittarp-svart);
  margin-bottom: 5px;
  margin-top: 20px;
}

.smallHeroBlock_column_left_header,
.smallHeroBlock_column_right_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.date_and_category {
  display: flex;
  gap: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
  align-self: flex-start; /* Aligns to the top */
  margin-top: 20px;
}

.date_and_category_date {
  display: flex;
  align-items: center;
  color: var(--Hittarp-svart);
  font-family: Oswald;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
  padding-right: 10px;
  border-bottom: 1px solid var(--Hittarp-red1);
}

.date_and_category_category {
  color: var(--Hittarp-vit);
  text-align: center;
  font-family: Oswald;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.6px;
  background-color: var(--Hittarp-red1);
  padding: 5px 15px;
  min-width: 60px;
  border-radius: 2px;
}
.smallHeroBlock_Column_left_text p,
.smallHeroBlock_Column_right_text p {
  font-family: "Glacial Indifference";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
  color: var(--Hittarp-svart);
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0px;
}

.smallHeroBlock_Column_left_text a,
.smallHeroBlock_Column_right_text a {
  font-family: Oswald;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.7px;
  color: var(--Hittarp-svart);
}

.smallHeroBlock_Column_left_text a:visited,
.smallHeroBlock_Column_right_text a:visited {
  color: var(--Hittarp-svart);
}

.smallHeroBlock_Column_left_text a::after,
.smallHeroBlock_Column_right_text a::after {
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 11 11" fill="none"><path d="M1 1L5 5.5L1 10" stroke="%23FF1500"/><path d="M6 1L10 5.5L6 10" stroke="%23FF1500"/></svg>');
  margin-left: 5px;
}

.smallHeroBlock_Column h1.header_length {
  max-width: 1280px;
}

.scrollText {
  position: absolute;
  bottom: 15px;
  right: 0;
  display: inline-flex;
  align-items: center;
  z-index: 5;
}

.smallHeroBlock_column_right_excerpt,
.smallHeroBlock_column_left_excerpt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 15px; /* Add some space between header and content */
}

.smallHeroBlock_column_right_excerpt p,
.smallHeroBlock_column_left_excerpt p {
  flex: 1;
  margin: 0;
  overflow: hidden;
}

.smallHeroBlock_column_excerpt_button {
  margin-top: auto;
  margin-bottom: 15px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .smallHeroBlock_news {
    gap: 20px;
  }

  .smallHeroBlock_Column_h1 h1 {
    font-size: 50px;
  }

  .smallHeroBlock_Column {
    gap: 20px;
  }
  .smallHeroBlock_column_right_header,
  .smallHeroBlock_column_left_header {
    flex-direction: column-reverse;
  }
  .date_and_category {
    margin-top: 0px;
    justify-content: flex-end;
    width: 100%;
  }
  .smallHeroBlock_column_right_header h3,
  .smallHeroBlock_column_left_header h3 {
    width: 100%;
    margin-top: 5px;
  }
}

@media (max-width: 768px) {
  .smallHeroBlock_Column_h1 h1 {
    font-size: 40px;
  }

  .smallHeroBlock {
    grid-template-columns: 1fr;
    margin-top: 0px;
    margin-bottom: 0px;
    width: 100%;
    max-height: 400px;
  }
  .smallHero-background {
    border-radius: 0px;
  }

  .smallHeroBlock_Block {
    display: none;
  }

  .smallHeroBlock_news {
    margin-bottom: 20px;
    gap: unset;
    grid-template-columns: 1fr;
  }

  .smallHeroBlock_Column {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .smallHeroBlock_Column_right,
  .smallHeroBlock_Column_left {
    min-height: 200px; /* Minimum height on mobile */
  }

  .smallHeroBlock_Column_right_text,
  .smallHeroBlock_Column_left_text {
    height: auto;
  }

  .date_and_category {
    margin-top: 5px; /* Slightly less space on mobile */
  }

  .smallHeroBlock_column_right_excerpt p,
  .smallHeroBlock_column_left_excerpt p {
    -webkit-line-clamp: unset; /* Remove line limit on mobile */
    max-height: none;
  }

  .smallHeroBlock_column_excerpt_button {
    position: relative;
    bottom: 0;
    padding-top: 15px;
  }
}
