
.w-clearfix:after,
.w-clearfix:before {
  content: " ";
  display: table;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-column-end: 2;
  grid-row-end: 2;
}
.w-clearfix:after {
  clear: both;
}

.container {
  z-index: 0;
  text-align: center;
  background-color: #0000;
  max-width: 1400px;
  height: auto;
  min-height: auto;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  padding-bottom: 0;
  display: block;
  position: relative;
  bottom: 0;
  right: 0;
}

.news-wrapper-front {
  float: left;
  background-color: #0000;
  flex-flow: wrap;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  margin-top: 10px;
  padding-bottom: 45px;
  display: flex;
}

.ind-news-wrapper {
  float: left;
  border: 1px #000;
  flex-flow: row;
  flex: none;
  order: -1;
  align-self: stretch;
  width: 33.3333%;
  margin-bottom: 8px;
  padding-bottom: 0;
  padding-left: 4px;
  padding-right: 4px;
  display: flex;
  position: relative;
}

.ind-news-wrapper-inner {
  color: #000;
  text-align: left;
  cursor: pointer;
  background-color: #0000;
  border: 1px #000;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  padding-bottom: 0;
  padding-left: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  text-decoration: none;
  transition: color 0.4s;
  display: flex;
  position: relative;
}

.ind-news-wrapper-inner:hover {
  color: #888;
  font-family: "Open Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.ind-news-img {
  float: none;
  border-top-left-radius: 0;
  flex-flow: wrap;
  flex: none;
  order: 0;
  place-content: center flex-start;
  align-self: center;
  align-items: stretch;
  width: 100%;
  height: 300px;
  display: block;
  overflow: visible;
  object-fit: contain;
  background-color: #f8f8f8;
  padding: 4px;
}

.ind-news-img-wrapper {
  width: 100%;
  height: auto;
  display: flex;
  position: relative;
  overflow: hidden;
}

.ind-news-img-overlay {
  opacity: 0;
  background-color: #78088d26;
  width: 100%;
  height: auto;
  position: absolute;
}

.front-news-heading {
  color: #000;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 8px;
  padding-left: 0;
  padding-right: 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  transition: color 0.4s;
}

.image {
  float: none;
  width: auto;
  display: inline-block;
}

.div-block {
  float: none;
  background-color: #0000;
  width: 40%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 16px;
  display: block;
}

/* POPUP STYLES */

/* Wrapper for the news section */
  .ind-news-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }

  /* Ensure image wrapper has relative positioning */
  .ind-news-img-wrapper {
    position: relative;
  }

  /* Pop-up content */
  .popup-content {
    position: absolute;
    background-color: #eee;
    padding: 2px 10px 60px 10px;
    margin-left: 4px;
    border: 1px #000 solid;
    text-align: left;
    z-index: 1;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #000;
    
    p {
        margin: 10px;
    }

    /* Set width to match the image width */
    width: 97%; /* You can adjust the width to match the image */
    height: auto;
    box-sizing: border-box; /* Ensure padding and border are included in width */

    /* Initially hidden */
    opacity: 0;
    pointer-events: none;  /* Prevent interaction while hidden */
    transition: opacity 0.5s ease-in;  /* Smooth opacity transition */

    /* Position the popup exactly below the image */
    top: 0; /* Position directly below the image */
    left: 0; /* Align the left edge with the left edge of the image */
  }

  /* Fade in on hover */
  .ind-news-wrapper:hover .popup-content {
    opacity: 1;  /* Make the popup visible */
    pointer-events: auto;  /* Allow interaction when visible */
  }

@media screen and (max-width: 991px) {
  .container {
    float: none;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .news-wrapper-front {
    width: 100%;
  }

  .ind-news-wrapper {
    width: 50%;
  }

  .ind-news-img {
    height: 300px;
  }

  .ind-news-img-wrapper {
    height: auto;
  }

.front-news-heading {
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
  }

  .ind-news-content-wrapper {
    width: 80%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ind-news-image-wrapper {
    width: 80%;
    padding-bottom: 16px;
    padding-left: 0;
  }
}

@media screen and (max-width: 767px) {
  .container {
    height: auto;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .news-wrapper-front {
    width: 100%;
  }

  .ind-news-img-wrapper {
    height: auto;
  }

  .front-news-heading {
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
  }

  .ind-news-content-wrapper {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ind-news-image-wrapper {
    width: 90%;
    padding-left: 0;
  }
  
  p {
      margin: 10px;
      padding-right: 20px;
  }
}

@media screen and (max-width: 479px) {
  .container {
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .ind-news-wrapper {
    width: 100%;
  }

  .ind-news-img {
    float: none;
    flex-wrap: wrap;
    align-content: stretch;
    height: auto;
    position: static;
    top: 0;
    bottom: 0;
    right: 0;
    overflow: visible;
  }

  .ind-news-img-wrapper {
    height: auto;
  }

.front-news-heading {
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
  }

  .ind-news-image-wrapper {
    width: 100%;
    padding-left: 0;
  }
}
