html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Modal Styles belowww*/
#authModal .modal-content{
    background-color: #1a2a44;
    color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#authModal .modal-header{
    border-bottom: 1px solid #444141;
}

#authModal .btn-close{
    filter: invert(1) brightness(2);
}

#authModal .form-control{
    background-color: #2d3e5e;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
}

#authModal .form-control::placeholder{
    color: #bbb;
}

#authModal .form-control:focus{
    background-color: #3a5170;
    border-color: #555;
    box-shadow: none;
    color: white;
}

#authModal .btn-custom{
    background-color: #332D2D;
    color: white;
    border: 1px solid #ffffff;
    padding: 8px 20px; /* Adjust padding for better size */
    width: 80%; /* Full width within its container */
    transition: background-color 0.3s ease;
}

#authModal .btn-custom:hover{
    background-color: #4a3d3d;
}

/* Ensure proper spacing and alignment */
#authModal .modal-body{
    padding: 1.5rem;
}

#authModal .modal-body .mb-3:last-child{
    margin-bottom: 0; /* Remove extra margin below button */
}

#authModal .modal-body a{
    color: #ddd;
}

#authModal .modal-body a:hover{
    color: #fff;
}

#authModal .modal-body a:hover{
    color: #fff; /* White on hover */
}
/*modal up here*/

.hero-section, .welcome-section, .history-section, .gallery-section, .vision-mission-section, .find-us-section, .news-section {
    position: relative;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}
