:root{
     --bck: #098040;
    --light-bck: #f16823;
    --greys: #e3e3e3;
    --grays: #fefeff;
    --shadow-large: 0px 4px 40px #33333359;
    --shadow-small: 0px 4px 6px #33333359;
    --dark-bakground: #013f09;
    --reds: red;
    --light-background: #f16823;
    --dark-background: #013f09;
    --dark-background2: aquamarine;
    --shadow-large: 0px 4px 40px #33333359;
    --shadow-small: 0px 4px 6px #3333332d;
}
/* ////////////News////////// */
#blog{
    width: 100%;
    display: flex;
    gap: 40px;
    padding-bottom: 1rem;
}
.blog-cardz{
    width: 300px;
    box-shadow: var(--shadow-small);
    padding: 12px 16px;
    border-radius: 12px;
}

.blog-cardz a{
    color: var(--light-background);
    text-decoration: none;
}

.trending-event{
    width: 100%;
} 

.trending-event a{
    color: #009b15;
    text-decoration: none;
    font-size: 0.9rem;
}

.trendingEvent-img{
    width: 100%;
    height: 400px;
}

.trendingEvent-img img{
    width: 100%;
    height: 400px;
}

/* /////////gallery///// */

.mini-gallery {
    max-width: 600px;
    margin: 0 auto;
}

.Gallery {
    display: flex;
    justify-content: space-around;
}

.mini-G-img img {
    display: none;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.pagination {
    text-align: center;
    margin-top: 10px;
}

.pagination a {
    text-decoration: none;
    color: rgb(29, 177, 0);
}

/* Modal styles */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.mini-G-img img.active {
    display: flex;
    border: 2px solid rgb(29, 177, 0);;
    opacity: 0.8;
    transition: opacity 0.5s;
}







.News {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.NewEvent {
    width: 100%;
    display: grid;
    grid-gap: 40px;
    grid-template-columns: repeat(2,1fr);
    margin-bottom: 40px;
}

.news-content {
    padding: 2rem;
}

.news-content p {
    margin: 0;
}

.news-action {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.img {
    width: 90%;
    height: 400px;
    padding: 0.8rem;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reorder even numbered .NewEvent divs */
.NewEvent:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.NewEvent:nth-child(even) .news-content {
    order: 2;
}

.NewEvent:nth-child(even) .img {
    order: 1;
}
.NewEvent .Learn{
    padding-bottom: 0.3rem;
    border-radius: 0%;
}

/* ///////////////media queries////////////// */

@media screen and (max-width: 780px) {
    .News{
        display: flex;
        flex-direction: column;
    }
    .NewEvent{
        display: grid;
        gap: 5px;
        box-shadow: 0px 0px 3px rgba(0, 0, 0, .3);
    }

    .NewEvent:nth-child(even) {
        grid-template-columns: 1fr;
    }
    

    .NewEvent:nth-child(even) .news-content {
        order: 2;
    }
    
    .NewEvent:nth-child(even) .img {
        width: 100%;
        order: 1;
    }


    .NewEvent:nth-child(odd) {
        grid-template-columns: 1fr;
    }
    

    .NewEvent:nth-child(odd) .news-content {
        order: 2;
    }
    
    .NewEvent:nth-child(odd) .img {
        width: 100%;
        order: 1;
    }
}