body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}


@media (max-width: 576px) {
    .mininstry-container {
        grid-template-columns: 1fr;
    }
}

.card-title {
    margin: 2px;
    padding: 2px;
    font-size: 20px;
}

.card-text {
    margin: 5px;
    padding: 5px;
    font-size: 16px;
}


h1 {
    text-align: center;
}

#ministry-title {
    font-size: 36px;
    /* Adjust the font size as needed */
    font-weight: bold;
    text-align: center;
    color: #030303;
    /* Choose a color for the text */
    margin-bottom: 20px;
    /* Adjust spacing as needed */
    width: 100%;
}

/* CSS */
.ministry-section {
    background-color: #f4f7f9;
    color: #fff;
    text-align: center;
    width: 100%;
}

.ministry-container {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin: 40px;
}

.mininstry-item {
    background-color: rgba(17, 84, 171, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.8);
    padding: 20px;
    font-size: 18px;
    text-align: center;
    border-radius: 10px;
    border-width: 5px;
    border-color: rgb(255, 255, 255);
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
.mininstry-item span.material-icons,
.mininstry-item span.material-symbols-outlined {
    font-size: 60px;
}

.mininstry-item:hover {
    background-color: #0890bd;
    animation: shake 0.5s ease-in-out infinite;
}

.card-title {
    margin: 10px 0;
    font-size: 22px;
    font-weight: bold;
}

.card-text {
    margin: 10px 0;
    font-size: 16px;
}

/* Additional styles for icons */
.mininstry-item i,
.mininstry-item span {
    color: #fff;
    font-size: 3em;
    margin-bottom: 10px;
}

/* Add CSS styles for the animation */
.animated-card {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ministry-section.scroll-reveal .mininstry-item.scroll-reveal {
    opacity: 1;
    transform: translateX(0);
}