@import url('https://fonts.googleapis.com/css2?family=Figtree&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree';
    scroll-behavior: smooth;
    scrollbar-width: none;
}

main {
    padding-top: 100px;
}

/* NAVIGATION BAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

.navbar .logo-left,
.navbar .logo-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
}

.logo-left {
    left: 20px;
}

.logo-right {
    right: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    position: relative;
    padding: 8px 16px;
    color: #12A44F;
    text-decoration: none;
    font-weight: 300;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a.active {
    background-color: #12A44F;
    color: white;
    border-color: #12A44F;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 50px;
}

.nav-links a:not(.active):hover {
    background-color: #e6f2e9;
    border-radius: 20px;
}

/* NEWS SECTION */
#news {
    position: relative;
}

.news-title,
.event-title {
    font-size: 4em;
    color: #12A44F;
    margin: auto;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
}

.news-desc {
    text-align: center;
    font-size: 1.5em;
    color: #5a5a5a;
    width: 60%;
    margin: 1% auto;
}

.news-card {
    background-color: #B7E3C6;
    border-radius: 12px;
    border: none;
    height: 180px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 5px 5px 10px #bdbcbc;
}

#newsContainer {
    position: relative;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
    height: auto;
}

#newsContainer.slide-out-next {
    transform: translateX(4%);
    opacity: 0;
}

#newsContainer.slide-in-next {
    transform: translateX(0);
    opacity: 1;
}

#newsContainer.slide-out-prev {
    transform: translateX(-4%);
    opacity: 0;
}

#newsContainer.slide-in-prev {
    transform: translateX(0);
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-content-title {
    font-weight: 900;
    color: #053114;
    font-size: 1.3em;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-date {
    color: #2d4a2d;
    font-size: 12px;
    font-weight: 500;
}

.read-more-btn {
    background-color: #07411B;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.read-more-btn:hover {
    background-color: #1a2e1a;
}

/* UNIFIED PAGINATION STYLES FOR BOTH NEWS AND EVENTS */
.pagination-container,
#pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #5a5a5a;
    background-color: white;
    color: #5a5a5a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 4px;
}

.pagination-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-5px);
}

.pagination-btn.active {
    background-color: #12A44F;
    border-color: #2d4a2d;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-arrow {
    font-size: 20px;
}

.prev-btn,
.next-btn {
    border-radius: 50%;
    background-color: #D9D9D9;
    border: none;
    scale: 1.3;
    margin: 0 5px;
}

.prev-btn:hover {
    transform: translateX(-5px);
}

.next-btn:hover {
    transform: translateX(5px);
}

.dots3 {
    position: absolute;
    top: 23%;
    left: 0;
    rotate: 90deg;
    z-index: -1;
}

.dots4 {
    position: absolute;
    top: 23%;
    right: 0;
    rotate: 90deg;
    z-index: -1;
}

/* EVENTS SECTION */

    #events {
        height: 700px;
        width: 100%;
        margin-bottom: 5%;
        position: relative;
    }

    .event-header {
        margin-top: 2%;
        margin-bottom: 2%;
    }

    .events-bg {
        position: absolute;
        width: auto;
        height:600px;
        top: 150px;
        z-index: -1;
        left: -10%;
    }

.graphics {
    display: block;
    margin: 0 auto;
    margin-bottom: 40px;
}

/* --- Event Cards --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 55%;
    box-sizing: border-box;
    margin: 0 auto;
}

.event-card {
    /* border: 1px solid #ccc; */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    background-color: white;
    transition: transform 0.2s ease;
    overflow-wrap: anywhere;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content-title {
    color: #12A44F;
    margin-top: 3%;
    margin-left: 3%;
    font-weight: bolder;
    letter-spacing: 1px;
}

.event-content{
    margin-top: 120px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 3%;
    margin-top: auto;
}

.read-more-event-btn {
    border: none;
    background-color: #12A44F;
    color: white;
    padding: 7px;
    border-radius: 10px;
}

.read-more-event-btn:hover {
    background-color: #07411B;

}

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 40px 50px;
    border-radius: 20px;
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
    font-weight: 300;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.modal-text-content {
    flex: 1;
    padding-right: 30px;
}

