

@font-face {
  font-family: "Avenir" !important;
  src: url("../fonts/AvenirLTStd-Roman.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

.ikfinnews-fullpage {
  max-width: 1200px; /* or any width you want */
  margin: 4rem auto; /* this centers it horizontally */
  padding: 20px;
}

.ikfinnews-heading p {
  font-size: 3.5rem;
  font-family: "Avenir", sans-serif;
  font-weight: 600;
  color: black !important;
}

.ikfinnews-hero-article {
  display: flex;
  align-items: stretch;
  height: 450px;
  gap: 5rem;
  margin-top: 3rem;
}

.ikfinnews-heroimage {
  flex: 0 0 70%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.ikfinnews-heroimage img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures horizontal cropping */
  border-radius: 12px;
}

.ikfinnews-herotext {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  text-align: left;
}

.ikfinnews-herotext h3 {
  margin-bottom: 2rem;
  font-weight: bold;
}

.ikfinnews-herotext-para-two {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

@media (max-width: 768px) {
  .ikfinnews-hero-article {
    flex-direction: column;
    height: auto;
    gap: 2rem;
  }

  .ikfinnews-heroimage,
  .ikfinnews-herotext {
    flex: 1 1 100%;
    max-width: 100%;
    height: auto;
  }

  .ikfinnews-herotext {
    text-align: left;
  }
}
/*Filters Section*/
.ikfinnews-filters {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* Remove default link styling */
.ikfinnews-filters a {
  text-decoration: none;
}

/* Styling for each button div */
.ikfinnews-filter {
  padding: 0.6rem 1.2rem;
  min-width: 120px; /*  Minimum width for consistency */
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-weight: 500;
  font-family: "Avenir", sans-serif;
  font-size: 0.95rem;
  color: black;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover highlight */
.ikfinnews-filter:hover {
  background-color: #ffc400;
}


/*Articles Section*/
.ikfinnews-full-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns */
  gap: 0.5rem 4rem; /* vertical gap, horizontal gap */
  margin-top: 2rem;
  border-top: 1px solid #ccc;
}

.ikfinnews-article {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding-top: 1rem;
  border-bottom: 1px solid #000;
  padding-bottom: 1rem;
}

.ikfinnews-article-image {
  min-height: 200px;
  height: 100%;
  width: 200px; /* keep or increase width as needed */
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f5f5;
  flex-shrink: 0;
  display: flex;
}

.ikfinnews-article-image img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* crop image properly */
  display: block;
  border-radius: 10px;
}

.ikfinnews-titletext {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: space-between;
}

.ikfinnews-titletext h4 {
  font-weight: bold;
}

.ikfinnews-pub-and-date {
  display: flex;
  justify-content: left;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 0rem !important;
}

@media (max-width: 768px) {
  .ikfinnews-full-articles {
    grid-template-columns: 1fr;
  }
}

.ikfinnews-article {
  position: relative;
  cursor: pointer;
}

/* Make the entire card clickable using a pseudo-element */
.ikfinnews-article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
@media (max-width: 768px) {
  .ikfinnews-fullpage {
    max-width: 100%;
    overflow-x: hidden;
    padding: 1rem;
    box-sizing: border-box;
  }

  .ikfinnews-heading p {
    font-size: 2.2rem;
    text-align: center;
  }

  .ikfinnews-hero-article {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .ikfinnews-heroimage,
  .ikfinnews-herotext {
    flex: 1 1 100%;
    max-width: 100%;
    height: auto;
  }

  .ikfinnews-herotext {
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .ikfinnews-full-articles {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
    padding: 0;
    overflow-x: hidden;
  }

  .ikfinnews-article {
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 1rem 0;
    gap: 1rem;
    text-align: center;
  }

  .ikfinnews-article::before {
    content: "";
    position: absolute;
    inset: 0;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
  }

  .ikfinnews-article-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }

  .ikfinnews-titletext {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* 🔧 reduces vertical spacing */
  }

  .ikfinnews-titletext-top {
    margin-bottom: 0.25rem; /* optional */
  }

  .ikfinnews-pub-and-date {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.25rem;
  }

  .ikfinnews-filters {
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
  }

  .ikfinnews-filter {
    min-width: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .ikfinnews-herotext-para-two {
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

}
