.hero-news {
  position: relative;
  width: 100%;
  height: 10vh;
  background-color: var(--primary-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-news-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-news-text {
  position: relative;
  z-index: 1;
  color: var(--secondary-color);
  text-align: center;
  max-width: 80%;
  margin: 0 auto;
}

.hero-news-text h1 {
  margin-top:4px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
  margin-bottom: 4px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--gold-color);
}

.hero-news-text p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-news-text button {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
  background-color: var(--teal-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-news-text button:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
.image-section-left img {
    flex: 1;
    height: 120px!important;
    width: calc(50% - 5px);
    object-fit: cover;
    margin-right: 4px;
}

.image-section-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.image-section-right img {
    height: 58px!important;
    object-fit: cover;
}


.news-event-detail-title {
    font-size: 1em!important;
    font-weight:bold!important;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--neutral-accent);
}


#see-more-btn {
    position: absolute;
    top: -33px!important;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    color: var(--secondary-color);
    border: none;
    padding: 8px 16px!important;
    cursor: pointer;
    font-size: 12px!important;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2; /* Ensure the button is above the overlay */
}


.hero-news {
  width: 100%;
  height: 30px;
}
.hero-news-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

  .hero-news-text h1 {
    font-size: 1rem;
  }

  .hero-news-text p {
    font-size: 0.8rem;
  }

  .hero-news-text button {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }
}





.news-events {
  background-color: var(--neutral-accent);
  padding: 10px;
  border-radius: 10px;
  text-align: justify;
  color: var(--dark-accent);
}

.news-events p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .news-events {
    padding: 15px;
  }

  .news-events p {
    font-size: 14px;
  }
}









/* News and Events Section */
.news-events-section {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Center horizontally */
}

/* News Event Item Anchor */
.news-events-items {
  flex: 0 0 calc(25% - 20px);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none; /* Added */
  color: inherit; /* Added */
}

/* News Event Card */
.news-event-card {
  background-color: var(--secondary-color);
  color: var(--dark-accent);
}

/* News Event Image */
.news-event-card-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: transform 0.3s ease;
}

/* News Event Card Header */
.news-event-card-header {
  font-size:10px;
  padding: 10px;
  background-color: var(--complementary-blue);
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.news-event-card-header-items {
  display: flex;
  align-items: center;
}

.news-event-card-header-items i {
  font-size: 8px; /* Adjust as needed */
  margin-right: 5px; /* Add some spacing between the icon and text */
}
/* News Event Title */
.news-events-title {
  padding: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* News Event Detail */
.news-events-detail {
  padding: 0 10px 10px;
  font-size: 0.9rem;
  /* Added */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.news-event-detail-link {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--dark-accent);
    font-size:12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px; /* Adjust as needed */
}

.news-event-detail-link:hover {
    background-color: var(--complementary-blue);
    color: white;
}

/* News Event Button */
.news-event-btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background-color: var(--gold-color);
  color: var(--secondary-color);
  text-decoration: none;
  border: none;
  border-radius: 0 0 10px 10px;
}

/* Hover effect */
.news-events-items:hover .news-event-card-img {
  transform: scale(1.1);
}

.news-events-items:hover .news-events-title {
  color: var(--gold-color);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .news-events-items {
    flex-basis: calc(50% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .news-events-items {
    flex-basis: calc(100% - 20px);
  }
}




.news-events-detail-section {
    margin-top: 10px;
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 8px 8px 0 0; /* Keep the top border radius, remove it for bottom */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Keep the box shadow */
    position: relative; /* Add relative positioning for pseudo-element */
}

.news-events-detail-section::before {
    content: ''; /* Create a pseudo-element for the bottom border */
    position: absolute; /* Position it absolutely */
    bottom: 0; /* Align it to the bottom */
    left: 0; /* Align it to the left */
    width: 100%; /* Full width */
    height: 5px; /* Height of the border */
    background: none; /* Transparent background */
    box-shadow: none; /* No shadow */
    border-bottom: none; /* No bottom border */
    border-radius: 0 0 8px 8px; /* Add border radius for the bottom */
}


.news-event-detail-title {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--neutral-accent);
    padding-bottom: 10px;
}

.images-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.image-section-left {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.image-section-left img {
    flex: 1;
    height: 300px;
    width: calc(50% - 5px);
    object-fit: cover;
    margin-right: 4px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.image-section-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.image-section-right img {
    height: 148px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.image-section-left img:hover, .image-section-right img:hover {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.image-modal-btn {
    display: flex;
    justify-content: center;
    position: relative;
}

#see-more-btn {
    position: absolute;
    top: -74px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    z-index: 2;
}

#see-more-btn:hover {
    text-decoration: none;
}
.news-events-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--primary-color-light);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-events-detail-header-items {
    display: flex;
    align-items: center;
    flex: 1 1 auto; /* Changed flex value */
}

.news-events-detail-header-items i {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 10px;
}

.news-events-detail-header-items span {
    font-size: 1.1em;
    color: var(--dark-accent);
}

@media (max-width: 768px) {
    .news-events-detail-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .news-events-detail-header::-webkit-scrollbar {
        display: none;
    }
    .news-events-detail-header-items i {
        font-size: 1em;
        color: var(--primary-color);
        margin-right: 10px;
    }

    .news-events-detail-header-items span {
        font-size: 10px;
        color: var(--dark-accent);
    }
}


.news-events-data p {
    font-size: 1.1em;
    color: var(--dark-accent);
    line-height: 1.8;
    text-align: justify;
    padding: 0 10px;
    margin-top: 20px;
}



/* Your existing CSS code */

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: 0 auto;
    padding: 4px;
    width: 90%;
    max-width: 1080px;
    background: var(--secondary-color);
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--neutral-accent);
}

.modal-alt-text {
    font-size: 1.2em;
    color: var(--primary-color);
}

.close-btn {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--dark-accent);
    text-decoration: none;
    cursor: pointer;
}

.carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: scale-down;
    width:100%;
    height:600px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}







.news-events-sns {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 0 0 8px 8px; /* Remove top border radius */
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1); /* Add a general shadow */
}

.news-events-sns::before {
    content: ''; /* Create a pseudo-element for the top border */
    position: absolute; /* Position it absolutely */
    top: 0; /* Align it to the top */
    left: 0; /* Align it to the left */
    width: 100%; /* Full width */
    height: 5px; /* Height of the border */
    background: none; /* Transparent background */
    border-radius: 0 0 8px 8px; /* Remove top border radius */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Add shadow to the border */
}



.news-events-sns-items {
    padding: 10px 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
}

