body::-webkit-scrollbar{
    display: none; /* For Chrome, Safari, and Opera */
}


.banner {
    position: relative;
    width: 100%;
    margin-top: 80px;
    height: calc(100vh - 80px);
    overflow: hidden;               /* hide overflow from sliding layers */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dark overlay – stays on top of every background */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1;
}

/* -----  SLIDE LAYERS  ----- */
.banner .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;   /* smooth fade */
    z-index: 0;
}

/* First slide is visible immediately */
.banner .slide:first-child { opacity: 1; }

/* Content stays above slides */
.banner > .title-container,
.banner > .address-contact {
    position: relative;
    z-index: 2;
}

.banner .title-container{
    padding: 20px;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.banner .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    color: white;
    padding: 0; /* Remove extra padding */
    line-height: 1; /* Reduce spacing between lines */
    width: 70%;
    text-align: center;
}

.banner .title p{
    font-size: 40px;
}

.banner .title h1 {
    position: relative;
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}


.banner .tagline{
    color: white;
    z-index: 2; 
    font-size: 30px;
}

.announcement-event-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Navigation Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128, 0, 0, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #800000;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.announcement-event {
    display: flex;
    gap: 10px;
    transition: transform 0.4s ease;
    padding: 0 10px;
    scroll-behavior: smooth;
}

.announcement, .event, .open-hours {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}



.announcement-event > div > h3{
    text-align: center; 
    color: #800000;
}

.announcement .latest-announcement-banner, .event .latest-event-banner, .open-hours .open-hours-banner{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    flex: 4;
}

.open-hours .open-hours-banner{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 4;
}

.open-hours .open-hours-banner p{
    font-size: 18px;
}

.announcement .announcement-image, .event .event-image {
    width: 40%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.event .event-details{
    width: 60%;
    text-wrap: wrap;
    color: black;
    word-wrap: break-word;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event .event-details p{
    font-size: 15px;
}
.announcement .announcement-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

/* Section */
.announcements h2, .events h2, .services h2{
    color: #800000;
    font-size: 30px;
    text-align: center;
}

.services{
    width: 100%;
    padding: 50px;
    display: flex;
    justify-content: center ;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 20%;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1rem;
    color: #800000;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
}

.view-btn {
    display: block;
    width: 100%;
    background-color: #800000;
    color: white;
    padding: 10px 0;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-btn:hover {
    background-color: #a30000;
}

.announcements {
    width: 100%;
    padding: 50px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    gap: 20px;;
}

.announcement-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.announcement-card {
    width: 270px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.announcement-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.announcement-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    font-size: 0.95rem;
    color: #333;
}

.announcement-info h3 {
    font-size: 1rem;
    color: #800000;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.announcement-info small {
    font-size: 0.85rem;
    color: #555;
}

.announcement-info p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
}

.read-more {
    color: #800000;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-end;
    text-decoration: none;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

.view-more-wrapper {
    margin-top: 40px;
    text-align: center;
}

.announcements .view-more-btn {
    padding: 10px 30px;
    border: 2px solid #800000;
    border-radius: 5px;
    background: white;
    color: #800000;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.events .view-more-btn {
    padding: 10px 30px;
    border: 2px solid #800000;
    border-radius: 5px;
    color: #800000;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.view-more-btn:hover {
    background: #800000;
    color: white;
}


.events{
    width: 100%;
    padding: 50px 100px;
    display: flex;
    justify-content: center ;
    align-items: center;
    flex-direction: column;
    gap: 20px;

}

.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    width: 100%;
}

.event-box {
    width: 270px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease;
}

.event-box:hover {
    transform: translateY(-5px);
}

.events-container .event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.events-container .event-details {
    padding: 15px;
    font-size: 0.95rem;
    color: #333;
}

.events-container .event-details h3 {
    font-size: 1rem;
    color: #800000;
    margin-bottom: 8px;
}

.events-container .event-details p {
    margin: 4px 0;
}

.events-container .event-details p strong {
    font-weight: 600;
    color: #111;
}

.events-container .event-details p:last-child::before {
    margin-right: 4px;
    color: #800000;
}


/* ============================= */
/* RESPONSIVE STYLES */
/* ============================= */

/* Small devices: phones (≤600px) */
@media (max-width: 600px) {
    .address-contact p {
        font-size: 10px;
    }
    .address-contact {
        padding: 5px;
    }

    .banner {
        height: 80vh;
        margin-top: 70px;
    }

    .banner .title-container{
        padding: 20px 0;
    }

    .banner .title {
        width: 100%;
        padding: 20px 0;
    }

    .banner .title p {
        font-size: 1.5rem;
    }

    .banner .title h1 {
        font-size: 2rem;
    }

    .banner .tagline {
        font-size: 1rem;
        line-height: 1.3;
    }

    .announcement-event {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 60px;
    }

    .announcement-event > div {
        max-width: 220px;
        scroll-snap-align: center;
        flex: 0 0 auto;
    }

    /* Hide scrollbar but keep functionality */
    .announcement-event::-webkit-scrollbar {
        display: none;
    }
    .announcement-event {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Show navigation buttons */
    .scroll-btn {
        display: flex !important;
    }

    .announcement .announcement-image,
    .event .event-image {
        height: 80px;
        object-fit: cover;
    }

    .announcement .announcement-details,
    .event .event-details {
        font-size: 0.9rem;
    }

    .announcement-event > div > h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .services {
        padding: 30px 10px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 85%;
    }

    .announcements,
    .events {
        padding: 30px 10px;
    }

    .announcement-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .event-box {
        width: 100%;
    }
}

/* Medium devices: tablets (601px–1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    .banner .title p {
        font-size: 1.8rem;
    }

    .banner .title h1 {
        font-size: 2.5rem;
    }

    .banner .tagline {
        font-size: 1.2rem;
        width: 80%;
    }

    .announcement-event {
        justify-content: center;
        gap: 15px;
    }

    .announcement,
    .event,
    .open-hours {
        width: 45%;
    }

    .announcement-event h3{
        font-size: 15px;
    }

    .announcement-event .announcement-details p, .announcement-event .event-details p, .announcement-event .open-hours p{
        font-size: 12px;
    }

    .announcement-event .read-more{
        font-size: 12px;
    }

    .services {
        padding: 40px 20px;
    }

    .service-card {
        width: 40%;
    }

    .announcement-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .events {
        padding: 40px 30px;
    }

    .event-box {
        width: 45%;
    }
}

/* Large devices: desktops (≥1025px) */
@media (min-width: 1025px) {
    .banner .title p {
        font-size: 2.2rem;
    }

    .banner .title h1 {
        font-size: 3.5rem;
    }

    .banner .tagline {
        font-size: 1.3rem;
    }

    .announcement,
    .event,
    .open-hours {
        flex: 1;
    }

    .services {
        padding: 50px 100px;
    }

    .service-card {
        width: 22%;
    }

    .announcement-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

}