.modal-text-content h2 {
    color: #12A44F;
    font-size: 3em;
    font-weight: 700;
    margin: 0 auto;
    text-align: left;
    letter-spacing: 0.5px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.modal-text-content #modal-date {
    color: #888;
    font-size: 1.2em;
    margin: 0 0 30px 0;
    text-align: left;
    font-weight: 400;
}

.modal-text-content #modal-description {
    color: #5a5a5a;
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.modal-carousel-container {
    flex: 1;
    position: relative;
    min-height: 300px;
    max-width: 500px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10%;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    /* top: 13%; */
}

.carousel-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Bootstrap Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #12A44F;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #07411B;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 5px;
}

.carousel-control-next {
    right: 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* FOOTER SECTION */

#footer {
    background-image: url(../home/footer_bg.png);
    color: #ffffff;
    padding-top: 20px;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 3px;
}

#footer h3 {
    font-size: 1.2em;
    font-weight: bold;
}

#footer p {
    font-size: 1em;
}

#footer a {
    text-decoration: none;
}

#footer button {
    position: relative;
    display: block;
    margin: 30px auto;
    padding: 12px 20px;
    background-color: white;
    color: #12A44F;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5em;
    font-weight: bolder;
    letter-spacing: 1px;
}

@media screen and (min-width: 1025px) and (max-width: 1440px) {

    html,
    body {
        overflow-x: hidden;
    }
}

@media screen and (min-width: 900px) and (max-width: 1024px) {

    html,
    body {
        overflow-x: hidden;
    }

    .navbar .logo-left,
    .navbar .logo-right {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 30px;
    }

    /* NEWS SECTION */
    #news {
        position: relative;
    }

    .news-title,
    .event-title {
        font-size: 4em;
        color: #12A44F;
        margin: auto;
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .news-desc {
        text-align: center;
        font-size: 1.5em;
        color: #5a5a5a;
        width: 60%;
        margin: 1% auto;
    }

    .news-card {
        background-color: #B7E3C6;
        border-radius: 12px;
        border: none;
        height: 180px;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease;
        box-shadow: 5px 5px 10px #bdbcbc;
    }

    #newsContainer {
        position: relative;
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
        height: auto;
    }

    #newsContainer.slide-out-next {
        transform: translateX(4%);
        opacity: 0;
    }

    #newsContainer.slide-in-next {
        transform: translateX(0);
        opacity: 1;
    }

    #newsContainer.slide-out-prev {
        transform: translateX(-4%);
        opacity: 0;
    }

    #newsContainer.slide-in-prev {
        transform: translateX(0);
        opacity: 1;
    }

    .news-card:hover {
        transform: translateY(-5px);
    }

    .news-card .card-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .news-content-title {
        font-weight: 900;
        color: #053114;
        font-size: 1.3em;
        line-height: 1.3;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .news-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .news-date {
        color: #2d4a2d;
        font-size: 12px;
        font-weight: 500;
    }

    .read-more-btn {
        background-color: #07411B;
        border: none;
        padding: 6px 16px;
        border-radius: 4px;
        color: white;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .read-more-btn:hover {
        background-color: #1a2e1a;
    }

    /* UNIFIED PAGINATION STYLES FOR BOTH NEWS AND EVENTS */
    .pagination-container,
    #pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        gap: 8px;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #5a5a5a;
        background-color: white;
        color: #5a5a5a;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
        text-decoration: none;
        border-radius: 4px;
    }

    .pagination-btn:hover {
        background-color: #f3f4f6;
        transform: translateY(-5px);
    }

    .pagination-btn.active {
        background-color: #12A44F;
        border-color: #2d4a2d;
        color: white;
    }

    .pagination-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .pagination-arrow {
        font-size: 20px;
    }

    .prev-btn,
    .next-btn {
        border-radius: 50%;
        background-color: #D9D9D9;
        border: none;
        scale: 1.3;
        margin: 0 5px;
    }

    .prev-btn:hover {
        transform: translateX(-5px);
    }

    .next-btn:hover {
        transform: translateX(5px);
    }

    .dots3 {
        position: absolute;
        top: 21%;
        left: 0;
        rotate: 90deg;
        z-index: -1;
        scale: 0.9;
    }

    .dots4 {
        position: absolute;
        top: 21%;
        right: 0;
        rotate: 90deg;
        z-index: -1;
        scale: 0.9;
    }

    /* GRAPHICS BELOW THE EVENTS SECTION*/
    .graphics {
        display: block;
        margin: 0 auto;
        margin-bottom: 5%;
        width: 80%;
    }

    /* EVENTS SECTION */

    #events {
        height: 650px;
        width: 100%;
        margin-bottom: 5%;
        position: relative;
    }

    .event-header {
        margin-top: 2%;
        margin-bottom: 2%;
    }

    .events-bg {
        position: absolute;
        width: auto;
        height:400px;
        top: 200px;
        z-index: -1;
        left: -10%;
    }

    .graphics {
        display: block;
        margin: 0 auto;
        margin-bottom: 5%;
    }

    /* --- Event Cards --- */
    .events-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 55%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .event-card {
        /* border: 1px solid #ccc; */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        background-color: white;
        transition: transform 0.2s ease;
    }

    .event-card:hover {
        transform: scale(1.05);
    }

    .event-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .event-content-title {
        color: #12A44F;
        margin-top: 3%;
        margin-left: 3%;
        font-weight: bolder;
        letter-spacing: 1px;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-left: 3%;
        margin-right: 3%;
        margin-bottom: 3%;
    }

    .read-more-event-btn {
        border: none;
        background-color: #12A44F;
        color: white;
        padding: 7px;
        border-radius: 10px;
    }

    .read-more-event-btn:hover {
        background-color: #07411B;

    }

    /* --- Modal Overlay --- */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .modal-overlay.hidden {
        display: none;
    }

    .modal-content {
        background-color: white;
        padding: 40px 50px;
        border-radius: 20px;
        position: relative;
        width: 90%;
        max-width: 1100px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 35px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
        z-index: 10;
        font-weight: 300;
    }

    .close-btn:hover {
        color: #333;
    }

    .modal-body {
        display: flex;
        gap: 50px;
        align-items: flex-start;
    }

    .modal-text-content {
        flex: 1;
        padding-right: 30px;
    }

    .modal-text-content h2 {
        color: #12A44F;
        font-size: 3em;
        font-weight: 700;
        margin: 0 auto;
        text-align: left;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .modal-text-content #modal-date {
        color: #888;
        font-size: 1.2em;
        margin: 0 0 30px 0;
        text-align: left;
        font-weight: 400;
    }

    .modal-text-content #modal-description {
        color: #5a5a5a;
        font-size: 1em;
        line-height: 1.7;
        text-align: justify;
        margin: 0;
        font-weight: 400;
    }

    .modal-carousel-container {
        flex: 1;
        position: relative;
        min-height: 300px;
        max-width: 500px;
    }

    .carousel {
        position: relative;
        width: 100%;
        height: 350px;
        border-radius: 15px;
        overflow: hidden;
        margin-top: 10%;
    }

    .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
        margin: 0 auto;
        /* top: 13%; */
    }

    .carousel-item {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .carousel-item.active {
        opacity: 1;
        position: relative;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
    }

    /* Bootstrap Carousel Controls Styling */
    .carousel-control-prev,
    .carousel-control-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background-color: #12A44F;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #07411B;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }

    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }
}

