.news
{
    padding: 90px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news .title-container
{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.news .title-container h1
{
    position: relative;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--nav-color);
}

@media (max-width: 450px)
{
    .news .title-container h1
    {
        font-size: 2.4rem;
    }
}

.news .title-container h1 span
{
    color: var(--nav-hover);
}

.news .title-container p
{
    width: 80%;
    margin-bottom: 20px;
}

/*NEWS CONTAINER*/
.news .news-container
{
    padding: 10px;
    max-width: 1200px;
    margin: auto;
}

.news .news-container h2
{
    text-align: center;
    margin-bottom: 20px;
}

.news .news-container .all_news
{
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 15px;
    padding: 20px;
}

.news .news-container .all_news .latest_news
{
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news .news-container .all_news .latest_news .news_head
{
    cursor: pointer;
    padding: 15px 20px;
    font-weight: bold;
    background: var(--nav-hover);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    height: 70px;
}

.news .news-container .all_news .latest_news .news_content
{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.news .news-container .all_news .latest_news .news_content.open
{
    padding: 15px 20px;
    max-height: 1000px;
}

.news .news-container .all_news h2
{
    text-align: center;
    padding: 30px 0 10px;
}

.news .news-container .all_news .latest_news .news_head .toggle-icon
{
    font-weight: bold;
    font-size: 20px;
    transform: rotate(0);
    transition: transform 0.3s ease;
    position: relative;
    right: -6px;
}

.news .news-container .all_news .latest_news .news_head .toggle-icon.open
{
    transform: rotate(90deg);
}

@media (max-width: 850px)
{
    .news .news-container .all_news
    {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px)
{
    .news .news-container .all_news .latest_news .news_head
    {
      align-items: flex-start;
      font-size: 15px;
      height: auto;
    }
}


/*EVENT GALLERY*/
.news .event-gallery h2
{
    text-align: center;
    padding: 30px 0 10px;
}

.news .event-gallery .gallery
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.news .event-gallery .gallery .gallery-item
{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
  
.news .event-gallery .gallery .gallery-item img
{
    width: 100%;
    height: 100%;
    display: block;
    transition: all 0.4s ease;
    object-fit: cover;
}
  
.news .event-gallery .gallery .gallery-item:hover img
{
    transform: scale(1.05);
}
  
.news .event-gallery .gallery .gallery-item .overlay
{
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 74, 0, 0.7); /* dark green w/ opacity */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    text-align: center;
    padding: 20px;
}

.news .event-gallery .gallery .gallery-item:hover .overlay
{
    opacity: 1;
}

.news .event-gallery .gallery .gallery-item .overlay h3
{
    margin-bottom: 10px;
}

.news .event-gallery .gallery .gallery-item .overlay a
{
    background: white;
    color: var(--nav-color);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.news .event-gallery .gallery .gallery-item .overlay a:hover
{
    background: #eee;
}


/*NEXT EVENT*/
.news .event-container .up_events
{
    padding: 20px 20px;
    max-width: 1200px;
    margin: auto;
}

.news .event-container h2
{
    text-align: center;
    padding: 30px 0 10px;
}

.news .event-container .events-grid
{
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   text-align: center;
   align-items: center;
   gap: 20px;
}

.news .event-container .events-grid .function
{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    max-width: 320px;
    height: 320px;
}

.news .event-container .events-grid .function:hover
{
    transform: translateY(-5px);
}

.news .event-container .events-grid .function img
{
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news .event-container .events-grid .function h3
{
    padding: 15px 20px 5px;
    font-size: 1.1em;
    color: black;
}

.news .event-container .events-grid .function .datetime
{
    padding: 0 20px 15px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}