.hero-section {
    background: url('../../images/luna.jpg') no-repeat center center/cover;
}
.welcome-section {
    background: url('../../images/luna.jpg') no-repeat center center/cover;
    color: white;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
}
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.welcome-text, .welcome-image {
    position: relative;
    z-index: 2;
}
.welcome-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.welcome-section.in-view {
    opacity: 1;
    transform: translateY(0);
}
.history-section {
    background: url('../../images/church.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}
.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.history-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 50px;
}
.history-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}
.history-content h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}
.history-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
}
.history-content ul {
    list-style: none;
    padding-left: 0;
}
.history-content li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 2rem;
}
.history-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
}
.history-content li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    width: 1px;
    height: calc(100% - 20px);
    background-color: white;
}
.history-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.history-section.in-view {
    opacity: 1;
    transform: translateY(0);
}
.gallery-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #1a2a44;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.gallery-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.gallery-section.in-view {
    opacity: 1;
    transform: translateY(0);
}
.modal-content {
    border-radius: 10px;
    border: none;
}
.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.modal-footer {
    border-top: none;
    justify-content: center;
}
.modal-footer .btn {
    background-color: #1a2a44;
    color: white;
    border: none;
}
.modal-footer .btn:hover {
    background-color: #0f1a2e;
}
.vision-mission-section {
    background: url('../../images/BadocChurch.jpg') no-repeat center center/cover;
    color: white;
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vision-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.vision-mission-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
    margin: 0;
}
.vision-mission-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}
.vision-mission-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.vision-mission-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.vision-mission-section.in-view {
    opacity: 1;
    transform: translateY(0);
}
.find-us-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.find-us-content {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    width: 100%;
    gap: 30px;
    align-items: flex-start;
}
.find-us-content h1 {
    font-size: 3rem;
    color: #1a2a44;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    width: 100%;
    margin-top: 0;
}
.map-section {
    flex: 1.5;
}
.map-content {
    padding: 20px 0;
}
.map-container {
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.contact-form {
    flex: 0.75;
    padding: 0;
}
.contact-form-content {
    padding: 20px 0;
}
.contact-form h1 {
    font-size: 3rem;
    color: #1a2a44;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    width: 100%;
    margin-top: 0;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    background-color: #b0b0b0;
    font-size: 1rem;
    color: #333;
    border-radius: 3px;
}
.contact-form textarea {
    height: 100px;
    resize: none;
}
.contact-form button {
    width: 100%;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #333;
}
.map-description {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}
.find-us-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.find-us-section.in-view {
    opacity: 1;
    transform: translateY(0);
}
.hero-text, .hero-text-bot, .statue-img, .btn-custom {
    transition: opacity 0.5s ease-in-out;
}
.hero-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial', sans-serif;
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.2s;
}
.hero-text-bot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Arial', sans-serif;
    font-size: 8rem;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    opacity: 0;
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.5s;
}
@keyframes fadeSlideUp {
    0% {
    opacity: 0;
    transform: translate(-50%, 20px);
    }
    100% {
    opacity: 1;
    transform: translate(-50%, 0);
    }
}
.text-behind {
    z-index: 1;
}
.text-front {
    z-index: 3;
}
.statue-img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none; /* Optional: let clicks go through it */
}
.btn-custom {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: white;
    background-color: #332D2D;
    border-color: #ffffff;
}
.text-upper {
    top: 20%;
}
.text-lower {
    top: 45%;
}
.welcome-text {
    font-size: 2rem;
    max-width: 50%;
    padding-left: 50px;
}
.welcome-image {
    max-width: 40%;
    height: auto;
    padding-right: 50px;
}
.news-section {
    background-color: #f8f9fa;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.news-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #1a2a44;
}
.news-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}
.news-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a2a44;
}
.news-item p {
    font-size: 1rem;
    color: #333;
}
.news-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.news-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Extra small devices (xs, <576px) */
@media (max-width: 575.98px) {
    .hero-text {
        font-size: 2.8rem;
    }
    .hero-text-bot {
        font-size: 2rem;
    }
    .btn-custom {
        bottom: 5%;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .text-upper {
        top: 40%;
    }
    .text-lower {
        top: 60%;
    }
    .welcome-section {
        flex-direction: column;
        text-align: center;
    }
    .welcome-text {
        font-size: 1rem;
        max-width: 90%;
        padding: 0;
        margin-top: 8rem;
    }
    .welcome-image {
        max-width: 80%;
        padding: 0;
        margin-bottom: 5rem;
    }
    .history-section {
        padding: 20px;
    }
    .history-content {
        margin-left: 10px;
        max-width: 95%;
    }
    .history-content h1 {
        font-size: 2rem;
    }
    .history-content h3 {
        font-size: 1.1rem;
    }
    .history-content p {
        font-size: 0.9rem;
    }
    .gallery-section h1 {
        font-size: 2rem;
    }
    .gallery-item img {
        height: 120px;
    }
    .vision-mission-content {
        max-width: 95%;
        margin-left: 20px;
    }
    .vision-mission-content h1 {
        font-size: 2rem;
    }
    .vision-mission-content p {
        font-size: 0.9rem;
    }
    .find-us-content h1 {
        font-size: 2rem;
    }
    .map-container {
        height: 200px;
    }
    .contact-form h1 {
        font-size: 2rem;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }
    .contact-form button {
        font-size: 0.9rem;
    }
    .news-section h1 {
        font-size: 2rem;
    }
    .news-item {
        padding: 15px;
    }
    .news-item h3 {
        font-size: 1.2rem;
    }
    .news-item p {
        font-size: 0.9rem;
    }
}

/* Small devices (sm, ≥576px) */
@media (min-width: 576px) {
    .hero-text {
        font-size: 3.5rem;
    }
    .hero-text-bot {
        font-size: 2.5rem;
    }
    .text-upper {
        top: 35%;
    }
    .text-lower {
        top: 55%;
    }
    .welcome-text {
        font-size: 1.5rem;
    }
    .welcome-image {
        max-width: 35%;
    }
    .gallery-item img {
        height: 150px;
    }
    .map-container {
        height: 250px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }
    .news-section h1 {
        font-size: 2.5rem;
    }
}

/* Medium devices (md, ≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-text {
        font-size: 5rem;
    }
    .hero-text-bot {
        font-size: 3.5rem;
    }
    .btn-custom {
        bottom: 10%;
    }
    .text-upper {
        top: 30%;
    }
    .text-lower {
        top: 55%;
    }
    .welcome-text {
        font-size: 1.5rem;
        max-width: 60%;
    }
    .welcome-image {
        max-width: 30%;
    }
    .history-content {
        margin-left: 20px;
        max-width: 90%;
    }
    .history-content h1 {
        font-size: 2.5rem;
    }
    .history-content h3 {
        font-size: 1.3rem;
    }
    .gallery-section h1 {
        font-size: 2.5rem;
    }
    .vision-mission-content {
        max-width: 90%;
    }
    .vision-mission-content h1 {
        font-size: 2.5rem;
    }
    .vision-mission-content p {
        font-size: 1rem;
    }
    .find-us-content {
        flex-direction: column;
    }
    .find-us-content h1 {
        font-size: 2.5rem;
    }
    .contact-form h1 {
        font-size: 2.5rem;
    }
    .news-section h1 {
        font-size: 2.5rem;
    }
}

/* Large devices (lg, ≥992px) */
@media (min-width: 992px) {
    .hero-text {
        font-size: 6rem;
    }
    .hero-text-bot {
        font-size: 4rem;
    }
    .text-upper {
        top: 20%;
    }
    .text-lower {
        top: 50%;
    }
    .welcome-text {
        max-width: 50%;
        padding-left: 50px;
    }
    .welcome-image {
        max-width: 40%;
        padding-right: 50px;
    }
    .history-content {
        margin-left: 50px;
        max-width: 600px;
    }
    .history-content h1 {
        font-size: 3rem;
    }
    .history-content h3 {
        font-size: 1.5rem;
    }
    .history-content p {
        font-size: 1rem;
    }
    .gallery-section h1 {
        font-size: 3rem;
    }
    .gallery-item img {
        height: 200px;
    }
    .vision-mission-content {
        max-width: 600px;
    }
    .vision-mission-content h1 {
        font-size: 3rem;
    }
    .vision-mission-content p {
        font-size: 1.2rem;
    }
    .find-us-content {
        flex-direction: row;
    }
    .find-us-content h1 {
        font-size: 3rem;
    }
    .contact-form h1 {
        font-size: 3rem;
    }
    .map-container {
        height: 300px;
    }
    .news-section h1 {
        font-size: 3rem;
    }
}

/* Extra extra large devices (xxl, ≥1400px) */
@media (min-width: 1400px) {
    .gallery-grid {
        max-width: 1400px;
    }
    .find-us-content {
        gap: 50px;
    }
}


/*for blogpost to*/
.blog-post {
    background-color: transparent; /* Fallback if image fails */
    color: white;
    min-height: 100vh;
    padding: 50px 1rem;
    position: relative;
}
.blog-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}
.blog-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.blog-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.blog-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.blog-footer {
    text-align: center;
    padding: 1rem;
    color: #888;
    background-color: #f8f9fa;
}
/*blogpost above heeeere*/

.news-link {
    color: #1a2a44;
    text-decoration: none;
}
.news-link:hover {
    text-decoration: underline;
}



/*CRUD for users/

/* Existing styles (keep these if already present) */
.department-files .form-group {
    margin-bottom: 15px;
}
.department-files label {
    display: block;
    margin-bottom: 5px;
}
.department-files input[type="text"],
.department-files input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}
.department-files button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
.department-files button:hover {
    background-color: #0056b3;
}
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* New styles for users management */
.table-users {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.table-users th {
    background-color: #343a40;
    color: #ffffff;
    padding: 12px;
    text-align: center;
}
.table-users td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}
.table-users tr:nth-child(even) {
    background-color: #f8f9fa;
}
.table-users tr:hover {
    background-color: #e9ecef;
}
.btn-sm {
    margin: 2px;
}