body {
    margin: 0;
    padding: 0;
}

.navbar-brand img {
    max-height: 50px;
    height: 50px;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    margin-right: 10px;
}

#navbarNav .navbar-nav .nav-link {
    color: #333;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

#navbarNav .navbar-nav .nav-link:hover {
    color: #007f00;
}

.dropdown-menu .dropdown-item {
    color: #333;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: transparent;
    color: #007f00;
}

.dropdown-menu.show {
    transform: translateY(15px);
}


@media (max-width: 280px) {
    .navbar-brand img {
        max-height: 30px;
    }
}


@media (max-width: 380px) {
    .dropdown-menu.show {
        transform: translateY(0);
    }
}

@media (min-width: 381px) and (max-width: 576px) {
    .dropdown-menu.show {
        transform: translateY(0);
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .dropdown-menu.show {
        transform: translateY(0);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .dropdown-menu.show {
        transform: translateY(0);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .dropdown-menu.show {
        transform: translateY(15px);
    }
}

@media (min-width: 1200px) {
    .dropdown-menu.show {
        transform: translateY(15px);
        
    }
}

.full-width-section {
    position: relative;
    width: 100%;
    background-image: url('../img/mg-images1.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.section-text,
.section-subtext {
    position: relative;
    z-index: 2;
}

.section-text {
    color: white;
    text-align: center;
    font-size: 45px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtext {
    color: white;
    text-align: center;
    font-size: 45px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

@media (max-width: 380px) {
    .section-text {
        font-size: 17px;
    }

    .section-subtext {
        font-size: 17px;
    }
}

@media (min-width: 381px) and (max-width: 576px) {
    .section-text {
        font-size: 18px;
    }

    .section-subtext {
        font-size: 18px;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .section-text {
        font-size: 28px;
    }

    .section-subtext {
        font-size: 24px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .section-text {
        font-size: 36px;
    }

    .section-subtext {
        font-size: 30px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .section-text {
        font-size: 42px;
    }

    .section-subtext {
        font-size: 36px;
    }
}

@media (min-width: 1200px) {
    .section-text {
        font-size: 55px;
    }

    .section-subtext {
        font-size: 55px;
    }
}

@media (max-width: 380px) {
    .full-width-section {
        height: 250px;
    }
}

@media (min-width: 381px) and (max-width: 576px) {
    .full-width-section {
        height: 300px;
    }
}

@media (min-width: 577px) and (max-width: 767px) {
    .full-width-section {
        height: 350px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .full-width-section {
        height: 400px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .full-width-section {
        height: 500px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .full-width-section {
        height: 600px;
    }
}

@media (min-width: 1400px) {
    .full-width-section {
        height: 700px;
    }
}


.latest-events {
    text-align: center;
    padding: 50px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    border: 2px solid #fff;
}

.event {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease-in-out;
    border-bottom-style: groove;
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.5);
}

.event h3 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #007f00;
}

.event p {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
}

.event p.text {
    font-size: 18px;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.event p:last-child {
    margin-bottom: 0;
}

.event p.date {
    margin-top: 10px;
    font-size: 18px;
    color: #888;
}

.latest-galeriq {
    text-align: center;
    padding: 50px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgb(0 0 0 / 60%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.gallery-item img:hover {
    transform: scale(1.04);
}

.gallery-item p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 80%;
    max-width: 800px;
    overflow: hidden;
}

.closee {
    float: right;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #007f00;
    text-shadow: 0 1px 0 #007f00;
    opacity: .5;
}

.footer {
    background-color: #171717;
    color: #fff;
    margin-top: 20px;
}

.footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer .copyright {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.scroll-to-top a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #333;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.scroll-to-top a:hover {
    background-color: #333;
}

@media (min-width: 768px) {
    .modal-content {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .modal-content {
        width: 60%;
    }
}

@media (min-width: 1200px) {
    .modal-content {
        width: 50%;
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}