@media screen and (min-width: 500px) and (max-width: 900px) {

    html,
    body {
        overflow-x: hidden;
        padding-top: 50px;
    }

    main {
        padding-top: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0 15px;
    }

    .navbar .logo-left {
        position: static;
        left: auto;
        transform: none;
        height: 40px;
        width: auto;
        order: 1;
        margin-right: 10px;
    }

    .navbar .logo-right {
        position: static;
        right: auto;
        transform: none;
        height: 40px;
        width: auto;
        order: 2;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        z-index: 999;
        order: 4;
        box-sizing: border-box;
    }

    .nav-links.show {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        text-align: center;
        border-radius: 0;
        font-weight: 500;
        font-size: 18px;
        color: #12A44F;
        background: none;
        display: block;
        margin: 5px 20px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links a.active {
        background-color: #12A44F;
        color: white;
        border-radius: 25px;
        font-weight: 600;
        padding-bottom: 20px;
    }

    .nav-links a:not(.active):hover {
        background-color: #e6f2e9;
        border-radius: 25px;
    }

    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 0;
    }

    .menu-icon span,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #12A44F;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
    }

    .menu-icon::before {
        top: 0;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-icon::after {
        bottom: 0;
    }

    .menu-icon.active span {
        opacity: 0;
    }

    .menu-icon.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-icon.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* GRAPHICS AFTER EVENT SECTION*/
    .graphics {
        display: block;
        margin: 0 auto;
        margin-bottom: 5%;
        width: 80%;
    }

    /* NEWS SECTION */
    #news {
        position: relative;
    }

    .news-title,
    .event-title {
        font-size: 4em;
        color: #12A44F;
        margin: auto;
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .news-desc {
        text-align: center;
        font-size: 1.5em;
        color: #5a5a5a;
        width: 60%;
        margin: 1% auto;
    }

    .news-card {
        background-color: #B7E3C6;
        border-radius: 12px;
        border: none;
        height: 290px;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease;
        box-shadow: 5px 5px 10px #bdbcbc;
    }

    #newsContainer {
        position: relative;
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
        height: auto;
    }

    #newsContainer.slide-out-next {
        transform: translateX(4%);
        opacity: 0;
    }

    #newsContainer.slide-in-next {
        transform: translateX(0);
        opacity: 1;
    }

    #newsContainer.slide-out-prev {
        transform: translateX(-4%);
        opacity: 0;
    }

    #newsContainer.slide-in-prev {
        transform: translateX(0);
        opacity: 1;
    }

    .news-card:hover {
        transform: translateY(-5px);
    }

    .news-card .card-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .news-content-title {
        font-weight: 900;
        color: #053114;
        font-size: 1.1em;
        line-height: 1.3;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .news-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .news-date {
        color: #2d4a2d;
        font-size: 12px;
        font-weight: 500;
    }

    .read-more-btn {
        background-color: #07411B;
        border: none;
        padding: 6px 16px;
        border-radius: 4px;
        color: white;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .read-more-btn:hover {
        background-color: #1a2e1a;
    }

    /* UNIFIED PAGINATION STYLES FOR BOTH NEWS AND EVENTS */
    .pagination-container,
    #pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        gap: 8px;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #5a5a5a;
        background-color: white;
        color: #5a5a5a;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
        text-decoration: none;
        border-radius: 4px;
    }

    .pagination-btn:hover {
        background-color: #f3f4f6;
        transform: translateY(-5px);
    }

    .pagination-btn.active {
        background-color: #12A44F;
        border-color: #2d4a2d;
        color: white;
    }

    .pagination-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .pagination-arrow {
        font-size: 20px;
    }

    .prev-btn,
    .next-btn {
        border-radius: 50%;
        background-color: #D9D9D9;
        border: none;
        scale: 1.3;
        margin: 0 5px;
    }

    .prev-btn:hover {
        transform: translateX(-5px);
    }

    .next-btn:hover {
        transform: translateX(5px);
    }

    .dots3 {
        position: absolute;
        top: 25%;
        left: 0;
        rotate: 90deg;
        z-index: -1;
        scale: 0.9;
    }

    .dots4 {
        position: absolute;
        top: 25%;
        right: 0;
        rotate: 90deg;
        z-index: -1;
        scale: 0.9;
    }

    #events {
        height: 650px;
        width: 100%;
        margin-bottom: 5%;
        position: relative;
    }

    .event-header {
        margin-top: 2%;
        margin-bottom: 2%;
    }

    .events-bg {
        position: absolute;
        width: auto;
        height:400px;
        top: 150px;
        z-index: -1;
        left: -30%;
    }

    /* --- Event Cards --- */
    .events-grid {
        width: 80%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        justify-items: center;
    }

    .event-card {
        width: 100%;
        max-width: 320px;
    }

    .event-card:hover {
        transform: scale(1.05);
    }

    .event-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .event-content-title {
        color: #12A44F;
        margin-top: 3%;
        margin-left: 3%;
        font-weight: bolder;
        letter-spacing: 1px;
    }

    .event-content{
        margin-top: 90px;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-left: 3%;
        margin-right: 3%;
        margin-bottom: 3%;
    }

    .read-more-event-btn {
        border: none;
        background-color: #12A44F;
        color: white;
        padding: 8px;
        border-radius: 10px;
        font-size: 0.9em;
    }

    .read-more-event-btn:hover {
        background-color: #07411B;

    }

    /* --- Modal Overlay --- */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-overlay.hidden {
        display: none;
    }

    .modal-content {
        background-color: white;
        padding: 30px 25px;
        border-radius: 20px;
        position: relative;
        width: 100%;
        max-width: 500px;
        max-height: 95vh;
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
        position: absolute;
        top: 5px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
        z-index: 10;
        font-weight: 300;
    }

    .close-btn:hover {
        color: #333;
    }

    /* Change modal body to vertical layout on mobile */
    .modal-body {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    /* Carousel goes first in mobile view */
    .modal-carousel-container {
        order: 1;
        width: 100%;
        max-width: 100%;
        position: relative;
        min-height: 250px;
    }

    .carousel {
        position: relative;
        width: 100%;
        height: 300px;
        border-radius: 15px;
        overflow: hidden;
        margin-top: 20px;
    }

    .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
        margin: 0 auto;
    }

    .carousel-item {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .carousel-item.active {
        opacity: 1;
        position: relative;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
    }

    /* Text content goes second in mobile view */
    .modal-text-content {
        order: 2;
        flex: none;
        padding-right: 0;
        width: 100%;
        text-align: center;
    }

    .modal-text-content h2 {
        color: #12A44F;
        font-size: 2.2em;
        font-weight: 700;
        margin: 0 auto 15px auto;
        text-align: center;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .modal-text-content #modal-date {
        color: #888;
        font-size: 1.1em;
        margin: 0 0 20px 0;
        text-align: center;
        font-weight: 400;
    }

    .modal-text-content #modal-description {
        color: #5a5a5a;
        font-size: 0.95em;
        line-height: 1.6;
        text-align: justify;
        margin: 0;
        font-weight: 400;
    }

    /* Carousel Controls Styling for mobile */
    .carousel-control-prev,
    .carousel-control-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: #12A44F;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #07411B;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }

    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    #footer {
        letter-spacing: 0.5px;
    }
}

