/* Updated Disease Card Styles */
.custom-disease-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    border: 2px solid var(--dark-secondary-color); /* Primary color border */
    background-color: transparent;
    position: relative;
}

.custom-disease-card:hover {
    transform: translateY(-5px);
    background-color: color-mix(in srgb, var(--primary-color) 90%, transparent); /* 15% opacity of primary color */
}

/* White text and icon on hover */
.custom-disease-card:hover .custom-disease-title,
.custom-disease-card:hover .custom-disease-img {
    color: white;
    filter: brightness(0) invert(1); /* Converts icon to white */
}


/* Rest of your existing CSS remains the same */
.custom-interest-container {
    padding: 0 15px;
}

.custom-interest-wrapper {
    margin: 3rem 0 1rem;
}

.custom-interest-heading {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.custom-interest-text {
    font-family: inherit;
    color: #333;
    max-width: 75%;
    font-size: 1rem;
}

.custom-disease-container {
    padding: 2rem 0;
}

.custom-card-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.custom-icon-wrapper {
    flex-shrink: 0;
}

.custom-disease-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.custom-disease-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}


/* Responsive adjustments */
@media (max-width: 767.98px) {
    .custom-interest-container {
        padding: 0 10px;
    }

    .custom-interest-heading {
        font-size: 1.5rem;
    }

    .custom-interest-text {
        max-width: 90%;
        font-size: 0.95rem;
    }

    .custom-disease-container {
        padding: 1rem 1rem;
    }

    .custom-disease-img {
        width: 40px;
        height: 40px;
    }

    .custom-disease-title {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .custom-interest-heading {
        font-size: 1.6rem;
    }

    .custom-interest-text {
        max-width: 85%;
        font-size: 1rem;
    }

    .custom-disease-img {
        width: 45px;
        height: 45px;
    }
    .custom-disease-title {
        font-size: 0.9rem;
    }
}