.cardBody {
    background-color: #dedede; /* Background color for the body */
}

.hover-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    height: 350px; /* Adjust this value to make the card taller */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Ensure no underline on links */
}

a.cta-primary {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}

.cardFont {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 24px;
    text-transform: uppercase;
    color: #494545;
    margin-bottom: 20px;
}


.hover-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hover-card:hover .hover-background {
    opacity: 0.7; /* Adjust the opacity for a darker hover effect */
}

.card-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Space out elements */
    height: 100%;
    text-align: center;
    padding: 20px; /* Ensure there is padding to fit the text */
}

.icon-container {
    position: relative;
    z-index: 4;
    margin-bottom: 20px;
    margin-top: 20px; /* Add margin to move down */
}

.icon-container::after {
    content: '';
    display: block;
    width: 40px; /* Adjust width as needed */
    height: 2px; /* Adjust height as needed */
    background-color: #00264d; /* Line color */
    margin: 10px auto 0; /* Adjust margin as needed */
}

.icon {
    font-size: 40px;
    color: #333;
    background-color: #fff;
    border-radius: 50%;
    padding: 15px;
    border: 2px solid #ddd;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hover-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    font-size: 40px;
    transition: opacity 0.3s ease;
    color: #fff; /* Hover icon color */
    background-color: #333;
    border-radius: 50%;
    padding: 15px;
    border: 2px solid #333;
}

.hover-card:hover .icon {
    opacity: 0; /* Hide the default icon */
}

.hover-card:hover .hover-icon {
    opacity: 1; /* Show the hover icon */
}

.card-title {
    color: #00264d; /* Text color */
    transition: color 0.3s ease;
    margin: 10px 0;
    margin-top: 20px; /* Add margin to move down */
    position: relative; /* Position relative to enable z-index */
    z-index: 4; /* Ensure text is above overlay */
}

.hover-card:hover .card-title {
    color: #fff;
}

.card-text {
    color: #890a1d; /* Text color for "More" */
    transition: color 0.3s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none; /* Remove default underline */
    margin-top: auto; /* Push text to the bottom */
    padding-bottom: 10px; /* Add padding to keep it off the edge */
}

.card-title::after {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly dark transparent background */
}

.card-text::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjust this value as needed */
    left: 0;
    width: 100%;
    height: 1px; /* Slimmer underline */
    background-color: #890a1d;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hover-card:hover .card-text::after {
    transform: scaleX(1);
}

.hover-card:hover .card-text {
    color: #fff;
}

.icon-arrow-right {
    margin-left: 5px;
    color: #890a1d;
    transition: color 0.3s ease;
}

.hover-card:hover .icon-arrow-right {
    color: #fff;
}


.hover-card:hover .header-overlay {
    opacity: 0.7;
}
