* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding-top: 10px;

    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/NBMBC.jpg);
    background-repeat: repeat;
    background-size: 100px;
    opacity: 0.2;
    z-index: -1;
}
.wrapper {
    align-items: center;
    max-width: 1000px;
    margin: auto;
}
.wrapper p {
    display: flex;
    text-align: justify;
    justify-self: center;
}
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
main {
    max-width: 100%;
    margin: 0 auto;
    padding: 25px;
}
.main_page {
    text-align: center; 
    
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    text-align: center;
}
.hero img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
}

.hero a {
    text-decoration: underline;
    font-size: 15px;
    font-weight: bold;
    font-style: italic;
}
.hero a:visited {
    color: black;
}
.hero a:hover {
    color: lightgray
}
.hero p {
    display: block;
    text-align: center;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
}
    .bio-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.home-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: black;
    text-decoration: underline;
    border-radius: 5px;  
}
.home_btn_container {
    width: 100%;
    padding: 20px;
    text-align: right;
}
.bio_bio {
    display: flex;
    line-height: 1.6;
    width: 350px;
    text-align: justify;
    justify-content: center;
}

.events  {
    list-style: none;
    font-size: 30px;
    text-align: center;
}
.event_title {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    text-align: center;
    
}
li {
    margin-bottom: 45px;
    
}
.glory_page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/NBMBC.jpg);
    background-repeat: repeat;
    background-size: 100px;
    opacity: 0.2;
    z-index: -1;
}
.headline {
    font-size: 80px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 50px;
    text-align: center;
    text-decoration: underline;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    justify-items: center;
    gap: 20px;
}
.grid img {
    display: block;
    width: 150px;
    margin: auto;
    align-items: center;
}
.card {
    background: none;
    width: 250px;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.card h2 {
    font-weight: bold;
    margin-top: 50px;
}
.events_card {
    display: grid;
    gap: 15px;
    border-radius: 8px;
    justify-items: center;
}
.events_card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
}
.gallery_card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    border-radius: 8px;
    justify-items: center;
    
}
.gallery_card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
}
.prayers_card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    border-radius: 8px;
    justify-items: center;
}
.prayers_card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    display: block;
}
.prayers_card p {
    width: 250px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.video-item iframe {
    width: 100%;
    height: 200px;
}
.order {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}
input, select, textarea { 
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
button {
    padding: 12px;
    background: black;
    color: white;
    border: black;
    cursor: pointer;
}
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}
.nav-links {
    display: flex;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 10;
}
.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
   
}
.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 5;
}
.overlay.active {
    display: block;
}
@media (max-width: 768px) {
    .headline {
        text-align: center;
        font-size: 30px;
        margin-bottom: 10px;
    }
    .hero {
        margin-top: 90px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: white;

        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px; 
    }
    .nav-links.active {
        right: 0;
    }
  
    .events_card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
       
    }
    .events_card img {
        display: flex;
        align-items: center;
        width: 150px;
        height: 250px;
        
    }
    .gallery_card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
    }
    .gallery_card img {
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: top;
    }
    .video-item iframe {
        height: 315px; /* standard YouTube player height */
    }
}