@media screen and (min-width: 376px) and (max-width: 500px) {
       html,
    body {
        overflow-x: hidden;
        padding-top: 50px;
    }

    main {
        padding-top: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0 15px;
    }

    .navbar .logo-left {
        position: static;
        left: auto;
        transform: none;
        height: 30px;
        width: auto;
        order: 1;
        margin-right: 10px;
    }

    .navbar .logo-right {
        position: static;
        right: auto;
        transform: none;
        height: 30px;
        width: auto;
        order: 2;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        z-index: 999;
        order: 4;
        box-sizing: border-box;
    }

    .nav-links.show {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        text-align: center;
        border-radius: 0;
        font-weight: 500;
        font-size: 18px;
        color: #12A44F;
        background: none;
        display: block;
        margin: 5px 20px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links a.active {
        background-color: #12A44F;
        color: white;
        border-radius: 25px;
        font-weight: 600;
        padding-bottom: 20px;
    }

    .nav-links a:not(.active):hover {
        background-color: #e6f2e9;
        border-radius: 25px;
    }

    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 0;
    }

    .menu-icon span,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #12A44F;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
    }

    .menu-icon::before {
        top: 0;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-icon::after {
        bottom: 0;
    }

    .menu-icon.active span {
        opacity: 0;
    }

    .menu-icon.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-icon.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* GRAPHICS AFTER EVENT SECTION*/
    .graphics {
        display: block;
        margin: 0 auto;
        margin-bottom: 5%;
        width: 80%;
    }

    /* NEWS SECTION */
    #news {
        position: relative;
    }

    .news-title,
    .event-title {
        font-size: 3em;
        color: #12A44F;
        margin: auto;
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .news-desc {
        text-align: center;
        font-size: 1em;
        color: #5a5a5a;
        width: 60%;
        margin: 1% auto;
    }

    .news-card {
        background-color: #B7E3C6;
        border-radius: 12px;
        border: none;
        height: 180px;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease;
        box-shadow: 5px 5px 10px #bdbcbc;
        width:98%;
    }

        .news-card:hover {
        transform: translateY(-5px);
    }

    .news-card .card-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    #newsContainer {
        position: relative;
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
        height: auto;
    }

    #newsContainer.slide-out-next {
        transform: translateX(4%);
        opacity: 0;
    }

    #newsContainer.slide-in-next {
        transform: translateX(0);
        opacity: 1;
    }

    #newsContainer.slide-out-prev {
        transform: translateX(-4%);
        opacity: 0;
    }

    #newsContainer.slide-in-prev {
        transform: translateX(0);
        opacity: 1;
    }

    .news-card:hover {
        transform: translateY(-5px);
    }

    .news-card .card-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .news-content-title {
        font-weight: 900;
        color: #053114;
        font-size: 1.1em;
        line-height: 1.3;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .news-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .news-date {
        color: #2d4a2d;
        font-size: 12px;
        font-weight: 500;
    }

    .read-more-btn {
        background-color: #07411B;
        border: none;
        padding: 6px 16px;
        border-radius: 4px;
        color: white;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .read-more-btn:hover {
        background-color: #1a2e1a;
    }

    /* UNIFIED PAGINATION STYLES FOR BOTH NEWS AND EVENTS */
    .pagination-container,
    #pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        gap: 8px;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #5a5a5a;
        background-color: white;
        color: #5a5a5a;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
        text-decoration: none;
        border-radius: 4px;
    }

    .pagination-btn:hover {
        background-color: #f3f4f6;
        transform: translateY(-5px);
    }

    .pagination-btn.active {
        background-color: #12A44F;
        border-color: #2d4a2d;
        color: white;
    }

    .pagination-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .pagination-arrow {
        font-size: 20px;
    }

    .prev-btn,
    .next-btn {
        border-radius: 50%;
        background-color: #D9D9D9;
        border: none;
        scale: 1.3;
        margin: 0 5px;
    }

    .prev-btn:hover {
        transform: translateX(-5px);
    }

    .next-btn:hover {
        transform: translateX(5px);
    }

    .dots3 {
        position: absolute;
        top: 26%;
        left: 0;
        rotate: 90deg;
        z-index: -1;
        scale: 1.2;
    }

    .dots4 {
        display:none;
    }

    #events {
        height: 450px;
        width: 100%;
        margin-bottom: 5%;
        position: relative;
    }

    .event-header {
        margin-top: 2%;
        margin-bottom: 2%;
    }

    .events-bg {
        position: absolute;
        width: auto;
        height:200px;
        top: 150px;
        z-index: -1;
        left: -30%;
    }

    /* --- Event Cards --- */
    .events-grid {
        width: 80%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        justify-items: center;
    }

    .event-card {
        width: 100%;
        max-width: 320px;
    }

    .event-card:hover {
        transform: scale(1.05);
    }

    .event-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .event-content-title {
        color: #12A44F;
        margin-top: 5%;
        margin-left: 5%;
        font-weight: bolder;
        letter-spacing: 1px;
        font-size: 1em;
    }

    .event-content{
        margin-top: 50px;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-left: 5%;
        margin-right: 3%;
        margin-bottom: 3%;
        font-size: 0.6em;
    }

    .read-more-event-btn {
        border: none;
        background-color: #12A44F;
        color: white;
        padding: 4px;
        border-radius: 5px;
        font-size: 0.8em;
    }

    .read-more-event-btn:hover {
        background-color: #07411B;

    }

    /* --- Modal Overlay --- */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-overlay.hidden {
        display: none;
    }

    .modal-content {
        background-color: white;
        padding: 30px 25px;
        border-radius: 20px;
        position: relative;
        width: 100%;
        max-width: 500px;
        max-height: 95vh;
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
        position: absolute;
        top: 5px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
        z-index: 10;
        font-weight: 300;
    }

    .close-btn:hover {
        color: #333;
    }

    /* Change modal body to vertical layout on mobile */
    .modal-body {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    /* Carousel goes first in mobile view */
    .modal-carousel-container {
        order: 1;
        width: 100%;
        max-width: 100%;
        position: relative;
        min-height: 250px;
    }

    .carousel {
        position: relative;
        width: 100%;
        height: 300px;
        border-radius: 15px;
        overflow: hidden;
        margin-top: 20px;
    }

    .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
        margin: 0 auto;
    }

    .carousel-item {
        width: 100%;
        height: auto;
        position: absolute;
        top: 0;
        left: 0;
    }

    .carousel-item.active {
        opacity: 1;
        position: relative;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 15px;
    }

    /* Text content goes second in mobile view */
    .modal-text-content {
        order: 2;
        flex: none;
        padding-right: 0;
        width: 100%;
        text-align: center;
    }

    .modal-text-content h2 {
        color: #12A44F;
        font-size: 2em;
        font-weight: 700;
        margin: 0 auto 15px auto;
        text-align: center;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .modal-text-content #modal-date {
        color: #888;
        font-size: 1em;
        margin: 0 0 20px 0;
        text-align: center;
        font-weight: 400;
    }

    .modal-text-content #modal-description {
        color: #5a5a5a;
        font-size: 0.8em;
        line-height: 1.6;
        text-align: justify;
        margin: 0;
        font-weight: 400;
    }

    /* Carousel Controls Styling for mobile */
    .carousel-control-prev,
    .carousel-control-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: #12A44F;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #07411B;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }

    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    #footer {
        letter-spacing: 0.5px;
        font-size: 0.5em;
    }
    #footer button {
        font-size: 1.5em;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 376px) {
    html,
    body {
        overflow-x: hidden;
        padding-top: 50px;
    }

    main {
        padding-top: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0 15px;
    }

    .navbar .logo-left {
        position: static;
        left: auto;
        transform: none;
        height: 25px;
        width: auto;
        order: 1;
        margin-right: 10px;
    }

    .navbar .logo-right {
        position: static;
        right: auto;
        transform: none;
        height: 25px;
        width: auto;
        order: 2;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: none;
        border-radius: 0;
        gap: 0;
        z-index: 999;
        order: 4;
        box-sizing: border-box;
    }

    .nav-links.show {
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 15px 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        text-align: center;
        border-radius: 0;
        font-weight: 500;
        font-size: 18px;
        color: #12A44F;
        background: none;
        display: block;
        margin: 5px 20px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links a.active {
        background-color: #12A44F;
        color: white;
        border-radius: 25px;
        font-weight: 600;
        padding-bottom: 20px;
    }

    .nav-links a:not(.active):hover {
        background-color: #e6f2e9;
        border-radius: 25px;
    }

    .menu-icon {
        display: flex;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
        order: 3;
        background-color: transparent;
        justify-content: center;
        align-items: center;
        top: 0;
    }

    .menu-icon span,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #12A44F;
        border-radius: 1px;
        transition: all 0.3s ease;
        position: absolute;
        left: 0;
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
    }

    .menu-icon::before {
        top: 0;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .menu-icon::after {
        bottom: 0;
    }

    .menu-icon.active span {
        opacity: 0;
    }

    .menu-icon.active::before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-icon.active::after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* GRAPHICS AFTER EVENT SECTION*/
    .graphics {
        display: block;
        margin: 0 auto;
        margin-bottom: 5%;
        width: 80%;
    }

    /* NEWS SECTION */
    #news {
        position: relative;
    }

    .news-title,
    .event-title {
        font-size: 3em;
        color: #12A44F;
        margin: auto;
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .news-desc {
        text-align: center;
        font-size: 1em;
        color: #5a5a5a;
        width: 60%;
        margin: 1% auto;
    }

    .news-card {
        background-color: #B7E3C6;
        border-radius: 12px;
        border: none;
        height: 180px;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease;
        box-shadow: 5px 5px 10px #bdbcbc;
    }

    #newsContainer {
        position: relative;
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
        height: auto;
    }

    #newsContainer.slide-out-next {
        transform: translateX(4%);
        opacity: 0;
    }

    #newsContainer.slide-in-next {
        transform: translateX(0);
        opacity: 1;
    }

    #newsContainer.slide-out-prev {
        transform: translateX(-4%);
        opacity: 0;
    }

    #newsContainer.slide-in-prev {
        transform: translateX(0);
        opacity: 1;
    }

    .news-card:hover {
        transform: translateY(-5px);
    }

    .news-card .card-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .news-content-title {
        font-weight: 900;
        color: #053114;
        font-size: 1.1em;
        line-height: 1.3;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .news-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .news-date {
        color: #2d4a2d;
        font-size: 12px;
        font-weight: 500;
    }

    .read-more-btn {
        background-color: #07411B;
        border: none;
        padding: 6px 16px;
        border-radius: 4px;
        color: white;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .read-more-btn:hover {
        background-color: #1a2e1a;
    }

    /* UNIFIED PAGINATION STYLES FOR BOTH NEWS AND EVENTS */
    .pagination-container,
    #pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        gap: 8px;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #5a5a5a;
        background-color: white;
        color: #5a5a5a;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
        text-decoration: none;
        border-radius: 4px;
    }

    .pagination-btn:hover {
        background-color: #f3f4f6;
        transform: translateY(-5px);
    }

    .pagination-btn.active {
        background-color: #12A44F;
        border-color: #2d4a2d;
        color: white;
    }

    .pagination-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .pagination-arrow {
        font-size: 20px;
    }

    .prev-btn,
    .next-btn {
        border-radius: 50%;
        background-color: #D9D9D9;
        border: none;
        scale: 1.3;
        margin: 0 5px;
    }

    .prev-btn:hover {
        transform: translateX(-5px);
    }

    .next-btn:hover {
        transform: translateX(5px);
    }

    .dots3 {
        position: absolute;
        top: 26%;
        left: 0;
        rotate: 90deg;
        z-index: -1;
        scale: 1.2;
    }

    .dots4 {
        display:none;
    }

    #events {
        height: 450px;
        width: 100%;
        margin-bottom: 5%;
        position: relative;
    }

    .event-header {
        margin-top: 2%;
        margin-bottom: 2%;
    }

    .events-bg {
        position: absolute;
        width: auto;
        height:200px;
        top: 150px;
        z-index: -1;
        left: -30%;
    }

    /* --- Event Cards --- */
    .events-grid {
        width: 80%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        justify-items: center;
    }

    .event-card {
        width: 100%;
        max-width: 320px;
    }

    .event-card:hover {
        transform: scale(1.05);
    }

    .event-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .event-content-title {
        color: #12A44F;
        margin-top: 5%;
        margin-left: 5%;
        font-weight: bolder;
        letter-spacing: 1px;
        font-size: 1em;
    }

    .event-content{
        margin-top: 50px;
    }

    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-left: 5%;
        margin-right: 3%;
        margin-bottom: 3%;
        font-size: 0.6em;
    }

    .read-more-event-btn {
        border: none;
        background-color: #12A44F;
        color: white;
        padding: 4px;
        border-radius: 5px;
        font-size: 0.8em;
    }

    .read-more-event-btn:hover {
        background-color: #07411B;

    }

    /* --- Modal Overlay --- */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-overlay.hidden {
        display: none;
    }

    .modal-content {
        background-color: white;
        padding: 30px 25px;
        border-radius: 20px;
        position: relative;
        width: 100%;
        max-width: 500px;
        max-height: 95vh;
        overflow-y: auto;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    .close-btn {
        position: absolute;
        top: 5px;
        right: 20px;
        font-size: 28px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
        z-index: 10;
        font-weight: 300;
    }

    .close-btn:hover {
        color: #333;
    }

    /* Change modal body to vertical layout on mobile */
    .modal-body {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    /* Carousel goes first in mobile view */
    .modal-carousel-container {
        order: 1;
        width: 100%;
        max-width: 100%;
        position: relative;
        min-height: 250px;
    }

    .carousel {
        position: relative;
        width: 100%;
        height: 300px;
        border-radius: 15px;
        overflow: hidden;
        margin-top: 20px;
    }

    .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
        margin: 0 auto;
    }

    .carousel-item {
        width: 100%;
        height: auto;
        position: absolute;
        top: 0;
        left: 0;
    }

    .carousel-item.active {
        opacity: 1;
        position: relative;
    }

    .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 15px;
    }

    /* Text content goes second in mobile view */
    .modal-text-content {
        order: 2;
        flex: none;
        padding-right: 0;
        width: 100%;
        text-align: center;
    }

    .modal-text-content h2 {
        color: #12A44F;
        font-size: 2em;
        font-weight: 700;
        margin: 0 auto 15px auto;
        text-align: center;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }

    .modal-text-content #modal-date {
        color: #888;
        font-size: 1em;
        margin: 0 0 20px 0;
        text-align: center;
        font-weight: 400;
    }

    .modal-text-content #modal-description {
        color: #5a5a5a;
        font-size: 0.8em;
        line-height: 1.6;
        text-align: justify;
        margin: 0;
        font-weight: 400;
    }

    /* Carousel Controls Styling for mobile */
    .carousel-control-prev,
    .carousel-control-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: #12A44F;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #07411B;
        transform: translateY(-50%) scale(1.1);
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='m11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }

    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    #footer {
        letter-spacing: 0.5px;
        font-size: 0.5em;
    }
    #footer button {
        font-size: 1.5em;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}